Lessons 10-20 PDF
Lessons 10-20 PDF
Lessons 10-20 PDF
Here we will study several elementary methods for solving first-order differential equations.
We begin our study of the methods for solving first-order differential equations by studying an
equation of the form Mdx + Ndy = 0 ; where M and N maybe functions of both x and y.
Some equations of this type are so simple that they can be put in the form A(x)dx + B(y)dy = 0.
Solution:
( x2 + 4 ) = xy ; ( x2 + 4 ) dy = xydx
- = 0 ; ∫ - ∫ = ∫0
ln ( x2 + 4 ) - ln( y ) = C
Simplifying further:
ln = C1 ; = C2 ; x2 + 4 = C2y2
C3 ( x2 + 4 ) = y2
y = 𝑪𝟑 ( 𝒙𝟐 + 𝟒 )
𝒙𝟐
2) Find the particular solution of the equation xydx + 𝒆 ( y2 - 1 )dy = 0 with initial
condition of y(0) = 1.
Solution:
𝒙𝟐
Separating the variables: ( divide both terms by y and 𝒆 )
( )
+ = 0
( y - )dy = - x𝑒 dx ; ∫( 𝑦 − ) dy = - ∫ 2𝑥 𝑒 dx
- ln ( y ) = - 𝑒 + C
and from the initial condition y( 0 ) = 1
- ln ( 1 ) = - e0 + C
- 0 = - ( 1 ) + C thus C = 1
y2 - ln ( y2 ) = - 𝑒 + 2(1)
Simplifying further;
𝟐
y2 - ln ( y2 ) + 𝒆𝒙 = 2
( 𝒚𝟐 𝟏 ) 𝒅𝒚
3) Find the general solution of the differential equation 𝒙𝒅𝒙
+ ylnx = 0
Solution:
( )
x lnx dx + = 0 ; x lnx dx + ( y + ) dy = 0
∫( 𝑦 + ) dy = + lny
∫ 𝑥 𝑙𝑛𝑥 dx ( by parts ) ; ∫ 𝑢𝑑𝑣 = 𝑢𝑣 − ∫ 𝑣𝑑𝑢
let u = lnx du = ; dv = x dx v =
sec 2x ( 3y2 + 2y + 4 ) y’ = ( y3 + 4y )
( y3 + 4y ) dx - sec 2x ( 3y2 + 2y + 4 ) dy = 0
( )
cos2x dx - dy = 0 ;
( )
∫ 𝑐𝑜𝑠2𝑥 ( 2𝑑𝑥 ) - ∫ ( )
dy = ∫ 0
( ) ( )
sin2x - ∫ ( )
dy = sin2x − ∫ ( )
( )
∫ = + [ multiplied by y ( y2 + 4 ) ]
( )
3y2 + 2y + 4 = ( y2 + 4 ) A + ( By + C ) y
3y2 + 2y + 4 = Ay2 + 4A + By2 + Cy
y2 ; 3 = A + B (1)
y ; 2 = C (2)
C ; 4 = 4A (3)
Solving simultaneously ; A = 1 B = 2 C = 2
Therefore:
( ) ( )
∫ dy = ∫ + ∫
( )
= ∫ + ∫ + 2∫
∫ ( u = y ; du = dy ) = ln y
∫ ( u = y2 + 4 ; du = 2y ) = ln ( y2 + 4 )
2∫ ( u= y a = 2 du = dy ) ; ∫ = tan-1
2∫ = 2 tan-1 = tan-1
sin2x - ln y - ln ( y2 + 4 ) - tan-1 = C
𝒚
sin2x - ln y2 - ln ( y2 + 4 )2 - 2 tan-1 𝟐
= C1
Exercise No. 5
1) ( 1 - x ) y’ = y2
2) 2xyy’ = 1 + y2 when x = 2 ; y = -3
3) xy3dx + 𝑒 𝑑𝑦 = 0
4) x2dx + y ( x - 1 ) dy = 0 when x = -1 ; y = 1
5) ( xy + x ) dx = ( x2y2 + x2 + y2 + 1 ) dy
Homogeneous Equations
Some differential equations that are not separable in x and y can be make separable by a
change of variables. This is true for differential equations of the form y’ = f ( x, y ), where f is a
homogeneous function. The function given by f ( x, y ) is homogeneous of degree n if:
f ( ty, tx ) = tn f ( x, y )
where n is an integer.
Example:
1) Find the general solution of ( x2 - y2 ) dx + 3xydy = 0.
Solution:
Said equation are both homogeneous of degree 2, let y = vx ; dy = vdx + xdv ; by
substitution yields to:
( x2 - v2x2 ) dx + 3x ( vx ) ( vdx + xdv ) = 0
x2dx - v2x2dx + 3x2v2dx + 3x3vdv = 0
Re-arranging and separating the variables yields to:
x2 ( 1 + 2v2 ) dx + 3x3vdv = 0 dividing the terms by ( 1 + 2v2 ) and x3 ;
+ ( )
= 0 and integrating both sides yield to:
ln ( x ) + ln ( 1 + 2v2 ) = C
x4 ( 1 + 2v2 )3 = C2 ; but v =
thereby:
x4 ( 1 + )3 = C2 ; x4 ( )3 = C2
( x2 + 2y2 )3 = x2C2
= = +
( )
v2 - 1 = Av2 + 2A + Bv2 + Cv
v2 ; 1 = A + B (1)
v ; 0 = C (2)
C ; -1 = 2A (3)
( )
dv = - + then integrate:
ln v + ln ( v2 + 2 )
Final solution will be:
ln y - ln v + ln ( v2 + 2 ) = C ; ln y4 - ln v2 + ln ( v2 + 2 )3 = C1
( )
= C2 ; but v =
y4 ( + 2 )3 = ( ) C2 ; y4 ( )3 = ( ) C2
( )
= ( ) C2 ; ( x2 + 2y2 )3 = x2C2
Solution:
( x2 + 2y2 )3 = 54x2
Solution:
Let x = vy ; dx = vdy + ydv
[ 2 ( vy ) y + y2 ] [ vdy + ydv ] + [ ( vy )2 - ( vy ) y ] dy = 0
( )
dy + dv = 0 or 3 + (2 + 𝑣 dv ) = 0
Integrating both sides will results to:
𝒚
ln ( y3 ) ( ) - = C ; ln x2y - = C
𝒙
Alternate solution:
( )
3 + = 0 ; 3 + - dv = 0
But v = ; lnx3 + ln ( ) - = C
𝒚
ln x3 ( ) - = C ; ln x2y - = C
𝒙
Exact Equations
Let us now show that if this condition satisfies the equation, let ∅ ( 𝑥, 𝑦 ) be a function for
∅
which = M. The function ∅ is the result of integrating Mdx with respect to while holding y
∅ ∅
constant. Now = ; hence if = , then also = .
Let us integrate both sides of this last equation with respect to x, holding y fixed. In the
integration with respect to x, the “arbitrary constant “ maybe any function of y. Let us call it
B’(y), for ease in indicating its integral. Then integration of it with respect to x yields to:
∅
= N + B’(y)
∅ ∅
dF = dx + dy - B’( y ) dy
= M dx + [ N + B’( y ) } dy - B’( y ) dy
= M dx + N dy
Example:
3x ( xy - 2 ) dx + ( x3 + 2y ) dy = 0
Solution:
Let us attempt to determine F from M from the equation = 3x2y - 6x. Integration of
both sides with respect to x, holding y constant yields to F = x3y - 3x2 + T( y ), where the
usual arbitrary constant in indefinite integration is now necessarily a function T( y ), as yet
unknown. To determine T( y ), we use the fact that the function F with T( y ) must also satisfy
the equation = x3 + 2y . Hence; x3 + T’( y ) = x3 + 2y and T’( y ) = 2y.
No arbitrary constant is needed in obtaining T( y ), since one is being introduced on the right
in the solution F = c. Then, T( y ) = y2. Thus, F = x3y - 3x2 + y2.
Finally, a set of solutions of the said equation is defined by:
x3y - 3x2 + y2 = C
Solution:
Simpler solution will be, integrate both sides with respect to each derivatives,
Eliminate one of the term/s common to both x and y and then simplify:
2x3y - 4ysinx + 2x + y2 = C
Exercise No. 6:
1) y’ = ( x - 2y )
2) ( 6x + y2 ) dx + y ( 2x - 3y ) dy = 0
3) ( y2 - 2xy + 6x ) dx - ( x2 - 2xy + 2 ) dy = 0
6) [ 2x + ycos( xy ) ] dx + xcos( xy ) dy = 0
7) ( y - 𝑥 + 𝑦 ) = xy’ ; y ( 4 ) = -2