4.2 Homogeneous Linear Equations with Constant Coefficients
Section 4.1 told us what the general solution of a homogeneous linear equation looks like: independent solutions combined with arbitrary constants. It did not tell us how to find those solutions. For equations with variable coefficients there is no general recipe. But when every coefficient is a constant, the problem reduces to finding the roots of a polynomial. This case is extremely important in practice: mass–spring systems, RLC circuits, vibrating structures and many control systems are all modeled by constant-coefficient equations.
In this section we study
where are real constants and . Since constants are continuous everywhere and never vanishes, Theorem 4.1.1 applies on the whole real line: every solution is defined on .
The key idea: try an exponential
What kind of function could satisfy such an equation? We need a combination of with constant weights to cancel exactly. That is easiest if all the derivatives of look like itself. The exponential has exactly this property:
Substituting into the left-hand side gives
Because is never zero, this vanishes for all exactly when the polynomial in parentheses is zero.
The polynomial
is the characteristic polynomial of the equation, and is its characteristic equation (sometimes called the auxiliary equation). The function is a solution if and only if is a root of .
To write down , simply replace by (and by ). For example, has . Do not forget that a missing derivative means a zero coefficient.
In the operator notation of Section 4.1 the equation reads : the same polynomial, with in place of . Constant-coefficient operators can be multiplied and factored exactly like polynomials, and the order of the factors does not matter. For instance, . We will use this below.
A polynomial of degree has exactly roots if we count complex roots and repeated roots with their multiplicity. Three things can happen, and each needs a slightly different treatment:
- the roots are real and all different;
- some real root is repeated;
- some roots are complex (they then come in conjugate pairs, because the coefficients are real).
Case 1: distinct real roots
If the characteristic equation has distinct real roots , then
form a fundamental set on , and the general solution is
Each is a solution because . They are independent because their Wronskian equals times a determinant of powers of the (a Vandermonde determinant), which equals the product of all differences with . When the roots are distinct, none of these differences is zero. You saw a concrete case in Example 4.1.3, where the determinant was .
Find the general solution of .
Solution
- Characteristic equation. .
- Roots. By the quadratic formula, so and . (Equivalently, .)
- General solution. The roots are real and distinct, so
Case 2: repeated real roots
If is a double root, the exponential gives only one solution, but a double root "uses up" two of the roots. We are one solution short. Where does the missing one come from?
Why works: first argument (reduction of order)
A second-order equation whose characteristic polynomial is is
We know . Apply the reduction-of-order formula (Theorem 4.1.7) with :
So the second solution is .
Second argument (works for any multiplicity)
Let be any differentiable function. Compute applied to the product :
In words: acts on by simply differentiating . Applying it times,
Now choose with . Then , because differentiating more than times gives zero. Hence
If is a root of multiplicity , the characteristic polynomial factors as , and so . Applying to , the factor acts first and already gives zero. So is a solution for .
If is a real root of the characteristic equation of multiplicity , then it contributes the independent solutions
to the general solution, that is, the term .
Solve .
Solution
- Characteristic equation. .
- Discriminant. , so there is one double root. In fact .
- Root. , multiplicity .
- General solution. By Theorem 4.2.2,
Case 3: complex roots
The equation has characteristic equation with roots . Yet we know two perfectly real solutions: and . The bridge between "" and ", " is Euler's formula.
Euler's formula, step by step
- Start from the power series of the exponential, valid for every number , real or complex:
- Put with real, and use , , , , and so on:
- Separate the terms without from those with :
- Recognize the two series. The first bracket is the Maclaurin series of , the second is that of . Therefore
- Apply it to a complex root . Using the law of exponents (which still holds for complex exponents) and Euler's formula with :
One can check directly from the last line, with the product rule, that . So the computation at the start of this section works for complex too: if is a root of , then is a (complex-valued) solution.
From a complex solution to two real ones
Let be a complex-valued solution, with and real. Because is linear and its coefficients are real,
A complex number is zero only if its real and imaginary parts are both zero. So and : the real part and the imaginary part are each real solutions. For this gives
The conjugate root produces , whose real and imaginary parts are the same two functions (up to sign). So a conjugate pair of roots gives exactly two real solutions, which is the right count. Their Wronskian is (since ), so they are independent.
If () is a pair of complex conjugate roots of the characteristic equation, each of multiplicity , then the pair contributes the independent real solutions
For a simple pair () this is the term .
Collecting the solutions from all roots as in Theorems 4.2.1–4.2.3 always gives exactly functions, and they always form a fundamental set on .
The real part of a root controls growth or decay (), and the imaginary part controls oscillation (, , angular frequency ). If every root has negative real part, every solution dies out as ; an engineer would call the system stable. A root with positive real part means some solution grows without bound. Chapter 5 uses exactly this reading for springs and circuits.
Solve the initial-value problem , , .
Solution
- Characteristic equation. .
- Roots. So , .
- General solution. .
- Derivative. By the product rule,
- Apply the initial conditions. At , and :
- Answer. , an oscillation with angular frequency whose amplitude decays like .
- Write the characteristic polynomial by replacing with .
- Find all roots of , with multiplicities (see the helper below).
- Translate each root into solutions:
- simple real root : ;
- real root of multiplicity : ;
- simple complex pair : ;
- complex pair of multiplicity : the two functions above multiplied by .
- Check that you have exactly functions; multiply them by and add.
- For an IVP, differentiate the general solution times, substitute , and solve the linear system for .
Try the method on your own equations with the solver below. Enter the coefficients from the highest derivative down to (order up to 6) and compare its roots and general solution with what the recipe gives you.
Helper: finding the roots of a polynomial
For second-order equations the quadratic formula always works. For higher orders, finding roots is the hardest part of the method. Here are the tools you will use most.
The rational root test
Let have integer coefficients with , . If (in lowest terms) is a rational root, then divides the constant term and divides the leading coefficient .
In particular, if the leading coefficient is , every rational root is an integer that divides the constant term. This gives a short, finite list of candidates to test. (If , factor out first; that gives the root .)
Synthetic division
Once a root is found, divide by to get a polynomial of lower degree. Synthetic division does this quickly using only the coefficients. Let us divide by :
How to read it: write the root on the left and the coefficients on the top row. Bring down the first coefficient (). Multiply it by the root and write the result under the next coefficient (); add (). Repeat: , and ; then , and . The last number is the remainder; it is because is a root. The other numbers on the bottom row are the coefficients of the quotient:
Other useful tricks
- Grouping: .
- Equations in only: for , substitute to get , so and .
- Pure powers: and .
- Sign check: if all coefficients of are positive, has no positive real roots, so only negative candidates need testing. Similarly, if has only positive coefficients, has no negative real roots.
- Perfect squares: a quartic whose first and last coefficients are squares may be the square of a quadratic; see Example 4.2.6.
- If none of this works, the roots must be found numerically (for example with a computer algebra system). Exam and textbook problems are normally designed so that the tricks above suffice.
Solve with , , .
Solution
- Characteristic equation. .
- Candidates. The leading coefficient is , so rational roots are divisors of : .
- Test. . So is a root.
- Divide. The synthetic division above gives .
- Factor the quadratic. . The roots are : real and distinct.
- General solution. .
- Derivatives.
- Initial conditions at .
- Eliminate . : . : .
- Eliminate . Doubling the first gives ; adding the second: , so . Then gives , and (1) gives .
- Answer. .
Find the general solution of .
Solution
- Characteristic equation. .
- Narrow the candidates. Divisors of are candidates. For every term of is positive (, , , , ), so there are no negative roots. Test positive divisors: , .
- First division by . So .
- Test again on the cubic: . It is a root again.
- Second division. So . (Grouping also works: .)
- Roots. (double) and (so , ).
- General solution.
Check Example 4.2.5 with the solver, then change a coefficient and see how the roots and the solution change.
Solve .
Solution
- Characteristic equation. . All coefficients are positive, so there are no positive real roots; testing the negative divisors of finds no root either. So we look for another structure.
- Guess a perfect square. The first term is and the last is . Try :
- Match coefficients. gives . Check the rest: ✓ and ✓. So .
- Roots of the quadratic. . Because of the square, each root has multiplicity .
- General solution. By Theorem 4.2.3 with , , :
The characteristic polynomial of a sixth-order homogeneous equation is
Write the general solution without expanding .
Solution
- Factor : simple real root , giving .
- Factor : real root of multiplicity , giving .
- Factor : , giving and .
- Count. functions, matching the order.
- General solution.
- Writing in the final answer. The answer should be real: use and .
- For roots (zero real part) the factor is : the solution is , not .
- Using with the wrong value: for the frequency is , not or .
- For a repeated root writing . That is only one independent function; the second must be .
- Losing a root after synthetic division, or forgetting when the equation has no term (for instance has roots , and is a solution).
Exercises
In Exercises 1–8 find the general solution.
-
Answer
-
Answer
-
Answer
-
Answer
-
Answer
-
Answer
; -
Answer
; -
Answer
; - Solve , , .
Answer
- Solve , , .
Answer
- Solve , , , .
Answer
; - Find a homogeneous linear equation with constant coefficients, of the lowest possible order, that has as a solution.
Answer
The roots must include (double) and , so : .