Chapter 2
Chapter 2
Chapter 2
A differential equation (or DE) is an equation that involves one or more derivatives
of an unknown function. Solving the differential equation means finding a function
(or every such function) that satisfies the differential equation. Many physical laws
and relationships between quantities studied in various scientific disciplines are
expressed mathematically as differential equations.
For example, Newton’s second law of motion (F = ma) states that the position x(t)
at time t of an object of constant mass m subjected to a force F(t) must satisfy the
differential equation (equation of motion):
d 2x
m F (t ) (2.1)
dt 2
Because differential equations arise so extensively in the abstract modeling of
concrete phenomena, such equations and techniques for solving them are at the heart
of applied mathematics.
Classifying Differential Equations
Differential equations are classified in several ways. The most significant
classification is based on the number of variables with respect to which derivatives
appear in the equation.
An ordinary differential equation (ODE) is one that involves derivatives with
respect to only one variable. Both of the examples given above are ordinary
differential equations.
A partial differential equation (PDE) is one that involves partial derivatives of the
unknown function with respect to more than one variable. For example, the one-
dimensional wave equation
1
2u 2 u
2
c (2.2)
t 2 x 2
d2y
x 3 y sin x h a s o rd e r2,
dx 2
(2.3)
2
d3y dy d2y
4 x y ey h a s o rd e r3
dx
3 2
dx dx
Like any equation, a differential equation can be written in the form F = 0, where F
is a function. For an ODE, the function F can depend on the independent variable
(usually called x or t), the unknown function (usually y), and any derivatives of the
unknown function up to the order of the equation. For instance, an nth order ODE
can be written in the form
F x, y, y, y,..., y ( n) 0 (2.4)
An important special class of differential equations is those that are linear. An nth
order linear ODE has the form
Each term in the expression on the left side is the product of a coefficient that is a
function of x, and a second factor that is either y or one of the derivatives of y. The
term on the right does not depend on y; it is called the nonhomogeneous term.
2
Observe that no term on the left side involves any power of y or its derivatives other
than the first power, and y and its derivatives are never multiplied together. A linear
ODE is said to be homogeneous if all of its terms involve the unknown function y,
that is, if f (x)=0. If f (x) is not identically zero, the equation is nonhomogeneous.
The equation
The following theorem states that any linear combination of solutions of a linear,
homogeneous DE is also a solution. This is an extremely important fact about linear,
homogeneous DEs.
y A y1 ( x) B y2 ( x) (2.8)
( n 1)
an 1 y1 ... a2 y1 a1 y1 a0 y1 0 and
( n)
an y1
(2.9)
( n 1)
an y2 an 1 y2 ... a2 y2 a1 y2 a0 y2 0
( n)
Multiplying the first equation by A and the second by B and adding the two gives
3
( n 1) ( n 1)
By2 ) an 1 ( Ay1 By2 ) ... a2 ( Ay1 By2 )
(n) (n)
an ( Ay1
(2.10)
a1 ( Ay1 By2 ) a0 ( Ay1 By2 ) 0
The same kind of proof can be used to verify the following theorem.
A separable equation is of the form described below is one of the simplest equation
to be solved.
4
dy
f ( x) g ( y ) (2.15)
dx
This equation can be rewrite in an equivalent differential form as
dy
f ( x)dx (2.16)
g ( y)
where the variables have been separated on opposite sides of the equation. This was
possible because the derivative dy / dx was a product of a function of x alone times a
function of y alone, rather than a more general function of the two variables x and y.
We solve the separated equation by integrating both sides,
dy
g ( y)
f ( x)dx (2.17)
Assuming both of the integrals can be evaluated, we can obtain a general solution
to the given DE in the form
G ( y ) F ( x) C (2.18)
Exercise: solve the following equation
dy y
ky 1 (2.19)
dt L
5
C1Lekt
y (2.23)
1 C1e kt
A first-order differential equation of the form
dy y
f (2.24)
dx x
can be transformed into a separable equation (and therefore solved) by means of a
change of dependent variable. If we set
y
v , or equivalently y xv(x)
x
then we have
dy dv
vx (2.25)
dx dx
and the original differential equation transforms into
dv f (v) v
(2.26)
dx x
which is separable.
dy x 2 xy
Exercise: solve for
dx xy y 2
differential of a function ( x, y) :
d ( x, y) M ( x, y) dx N ( x, y) dy (2.28)
The function is called an integral function of the differential equation. The level
curves ( x, y) C of are the solution curves of the differential equation
A necessary condition for the exactness of the DE M ( x, y) dx N ( x, y) dy 0 is that
6
M N
; (2.29)
y x
2 2
this just means that the mixed partial derivatives and of the integral
xy yx
Integrating Factors
7
dy
p( x)dx (2.33)
y
dx
d u ( x)
e y ( x ) eu ( x )
dy
dx
eu ( x )
dy
dx
y ( x)
(2.35)
dy
eu ( x ) p ( x ) y eu ( x ) q ( x)
dx
Therefore
eu ( x ) y ( x) eu ( x ) q( x)dx
or (2.36)
y ( x) e u ( x ) eu ( x ) q( x)dx
dy y
Exercise: solve 1 for x0
dx x
x C
Solution: y( x) for any constant C
2 x
for some function F of four variables. When such an equation can be solved
explicitly for y as a function of x, the solution typically involves two integrations and
therefore two arbitrary constants. A unique solution usually results from prescribing
the values of the solution y and its first derivative y dy / dx at a particular point.
8
Such a prescription constitutes an initial-value problem for the second-order
equation.
The most frequently encountered ordinary differential equations arising in
applications are second-order linear equations. The general second-order linear
equation is of the form
d2y dy
a2 ( x) 2
a1 ( x) a0 ( x) y f ( x) (2.38)
dx dx
If f(x)= 0 identically, then we say that the equation is homogeneous. If the
coefficients a2 ( x), a1 ( x) , and a0 ( x) are continuous on an interval and a2 ( x) 0 there,
then the homogeneous equation
d2y dy
a2 ( x) 2
a1 ( x) a0 ( x) y 0 (2.39)
dx dx
has a general solution of the form
yh C1 y1 ( x) C2 y2 ( x) (2.40)
where y1 ( x) and y2 ( x) are two independent solutions. Whenever one solution, y1 ( x) ,
of a homogeneous linear second-order equation is known, another independent
solution (and therefore the general solution) can be found by substituting
y v( x) y1 ( x) y into the differential equation. This leads to a first-order, linear,
is not linear (we say it is nonlinear) because the second term involves the square of
a derivative of y, the third term involves the product of y and one of its derivatives,
and the fourth term is not y times a function of x.
9
Assignment: read more information on non-linear differential equations
Basic Concepts
𝜕2 𝑢 𝜕2 𝑢
+ = 𝑓 (𝑥, 𝑦) (two-dimensional Poisson equation) (2.45)
𝜕𝑥 2 𝜕𝑦 2
𝜕2 𝑢 𝜕2 𝑢 𝜕2 𝑢
2
+ 2
+ =0 (three-dimensional Laplace equation) (2.46)
𝜕𝑥 𝜕𝑦 𝜕𝑧 2
Here c is constant, t is the time, and x, y, z are Cartesian coordinates. Equation (2.45)
(with f ≠ 0) is nonhomogeneous, while the other equations are homogeneous.
A solution of a partial differential equation in some region R of the space of
the independent variables is a function which has all the partial derivatives appearing
in the equation in some domain containing R, and satisfies the equation everywhere
in R. (Often one merely requires that the function is continuous at the boundary of
10
R, has those derivatives in the interior of R, and satisfies the equation in the interior
of R.)
In general, the totality of solutions of a partial differential equation is very
large. For example, the functions
u = x 2 – y2 , u = ex cos y, u = In (x2 +y2), (2.46)
Which are entirely different from each other, are solutions of (2.44). We shall see
later that the unique solution of a partial differential equation corresponding to a
given physical problem will be obtained by the use of additional information arising
from the physical situation. For example, in some cases the values of the required
solution of the problem on the boundary of some domain will be given (“boundary
conditions”); in other cases when the time t is one of the variables, the values of
the solution at t = 0 will be prescribed (“initial conditions”).
We know that if an ordinary differential equation is linear and homogeneous,
then from known solutions further solutions can be obtained by superposition. For a
homogeneous linear partial differential equation the situation is quite similar. In fact,
the following theorem holds.
Fundamental Theorem 1. If u1 and u2 are any solutions of a linear homogeneous
partial differential equation in some region, then
U = c1u1 + c2u2, (2.47)
Where c1 and c2 are any constants, is also a solution of that equation in that region.
11