Documente Academic
Documente Profesional
Documente Cultură
Example. The following equations are linear homogeneous equations with constant coefficients:
y + 3y + 3y + y = 0,
y 5y 6y = 0,
((D 1)(D 2)(D )y = 0.
A solution to the equation is a function y = f (x) which satisfies the equation. Equivalently, if you think
of an Dn + a2 D2 + a1 D + a0 as a linear transformation, it is an element of the kernel of the transformation.
The general solution is a linear combination of the elements of a basis for the kernel, with the
coefficients being arbitrary constants.
The form of the equation makes it reasonable that a solution should be a function whose derivatives are
constant multiples of itself. emx is such a function:
d mx
e = remx ,
dx
d mx
e = m2 emx ,
dx2
...,
dn mx
e = mn emx .
dxn
Example. Solve y 5y 6y = 0.
The characteristic polynomial is m2 5m 6; solving m2 5m 6 = 0 yields (m 6)(m + 1) = 0, so
m = 6 or m = 1. The general solution is
y = c1 e6x + c2 ex .
You can check this by plugging back in. Here are the derivatives:
y = c1 e6x + c2 ex ,
y = 6c1 e6x c2 ex ,
y = 36c1 e6x + c2 ex .
Therefore,
y 5y + 6y = 36c1 e6x + c2 ex 5 6c1 e6x c2 ex 6 c1 e6x + c2 ex = 0.
Example. Solve (D4 9D2 + 20)y = 0.
Its easy to write down the characteristic equation: just replace the Ds with ms:
The roots are 2 and 5. (Dont fall into the trap of assuming that roots must be integers, or even
rationals!) The solution is
y = c1 e2x + c2 e2x + c3 e 5x + c4 e 5x .
What happens if there are repeated roots? Look at the equation y 2y + y = 0. The characteristic
equation is x2 2x + 1 = 0, which has x = 1 as a double root. It is true that ex is a solution, but it would
be incorrect to write y = c1 ex + c2 ex .
The terms c1 ex and c2 ex are redundant you could combine them to get y = (c1 + c2 )ex = c3 ex . To
put it another way, as function ex and ex are linearly dependent.
It is reasonable to suppose that for a second order equation you should have two different solutions. ex
is one; how can you find another?
The idea is to guess the form that such a solution might take. Guess:
y = f (x)ex ,
i.e. something times the known solution ex . What should f be?
To find f , plug f (x)ex into the equation. Here are the derivatives:
y = f (x)ex ,
y = f (x)ex + f (x)ex ,
In general, if m is a repeated root of multiplicity k in the characteristic polynomial, you get terms emx ,
xe , . . . , xk1 emx in the general solution.
mx
Example. Solve
d2 y
dy
d3 y
3
+3
y = 0.
3
2
dx
dx
dx
Example. (Linear systems) Suppose x and y are functions of t. Consider the system of differential
equations
dx
dy
= x = x + 4y,
= y = 2x + 3y.
dt
dt
I want to solve for x and y in terms of t.
Solve the second equation for x:
1
x = (y 3y) .
2
Differentiate:
1
x = (y 3y ) .
2
Plug the expressions for x and x into the first equation:
1
1
(y 3y ) = (y 3y) + 4y.
2
2
Simplify:
y 4y 5y = 0.
The characteristic equation is m2 4m 5 = 0, or (m 5)(m + 1) = 0. The roots are m = 5 and
m = 1. Therefore,
y = c1 e5t + c2 et .
Now y = 5c1 e5t c2 et , so
x=
1
1
(y 3y) =
5c1 e5t c2 et 3 c1 e5t + c2 et = c1 e5t 2c2 et .
2
2
There are other ways of solving linear systems, but for small systems brute force works reasonably well!
Now suppose the characteristic equation has a complex root a + bi. From basic algebra, complex roots
of real polynomials come in conjugate pairs: a + bi and a bi. Its reasonable to expect solutions
c1 e(a+bi)x
and
c2 e(abi)x .
However, these are complex solutions, and you should have real solutions to the original real differential
equation. Ill use the complex exponential formula
ei = cos + i sin ,
R.
You can derive this formula by considering the Taylor series for ei , cos , and sin .
Now
c1 e(a+bi)x + c2 e(abi)x = c1 eax eibx + c2 eax eibx =
eax (c1 (cos bx + i sin bx) + c2 (cos bx i sin bx)) = eax ((c1 + c2 ) cos bx + i(c1 c2 ) sin bx) .
Let c3 = c1 + c2 and c4 = i(c1 c2 ). Observe that c1 and c2 can be solved for in terms of c3 and c4 , so
no generality is lost with this substitution. Then
c1 e(a+bi)x + c2 e(abi)x = eax (c3 cos bx + c4 sin bx).
Each pair of conjugate complex roots abi in the characteristic equation generates a pair of independent
solutions of this form.
Example. Solve y + y = 0.
The characteristic equation m2 + 1 = 0 has roots i. The solution is
y = c1 cos x + c2 sin x.
3
1
. The solution is
m= i
2
2
!
3
3
x
x/2
c2 cos
y = c1 e + e
x + c3 sin
x .
2
2