1: Differential equations: definitions
Definitions and terminology
A differential equation (DE) is a relation between variables (e.g. x,y) and their derivatives (e.g. dxdy). For example, dxdy=2x is a DE.
A solution of a DE is a relation between our variables (e.g. x,y) that satisfy the DE. For example, y=x2 is a solution of dxdy=2x.
The general solution refers to all the possible solutions of a DE. For example, y=x2+c, where c is an arbitrary constant, is the general solution of dxdy=2x.
A particular solution solution refers to one specific solution of a DE. For example, y=x2+3 is a particular solution of dxdy=2x.
We can verify that a given equation is a solution of a DE by differentiation.
Example 1: verification of solution
Verify that y=x3ex2 is a solution of the differential equation xdxdy=y(3+2x2).
Differentiating y=x3ex2 wrt x,
dxdyxdxdy=3x2ex2+x3(2xex2)=3x3ex2+2x2(x3ex2)=3y+2x2y=y(3+2x2)
dxdyxdxdy=3x2ex2+x3(2xex2)=3x3ex2+2x2(x3ex2)=3y+2x2y=y(3+2x2)
DEs of the form dxdy=f(x)
We can solve differential equations of special forms by integration.
dxdy=f(x)⇒y=∫f(x)dx
Example 2: solving a DE (f(x) type)
(a) Find the general solution of the differential equation dxdy=x2+11.
(b) Find the particular solution given that y=2 when x=0.
(b) Find the particular solution given that y=2 when x=0.
(a) dxdyy=x2+11=∫x2+11dx=tan−1x+C
General solution: y=tan−1x+C
(b) When x=0, y=2
2=tan−10+C
C=2
Particular solution: y=tan−1x+2
DEs of the form dxdy=f(y)
We can solve differential equations of special forms by integration.
dxdy=f(y)⇒∫f(y)1dy=∫1dx
Removal of modulus
ln∣g(y)∣∣g(y)∣g(y)=x+c=ex+c=exec=±ecex=Aex
Example 3: solving a DE (f(y) type)
Find the general solution of the differential equation dxdy=1−2y, leaving your answer as y in terms of x.
∫1−2y1dy−2ln∣1−2y∣∣1−2y∣=∫1dx=x+c=e−2x−2c
1−2yy=±e−2ce−2x=Ae−2x=21−Ae−2x
Second order DEs
We can solve second order differential equations of the form dx2d2y=f(x) by integrating twice.
Example 4: solving a second order DE
Find the general solution of the differential equation dx2d2y=cos3x
dx2d2ydxdyy=cos3x=3sin3x+C=−9cos3x+Cx+D
Problem situations
Many problem situations can be translated to differential equations because of the concept of rates of change.
For example, consider a quantity x. The rate of change of x is given by dtdx and can be obtained by
For example, consider a quantity x. The rate of change of x is given by dtdx and can be obtained by
dtdx=rate of increase of x−rate of decrease of x
Example 5: problem situation
A water tank with V m3 of water inside at time t s is being filled up at a rate of 9 m3/s. At the same time, there is a leak in the tank such that the volume decreases at a rate proportional to the current volume of water inside.
It is given that the volume of water inside the tank remains constant if V=4.5 m3.
(a) Show that the volume of water inside the tank can be described by dtdV=9−2V.
(b) Find V in terms of t, given that the initial volume of water in the tank is 6.75 m3.
(c) State what happens to the volume of water in the tank eventually.
(d) Sketch the graph of V against t for the parts relevant to the context of the question.
Rate of increase: 9, rate of decrease: kV
dtdV=9−kV
When V=4.5,dtdV=0
9−4.5k=0
k=2
Hence dtdV=9−2V.
dtdV=9−2V
∫9−2V1dV−2ln∣9−2V∣∣9−2V∣9−2VV=∫1dt=t+c=e−2t−2c=±e−2ce−2t=Ae−2t=29−Ae−2t
When t=0,V=6.75.
6.75=29−Ae0⇒A=−4.5
Hence V=29−(−4.5)e−2t=29+49e−2t
As t→∞,e−2t→0
Hence V=29+49e−2t→29
The volume of water in the tank approaches 4.5 m3 eventually.
Substitution
For example, consider an original DE with variables x and y. A substitution is given relating a new variable z to x and y.
Step 1: Differentiate the given substitution implicitly.
(e.g. Find dxdz in terms of dxdy, x,y and z)
(e.g. Find dxdz in terms of dxdy, x,y and z)
Step 2: Replace our old variables and differentials in the original DE with the new.
(e.g. Replace dxdy and y to form a DE involving just dxdz, z,x)
(e.g. Replace dxdy and y to form a DE involving just dxdz, z,x)
Step 3: Solve the new DE.
(e.g. Find a relation between z and x)
(e.g. Find a relation between z and x)
Step 4: Replace the new variable back to the original one.
(e.g. Replace z to find a solution involving just y and x)
(e.g. Replace z to find a solution involving just y and x)
Example 6: solving a DE by substitution
Use the substitution y=zx2 to find the general solution of xdxdy=2y−1
Differentiating y=zx2 implicitly w.r.t. x,
dxdy=dxdzx2+2xz
x2y−12zx2−1dxdz=dxdzx2+2xz=dxdzx3+2x2z=−x31
zz=∫−x31dx=2x21+c
x2yy=2x21+c=21+cx2
Notes for printing (pdf):