Lecture Notes in Math 213
Lecture Notes in Math 213
Definition
Differential equation(DE)__ is an equation containing at least one
derivative.
Examples:
a. (2xy +)dx +2y dy = 0
b. [ ] –x [ + = 0
c. (x – 1 ) y” + xy’ +y =0
d. + 2y =3
Types of Differential equations (DE):
1. Ordinary DE---- an equation consisting only one independent
variable, thus having only ordinary derivatives in the equation.
Examples, a, b, and c.
2. Partial DE– an equation containing two or more independent
in the equation. The degree of a DE is the degree (exponent) of the
highest ordered derivative which appears in the equation. Examples:
a----- First order, First degree
b---- Third order, Second degree
c. --- Second order, First degree
d. --- First order, First degree
Types of solutions of DE
a. General solution– the solution has at least one arbitrary constant
Example: - 3y = C, where; C= arbitrary constant
b. Particular solution– the solution has no arbitrary constant
Example: 2xy + - 2 = 0
d. = 5y
d. x[ + [- y =0
d. Y’’’ + 4y’ + 3y = x
e. (=
f. ( =
g. = 3
h. = 3 + x
i. =
j. =
k. ( = k [ 1 + (
Solutions to the first order DE
A. Variable separable type
Standard form: P(x)dx + Q(y) dy =0
General solution: (y) dy =0
In the solution of an ordinary first –ordered differential equation, the simplest
is the one in which the variables, say x and y, can be separated. By this, it
means that the function of x times dx is separable from the function of y times
dy.
Example #01: Solve the differential equation
(x-2)dy + (y+3)dx =0
Solution:
+ =0; then integrate
+ =0
ln(y +3) + ln (x-2) = lnC ; ln(y+3)(x-2) = ln C
Thus; the solution is; (y+3)(x-2) =C
Example#02:
Find the particular solution of ydx – 4 dy =dy; x=4 when y=1
Solution:
- =0; then integrate
- =0
Thus; for (+4) = (x + (2; where; a= 2; and u=x
Therefore;
Arctan - ln y = C; when y=1, x =4; C= Arctan 2
The particular solution is;
Arctan - ln y = Arctan 2
Example Problem#03
Find the general solution of y’= y secx
Solution:
= y secx
= secx dx; then integrate
- =0
lny – ln(secx + tan x) = ln C
ln y = ln (C ) + ln (secx +tanx)
lny=ln[C( sec x +tanx)]
y= C (secx + tan x)
Example Problem#04
Solve: sinx sin y dx + cosx cosy dy =0
Solution:
Divide each term by and integrate
+ =
-ln cosx + ln siny = lnC
ln = lnC
Siny =C cosx
Or
(ysin-+ x) +
Thus; ysin-y+ x = C
Example #04
Solve (3
Test: DE is exact since = = 6xy
+
+ + ( + )]dy = C
+
+ = C, Thus:
Example #05
Solve (cos2y-3
Solution:
The DE is exact since
+
( xcos2y- ) +(xcos2y-
xcos2y-+ +2xsin2y +2]dy = C
xcos2y - + sin2y =C
Supplementary Problems
Solve the following DE
1. (2xy-tany)dx – (
2. ; or
3. +2+ =C
4. (2xy-3)dx +(; Ans. y +
5. (y-2)dx +(x-6x- 2y)dy =0; when y=2, and x=0
Ans.
6. dx + [ln(2x-2) + ] dy =0; Ans. Yln(x-1) +lny+yln2 =C
7. (4x-2y +5)dx +(2y-2x)dy =0 ; Ans. 2-2xy +5x +=c
8. (3+3x)dx + (3; Ans. +
9. dx -dy =0; Ans. x=cy
10. (6+4xy +)dx + (2+2xy-3; Ans. 2+2
Additional Problems
1. (2 Ans. - - 2xy+3x=c
2. (+y) + (+x)y’ =0; Ans. xy ++ =c
3. + { + - = c
4. (2x +ycos(xy)dx + xcos(xy)dy =0; Ans.
5. (2x+y-4)dx +(x-2y +3)dy=0; Ans.
6. (3+2ysin2x)dx +(2x +3)dy=0;Ans. - ycosx+y+=C
7. (3+ )dx +(2ln3x + )dy=0; Ans. + 2yln3x +3lny=c
8. dy + (2ln5y + ) dx=0; Ans. lnx +2x ln5y = c
9. sin2xdx -3; Ans. (1+cos2x) = c
10. =dx; Ans. 4x += cy
Linear Differential Equation
Standard form: + P(x)y= Q(x)__ linear in y.
Solution: y = dx +C
Standard form: +P(y)x = Q(y)—linear in x
Solution: x = dy +C
= dx +C
= 2 dx + C
= dx + C
+ C; or = + ; or 4 + = Cx; Where ; C= 4
Example Problem#04
Solve: dy + ydx = 2x
Solution: Divide by dx
+ y = 2x; Bernoullis in y
P(x) =1 ; Q(x) = 2x; n = 2 ; 1-n = -1
=
= -1 dx + C
= -2dx+C
= -2 + C
= -2 + C
= - + C;
= - + C ; or y (C- ) =1
Example #05
Solve: - =
Solution:
This is std. form; Bernoulli’s in y; P(x) = ; Q(x)= ; 1-n = 1- =
= dx +C
= +C
= dx +C
= dx + C
= +C
= + C ; or = +C; or y =[ + C
Supplementary Problems
S0lve the following DE.
1. 2 - = 5 Ans. + = C
2. (+ 6)dx- 4xy dy =0; when x=1; y=1 ; Ans. 2= (3x-1)
3. dx- 2xy dy = 6dy Ans. = (C- 4)
4. (3siny-5x)dx + 2coty dy =0 Ans. (x-siny) = yC
5. siny(x+siny) dx + 2cosy dy = 0 Ans. (3x +sinyC =y
6. = Ans. = (2 - - C
7. + y = x Ans. =
8. 6 Ans. Cy = (2
9. 2uv = - 2 Ans. = u(C-)
10. (tanx sin2y) = Ans. C=sinx (3
Application of First Order Differential Equation
Decomposition and Growth
Mathematical Model
𝛂 P or = kP
Where: k= constant of proportionality; (+) for growth rate; (- )for decomposition
rate
P= no. of inhabitants at any time t
= rate of change of the population
The growth rate or death decomposition rate is proportional to the population
present. Thus;
=kP; Integrate, = k; then, ln P = kt + C
Example Problem #01
The rate of population growth of a country is proportional to the number of
inhabitants. If the population of a certain country now is 40 million and 50
million in 10 years time, what will be its population 20 years from now?
Solution:
ln P = kt + C
When t=0, P = 40 M; Thus,
ln 40 = 0 + C; C= ln 40
Then , lnP = kt + ln 40;
When t= 10 years, P= 50 M; Thus;
ln 50 = 10 k + ln 40
k= 0.0223
When t= 20 years; P=P
lnP= 0.0223(20) + ln 40; P= 62.482 M or P=62.5 M
Example Problem #02
The population of a country doubles in 50 years. How many years will it be 5
times as much? Assume that the rate of increase is proportional to the no. of
inhabitant.
Solution:
ln P= kt + C General solution
When t= 0, then P= ; ln =k(0) + C; C= ln
When t = 50nyears; P= 2
ln 2 = k (50) + ln ; Then k=0.0138629
When t=?, P=5
ln 5= 0.0138626t + ln
t= 116 years
Example Problem #03
Radium decomposes at a rate proportional to the amount present. In 100
years 100 mg of radium decomposes to 96 mg. How many mg will be left after
another 100 years? What is the half life( the time required to decompose half
the initial amount) of radium?
Solution:
Let S be the amount of radium at any time t (mg)
lnS =kt +C, or S= or S =
When t= 0; S= 100 mg; ln 100= k(0) + C; C= ln 100
When t= 100 years, S= 96
ln 96 = k(100)+ ln 100; k= -0.0004082
Thus; lnS =-0.0004082t + ln 100
When t= 200 years
lnS= -0.0004082(200) + ln 100
Thus; S= 92.16 mg
To get half life of radium; Use S = 50 mg
lnS= kt + C
ln 50 = - 0.0004082t + ln 100
t= 1698.057 years
Problem Solving.
1. The population of the Philippines in 1986 was 60 M and at present (1996)
is 65M. If the rate of population growth is proportional to the population,
find the population in the year 2000?
2. The population of a certain community follows the law of exponential
change. If the present population of the community 1s 144,000 and 10
years ago was 100000, when will the population double? In ten years
what will be the population of the community?
3. A bacteria decomposes at a rate proportional to the amount present. If
the bacteria has a half life of 30 minutes, what percent of the original
amount is expected to remain after 54 minutes.
4. A bacteria is known to grow at a rate proportional to the amount
present.After 60 minutes, 1000 strands of bacteria are observed in the
culture, and after 240 minutes 3000 strands. Find (a) an expression for
And (b ) the number of strands of the bacteria originally in the culture.
5.The rate at which radioactive nuclei decay is proportional to the number of
such nuclei that are present in a given sample. Half of the original number of
radioactive nuclei have undergone decomposition in a period of 50 years.
What percentage of the original radioactive nuclei will remain after 150 years.
In how many years will only one-fifth of the original number remain.
Newton’s Law of Cooling
Newton’s law of cooling states that the rate of change of a temperature of a
body, immersed in a medium when temperature differ from it is
proportional to the difference between it and the medium.
In mathematical equation; 𝛂 ( = -k (;
Where:= temperature of the body at any time t
= temperature of the medium at any time t
= rate of change of temperature in the body
-k = proportionality constant,(-) negative sign denotes the body is
being cooled: if the body is being heated the sign becomes (+).
Example Problem#01
A metal with temperature C is submerged in a large body of liquid of
temperature C. After 1 minute, the temperature of the metal dropped down
to C. When will be the metal temperature be ? After 40 seconds, what will be
the temperature of the metal?
Solution:
Let : = temperature of the metal at any time t
= temperature in air
= -k (
Given condition:
t= 0; = C; = C
t= 1 min;
Required;
a. t=?; =
b. t= 1 min. = ?
=-k(
= k dt
=k
ln (Tm-8) =kt + C or ln Tm = ln 8 – kt + C
Tm= 8 +
When Tm= C; t= 0
ln( 40-8) = K(0) + C; Thus; ln 32 = C
ln (Tm-8) = - kt + ln 32
When t= 1 min; Tm= C
Thus; ln (30-8) = - kt + ln 32
-0.374693449 = - k(1); k= 0.374693449
When Tm= C, t =?
Ln (15-8) = 0.374693449 t +ln 32
t= 4 minutes
b)Cont’n
Solving Tm when t= 40 seconds
Tm = 8 + 32 (
Tm= 32.926℃
Problem #02
According to Newton’s law of cooling, the rate at which heat is lost by a heated body is proportional
to the difference in temp. between the body and the surrounding medium(when that temp. is very
small). If a thermometer is taken outdoor where the temperature is 5℃, from a room in which the
temperature is 20℃, and the reading drops 10℃ in 1 minute, how long after its removal from
the room will the reading be 6℃. After 30 seconds, what will be the temperature reading?
Solution:
= k (Tb-Tm)
Where:
Tb= is the temperature of the body at any time t
Tm= is the constant temperature of the medium
K= proportionality constant
Tm = 5℃
= k(Tb – 5) ; Integrate
ln(Tb -5 ) = kt + c
Tb = C₁+ 5
When t=0; Tb= 20℃ and C = 15
when t = 1 min; Tb= 10℃; = 15;
10 = 15; k = - 1.1
Tb = 15 + 5
when Tb= 6℃
6 = 15 + 5
t= 2.5 minutes
when t= 30 sec
Tb = 15+ 5
Tb= 13.7 ℃
Problems:
1.A thermometer reading 18℉ is brought into the room where the
temperature is 70℉. A minute later, the thermometer reading is
31℉. Determine the temperature reading 5 minutes after the
thermometer is first brought into the room. Ans. 57.68 ℉
2. A thermometer is used to record the temperature of boiling water
at sea level, the pressure being 760 mm Hg. Then it is removed and
place over ice. At the end of 1 minute, the temperature is 50℃. Find
the time when the temperature is 10℃. Ans. t= 3.32 min.
3. At 1:00 pm, a thermometer reading 70℉ is taken outdoors where
the temperature is -10℉, at 1:02 pm the reading is 26℉, at 1:05 pm,
the thermometer is taken back indoors where the air is at 70℉.
What is the thermometer reading at 1:09 PM. Ans 56℃
Mixture Problems (Non-Reacting Fluids)
The basic mathematical model is mixing problems.
= input rate - output rate
= is the rate of change of concentration of the substance
Assumptions: The concentration is kept uniform in the mixture.
Example Problem:
In a tank, there are 100 liters of brine containing 50 kg total of dissolved salt.
Pure water is allowed to run into the tank at the rate of 3 liters a minute. Brine
runs out of the tank at the rate of 2 litres a minute. The instantaneous
concentration in the tank is kept uniform by stirring. How much salt is in the
tank at the end of 1 hour?
Solution:
Let: Q be the amount of salt in the mixture
100 + (3 -2 )t = 100 + t = volume of mixture at any time t
= concentration of salt
= rate of gain- rate of loss
=0–2(
= -2 + C
ln Q = - 2ln (100 + t) + C; general solution
when t= 0; Q = 50 kg
ln 50 = - ln
C = 13.12236 (100 + t+ C
when t= 60 min; Q= ?
ln Q = -ln ( 100 + 60+ 13.12236
ln Q = 2.972
Q= 19.53 kg
whose salt concentration 1.5 lb per gallon flows into the tank at the rate of 3 gallons per minute. The
mixture flows out at the rate of 2 gallons per minute. Find the salt content of the brine at the end of 40
minutes.
Solution:
Let:
S = be the amount of salt in the tank at any time t
C= the concentration of brine in the tank at any time t
= the concentration of brine that flows into the tank at any time t
V volume of brine in the tank at anytime
Example Problem
Find the solution of the DE,
Solution:
Convert to auxiliary equation
(
Factor:
(m + 2)(m- 3) = 0; which has the roots, = -2: and = 3 distinct real roots.
Thus (, ) is the fundamental solution set for The DE and
The general solution is;
y(x) =
Example #02
( - - 4D + 4 )y =0
Solution: Convert to auxiliary equation
(
Solving the roots by synthetic division
[ 1 -1 -4 4 ] (-2)
-2 6 -4
--------------------
[ 1 -3 2] 0 (1)
1 -2
------------------
1 -2 0 (2)
( m+2) (m-1) (m-2) =0 ; the roots are; = 1 and = 2 which are distinct roots,
Thus,{ , ,} is the fundamental solution set for the DE. Thus: the general
solution is:
y(x) = + +
Example #03
(-3D +2)y =0 ; y(0) =1; y’(0) =0
Solution: Convert to auxiliary equation
(- 3m + 2) =0
(m-2)(m-1) =0; the roots are ;=2; and = 1 ; which are distinct roots. Thus { , }
is the fundamental solution set for the DE, Thus the general solution is:
y(x) = + ; where ;
To find the specific solution that satisfies the initial condition given, first
differentiate the general solution, then substitute the initial condition.
y(x) =
1= +
1 = ; eq. 1
y’(x) = 2+
0 = 2+
0 = 2+eq. 2
Solving from eq. 1 and eq.2 yields
= -1 and = 2, thus
y(x) = - + 2 Ans.
Supplementary Problems:
Find the general solution of the following DE
1. (- 4 + 3D) y =0; Ans. y(x)=
2. (- 3-D + 3)y =0; Ans. y(x) =
3. + 2 -3
4. (-3D + 2) y = 0
5. +4D - 5)y =0
6. (+4D +3)y =0
7. (
8. =
9. (--7+3D)y
10. (-7D +6)y =0
11. (-3-3D +1)y =0
12. (-2-13+38D -24)y=0
B} Repeated Roots
If the auxiliary equation has repeated roots m then two linearly independent
solution to ++y = 0 are and and the general solution is, y(x) = +x; where ;
Example:
(+6D +9)y =0
Solution:
Auxiliary equation
(+6m +9) =0
(m+3)(m+3) =0
Since m=-3 is a repeated, two linearly independent solutions are and x.
Hence the general solution is:
y(x)= +x
Example
(+6+12D +8)y =0
Solution:
Auxiliary equation:
+6+12m +8 = 0
Solving the roots by synthetic division
[ 1 6 12 8 ] (-2)
-2 -8 -8
---------------------------
{1 4 4 0 ] (-2)
-2 -4
-----------------------
1 2 0 (-2)
-2
-----------------------
(m+2) (m+2) (m+2) = 0
Since m = -2 is repeated, three linearly independent solutions are ;
, x, hence the general solution is:
y(x) =+ +
Supplementary Problems
1. (+ 3+ 3D + 1)y=0
2. (+5+7D + 3)y=0
3. (-15+10+ 60D -72)y=0
4. (-6D + 9)y =0
5. (+4D +4)y =0
6. (- )y =0
7. ( -2+D)y=0
8. (y) =0
9. (-- D + 1) =0
10. -3+3D -1) y =0
C) Complex Roots
If the auxiliary equation has complex roots( a + and – bi), then the two linearly
independent solution to; ; are cosbx and
sin bx, and the general solution is:
y(x) = (cos bx + sin bx); where:
Example Problem
1) (+ 2D + 4)y = 0
Solution:
(+2m +4) =0, which has a root; m=
m= = -1 ; since m= -1i is a complex root and the general solution is
y(x) =(cos x + sin x)
Example #02
Solve (-3+9D +13)y =0
Solution:
Auxiliary equation
-3+ 9 m +13) =0
[ 1 -3 9 13 ]; ( -1)
-1 4 -13
-----------------------
1 -4 13 0
Thus: the new auxiliary equation is:
-4m +13 =0
m= = = 2
The general solution is:
y(x) = + (cos 3x +sin 3x )
Supplementary Problems
1. (4+12+13 D +10)y =0; Ans. y(x) =+ (sin x)
2. (2- +36D -18)y =0 Ans. y(x) = +cos(3 x)+sin(3 x)
3. (y” +2y’ +5y =0 Ans. y(x) = (cos 2x + sin 2x )
4. ( +2)y =0
5. D(-4D +5)y =0
6. (D-2)(+2D +10y) =0
7. (+4)y =0
8. (+8+16)y =0
9. (+ )y =0
10. (+6+ 9)y =0
Repeated Complex Roots
If the auxiliary equation has double roots
y + Dy +y =0 are (+sin bx) and x(cosbx +sinbx and the general solution
is:
Y(x) = (cosbx +sin bx) + x(cosbx +sin bx)
Or
Y(x) =(sin bx
Example Problem
Solve [ + 36 =0
Solution:
= -36
m= 6i ; ( twice repeated complex roots)
Thus , the general solution is:
y(x) = (+ x ) cos6x + (+ x) sin 6x;
Or
y(x) = (+ x) cos 6x + (+x) sin 6x
Example #02
(-2D +5y =0
Solution: auxiliary equation
(-2m +5=0
By quadratic equation
m=1
The general solution is:
y = ( sin 2x) + x(cos2x +sin 2x)
y= (
Supplementary Problems
1.) +8+16 )y =0
2. (+ 6+ 9)y =0
3. (+2D + 3y =0
y=
Where:
y = complete solution
= is called particular integral or the particular solution of the homogenous
equation
= is called complementary function, or the general solution of the
homogenous equation..( Hence, Chapter 5 HLDE with constant coefficient is
applied to solve for .
= ++ … … +
6.2 Undetermined Coefficients
Steps to solve the particular integral
1. Assume to be an arbitrary linear combination of all the linear independent
function which arises from R(x). Differentiate assume equal to the order of the
given differential equation.
2. Substitute
3. Solve this system of linear equation for the coefficient of
Table 1. Common Forms of R(x) and the trial that accompanies each R(x)
Type R(x)
1 A
2 cos bx or sin bx Asin bx + B cos bx
3 polynomial p(x) of degree n
4 p(x)p(x) is a polynomial of degree n
5 sin bx or cos bx (Asin bx + B cos bx)
Note: If the trial happens to have a component which solves the associated
homogenous equation, use the trial multiplied by x. If the new trial also has
a component that satisfies the homogenous equation it must be multiplied
again by x. This is done when needed, specially when the equation is second
order. Finally, if R(x) is a linear combination of several function, each function
may be treated separately.
Example Problem
1) (
Solving for
Auxiliary equation
+ 4m +3 =0
(m+3)(m+1) =0
The roots; = -3; =-1
Thus; = +
Solving
Let: = A
D= 2A
=4A
Substitute
(+4D +3)y = 5
4 A+ 8 A+ 3A= 5
15A= 5
A= , hence; =
The complete solution is:
y=
y= + + Ans.