Professional Documents
Culture Documents
Phy 158 Mathematics For Physics: Dorcas Attuabea Addo
Phy 158 Mathematics For Physics: Dorcas Attuabea Addo
Take for example a ball released from some height. If air resistance is
ignored, for small height, we can easily find time or distance by
applying equations of motion. But consider air resistance which
varies and say, is directly proportional to velocity. Then we have
dv
m = mg − mv λ
dt
There are two types of derivatives which usually are (and always can
dy
be) interpreted as rates. For example, the ordinary derivative is
dx
the rate of change of y with respect to x (independent variable), and
∂y
the partial derivative .
∂x
Definition
A differential equation is an equation which involves one or more
derivatives, or differentials of an unknown function
Example (1)
The following are examples of differential equations involving their
respective unknown functions:
dy
= 3x 2
dx 2 2
∂v ∂ v ∂ v
= h2 + .
∂t ∂x 2 ∂y 2
Definition
A solution of a differential equation is any function, say φ, satisfying
the given differential equation on a specified interval, I .
Example (3)
The function φ = A cos x + B sin x is a solution of the differential
d 2φ
equation + φ = 0.
dx 2
φ = A cos x + B sin x
dφ
= −A sin x + B cos x
dx
d 2φ
= −A cos x − B sin x
dx 2
d 2φ
+ φ = (−A cos x − B sin x) + (A cos x + B sin x) = 0
dx 2
Solution:
1 −2x
y= =⇒ y 0 = 2
,
x2 −1 (x − 1)2
2
0 2 −2x 1
y + 2xy = 2 +2 2 = 0.
(x − 1)2 x −1
Example (5)
y = c1 e −x + c2 e 3x is a general solution of the differential equation:
y 00 − 2y 0 + 3y = 0. Determine the particular solution of the initial
solution of the initial conditions y = 3 and x = 0 and y 0 = 4 when
x = 0.
y (0) = 3, y 0 (0) = 4
let y = c1 e −x + c2 e 3x when x = 0, y = 3
=⇒ 3 = c1 e (0) + c2 e 3(0) = c1 + c2
y 0 = −c1 e −x + 3c2 e 3x when x = 0, y 0 = 4,
=⇒ 4 = c1 e (0) + 3c2 e 3(0)
5 7
=⇒ 4 = −c1 + 3c2 , thus c1 = and c2 =
4 4
x − ln(x + 1) − arctan y = c
(x 2 + y 2 )dx − 2xydy = 0
Solution:
Notice that the function M(x, y ) = x 2 + y 2 and N(x, y ) = −2xy are
both homogeneous of degree 2; therefore, the differential equation is
homogeneous.The substitution y = xv implies that
dy = xdv + vdx,and given is transformed into
∂f ∂f
df = dx + dy (9)
∂x ∂y
This shows that the family of curves (or general solution) f (x, y ) = c
satisfies the differential equation df = 0.
∂f ∂f
dx + dy = 0 (10)
∂x ∂y
∂f ∂f
M(x, y ) = and N(x, y ) =
∂x ∂y
Other first order equations in first degree which are not linear may be
reduced to the linear form by means of appropriate transformations.
Consider
y = c1 e r1 x + c2 e r2 x (20)
y = c1 e −x + c2 xe −x
y = c1 e −x + c2 xe −x
Principle of Superposition
Let y1 and y2 be two solutions of the homogeneous linear equation
(23) on the interval I . If c1 and c2 are constants, then the linear
combination
y = c1 y 1 + c2 y 2 (24)
is a solution of (23) on I .
Let
We get
Thus
R
µ = y12 e p(x)dx
(35)
2x 2 y 00 + xy 0 − 3y = 0
1 3 1
=⇒ y 00 + y 0 + 2 = 0 where p(x) =
2x 2x 2x
Z − R p(x)dx
e
y2 = y1 x
d
Z − R 1 dx Z −1
−1 e 2x −1 x 2
=⇒ y2 = x = x dx
(x −1 )2 x −2
d ny d n−1 dy
an = n
+ a n−1 n−1
+ · · · + a1 + a0 y = f (x) (39)
dx dx dx
f (x) is a given function of x, and a0 , a1 , · · · , an−1 , an also given
constants.
General solution: y = yc + yp = c1 e 2x + c2 e 2x + xe 2x
so that
y2 + a2 y20 + a2 y1 = 0
=⇒ y20 + a2 y20 + a1 y2 = 0
c10 (x) y10 (x) + c20 (x) y20 (x) = f (x) (41)
Therefore
Z
y2 (x) f (x)
c1 (x) = dx + k1
w (y1 (x), y2 (x))
Z
y1 (x) f (x)
c2 (x) = dx + k2
w (y1 (x), y2 (x))
y 00 + 3y 0 + 2y = sin x
y (0) = 0, y 0(0) = 1
Solution
We assume:
Z
2x 2x 2t
c1 (x) = e cos x − 2 e sin x − 2 e sin tdt
Z x
=⇒ −5 e 2t sin tdt = e 2x cos x − 2e 2x sin x + A1
1 2x
c1 (x) = e [cos x − 2e 2x sin x] + A1
5
Z
x x t
c2 (x) = −e cos x + e sin x − e sin tdt + A2
Z x
=⇒ 2 e t sin tdt = e x [sin x − cos x] + A2
1 x
=⇒ c2 (x) = e [sin x − cos x] + A2
2
Then
yp = u1 cos x + u2 sin x
=⇒ yp0 = u10 cos x − u1 sin x + u20 sin x + u2 cos x