Professional Documents
Culture Documents
Lecturem104 ch7 1
Lecturem104 ch7 1
Dr. M. Alghamdi
Department of Mathematics
November 3, 2022
Main Contents
Definition
An equation that involves x, y , y 0 , y 00 , y 000 , y (4) , ..., y (n) for a function y (x) with nth derivative of y with respect to x is an
ordinary differential equation of order n.
Definition
An equation that involves x, y , y 0 , y 00 , y 000 , y (4) , ..., y (n) for a function y (x) with nth derivative of y with respect to x is an
ordinary differential equation of order n.
Example
1 y 0 = x 2 + 5 is a differential equation of order 1.
2 y 00 + x(y 0 )3 − y = x is a differential equation of order 2.
3 (y (4) )3 + x 2 y 00 = 2x is a differential equation of order 4.
Notes:
3 If an initial condition was added to the differential equation to assign a certain value for c, then y = y (x) is called the
particular solution of the differential equation.
Notes:
3 If an initial condition was added to the differential equation to assign a certain value for c, then y = y (x) is called the
particular solution of the differential equation.
Example
Verify that y = 4x 3 + 2x 2 + x is a solution of the differential equation y 0 = 12x 2 + 4x + 1. Then, with the initial condition
y (0) = 2, find the particular solution of the equation.
Notes:
3 If an initial condition was added to the differential equation to assign a certain value for c, then y = y (x) is called the
particular solution of the differential equation.
Example
Verify that y = 4x 3 + 2x 2 + x is a solution of the differential equation y 0 = 12x 2 + 4x + 1. Then, with the initial condition
y (0) = 2, find the particular solution of the equation.
Notes:
3 If an initial condition was added to the differential equation to assign a certain value for c, then y = y (x) is called the
particular solution of the differential equation.
Example
Verify that y = 4x 3 + 2x 2 + x is a solution of the differential equation y 0 = 12x 2 + 4x + 1. Then, with the initial condition
y (0) = 2, find the particular solution of the equation.
This is the given differential equation, so y = 4x 3 + 2x 2 + x + c is the general solution of the given differential equation.
Notes:
3 If an initial condition was added to the differential equation to assign a certain value for c, then y = y (x) is called the
particular solution of the differential equation.
Example
Verify that y = 4x 3 + 2x 2 + x is a solution of the differential equation y 0 = 12x 2 + 4x + 1. Then, with the initial condition
y (0) = 2, find the particular solution of the equation.
This is the given differential equation, so y = 4x 3 + 2x 2 + x + c is the general solution of the given differential equation.
Notes:
3 If an initial condition was added to the differential equation to assign a certain value for c, then y = y (x) is called the
particular solution of the differential equation.
Example
Verify that y = 4x 3 + 2x 2 + x is a solution of the differential equation y 0 = 12x 2 + 4x + 1. Then, with the initial condition
y (0) = 2, find the particular solution of the equation.
This is the given differential equation, so y = 4x 3 + 2x 2 + x + c is the general solution of the given differential equation.
Notes:
3 If an initial condition was added to the differential equation to assign a certain value for c, then y = y (x) is called the
particular solution of the differential equation.
Example
Verify that y = 4x 3 + 2x 2 + x is a solution of the differential equation y 0 = 12x 2 + 4x + 1. Then, with the initial condition
y (0) = 2, find the particular solution of the equation.
This is the given differential equation, so y = 4x 3 + 2x 2 + x + c is the general solution of the given differential equation.
0 dy
M(x) + N(y )y = 0 OR M(x) + N(y ) =0
dx
0 dy
where M(x) and N(y ) are continuous functions and y = dx
.
0 dy
M(x) + N(y )y = 0 OR M(x) + N(y ) =0
dx
0 dy
where M(x) and N(y ) are continuous functions and y = dx
.
To solve the separable differential equation, we have the following steps:
1 Write the equation as M(x)dx + N(y )dy = 0. This implies N(y )dy = −M(x)dx.
Z Z
2 Integrate the left-hand side with respect to y and the right-hand side with respect to x: N(y )dy = −M(x)dx.
0 dy
M(x) + N(y )y = 0 OR M(x) + N(y ) =0
dx
0 dy
where M(x) and N(y ) are continuous functions and y = dx
.
To solve the separable differential equation, we have the following steps:
1 Write the equation as M(x)dx + N(y )dy = 0. This implies N(y )dy = −M(x)dx.
Z Z
2 Integrate the left-hand side with respect to y and the right-hand side with respect to x: N(y )dy = −M(x)dx.
Example
Solve the differential equation y 0 − y 2 e x = 0.
0 dy
M(x) + N(y )y = 0 OR M(x) + N(y ) =0
dx
0 dy
where M(x) and N(y ) are continuous functions and y = dx
.
To solve the separable differential equation, we have the following steps:
1 Write the equation as M(x)dx + N(y )dy = 0. This implies N(y )dy = −M(x)dx.
Z Z
2 Integrate the left-hand side with respect to y and the right-hand side with respect to x: N(y )dy = −M(x)dx.
Example
Solve the differential equation y 0 − y 2 e x = 0.
0 dy
M(x) + N(y )y = 0 OR M(x) + N(y ) =0
dx
0 dy
where M(x) and N(y ) are continuous functions and y = dx
.
To solve the separable differential equation, we have the following steps:
1 Write the equation as M(x)dx + N(y )dy = 0. This implies N(y )dy = −M(x)dx.
Z Z
2 Integrate the left-hand side with respect to y and the right-hand side with respect to x: N(y )dy = −M(x)dx.
Example
Solve the differential equation y 0 − y 2 e x = 0.
0 2 x dy 2 x dy x
y −y e =0⇒ =y e ⇒ = e dx
dx y2
Z Z
−2 x
⇒ y dy = e dx integrate both sides
y −1 x 1 x
⇒ =e +c ⇒ = −(e + c)
−1 y
1
⇒y (x) = − . solve for y
ex + c
Dr. M. Alghamdi MATH 104 November 3, 2022 5/7
Separable Differential Equations
Example
Solve the differential equation dy
dx
= y x, with y (0) = 1.
Solution: (1) The general solution: Write the differential equation in the form N(y )dy = −M(x)dx.
dy dy
=y x ⇒ = x dx
dx y
1 1
Z Z Z
⇒ dy = x dx integrate both sides Remember: dx = ln |x| + c
y x
x2
⇒ ln |y | = +c
2
x +c 2
ln |y |
⇒e =e 2 solve for y by taking e for both sides
x 2 +c
⇒ y (x) = e 2 Remember: eln |y | = y
Solution: (1) The general solution: Write the differential equation in the form N(y )dy = −M(x)dx.
dy dy
=y x ⇒ = x dx
dx y
1 1
Z Z Z
⇒ dy = x dx integrate both sides Remember: dx = ln |x| + c
y x
x2
⇒ ln |y | = +c
2
x +c 2
ln |y |
⇒e =e 2 solve for y by taking e for both sides
x 2 +c
⇒ y (x) = e 2 Remember: eln |y | = y
c c
y (0) = 1 ⇒ e = 1 ⇒ ln(e ) = ln(1) solve for c by taking ln for both sides
⇒ c ln(e) = 0 Remember: ln x r = r ln x and ln(1) = 0
⇒ c (1) = 0 Remember: ln e = 1
⇒c =0
x2
The particular solution is y (x) = e 2 .
Dr. M. Alghamdi MATH 104 November 3, 2022 6/7
Separable Differential Equations
Example
Solve the differential equation dy − (1 + y 2 ) sin x dx = 0.
Example
Solve the differential equation dy − (1 + y 2 ) sin x dx = 0.
Solution: Write the differential equation in the form N(y )dy = −M(x)dx.
2 2
dy − (1 + y ) sin x dx = 0 ⇒ dy = (1 + y ) sin x dx
dy
⇒ = sin x dx
1 + y2
1
Z Z
⇒ dy = sin x dx integrate both sides
1 + y2
1
Z
−1 −1
⇒ tan y = − cos x + c Remember: dx = tan x +c
1 + x2
⇒ y (x) = tan(− cos x + c) . solve for y by taking tan function for both sides