Chapter 1 Introduction
Chapter 1 Introduction
An ordinary differential equation (ODE) is an equation that contains one or several derivatives of
an unknown function, which we usually call y(x). It has one independent variable.
The equation may also contain y itself, known functions of x and constants.
A partial differential equation (PDE) is an equation that contains one or several partial derivatives
of an unknown function which has two or more independent variables.
2u 2u
0
x 2 y 2
Now, imagine that we only know that dy/dx = 0.2xy. How do we find the original function y? This is
one of the basic problems in a course on differential equations.
■ Classification by Order
Order of a differential equation (ODE or PDE) : order of the highest derivative in the equation
An ODE is said to be or order n if the nth derivative of the unknown function y is the highest derivative
of y in the equation.
2
In Chapters 1 and 2, we will consider first-order ODEs. These equations contain the first derivative y' and
may contain y and any functions of x. We can write them in two forms:
For instance, the ODE x-3y' - 4y2 = 0 (where x 0) can be written as y' = 4x3y2
dx dx dx
Some more examples: 0.6 x 0.04 x 2 F t ,x, 0.6 x 0.04 x 2 0
dt dt dt
d2y dy dy d 2 y d2y dy
m 2 c ky 0 F t , y , , 2 m 2 c ky 0
dt dt dt dt dt dt
2 2
d 2x dx dx d 2 x d 2x dx
m 2 c D Aρ F t,x, , 2 m t c D Aρ 0
dt dt dt dt dt dt
2
d 2 x dx
Caution! Sometimes x can be the dependant variable. E.g. t 2
dt dt
Here, x is the dependant variable and t is the independent variable. 3
■ Classification by Linearity
An n-th order ODE is linear if F is linear in terms of y, y' ......y(n). In other words, F ( x, y , y, , y ( n ) ) 0
An nth-order ODE is linear if an(x)y(n) + an-1(x)y(n-1) + ... + a1(x)y' + a0(x)y = g(x) or
dny d n 1 y dy
an ( x) n an 1 ( x) n 1 a1 ( x) a0 ( x) y g ( x)
dx dx dx
dy
A linear first-order (n = 1) ODE has the form: a 1 x a 0 x y gx
dx
•The dependant variable y and its derivatives y', y''...y(n) are all first degree i.e. all or the power 1.
•The coefficients a0, a1,.....an depend at most on the independent variable x.
d3y dy x
3 x 5 y e is a linear third-order ODE
dx 3 dx
A nonlinear ODE is simply one that is not linear. Nonlinear functions of the dependant
variable or its derivatives , such as sin y or ey, cannot appear in a linear equation. For example:
4
■ Solution
Definition 1.1.2 Solution of an ODE
A solution to an ODE is a formula that enables us to compute values of the unknown function in the ODE.
E.g., for the ODE dy/dx = 0.2xy, the solution allows us to compute values for y.
Any function (x), defined on an interval I and possessing at least n derivatives that are continuous
on I, which when substituted into an n-th order ODE reduces the equation to an identity.*
2
We have already seen that y e 0.1x is a solution of dy/dx = 0.2xy on the interval (-,).
*identity: an equation which is satisfied for all values of the involved variables e.g.
■ Interval of Definition
Interval of definition
Interval of existence Can be an open interval (a,b), a closed interval [a,b],
Interval of validity I an infinite interval (a,), etc.
Domain of the solution
5
Example 1 Verification of a Solution
1
1 dy
Verify that the function y x 4 is a solution of the ODE xy 2 on the interval (-,).
16 dx
Solution: substitute the function into the ODE and then check if both the derivative of the function and
the ODE are the same for every value of x in the interval i.e. check if both sides of the ODE are equal.
1 dy x3 x3
derivative of the function: For y x4 , 4
16 dx 16 4
1/ 2
dy x4 x 2 x3
= xy x x
1/ 2
Substitute function into ODE:
dx 16 4 4
The derivative of the function and the ODE after substitution of the function are the same. So the
function is a solution of the ODE.
6
Example 2 Verification of a Solution
Verify that the function y = xex is a solution of the ODE y'' - 2y' + y = 0 on the interval (-,).
Substitute y, y' and y'' into the ODE and check if both sides of the ODE are equal:
Left-hand side: (2ex + xex) - 2(ex + xex) + xex = 2ex + xex - 2ex - 2xex + xex = 0
Right-hand side = 0
Note: in both these examples, the constant solution y = 0 on the interval (-,) would also work.
This is called a trivial solution.
7
■ Solution Curve
The graph of a solution of an ODE is called a solution curve. Remember, has to be continuous on
its interval of definition I. So, there may be a difference between the graph of the function and the
graph of the solution . We'll show this with an example.
dy
Verify that (x) = x-1 is an explicit solution of y 2 either on the interval - < x < 0 or on the
interval 0 < x < . dx
The domain of the function (x) = x-1 is the set {x : x 0}. This set is not an interval; it is the union of
two intervals - < x < 0 and 0 < x < . The solution (x) = x-1 must have an interval, so we must
choose one of the intervals. We can choose either one.
8
■ Explicit and Implicit Solutions
Explicit solution: a solution in which the dependant variable is expressed solely in terms of the
independent variable and constants i.e of the form y = (x).
1
1 dy
y x4 is an explicit solution of the ODE xy 2
16 dx
We can think of an explicit solution as an explicit formula y = (x) which we can manipulate,
evaluate and differentiate using standard rules.
The solutions of some ODEs (particularly non-linear ones) are not explicit i.e. not y = (x).
We end up with an expression G(x, y) = 0 that defines a solution implicitly.
We shall assume that if by solving the ODE we get a relation G(x, y) = 0, then there is at least one
function that satisfies both the relation i.e. G(x, (x)) = 0, and the ODE on interval I.
9
Example 3 Verification of an Implicit Solution
dy x
The relation x2 + y2 = 25 is an implicit solution of the ODE on the interval
defined by -5 < x < 5. dx y
By implicit differentiation: d y 2 x 2
d 25
dx dx
d y2 d x 2
0
dx dx
d y 2 dy
2x 0
dy dx
dy
2y 2 x
dx
dy 2 x x
dx 2y y
Solving x2 + y2 = 25 for y in terms of x gives y 25 x 2
Example: consider the ODE dy/dx = cos x. To solve, integrate on both sides.
We can choose any value for c. This is called a family of solutions. Each value of c will give a
different curve.
y = 0 (c1 = c2 = 0)
y = xex (c1 = 0, c2 = 1)
12
Example 4 Using Different Symbols
The functions x c1 cos 4t and x c2 sin 4t (c1, c2 are arbitrary constants) are solutions of the
linear differential equation:
x 16 x 0
For x c1 cos 4t , x 4c1 sin 4t and x'' 16c1 cos 4t
Substituting x'' and x into the ODE gives x 16 x 16c1 cos 4t 16(c1 cos 4t ) 0
13
Example 5 A Piecewise Defined Solution
This example shows that a solution of a differential equation can be a piecewise-defined function.
Piecewise-defined function: a function whose definition changes depending on the value of the
independent variable.
The equation y = cx4 is a one-parameter family of solutions of the ODE xy' - 4y = 0 on the interval (-,).
x 4 , x 0
The piecewise-defined differential function y is a particular solution of the equation but
x , x 0
4
it cannot be obtained from the family y = cx4 by a single choice of c. The solution is constructed from the
family by choosing c = -1 for x < 0 and c = 1 for x 0.
1, x 0
i.e. c
1, x 0
14
■ Singular Solution
Sometimes a differential equation has a solution that is not a member of a family of solutions of the
equation. This extra solution is called a singular solution.
1
dy 1
E.g, for the ODE xy 2 , y x 4 and y = 0 are solutions on the interval (-,).
dx 16
2
1
y x2 c
4 is the one-parameter family of solutions.
1 4
y x is a particular solution for c = 0
16
2
But y = 0 is not a member of the family y x 2 c
1
4
It is a singular solution.
15
■ Systems of Differential Equations
Sometimes we have to deal with systems of differential equations. A system of ordinary differential
equations is two or more equations involving the derivatives of two or more unknown functions of
a single independent variable.
Example: let x and y be dependant variables and t the independent variable. A system of two first-
order differential equations is given by:
dx
f (t , x, y )
dt
dy
g (t , x, y )
dt
16
Problem: Verify that the indicated pair of functions is a solution of the given system of differential
equations on the interval (-,).
dx dy
x 3y 5x 3y
dt dt
x e 2 t 3e 6 t y e 2 t 5e 6 t
From x = e-2t + 3e6t, we get x' = -2e-2t + 18e6t (using the chain rule)
From y = -e-2t + 5e6t, we get y' = 2e-2t + 30e6t
dx/dt = x + 3y = e-2t + 3e6t + 3(-e-2t + 5e6t) = e-2t + 3e6t - 3e-2t + 15e6t = -2e-2t + 18e6t
and
dy/dt = 5x + 3y = 5(e-2t + 3e6t) + 3(-e-2t + 5e6t) = 5e-2t + 15e6t - 3e-2t + 15e6t = 2e-2t + 30e6t
17
1.2 Initial-Value Problems
■ Introduction
We often have problems in which we seek a solution y(x) to an ODE so that y(x)
satisfies side conditions - conditions that are imposed on y(x) or its derivatives. One
such problem is called an initial-value problem.
We can rearrange the ODE and express it in terms of it's highest derivative y(n).
dy d2y
f ( x, y) and 2
f ( x, y, y) ;1-st and 2nd-order ordinary differential equations
dx dx
Definition: An initial-value problem (IVP) is an ODE with initial values that a particular
solution must satisfy. For a first-order ODE we can write
dy
f x , y , yx 0 y 0
dx
to show that the solution y = (x) must have the value y0 when x = x0
■ First- and Second-Order IVPs
dy d2y
Solve: f ( x, y ) Solve: 2
f ( x, y, y)
dx first-order IVP dx second-order IVP
Subject to: y ( x0 ) y0 Subject to: y ( x0 ) y0 , y( x0 ) y1
First-order Second-order
We want a solution of the ODE so that We want a solution of the ODE so that
the solution curve passes through (x0, y0). the solution curve passes through (x0, y0)
and the slope of the curve at (x0, y0) = y1.
Example 1 First-Order IVPs
y = cex is a one-parameter family of solutions of the first order ODE y = y' on I = (-, ).
3 = ce0 = c
the function y = 3ex is a solution of the IVP y' = y, y(0) = 3
-2 = ce1 = ce c = -2e-1
The two-parameter family x = c1 cos 4t + c2 sin 4t is a solution of the ODE x'' + 16x = 0.
Find a solution of the initial-value problem x 16 x 0, x 2, x 11
2 2
Our examples of IVPs up till now have only had single solutions. But an IVP can have more
than one solution.
Example 4 An IVP Can have Several Solutions
"continuous on R" means that the functions f(x,y) and f/y don't have any sudden changes
in value
f x
y 2 y 12
So we can conclude that for any point (x0, y0), y0 > 0, there is an interval I centred at x0
on which the ODE has a unique solution.
E.g., even without solving it, we know there is an interval I centred at x0 = 2 on which
the IVP, dy/dx = xy½ , y(2) = 1, has a unique solution.
y = cex is a one-parameter family of solutions of the first order ODE y = y' on I = (-, ).
and the function y = -2ex-1 is a unique solution of the IVP y' = y, y(1) = -2
1.3 Differential Equations as Mathematical Models
■ Introduction
Mathematical model: a description of something using mathematics.
This description can be a function.
Vi = instantaneous velocity
E.g. vi = gt g = acceleration due to gravity
t = time
■ Mathematical Models
We can describe certain physical, chemical and biological systems or phenomena using
mathematical models e.g. we can analyze the decay of a radioactive substance and use this to
measure the age of a fossil.
This model is too simple (e.g. it ignores immigration or emigration), but it was fairly
accurate in predicting the population of the USA between 1790-1860.
This model can still be used to model growth of small populations over short
intervals of time e.g. bacteria growing in a petri dish.
31
■ Radioactive Decay
dA dA
A or kA (for decay, k < 0)
dt dt
A single differential equation can serve as a mathematical model for many different
phenomena.
32
■ Newton's Law of Cooling/Warming
The rate at which the temperature of a body changes is proportional to the difference
between its temperature and the temperature of the surrounding medium (e.g. air or
water). The temperature of the surrounding medium is called the ambient temperature.
33
■ Spread of a Disease
• A flu virus is spread through a community by infected people coming into contact with
other people.
• Let x(t) = number of people with flu, y(t) = number of people without flu.
• We can assume that the rate dx/dt at which the flu spreads is proportional on the
number of encounters between groups x and y. If we assume that the number of
encounters is proportional to x × y then:
dx
kxy k = constant of proportionality
dt
x+y=n+1 y = n + 1 - x
dx
kx(n 1 x) For the initial condition x(0) = 1
dt
34
■ Chemical Reactions
A first-order reaction depends on the concentration of only one reactant.
e.g. The concentration of H2O2 controls the reaction rate.
If molecules of substance A decompose into smaller molecules, then the rate of decomposition is
proportional to the amount of A that remains.
CH3Cl+NaOH CH3OH+NaCl
For every molecule of CH3Cl, one molecule of NaOH is consumed, and then one molecule of CH3OH
and one molecule of NaCl are formed. The reaction rate is proportional to the product of the
remaining concentrations of CH3Cl and NaOH.
• The mixing of two salt solutions of different concentrations gives a 1st order DE
for the amount of salt in the mixture.
• A tank holds 300 gallons of brine (i.e. salt solution).
• Another brine solution is pumped into the tank at a rate of 3 gallons/minute.
• The concentration of salt in this solution is 2 pounds/gallon.
• The solution is stirred and pumped out of the tank at the same rate.
• Let A(t) be the amount of salt in the tank at time t.
• The rate at which A(t) changes is given by:
dA
input rate of salt output rate of salt Rin Rout
dt
Rin is the product of the input concentration of salt in the brine and the input rate of brine.
• The solution is pumped out of the tank at the same rate it is pumped in, so the amount of brine in
the tank is constant at 300 gallons.
• The concentration of salt in the tank, as well as in the output solution, is c(t) = A(t)/300 lb/gal.
• The output rate Rout of salt is
A( t ) A( t )
Rout lb / gal 3 gal / min lb / min
300 100
dA A dA 1
The rate at which A(t) changes is then given by: 6 or A6 36
dt 100 dt 100
■ Draining a Tank
Torricelli’s Law
The speed v of efflux of water through a sharp-edged hole at the bottom of
a tank filled to a depth h is the same as the speed that a drop of water
would reach when falling freely from a height h.
v = speed of efflux of
water through hole
K.E. P.E. h = depth of water in
(1/ 2)mv mgh
2 Rearranging gives v 2 gh
tank v
g = acceleration due to
gravity
v
A tank filled with water is allowed to drain through a hole of area Ah (in m2) under the
influence of gravity.
We want to know the depth of water h in the tank at time t.
The volume of water leaving the tank per second = Ah (m2) × v (m.s-1) = A h 2gh
If V(t) = volume of water in tank at time t, then: dV A 2 gh
h
dt
dV dh
V(t) is also = Awh, where Aw is the constant area of the surface of the water. Then Aw
dt dt
dh dh A
Aw A h 2gh Rearranging gives h 2 gh
dt dt Aw
37
■ Series Circuits
Kirchhoff’s second law: the voltage E(t) in the circuit is the sum of the
voltage drops across each component in the circuit.
Current i(t) is the flow of charge q(t) per unit time i.e. i = dq/dt
d 2q dq 1
L 2 R q E (t )
dt dt C
38
■ Falling Bodies
+ve
What is the position of the rock s(t) at time t?
Assume: up is positive
the only force on the rock is gravity
d 2s d 2s
m 2 mg or 2
g (F = -W = -mg) W = weight of rock
dt dt g = acceleration due to gravity
Let s0 = height of building and v0 = initial velocity of rock, then s is determined from the 2nd-order IVP
d 2s
2
g, s (0) s0 , s(0) v0
dt
We can solve this by integrating g twice with respect to t. The initial conditions give the constants of
integration.
s(t) = -½gt2 + vot + so
39
■ Falling Bodies and Air Resistance
If s(t) is the distance the body falls in time t then v = ds/dt and a = dv/dt = d2s/dt2
d 2s ds d 2s ds
m 2 mg k or m 2 k mg
dt dt dt dt 40
■ A Slipping Chain
41
■ Suspended Cables