







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








Contents
The general second order homogeneous linear differential equation with constant coefficients is Ay′′^ + By′^ + Cy = 0,
where y is an unknown function of the variable x, and A, B, and C are constants. If A = 0 this becomes a first order linear equation, which in this case is separable, and so we already know how to solve. So we will consider the case A 6 = 0. If we want, we can the divide through by A and obtain the equivalent equation
y′′^ + by′^ + cy = 0,
where b = B/A and c = C/A (that is if we have nothing better to do, and like the first coefficient to be equal to 1). Linear with constant coefficients means that each term in the Left Hand Side of the equation is a constant times y or a derivative of y. Homogeneous means that we exclude equations like Ay′′^ + By′^ + Cy = f (x) which can be solved, in certain important cases, by an extension of the methods we will study here. Here we only will solve the case where the Right Hand Side f (x) is identically 0. Homogeneous also means that the constant function y = 0 is always a solution to the equation. By now we know to expect 2 degrees of freedom in the solution of this second order equation, i.e., the general family of solutions should have two arbitrary constants. We call the general family of solutions for short the general solution. That means that to find our general solution we have to find two independent functions y = f 1 (x) and y = f 2 (x) which are solutions, and then the general solution will be y = C 1 · f 1 (x) + C 2 · f 2 (x). Now If y = f 1 (x) and y = f 2 (x) are indeed solutions, one can check by plugging in that y = C 1 · f 1 (x) + C 2 · f 2 (x) will be a solution. The fact that all solutions are of this form (i.e., we haven’t missed any solution) is harder to ascertain, but nevertheless true. Notice that of course we do need f 1 (x) and f 2 (x) to be independent. What does it mean for two functions to be independent? It means that one of them is not equal to a constant times the other. For example the functions f 1 (x) = ex 1
and f 2 (x) = 2ex^ are not independent, because f 2 (x) = 2 · f 1 (x). On the other hand, for example the functions g 1 (x) = ex^ and g 2 (x) = e^2 x^ are independent (although we do not prove it, it seems intuitively clear that they are independent). To construct the general solution for a second order equation we do need two independent solutions. For example we cannot construct a general solution from say f 1 (x) = ex^ and f 2 (x) = 2ex, because then the family y = C 1 · f 1 (x) + C 2 · f 2 (x) will be y = C 1 · ex^ + C 2 · 2 ex^ = (C 1 + 2C 2 )ex^ = C 3 ex^ (here C 3 = C 1 + 2C 2 ). I.e., we only will get one degree of freedom if our functions are not independent, and we need two degrees of freedom. That is why it is important that we get two independent solutions of the equation somehow (by guessing, being smart or any way we can think of). Let us look for the general solution of our second order homogeneous linear differential equa- tion with constant coefficients. As often happens with differential equations, we try to make an educated guess as to the type of solutions. To do that one usually tries to see what happens with the equations with simplest possible coefficients. As we already agreed that we want A 6 = 0, we can try checking what happens with the equation if we set the other coefficients to zero. And in fact so far we have already seen examples of 3 types of second order homogeneous linear differential equation with constant coefficients: We have met in Calculus I with the equation (this is the simplest case when both b and c are equal to 0) y′′^ = 0.
Here we don’t need to guess, as we can solve by first getting y′^ = C 2 , and then y = C 1 + C 2 · x. Thus the general solution is y = C 1 + C 2 · x. We can next try to solve the differential equation we get when b = −1, c = 0: y′′^ − y′^ = 0, y′′^ = y′
We try guessing among our usual collection of functions—constant y = 1, exponentials y = ekx, trigonometry y = sin kx, y = cos kx—which one has the first derivative same as the second. We quickly come to the conclusion that of course the exponential y = ex^ (which has all its derivative equal among themselves), and the constant y = 1 both solve the equation. So the general solution is y = C 1 · ex^ + C 2 · 1. Next easiest in line to try to solve is the differential equation (with b = 0, c = 1): y′′^ + y = 0, y′′^ = −y
Again we try to guess among our usual collection of functions which of them have second derivative equal to minus the function: that is the trigonometry y = sin x and y = cos x. These two are indeed solutions, and they are independent, so our general solution is y = C 1 sin x + C 2 cos x. In fact we saw another example of this situation: 4 y′′^ + 25y = 0,
this was problem 7.1.4, and we saw that the solutions look like y = C 1 · cos 52 x + C 2 · sin 52 x. We have also seen 2 y′′^ + y′^ − y = 0,
this was problem 7.1.3 , and we saw that the general solution was y = C 1 · e−x^ + C 2 · e
(^12) x . Basically we see that the solutions in the different cases could be polynomials , they could be trigonometry, or they could be exponentials. Of course, by now we fully expect in more complicated cases the mixtures of the polynomial, trigonometry and exponential to show up: the solutions could possibly include functions of the kind of xnerx^ cos kx and xnerx^ sin kx. Luckily, as we will see, in the case of second order the mixture of the three will not appear;
Example 2. Let’s go back to the equation 2 y′′^ + y′^ − y = 0,
The characteristic equation is:
2 r^2 + r − 1 = 0, which gives us r 1 = −1; r 2 =
which of course gives the solutions
e−^1 ·x^ = e−x^ and e
1 2 x,
and thus the general solution is:
y = C 1 e−x^ + C 2 e
1 2 x.
One can check that by plugging in the differential equation.
Let us now try and solve the equation y′′^ − 4 y′^ + 4y = 0,
We write the characteristic equation
r^2 − 4 r + 4 = 0,
and because the discriminant D = 16 − 16 = 0, we have r 1 = r 2 = 2. This only gives us the one solution e^2 x, and no second solution for the second degree of freedom. How then to get the second solution? To get inspiration consider again the example
y′′^ = 0,
Here we know the solution, y = C 1 ·1+C 2 ·x. But let us solve it with the characteristic equation:
r^2 = 0 which gives us both r 1 = 0 and r 2 = 0.
Now as we know the general solution: y = C 1 · 1 + C 2 · x, we can see that the first independent solution is indeed e^0 ·x^ = 1, but the second one appears to be x · e^0 ·x^ = x. (Indeed x is a solution to the y′′^ = 0—we can check by plugging in). We can now go back to the equation y′′^ − 4 y′^ + 4y = 0 and try something similar: the first independent solution is e^2 x, try with a second one: xe^2 x. We check that it is a solution by plugging in: We have
(xe^2 x)′^ = e^2 x^ + 2xe^2 x; (xe^2 x)′′^ = 2e^2 x^ + (2e^2 x^ + 4xe^2 x) = 4e^2 x^ + 4xe^2 x
Plugging in:
y′′^ − 4 y′^ + 4y = (xe^2 x)′′^ − 4(xe^2 x)′^ + 4(xe^2 x) = 4e^2 x^ + 4xe^2 x^ − 4(e^2 x^ + 2xe^2 x) + 4xe^2 x^ = 0,
so xe^2 x^ is indeed a solution of the differential equation y′′^ − 4 y′^ + 4y = 0. Then our general solution is y = C 1 e^2 x^ + C 2 xe^2 x.
We can do that every time we have repeated roots of the characteristic equation (i.e., when the discriminant D = B^2 − 4 AC = 0):
If r 1 = r 2 = r are the roots of the characteristic equation, then the first independent solution is y = erx, and the second one is y = xerx. The general solution is y = C 1 erx^ + C 2 xerx.
Example: Solve the equation y′′^ − 6 y′^ + 9 = 0,
Solution: the characteristic equation is
r^2 − 6 r + 9 = 0, r 1 = r 2 = 3;
The two independent solutions are
y 1 = e^3 x, y 2 = xe^3 x;
the general solution is: y = C 1 e^3 x^ + C 2 xe^3 x.
One can check that by plugging in the differential equation.
Let us now try and solve again the following equation: 4 y′′^ + 25y = 0,
but let’s try through the characteristic equation. The problems is that the characteristic equation is
4 r^2 + 25 = 0, thus r 1 , 2 =
and it doesn’t have real roots (
−1 is a slight problem :). But we know that the solution of the differential equation is y = C 1 · cos 52 x + C 2 · sin 52 x. So we notice that the two independent
solutions are the trigonometry y = cos kx, and y = sin kx, where k = 52. We can get these if ignore the
−1 in r 1 , 2 = ± 25
−1, but instead of exponentials (which we would have if the
was not there) we have trigonometry now. Thus the conclusion seems to be that whenever we have real roots we take exponen- tials, whenever we have
− 1 (imaginary roots) we take trigonometry. Then the question is what happens with the mixtures? For example, let us consider the equation y′′^ + 4y′^ + 13y = 0,
The characteristic equation is
r^2 − 4 r + 13 = 0, r 1 , 2 =
Now we have a mixture: 2 is real (without
−1) , and 3
−1 is not. That suggests that we should have 2 appear in an exponential, and the 3 appear in a trigonometry (i.e., either cos 3x or sin 3x). Thus we concoct the mixtures y = e^2 x^ cos 3x and y = e^2 x^ cos 3x (indeed these are the only two independent mixtures possible in this case). We have to check if they are solutions: we can do that by plugging in. We calculate for y = e^2 x^ cos 3x
y′^ = 2e^2 x^ cos 3x − 3 e^2 x^ sin 3x y′′^ = 4e^2 x^ cos 3x − 6 e^2 x^ sin 3x − 6 e^2 x^ sin 3x − 9 e^2 x^ cos 3x = − 5 e^2 x^ cos 3x − 12 e^2 x^ sin 3x
Case 1: Two different real roots (D > 0 )
r 1 , 2 =
The two independent solutions are
y 1 = er^1 x, y 2 = er^2 x;
the general solution is y = C 1 y 1 + C 2 y 2 = C 1 er^1 x^ + C 2 er^2 x
Case 2: Repeated roots (D = 0)
r 1 , 2 =
, r 1 = r 2 = r =
The two independent solutions are
y 1 = erx, y 2 = xerx;
the general solution is
y = C 1 y 1 + C 2 y 2 = C 1 erx^ + C 2 xerx^ = erx(C 1 + C 2 x)
Case 3: No real roots (D < 0 )
r 1 , 2 =
The two independent solutions are
y 1 = e
− 2 AB x cos(
x), y 2 = e
− 2 AB x sin(
x);
and the general solution is
y = C 1 y 1 +C 2 y 2 = C 1 e
−B 2 A x^ cos(
x)+C 2 e
−B 2 A x^ sin(
x) = e
−B 2 A x(C 1 cos(
x)+C 2 sin(
x)).
Initial Value problem is a system of
Since a second order linear equation has two degrees of freedom, for an initial value problem we need two initial conditions: for y and for y′. To solve the initial value problem:
Examples: Example 1. Solve the initial value problem: 2 y′′^ + y′^ − y = 0, y(0) = 0, y′(0) = 1
Solution: 1. General solution: we already solved the equation, and we got the general solution
y = C 1 e−x^ + C 2 e
(^12) x .
y(0) = C 1 e−^0 + C 2 e
1 (^2 0) = C 1 + C 2 = should equal to 0
y′(x) = −C 1 e−x^ + C 2 ·
e
1 2 x
y′(0) = −C 1 e−^0 + C 2 ·
e
(^12 ) = −C 1 +
· C 2 = should equal to 1
Thus we get the system for C 1 and C 2 :
C 1 + C 2 = 0
−C 1 +
We solve this:
C 2 = −C 1
− C 1 −
Thus the solution to the Initial Value problem is
y = −
e−x^ +
e
(^12) x .
One can check that by plugging in both the differential equation and the initial conditions.
Example 2. Solve the initial value problem:
y′′^ − 4 y′^ + 4y = 0, y(0) = 1, y′(0) = 0
Solution: 1. General solution: we already solved the equation, and we got the general solution
y = C 1 e^2 x^ + C 2 xe^2 x.
y(0) = C 1 e^0 + C 2 · 0 · e^0 = C 1 + 0 = should equal to 1 y′(x) = C 1 · 2 e^2 x^ + C 2 · (e^2 x^ + 2x · e^2 x) y′(0) = 2C 1 e^0 + C 2 · (e^0 + 0 · e^0 ) = 2C 1 + C 2 = should equal to 0
Thus we get the system for C 1 and C 2 :
C 1 = 1 2 C 1 + C 2 = 1
We solve this:
C 1 = 1 C 2 = − 2 C 1 = − 2 , C 2 = − 2.
One may ask how come in some of the cases the solutions to the differential equation are trigonometric functions, and in other cases the solutions are exponential functions; but in both cases the solutions are connected to the characteristic equation. The answer to that question is that there is a connection between the exponential e(λ·
√−1)x and the trigonometric functions sin λx and cos λx. Of course to find that connection, one first need to make sense of what is e(λ·
√−1)x ; i.e., one needs to work with numbers like λ·
−1, which are not real numbers. That is achieved by giving the number
−1 formally a name i, so we write i =
−1; and we work with it as if nothing happened. We call this number i the imaginary unit (that’s where the name i for the
comes from). So we now work with numbers of the form z = a + b · i, where the numbers a and b are any real numbers, and i =
−1. We can add and subtract such numbers as usual (as if the i is a variable, with of course the property i^2 = (
z 1 + z 2 = (a 1 + i · b 1 ) + (a 2 + i · b 2 ) = (a 1 + a 2 ) + i · (b 1 + b 2 ), z 1 − z 2 = (a 1 + i · b 1 ) − (a 2 + i · b 2 ) = (a 1 − a 2 ) + i · (b 1 − b 2 ).
We can also multiply such numbers:
z 1 · z 2 = (a 1 + i · b 1 ) · (a 2 + i · b 2 ) = a 1 · a 2 + i · a 1 · b 2 + i · b 1 · a 2 + i^2 · b 1 · b 2 = = a 1 · a 2 + i · a 1 · b 2 + i · b 1 · a 2 − b 1 · b 2 = (a 1 · a 2 − b 1 · b 2 ) + i · (a 1 · b 2 + b 1 · a 2 ).
Basically each time we just multiply out or add, but we keep the parts with i separate, and the part without i separate as well (of course we always keep in mind that i^2 = (
The part without i is called real part, the part which goes with the i is called imaginary part. So for example the number 2 + 3i is a complex number, with real part equal to 2, and imaginary part equal to 3. The collection of numbers z = a + i · b (or if one prefers to write it a + b · i), where the numbers a and b are any real numbers, is called complex numbers. So with this newly obtained knowledge we can write the solutions of the characteristic equation when the discriminant is negative, i.e., D = B^2 − 4 AC < 0, as
r 1 , 2 =
)i.
So we see that when the discriminant is negative, the solutions are complex numbers, with
the same real part − 2 AB and imaginary parts ±
√ −D 2 A. Call for short the real part^ μ^ =^
−B 2 A , and λ =
√−D 2 A. We want to understand what is^ e
μ+λi. Of course we know what is eμ, when μ is real,
but we don’t know yet what is ez^ , when z is complex. As we know how to add and multiply complex numbers we can use the Taylor expansion of the exponential to define what is ez^ :
ez^ =
n=
zn n!
= 1 + z +
z^2 2!
z^3 3!
z^4 4!
zn n!
One can check that this exponential function is defined for all complex numbers, and it has all the usual properties the real exponential had, for example:
ez^1 +z^2 = ez^1 · ez^2.
That shows that the general solution of the second order differential equation can be written in two equally correct ways: either we use the two complex exponentials, or the two exponen- tial/trigonometry mixtures. The complex exponentials have the benefit of having the same form as the solutions for real characteristic roots. The mixtures though have the benefit of giving real solutions. Usually when solving the differential equation, or an initial value problem, we need a real solution, so the exponential/trigonometry mixtures are to be preferred.