Calculus 1: Differential Equations
Calculus 1: Differential Equations
Dung Nguyen
Differential equations
Outline I
Hooke’s Law:
restoring force = −kx
Newton’s Second Law:
force = mass × acceleration
Thus
d2x
m = −kx
dt2
or
d2x k
2
=− x
dt m
Example
1 Show that every member of the family of functions
1 + cet
y=
1 − cet
is a solution of the differential equation y ′ = 1
2 (y 2 − 1).
Example
1 Show that every member of the family of functions
1 + cet
y=
1 − cet
is a solution of the differential equation y ′ = 1
2 (y 2 − 1).
Separable equations
y ′ (x) = F(x)G(y)
or
f(x)dx = g(y)dy
1
với f(x) = F(x) và g(x) = G(y) .
C = 1 =⇒ y 3 = x 2 + 1
Example 4 - xy ′ = y
y=0
y ̸= 0
dy dx y
= =⇒ = C ̸= 0
y x x
Conclusion: y = Cx for all C ∈ R.
Example 5 - y ′ = 3x 2 y, y(0) = 2
General solution
dy 3
= 3x 2 dx =⇒ y = C ex , C ̸= 0
y
A particular solution
3
C = 2 =⇒ y = 2 ex
Example 6 - y ′ − xy 2 = 2xy
General solution
dy y 2
= xdx =⇒ = C ex
y(y + 2) y+2
In general
y ′ = f(ax + by + c)
Put u = ax + by + c.
=⇒ u′ = a + by ′
=⇒ u′ = a + bf(u)
du
=⇒ = dx
a + bf(u)
Example 8 - y ′ = 3y−3x−1
2y−2x
Change of variable
u=y−x
ODE becomes
3u − 1 u−1 udu dx
u′ = −1= ⇐⇒ =
2u 2u u−1 2
General solution
x
u + ln |u − 1| = +C
2
25 L/min
0.03 kg/L x(t)?
5000 L
x(0) = 20 kg 25 L/min
Rx dt
13 y(x) = 2 + 1 ty(t) , x>0
Rx dt
13 y(x) = 2 + 1 ty(t) , x>0
Rx p
14 y(x) = 4 + 0 2t y(t)dt
y ′ + p(x)y = q(x)
Put Z
f(x) = p(x)dx
Thus h i′
y ef(x) = y ′ ef(x) +yf ′ (x) ef(x)
= ef(x) y ′ + p(x)y
= ef(x) q(x)
Hence Z
f(x)
ye = ef(x) q(x)dx
Example 16 - xy ′ − y = x 3
General solution
x3
y= + Cx
2
Example 17 - y ′ − 2xy = 1 − 2x 2
General solution
2
y = x + C ex
y
Change of variable: u= or y = xu
x
=⇒ y ′ = u + xu′
=⇒ u + xu′ = f(u)
=⇒ xu′ = f(u) − u
du dx
=⇒ =
f(u) − u x
Example 18 - xyy ′ = x 2 − xy + y 2
ODE: y ′ = x
y −1+ y
x
y
Put u = x
=⇒ y ′ = u + xu′
1
=⇒ u + xu′ = − 1 + u
u
′ 1−u
=⇒ xu =
u
udu dx
=⇒ =
1−u x
General solution
u + ln |u − 1| = − ln |x| + C
Example 20 - y ′ (x + y) = y + 1
General solution
x = (y + 1) ln |y + 1| − 1 + C(y + 1)
I R
+
E(t) C
−
L
ay ′′ + by ′ + cy = 0
ay ′′ + by ′ + cy = f(x)
Example 23 - y ′′ − 3y ′ − 4y = 0
Example 24 - y ′′ − 2y ′ + 5y = 0
Example 25 - y ′′ + y = x 2 + x
Example 26 - y ′′ + y = x − 2
Example 27 - y ′′ − y ′ − 2y = (x − 2) e−x
Example 28 - y ′′ − y = x sin x
In general
x ′ = a1 x + b1 y ′ + f(x)
y ′ = a2 x + b2 y ′ + g(x)
Substitution method
Compute y ′′ from one equation.
Substitute the other equation to the obtained equation.
Example
30 Solve
x ′ = 3x + y + et
y ′ = 2x + 4y + t
Example
30 Solve
x ′ = 3x + y + et
y ′ = 2x + 4y + t
31 Solve
x ′ = 2y + et
y ′ = −x + 3y − et
Example
Suppose that populations of rabbits and wolves are described by the
Lotka-Volterra equations 1 with k = 0.08, a = 0.001, r = 0.02, and
b = 0.00002. The time t is measured in months.
a Find the constant solutions (called the equilibrium solutions)
and interpret the answer.
b Use the system of differential equations to find an expression
for dW /dR.
c Draw a direction field for the resulting differential equation
in the RW -plane. Then use that direction field to sketch some
solution curves.
d Suppose that, at some point in time, there are 1000 rabbits and
40 wolves. Draw the corresponding solution curve and use it to
describe the changes in both population level
e Use part (d) to make sketches of R and W as functions of t.
2 L/min
Dung Nguyen Calculus 1 44/46
System of first order differential equations