Differential Equations › Section C · Second order differential equations › Topic C.2

Real, distinct roots

When the characteristic equation has two different real roots, the general solution is simply a sum of two exponentials. The skill lies in finding the roots cleanly, fitting the initial conditions and reading off how the solution behaves in the long run.

The first case

The topic "Basic concepts and superposition" showed that \(e^{rt}\) solves \(ay'' + by' + cy = 0\) whenever \(ar^2 + br + c = 0\). When the discriminant \(b^2 - 4ac\) is positive, this quadratic has two real roots \(r_1 \ne r_2\), and so we get two exponential solutions. They grow or decay at different rates, so neither is a constant multiple of the other. That makes them a suitable pair, a fact the topic "Fundamental sets and the Wronskian" proves formally. This topic is about using the result well.

The general solution

If the characteristic equation has real roots \(r_1 \ne r_2\), the general solution is

y(t) = c_1e^{r_1t} + c_2e^{r_2t}

The method has four steps every time. 1. Write the characteristic equation by replacing \(y''\), \(y'\) and \(y\) with \(r^2\), \(r\) and 1. 2. Find the roots by factoring or by the quadratic formula. 3. Write the general solution. 4. If initial conditions are given, differentiate and solve for the constants. The roots need not be whole numbers; for \(y'' + 2y' - 2y = 0\), the quadratic formula gives \(r = -1 \pm \sqrt{3}\), and the general solution is

y = c_1e^{(-1 + \sqrt{3})t} + c_2e^{(-1 - \sqrt{3})t}

Worked example: an initial value problem

Solve \(y'' + 7y' + 10y = 0\) with \(y(0) = 1\) and \(y'(0) = 1\). 1. Characteristic equation: \(r^2 + 7r + 10 = (r + 2)(r + 5) = 0\), so \(r = -2\) and \(r = -5\). 2. General solution: \(y = c_1e^{-2t} + c_2e^{-5t}\), with \(y' = -2c_1e^{-2t} - 5c_2e^{-5t}\). 3. At \(t = 0\): \(c_1 + c_2 = 1\) and \(-2c_1 - 5c_2 = 1\). 4. Substituting \(c_1 = 1 - c_2\) gives \(-2 - 3c_2 = 1\), so \(c_2 = -1\) and \(c_1 = 2\). 5. Answer: \(y = 2e^{-2t} - e^{-5t}\). 6. Check: \(y(0) = 1\) and \(y'(0) = -4 + 5 = 1\).

A zero root

When the equation has no \(y\) term, as in \(y'' - 3y' = 0\), the characteristic equation \(r^2 - 3r = 0\) factors as \(r(r - 3) = 0\). One root is zero, and \(e^{0t} = 1\), so the general solution is

y = c_1 + c_2e^{3t}

The constant solution makes sense: if \(y\) is constant then \(y'\) and \(y''\) are both zero, which satisfies any equation without a \(y\) term. A common slip is to drop the constant and write only \(c_2e^{3t}\), which has one arbitrary constant and so cannot be the general solution of a second order equation.

Starting away from zero

Initial conditions at \(t_0 \ne 0\) make the algebra messy, because every exponential becomes a number like \(e^{4}\). A tidier route is to write the general solution in shifted form:

y = A e^{r_1(t - t_0)} + B e^{r_2(t - t_0)}

This is the same family, since \(e^{r(t - t_0)}\) is just \(e^{rt}\) multiplied by the constant \(e^{-rt_0}\). The benefit is that at \(t = t_0\) every exponential equals 1, so the equations for \(A\) and \(B\) are as simple as they are at zero.

Worked example: conditions at t = 2

Solve \(y'' - y' - 2y = 0\) with \(y(2) = 0\) and \(y'(2) = 3\). 1. Characteristic equation: \(r^2 - r - 2 = (r - 2)(r + 1) = 0\), so \(r = 2\) and \(r = -1\). 2. Shifted form: \(y = Ae^{2(t - 2)} + Be^{-(t - 2)}\). 3. At \(t = 2\): \(A + B = 0\) and \(2A - B = 3\). 4. Adding gives \(3A = 3\), so \(A = 1\) and \(B = -1\). 5. Answer: \(y = e^{2t - 4} - e^{2 - t}\). 6. Check: at \(t = 2\), \(y = 1 - 1 = 0\) and \(y' = 2e^{0} + e^{0} = 3\). In unshifted form this is \(c_1 = e^{-4}\) and \(c_2 = -e^{2}\).

Symmetric roots and hyperbolic functions

The equation \(y'' - k^2y = 0\), with \(k > 0\), has roots \(\pm k\). Besides \(c_1e^{kt} + c_2e^{-kt}\), its general solution can be written

y = c_1\cosh kt + c_2\sinh kt

where \(\cosh u = \frac{e^u + e^{-u}}{2}\) and \(\sinh u = \frac{e^u - e^{-u}}{2}\). Both are combinations of the two exponentials, so superposition makes them solutions. This form suits conditions at \(t = 0\), because \(\cosh 0 = 1\) and \(\sinh 0 = 0\). For \(y'' - 16y = 0\) with \(y(0) = 2\) and \(y'(0) = 12\): \(c_1 = 2\) and \(4c_2 = 12\), so \(y = 2\cosh 4t + 3\sinh 4t\).

Long-term behaviour

The signs of the roots predict what happens as \(t\) grows. If both roots are negative, both exponentials decay and every solution tends to 0, as \(2e^{-2t} - e^{-5t}\) does. If either root is positive, a solution grows without bound unless its coefficient happens to be zero. If one root is zero and the other negative, solutions settle to the constant \(c_1\). When both roots are negative, the root closer to zero decays more slowly, so it dominates for large \(t\). Real, distinct roots never produce oscillation: a sum of two exponentials can cross zero at most once.

Common mistakes to avoid

First, reading the roots off the factors with the wrong sign: \((r + 2)(r + 5)\) gives \(r = -2\) and \(r = -5\), not 2 and 5. Second, losing the constant solution when one root is zero. Third, forgetting the chain-rule factor when differentiating, so that \(e^{-5t}\) wrongly has derivative \(e^{-5t}\). Fourth, treating \(y'' - 4y' = 0\) as if it were \(y'' - 4y = 0\); the first has roots 0 and 4, the second \(\pm 2\). Fifth, substituting \(t = 0\) when the conditions are given at another point.

Key takeaways

When \(b^2 - 4ac > 0\), the roots \(r_1 \ne r_2\) are real and the general solution is \(c_1e^{r_1t} + c_2e^{r_2t}\). Fit initial conditions by differentiating and solving two linear equations. A zero root contributes a constant. For conditions at \(t_0\), the shifted form with \(e^{r(t - t_0)}\) keeps the algebra simple. For roots \(\pm k\), \(\cosh kt\) and \(\sinh kt\) give an equivalent and convenient pair. Negative roots mean decay, any positive root means growth, and there is never oscillation.

Flashcards

Flashcard

Real, distinct roots

b² − 4ac > 0, so r₁ ≠ r₂ are real

The first of the three cases.

Test your understanding

Question 1 of 5

What is the general solution of y″ − 2y′ − 15y = 0?

Question 2 of 5

What is the general solution of y″ − 4y′ = 0?

Question 3 of 5

Solve y″ − 3y′ + 2y = 0 with y(0) = 0 and y′(0) = 2.

Question 4 of 5

Any solution of y″ + 5y′ + 6y = 0 is followed for a long time. What happens to it as t → ∞?

Question 5 of 5

Solve y″ − 25y = 0 with y(0) = 3 and y′(0) = 10, using hyperbolic functions.

← Previous topicNext topic →