Introduction to Mathematics
of Finance
Session 24
Introduction to differential equation
Outline
Differential equation
∂ 2u ∂ 2u
+ =0
∂x 2 ∂y 2
∂ 2u ∂ 2u ∂u
= − 2
∂x 2 ∂t 2 ∂t
Introduction to differential equation
Classification by order
General notation
n
= f (x, y , y , · · · , y (n−1) ) (2)
dx
where f is a real valued continuous function.
Introduction to differential equation
Classification by linearity
That is
The dependent variable y and all its derivatives are
of the first order (power of each term is 1)
The coefficients a0 , a1 , · · · , an depend at most on the
independent variable x
Introduction to differential equation
Examples
(y − x)dx + 4ydy = 0
00 0
y − 2y + y = 0
3
d y dy
+ x − 5y = ex
dx 3 dx
are, in turn, linear first-, second-, and third-order ordinary
differential equations
0 d 2y d 4y
(1 − y )y + 2y = ex , + sin y = 0, + y2 = 0
dx 2 dx 4
are examples of nonlinear first-, second-, and fourth order
ODE.
Introduction to differential equation
Solution of an ODE
Example
1 4 dy
Verify that y = 16 x is a solution to dx = xy 1/2
on the interval (−∞, ∞)
Introduction to differential equation
Review material
Basic integration formulae
techniques of integration (integration by parts
and partial fraction decomposition)
Introduction to differential equation
Separable equation
Method of solution
Examples
Solve
(1 + x)dy − ydx = 0
dy x
dx = − y , where y (4) = −3
Introduction to differential equation
Linear equation
Standard form
Method of solution
1
Put a linear equation into the standard form
2
From the standard form identify RP(x) and
then find the integrating factor e P(x)dx
3
Multiply the standard form of the equation
by the integrating factor. The left hand side
of the resulting equation is automatically the
derivative of the integrating factor and y :
d h P(x)dx i R
e y = e P(x)dx f (x)
dx
4
Integrate both sides of this last equation
Introduction to differential equation
Example
Solve
dy
dx − 3y = 0
dy
dx − 3y = 6
Introduction to differential equation
Class work
Solve:
dy
= e3x+2y
dx
dy
+ y = x, y (0) = 4
dx