2 A First Order Theory
2 A First Order Theory
1:
CONTENTS
1. FAMILIAR FIRST-ORDER DIFFERENTIAL EQUATIONS
ACTIVITY 1
ACTIVITY 2
3. BERNOULLI EQUATION
ACTIVITY 3
4. FINALLY
DIRECT INTEGRATION
dny
STANDARD FORM: P( x)
dx n
METHOD: Integrate both sides n times
SEPARABLE EQUATIONS
dy P( x)
STANDARD FORM:
dx Q( y )
METHOD: Separate the variables Q ( y )dy P ( x)dx
Integrate both sides Q( y)dy P( x)dx
LINEAR EQUATIONS
dy
STANDARD FORM: P( x) y Q( x)
dx
Determine the integration factor R e
P ( x ) dx
METHOD:
Find the solution Ry RQ ( x)dx
TOC
ACTIVITY 1
Determine the general, and if possible, the particular solutions of the following DE’s. Use
direct integration, separation of variables or an integration factor.
dx 4 x
1. 2, x(1) 4 2. y ' 4 y , y (0) 2
dt t
3. p ' 2r 2, p ( 1) 1 4. y ' 4 cos x sin x, y 0
2
5. y y ' 2 x sec(3 y ), y 0 6. xy 2 y ' y 1, y (3e2 ) 2
3
dy
7. y ' 3x2 y 2 6 x2 8. ln( y t ) 3t 2 y
dt
For our purpose it is important to turn the problem around: namely, given a first order DE
such as (1) we must recognise that it is equivalent to the differential d ( x x 2 y 3 ) 0 .
is said to be exact, if the expression on the left side corresponds to the differential
u u
dx dy 0 . (3)
x y
u u
P ( x, y ) and Q( x, y ) .
x y
It then follows that
P 2u Q 2u
and .
y yx x xy
By assumption of continuity the two second partial derivatives are equal. Thus
P Q
.
y x
The following method is shorter and yields the same results. It will be used to find the
solution of an exact DE
Determine
P( x, y) x F ( x, y ) k ( y)
1 1
and
Q( x, y )dy F ( x, y ) k ( x)
2 2
EXAMPLE 1
Solve x 2 y 2 dx 2 xy cos y dy 0
SOLUTION
Step 1: Test for exactness
The equation is in standard form with
P( x, y ) x 2 y 2 and Q ( x, y ) 2 xy cos y .
Now
P Q
2 y and 2y .
y x
and since
P Q
x y
the equation is exact.
Qdy xy sin y k2 ( x)
2
EXAMPLE 2
Solve the following differential equation subjected to the indicated initial condition
y 2 cos x 3x2 y 2 x dx x3 ln y 2 y sin x dy, y(0) e
SOLUTION
Step1: Test for exactness
Write the DE in standard form, that is
y 2 cos x 3x2 y 2 x dx x3 ln y 2 y sin x dy 0
and identify P and Q
P y 2 cos x 3x 2 y 2 x and Q x 3 ln y 2 y sin x .
Now
P Q
2 y cos x 3 x 2 and 3 x 2 2 y cos x
y x
and since
P Q
y x
the DE is exact.
Qdy x y y sin x y ln y y k2 ( x )
3 2
x x
1.7 e ln dx ln x sin d 0
x
1.8 y cos xy 1 dx x cos xy 2 y 3 dy 0
2. Solve the initial value problems if the equations are exact
2.1 x e y dx y xe y dy 0, y(2) 0
1 1
2.2 y dx x dy, y 1 1
x y
2.3 sec 2
x cot y y dx tan x csc2 y x dy 0, y
4 4
2.4 2 y e dy
x
dx
ye x
0, y (0) 1
2 xydx dy e x 0, y (0) 2
2
2.5
EXAMPLE 3
1 2
Solve the following DE 2 y y ' y 2
x
SOLUTION: Method 1
1
Differentiate u and substitute y ' by y ' y 1 y .
2x
It follows that
y
u ' 2 y ( y 1 )
2x
y2
2
x
This is a linear equation in u (where u y 2 )
1
u ' u 2 .
x
The integration factor is
1
R e x eln x x
dx
EXAMPLE 4
Reduce to linear form and solve the following DE
dy x
y
dx y
SOLUTION
Method 2 will be used to solve this example.
d 2
Note that y 2 y and multiply the equation by 2 y
dy
dy
2 y 2 y 2 2 x
dx
Let
u y2
then
du dy
2y
dx dx
Substitution results in
du
2u 2 x
dx
which is a first order linear DE with integration factor
R e
2 dx
e2 x .
The solution can be written as
e2 x u 2 xe 2 x dx .
By using integration by parts it follows that
ACTIVITY 3
1. Reduce to linear form and find the general solution or if possible, the particular
solution of the following DE’s
dy 1 1
1.1 y ' 2 y y 2 , y (0) 1 1.2 y 1 2 x y 4
dx 3 3
1.3 1
y ' xy xy , y (0) 2 1.4 2 xyy ' x 1 y 2 x 2 e x
dy dy xy y2
1.5 xy 3 x ln x y 4 1.6
dx dx 1 x 2 1 x 2
3. Reduce to linear form and find the general solution of the following DE. (This is
not a Bernoulli equation)
dy
y cos x ln y y cos x
dx
TOC
4. FINALLY
Additional exercises on ODE basics and solving ODE's are available on Blackboard.
Notes on how to use Derive and Matlab to solve ODE's are also available.
TOC