Professional Documents
Culture Documents
Differential Equations
Part 1
First-Order Differential Equations
Types:
• Variable Separable
• Linear Equations
• Exact Equations
• Solvable by Substitutions
Variable Separable
• The simplest of all differential equations
are those of the first order with separable
variables.
• A first-order differential equation of the
form
dy
g( x )h( y )
dx
is said to be separable or to have
separable variables.
Variable Separable
• To solve variable separable first-order
differential equations, proceed as follows:
dy
g( x)h( y )
dx
dy
g( x )dx
h( y )
p( y )dy g( x )dx Let 1/h(y) = p(y)
Solution:
(1 y 2 )dx (1 x 2 )dy 0
(1 y )dx (1 x )dy 0
2 2
1
(1 y 2 )(1 x 2 )
dy dx
1 y 2
1 x2
dy dx
1 y 2
1 x2
arctan(y ) arctan(x) c
(1 y 2 )dx (1 x 2 )dy 0
Alternate
Solution:
(1 y )dx (1 x )dy 0
2 2
1
(1 y 2 )(1 x 2 )
dy dx
1 y2 1 x2
dy dx
1 x2
1 y2
arctan(y ) arctan(x ) arctan c
tan arctan(y ) tan arctan(x ) arctan c
tan arctan c tan arctan(x )
y
1 tan arctan c tan arctan(x)
cx
y
1 cx
y cxy c x
y x c(1 xy)
xy
c
1 xy
Example
Solve:
3
1 y dx 1 x dy 0,
2 2
y ( 0)
2
Solution:
1 y dx
2
1 x dy 0
2
1
1 y 2 1 x2
1 1
dy dx 0
1 y2 1 x2
1 1
dy dx
1 y2 1 x2
arcsin y arcsin x C
Example
3
Initial Boundary Condition: y(0)
2
Solving for C:
arcsin y arcsin x C
3
arcsin arcsin( 0) C
2
0C
3
C
3
Example
3
Initial Boundary Condition: y(0)
2
Solving for C:
arcsin y arcsin x C
arcsin y arcsin x
3
Example
Alternate Solution:
1 1
y x
1 y dx 1 x dy 0
2 2
sin-1y sin-1x
1 y2 1 x2
arcsin y arcsin x
3
sin(arcsin y ) sin(arcsin x )
3
y sin(arcsin x ) cos( ) cos(arcsin x) sin( )
3 3
1 1 x2 3 x 3
y x( ) ( )( ) y 1 x2
2 1 2 2 2
Linear Equations
A first-order differential equation of the form
dy
a1 ( x ) a 0 ( x )y g( x )
dx
is said to be a linear equation in the
dependent variable y.
d
u(x)y 1 P(x) u( x)y 1 f (x)
dx
dy 1 d
u( x ) y1 u(x) P( x) u(x)y 1 f (x)
dx dx
dy 1 d
u( x ) P( x )y 1 y 1 u ( x ) f ( x )
dx dx
d
u( x ) 0 y 1 u( x ) f ( x )
dx
d
y1 u( x ) f ( x )
dx
Separating variables and integrating gives
d
y1 u( x ) f ( x )
dx
f (x)
du dx
y 1 ( x)
f ( x)
u dx
y 1 (x)
f ( x)
u dx
P ( x ) dx
e
u e P ( x ) dx
f ( x)dx
Now, going back to yp = uy1:
y p uy 1
yp e P ( x ) dx
f ( x )dx e
P ( x ) dx
y yc yp
y ce e
P ( x ) dx P ( x ) dx P ( x ) dx
e f ( x )dx
Remember this special term called the
“integrating factor”:
P ( x ) dx
e
We can use the integrating factor as follows:
ln | | P( x )dx c1
P ( x )dx c1
( x ) e
A Simpler Derivation
Continuing, we have:
P ( x )dx c1
( x ) e
c1 P ( x )dx
( x ) e e
P ( x )dx
( x ) c 2 e
A Simpler Derivation
Even though there are infinite choices of (x),
all produce the same result. Hence, to simply,
we let c2 = 1 and obtain the integrating factor.
P ( x )dx
( x ) c 2 e
P ( x )dx
( x ) (1)e
P ( x )dx
( x ) e
A Simpler Derivation
• This is what we have derived so far. We
multiply both sides of the standard form of
the 1st-order equation by the integrating
factor (x).
• We can then integrate both sides of the
resulting equation and solve for y,
resulting in a one-parameter family of
solutions.
A Simpler Derivation
dy
P ( x )y f ( x )
dx
P ( x )dx dy P ( x )dx P ( x )dx
e e P( x )y e f (x)
dx
d P ( x )dx P ( x )dx
ye e f (x)
dx
P ( x )dx P ( x )dx
d ye e f ( x )dx
P ( x )dx P ( x )dx
ye e f ( x )dx c
P ( x )dx P ( x )dx P ( x )dx
y e e f ( x )dx ce
Solving a Linear, 1 -Order DE
st
Solution:
Step 1:
( x 3y )dx xdy 0
5 1
xdx
dy x 3y
5
0
dx x
dy 3
y x4
dx x
Example
Solution:
P(x): include
Step 2:
the negative
dy 3 sign if
yx 4
present
dx x
Integrating Factor:
3
P ( x ) dx ( ) dx
3 ln x 3
e e x
e x
Example
Solution:
x dx x
Step 3: 3 dy 3 3
x
y x 3
x 4
x
3 dy
dx
4
3x y x
Step 4:
d dv du
Recall:
uv u v
dx dx dx
Example
Solution: Derivative of y
Step 3:
x
3 dy
dx
4
3x y x
Step 4: Derivative of x –3
Thus:
d 3
dx
x y x
Example
Solution:
Step 5:
dx
d 3
x y x
d x 3 y xdx
d x 3 y xdx
2
x
x3y c'
2
3 x 2
x y c' 2x 3
2
2y x 5 2c' x 3
2y x 5 Cx 3
Exercises
Solve the following variable separable
differential equations.
1. y' x exp(y x ); when x 0, y 0
2
x
3. xy dx ( y 1)e dy 0
3
5. ( 2x 3)y' y 2x 3
Answers:
5 3
1) 2y x cx
2) y c sin x cos x
3) xy sin x x cos x sin x c
4) ( x 1)y ( x 1)( x 2 ln | x 1 | c)
5) 2y 2x 3 ln | 2x 3 |