Professional Documents
Culture Documents
Winter, 2018
1 / 19
Differential Equations
Example 1
Suppose a person deposit $1 with (nominal) annual interest rate 1.
After one year, how much money does the person have?
Mathematical model
Let t be time, and y (t) be the amount of money at time t. Then
the question is equivalent to the following equations
y 0 (t) = y (t),
y (0) = 1.
2 / 19
Differential Equations
Example 2
Suppose a person deposit $1 with annual interest rate 2t at time t.
After one year, how much money does the person have?
Mathematical model
Let t be time, and y (t) be the amount of money at time t. Then
the question is equivalent to the following equations
3 / 19
Differential Equations
Example 3
Suppose a person deposit $1 with annual interest rate 1+t at time
t. After one year, how much money does the person have?
Mathematical model
Let t be time, and y (t) be the amount of money at time t. Then
the question is equivalent to the following equations
4 / 19
Differential Equations
Example 4
Suppose we have a red object A attached to a spring. Let t be
time and y (t) be the location of A at time t. The force that A
experiences is proportional to its displacement, and so is its
acceleration e.g. −y (t).
Mathematical model
Assume initially A is located at 1 with velocity 0, then we have
Example 5
Suppose we have an free falling object A, initially located at height
1 with velocity 0. The acceleration is a constant e.g. 1. What is
its location at time t?
Mathematical model
Let t be time and y (t) be the location of A at time t, then we have
y 00 (t) = −1,
y (0) = 1,
y 0 (0) = 0.
1
The solution to this differential equation is y (t) = − t 2 + 1.
2
6 / 19
Differential Equations
Separable equations
If a differential equation is of the form f (y )y 0 (x) = g (x) and f , g
are continuous, then its solutions are
Z Z
f (y )dy = g (x)dx.
Proof
Let F be an anti-derivative of f . Then
Therefore, Z Z
g (x)dx = F (y ) + C = f (y )dy .
7 / 19
Differential Equations
Example 1
Solve the differential equation y 0 = y + 1.
Solution
y0
=1
y +1
Z Z
1
dy = 1dx
y +1
log |y + 1| = x + C
y + 1 = ±e x+C
y = C 0 e x − 1.
8 / 19
Differential Equations
Example 2
Solve the differential equation xy 0 = y .
Solution
y0 1
=
y x
Z Z
1 1
=
y x
log |y | = log |x| + C
y = ±e log |x|+C
y = C 0x
9 / 19
Differential Equations
Example 3
Solve the differential equation y 0 + 2xe y = 0 and y (0) = 0.
Solution
y0
= −2x
ey
−e −y = −x 2 + C
y = − log(x 2 − C )
y = − log(x 2 + 1).
10 / 19
Differential Equations
Example 4
Solve the differential equation y 00 + y 0 = 0, y (0) = 0 and y 0 (0) = 1.
Solution
Substitute u = y 0 , then u 0 = y 00 . We have
u0 + u = 0
u = Ce −x
y = −Ce −x + C 0
11 / 19
Differential Equations
Example 5
Solve the differential equation y 0 + y = x and y (0) = 0.
Solution
Substitute u = y − x, then u 0 = y 0 − 1. We have
(u 0 + 1) + (u + x) = x
u0 + u + 1 = 0
u0
= −1
u+1
u = Ce −x − 1
y = Ce −x + x − 1
12 / 19
Differential Equations
Linear equations
A linear differential equation is of the form y 0 + f (x)y = g (x). Let
F (x) be an anti-derivative of f (x), then its solutions are
Z
−F (x)
y =e e F (x) g (x)dx.
proof
Multiply e F (x) on both sides, we have
Example 1
Solve the differential equation y 0 + y = x and y (0) = 0.
Solution
Multiply e x on both sides, we have
e x y 0 + e x y = xe x
(e x y )0 = xe x
e x y = xe x − e x + C
y = x − 1 + Ce −x
14 / 19
Differential Equations
Example 2
Solve the differential equation xy 0 − y = x 3 .
Solution
1
Multiply on both sides, we have
x2
1 0 1
y − 2y = x
x x
y 0
=x
x
y x2
= +C
x 2
x3
y= + Cx.
2
15 / 19
Differential Equations
Example 3
Solve the differential equation y 00 + 2y 0 + y = 0.
Solution
Substitute u = y 0 + y , then u 0 + u = y 00 + y 0 + y 0 + y , we have
u0 + u = 0
u = Ce −x
y 0 + y = Ce −x
(e x y )0 = C
e x y = Cx + C 0
y = Cxe −x + C 0 e −x
16 / 19
Differential Equations
Example 4
Solve the differential equation y 00 − y = 0, y (0) = 0, y 0 (0) = 1.
Solution
Substitute u = y 0 − y , then u 0 + u = y 00 − y 0 + y 0 − y = y 00 − y ,
u0 + u = 0
u = Ce −x
y 0 − y = Ce −x
(e −x y )0 = Ce −2x
e −x y = C1 e −2x + C2
y = C1 e −x + C2 e x
e x − e −x
Since y (0) = 0 and y 0 (0) = 1, we have y = .
2
17 / 19
Differential Equations
Example 5
Solve the differential equation y 00 − y 0 − 2y = 0, y (0) = 0,
y 0 (0) = 1.
Solution
Substitute u = y 0 − 2y , u 0 + u = y 00 − 2y 0 + y 0 − 2y = y 00 − y 0 − 2y ,
u0 + u = 0
u = Ce −x
y 0 − 2y = Ce −x
(e −2x y )0 = Ce −3x
e −2x y = C1 e −3x + C2
y = C1 e −x + C2 e 2x
e 2x − e −x
Since y (0) = 0 and y 0 (0) = 1, we have y = .
3 18 / 19
Differential Equations
y = C1 e r1 x + C2 e r2 x .
y = C1 e rx + C2 xe rx .
19 / 19