Skip to main content

Section 2.7 Higher order linear ODEs

Subsection Introduction to Higher Order

In this section, we will briefly study higher order equations. Equations appearing in applications tend to be second order. Higher order equations do appear from time to time, but generally the world around us is β€œsecond order.”
The basic results about linear ODEs of higher order are essentially the same as for second order equations, with 2 replaced by \(n\text{.}\) The important concept of linear independence is somewhat more complicated when more than two functions are involved. For higher order constant coefficient ODEs, the methods developed are also somewhat harder to apply, but we will not dwell on these complications. It is also possible to use the methods for systems of linear equations from ChapterΒ 4 to solve higher order constant coefficient equations.
Let us start with a general homogeneous linear equation
\begin{equation} y^{(n)} + p_{n-1}(x)y^{(n-1)} + \cdots + p_1(x) y' + p_0(x) y = 0 .\tag{2.7.1} \end{equation}
In other words, a linear combination of solutions to (2.7.1) is also a solution to (2.7.1). We also have the existence and uniqueness theorem for nonhomogeneous linear equations.

Subsection Linear independence

When we had two functions \(y_1\) and \(y_2\) we said they were linearly independent if one was not the multiple of the other. Same idea holds for \(n\) functions. In this case, it is easier to state as follows. The functions \(y_1\text{,}\) \(y_2\text{,}\) …, \(y_n\) are linearly independent if the equation
\begin{equation*} c_1 y_1 + c_2 y_2 + \cdots + c_n y_n = 0 \end{equation*}
has only the trivial solution \(c_1 = c_2 = \cdots = c_n = 0\text{,}\) where the equation must hold for all \(x\text{.}\) If we can solve equation with some constants where for example \(c_1 \not= 0\text{,}\) then we can solve for \(y_1\) as a linear combination of the others. If the functions are not linearly independent, they are linearly dependent.

Example 2.7.3.

Show that \(e^x, e^{2x}, e^{3x}\) are linearly independent.
Solution.
Let us give several ways to show this fact. Many textbooks (including [3] and [4]) introduce Wronskians for higher order equations, but it is harder to analyze them without tools from linear algebra (see ChapterΒ 3). Once there are more than two functions involved, there is not a nice, simple formula for the Wronskian (like \(y_1'y_2 - y_2'y_1\) for two functions) and linear algebra is required to analyze what is happening here. Instead, we will take a slightly different and more improvized approach to see why these functions are linearly independent.
Let us write down
\begin{equation*} c_1 e^x + c_2 e^{2x} + c_3 e^{3x} = 0. \end{equation*}
We use rules of exponentials and write \(z = e^x\text{.}\) Hence \(z^2 = e^{2x}\) and \(z^3 = e^{3x}\text{.}\) Then we have
\begin{equation*} c_1 z + c_2 z^2 + c_3 z^3 = 0. \end{equation*}
The left-hand side is a third degree polynomial in \(z\text{.}\) It is either identically zero, or it has at most 3 zeros. Therefore, it is identically zero, \(c_1 = c_2 = c_3 = 0\text{,}\) and the functions are linearly independent.
Let us try another way. As before we write
\begin{equation*} c_1 e^x + c_2 e^{2x} + c_3 e^{3x} = 0. \end{equation*}
This equation has to hold for all \(x\text{.}\) We divide through by \(e^{3x}\) to get
\begin{equation*} c_1 e^{-2x} + c_2 e^{-x} + c_3 = 0. \end{equation*}
As the equation is true for all \(x\text{,}\) let \(x \to \infty\text{.}\) After taking the limit we see that \(c_3 = 0\text{.}\) Hence our equation becomes
\begin{equation*} c_1 e^x + c_2 e^{2x} = 0. \end{equation*}
Rinse, repeat!
How about yet another way. We again write
\begin{equation*} c_1 e^x + c_2 e^{2x} + c_3 e^{3x} = 0. \end{equation*}
We can evaluate the equation and its derivatives at different values of \(x\) to obtain equations for \(c_1\text{,}\) \(c_2\text{,}\) and \(c_3\text{.}\) Let us first divide by \(e^{x}\) for simplicity.
\begin{equation*} c_1 + c_2 e^{x} + c_3 e^{2x} = 0. \end{equation*}
We set \(x=0\) to get the equation \(c_1 + c_2 + c_3 = 0\text{.}\) Now differentiate both sides
\begin{equation*} c_2 e^{x} + 2 c_3 e^{2x} = 0 . \end{equation*}
We set \(x=0\) to get \(c_2 + 2c_3 = 0\text{.}\) We divide by \(e^x\) again and differentiate to get \(2 c_3 e^{x} = 0\text{.}\) It is clear that \(c_3\) is zero. Then \(c_2\) must be zero as \(c_2 = -2c_3\text{,}\) and \(c_1\) must be zero because \(c_1 + c_2 + c_3 = 0\text{.}\)
There is no one best way to do it. All of these methods are perfectly valid. The important thing is to understand why the functions are linearly independent.

Checkpoint 2.7.4.

Here is the linear algebra method for after reading through that chapter. Let \(y_1 = e^x\text{,}\) \(y_2 = e^{2x}\) and \(y_3 = e^{3x}\text{.}\) Verify that
\begin{equation*} \begin{bmatrix} y_1(0) \\ y_1'(0) \\ y_1''(0) \end{bmatrix} = \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix} \quad \begin{bmatrix} y_2(0) \\ y_2'(0) \\ y_2''(0) \end{bmatrix} = \begin{bmatrix} 1 \\ 2 \\ 4 \end{bmatrix} \quad \begin{bmatrix} y_3(0) \\ y_3'(0) \\ y_3''(0) \end{bmatrix} = \begin{bmatrix} 1 \\ 3 \\ 9 \end{bmatrix} \end{equation*}
and use that to determine that these functions are linearly independent by showing that
\begin{equation*} \det \begin{bmatrix} 1 & 1 & 1 \\ 1 & 2 & 3 \\ 1 & 4 & 9 \end{bmatrix} = 2 \neq 0 \end{equation*}
so that this matrix is invertible.

Example 2.7.5.

On the other hand, the functions \(e^x\text{,}\) \(e^{-x}\text{,}\) and \(\cosh x\) are linearly dependent. Simply apply definition of the hyperbolic cosine:
\begin{equation*} \cosh x = \frac{e^x + e^{-x}}{2} \qquad \text{or} \qquad 2 \cosh x - e^x - e^{-x} = 0. \end{equation*}
This second form here is a linear combination (coefficients \(2\text{,}\) \(-1\text{,}\) and \(-1\)) of the three functions that adds to zero.

Subsection Constant coefficient higher order ODEs

When we have a higher order constant coefficient homogeneous linear equation, the song and dance is exactly the same as it was for second order. We just need to find more solutions. If the equation is \(n^{\text{th}}\) order, we need to find \(n\) linearly independent solutions. It is best seen by example.

Example 2.7.6. .

Find the general solution to
\begin{equation} y''' - 3 y'' - y' + 3y = 0 .\tag{2.7.2} \end{equation}
Solution.
Try: \(y = e^{rx}\text{.}\) We plug in and get
\begin{equation*} \underbrace{r^3 e^{rx}}_{y'''} - 3 \underbrace{r^2 e^{rx}}_{y''} - \underbrace{r e^{rx}}_{y'} + 3 \underbrace{e^{rx}}_{y} = 0 . \end{equation*}
We divide through by \(e^{rx}\text{.}\) Then
\begin{equation*} r^3 - 3 r^2 - r + 3 = 0 . \end{equation*}
The trick now is to find the roots. There is a formula for the roots of degree 3 and 4 polynomials but it is very complicated. There is no formula for higher degree polynomials. That does not mean that the roots do not exist. There are always \(n\) roots for an \(n^{\text{th}}\) degree polynomial. They may be repeated and they may be complex. Computers are pretty good at finding roots approximately for reasonable size polynomials.
A good place to start is to plot the polynomial and check where it is zero. We can also simply try plugging in. We just start plugging in numbers \(r=-2,-1,0,1,2,\ldots\) and see if we get a hit (we can also try complex numbers). Even if we do not get a hit, we may get an indication of where the root is. For example, we plug \(r=-2\) into our polynomial and get \(-15\text{;}\) we plug in \(r=0\) and get 3. That means there is a root between \(r=-2\) and \(r=0\text{,}\) because the sign changed. If we find one root, say \(r_1\text{,}\) then we know \((r-r_1)\) is a factor of our polynomial. Polynomial long division can then be used.
Another technique for guessing roots of polynomials is the Rational Roots Theorem, which says that any rational root of the polynomial must be of the form \(p/q\) where \(p\) divides the constant term of the polynomial and \(q\) divides the leading term, provided neither of them are zero. For more information on this see SectionΒ A.1. In this case, we would know that \(p\) must divide \(3\text{,}\) and \(q\) must divide \(1\text{.}\) Therefore, the only possible options here are \(\pm 1\) and \(\pm 3\text{.}\) These would be good places to start to look for rational roots.
A good strategy is to begin with \(r=0\text{,}\) \(1\text{,}\) or \(-1\text{.}\) These are easy to compute. Our polynomial has two such roots, \(r_1 = -1\) and \(r_2 = 1\text{.}\) There should be 3 roots and the last root is reasonably easy to find. The constant term in a monic
 1 
The word monic means that the coefficient of the top degree \(r^d\text{,}\) in our case \(r^3\text{,}\) is 1.
polynomial such as this is the multiple of the negations of all the roots because \(r^3 - 3 r^2 - r + 3 = (r-r_1)(r-r_2)(r-r_3)\text{.}\) So
\begin{equation*} 3 = (-r_1)(-r_2)(-r_3) = (1)(-1)(-r_3) = r_3 . \end{equation*}
You should check that \(r_3 = 3\) really is a root. Hence \(e^{-x}\text{,}\) \(e^{x}\) and \(e^{3x}\) are solutions to (2.7.2). They are linearly independent as can easily be checked, and there are 3 of them, which happens to be exactly the number we need. So the general solution is
\begin{equation*} y = C_1 e^{-x} + C_2 e^{x} + C_3 e^{3x} . \end{equation*}
Another possible way to work out this general solution is by factoring the original polynomial. Since we want to solve
\begin{equation*} r^3 - 3r^2 - r + 3 = 0, \end{equation*}
we can rewrite the polynomial as
\begin{equation*} r^2(r-3) -1(r-3) = 0 \end{equation*}
which factors as
\begin{equation*} (r^2 - 1)(r-3) = 0. \end{equation*}
Finally, using difference of two squares on the first factor gives
\begin{equation*} (r-1)(r+1)(r-3) = 0 . \end{equation*}
This gives roots of \(1\text{,}\) \(-1\text{,}\) and \(3\text{,}\) and so the same general solution as above.
Suppose we were given some initial conditions \(y(0) = 1\text{,}\) \(y'(0) = 2\text{,}\) and \(y''(0) = 3\text{.}\) Then
\begin{align*} 1 = y(0) \amp = C_1 + C_2 + C_3 , \\ 2 = y'(0) \amp = -C_1 + C_2 + 3C_3 , \\ 3 = y''(0) \amp = C_1 + C_2 + 9C_3 \text{.} \end{align*}
It is possible to find the solution by high school algebra, but it would be a pain. The sensible way to solve a system of equations such as this is to use matrix algebra, see SectionΒ 4.2 or ChapterΒ 3. For now we note that the solution is \(C_1 = -\nicefrac{1}{4}\text{,}\) \(C_2 = 1\text{,}\) and \(C_3 = \nicefrac{1}{4}\text{.}\) The specific solution to the ODE is
\begin{equation*} y = \frac{-1}{4}\, e^{-x} + e^x + \frac{1}{4}\, e^{3x} . \end{equation*}
Next, suppose that we have real roots, but they are repeated. Let us say we have a root \(r\) repeated \(k\) times. In the spirit of the second order solution, and for the same reasons, we have the solutions
\begin{equation*} e^{rx}, \quad xe^{rx}, \quad x^2 e^{rx}, \quad \ldots, \quad x^{k-1} e^{rx} . \end{equation*}
We take a linear combination of these solutions to find the general solution.

Example 2.7.7. .

Solve
\begin{equation*} y^{(4)} - 3 y''' + 3 y'' - y' = 0 . \end{equation*}
Solution.
We note that the characteristic equation is
\begin{equation*} r^4 - 3r^3 + 3r^2 -r = 0 . \end{equation*}
By inspection we note that \(r^4 - 3r^3 + 3r^2 -r = r{(r-1)}^3\text{.}\) Hence the roots given with multiplicity are \(r = 0, 1, 1, 1\text{.}\) Thus the general solution is
\begin{equation*} y = \underbrace{(C_1 + C_2 x + C_3 x^2)\, e^x}_{\text{terms coming from } r=1} + \underbrace{C_4}_{\text{from } r=0} . \end{equation*}

Example 2.7.8.

Find the general solution of
\begin{equation*} y''' + 2y'' - 5y' - 6y = 0 \end{equation*}
Solution.
The characteristic equation for this example is
\begin{equation*} r^3 + 2r^2 - 5r - 6 = 0. \end{equation*}
There is no convenient factoring by grouping or other quick formula to get to the roots here. The best hope we have is to try to guess the roots and see if we come up with anything. Once we get one root, we’ll be able to factor a term out and get down to a quadratic equation, where the quadratic formula will give us the other two roots.
The properties of polynomials tell us that all rational roots of this polynomial must be factors of \(\frac{-6}{1}\) or \(-6\text{.}\) Thus, the options are \(\pm 1,\ \pm 2\text{,}\) and \(\pm 3\text{.}\) At this point, the best bet is to start guessing and see if we can find one. Let’s start with \(1\text{.}\) Plugging this into the polynomial gives
\begin{equation*} 1^3 + 2(1)^2 - 5(1) - 6 = -8 \neq 0. \end{equation*}
Trying \(-1\) next, we get
\begin{equation*} (-1)^3 + 2(-1)^2 - 5(-1) - 6 = -1+2+5-6 = 0. \end{equation*}
Therefore, \(-1\) is as root, and so \((r+1)\) is a factor of this polynomial.
We can then use synthetic (or long) division to see that
\begin{equation*} r^3 + 2r^2 - 5r - 6 = (r+1)(r^2 + r - 6). \end{equation*}
For the quadratic, we can either use the quadratic formula, or just recognize that this factors as \((r-2)(r+3)\) to get that the characteric equation factors as
\begin{equation*} (r+1)(r-2)(r+3) = 0. \end{equation*}
Therefore, the roots are \(-1\text{,}\) \(2\) and \(-3\text{,}\) so that the general solution to the differential equation is
\begin{equation*} y(x) = C_1 e^{-x} + C_2 e^{2x}+ C_3e^{-3x}. \end{equation*}
For more information on synthetic division and finding roots of polynomials, see SectionΒ A.1.
The case of complex roots is similar to second order equations. Complex roots always come in pairs \(r = \alpha \pm i \beta\text{.}\) Suppose we have two such complex roots, each repeated \(k\) times. The corresponding solution is
\begin{equation*} ( C_0 + C_1 x + \cdots + C_{k-1} x^{k-1} ) \, e^{\alpha x} \cos (\beta x) + ( D_0 + D_1 x + \cdots + D_{k-1} x^{k-1} ) \, e^{\alpha x} \sin (\beta x) . \end{equation*}
where \(C_0\text{,}\) …, \(C_{k-1}\text{,}\) \(D_0\text{,}\) …, \(D_{k-1}\) are arbitrary constants.

Example 2.7.9.

Solve
\begin{equation*} y^{(4)} - 4 y''' + 8 y'' - 8 y' + 4y = 0 . \end{equation*}
Solution.
The characteristic equation is
\begin{align*} r^4 - 4 r^3 + 8 r^2 - 8 r + 4 \amp = 0 , \\ {(r^2-2r+2)}^2 \amp = 0 , \\ {\bigl({(r-1)}^2+1\bigr)}^2 \amp = 0 \text{.} \end{align*}
Hence the roots are \(1 \pm i\text{,}\) both with multiplicity 2. Hence the general solution to the ODE is
\begin{equation*} y = ( C_1 + C_2 x ) \, e^{x} \cos x + ( C_3 + C_4 x ) \, e^{x} \sin x . \end{equation*}
The way we solved the characteristic equation above is really by guessing or by inspection. It is not so easy in general. We could also have asked a computer or an advanced calculator for the roots.

Subsection Non-Homogeneous Equations

Just like for second order equation, we can solve higher order non-homogeneous equations. The theory is the same; if we can find any single solution to the non-homogeneous problem, then the general solution of the non-homogeneous problem is this single solution plus the general solution to the corresponding homogeneous problem. The trick comes down to finding this single solution, and undetermined coefficients is the main method here.
In using undetermined coefficients, the guesses we want to make are the same as for second order equations. The only way it really gets more complicated is that now it is possible for any exponential or trigonometric function to be a solution to the homogeneous problem, and so more things will need to be multiplied by \(x\) in order to get the appropriate guess for the non-homogeneous solution.

Example 2.7.10.

Find the general solution to
\begin{equation*} y''' + 2y'' - 5y' - 6y = 3e^{2x} + e^{4x}. \end{equation*}
Solution.
We found the general solution of the homogeneous problem in ExampleΒ 2.7.8, which is
\begin{equation*} y(x) = C_1 e^{-x} + C_2 e^{2x}+ C_3e^{-3x}. \end{equation*}
Now, to solve the non-homogeneous problem, we use the method of undetermined coefficients. Since the non-homogeneous part of the equation has terms of the form \(e^{2x}\) and \(e^{4x}\text{,}\) we would want to guess
\begin{equation*} y_p(x) = Ae^{2x} + Be^{4x}. \end{equation*}
However, \(e^{2x}\) solves the homogeneous problem, so we need to multiply it by \(x\text{,}\) making our actual guess become
\begin{equation*} y_p(x) = Axe^{2x} + Be^{4x}. \end{equation*}
In order to plug this in, we need to take three derivatives of this guess, which are
\begin{align*} y_p(x) \amp= Axe^{2x} + Be^{4x} \\ y_p'(x) \amp= Ae^{2x} + 2Axe^{2x} + 4Be^{4x} \\ y_p''(x) \amp= 4Ae^{2x} + 4Axe^{2x} + 16Be^{4x} \\ y_p'''(x) \amp= 12Ae^{2x} + 8Axe^{2x} + 64Be^{4x} \text{.} \end{align*}
By putting this into the non-homogeneous equation we want to solve, we get
\begin{align*} (12Ae^{2x} \amp+ 8Axe^{2x} + 64Be^{4x}) + 2(4Ae^{2x} + 4Axe^{2x} + 16Be^{4x})\\ \amp - 5(Ae^{2x} + 2Axe^{2x} + 4Be^{4x}) - 6(Axe^{2x} + Be^{4x} ) = 3e^{2x} + e^{4x} \text{.} \end{align*}
Simplifying the left hand side of this expression gives
\begin{equation*} 15Ae^{2x} + 70Be^{4x} = 3e^{2x} + e^{4x}. \end{equation*}
To satisfy this equation, we want to set \(A = \frac{1}{5}\) and \(B = \frac{1}{70}\text{.}\) Therefore, the general solution to the non-homogeneous problem is
\begin{equation*} y(x) = C_1 e^{-x} + C_2 e^{2x}+ C_3e^{-3x} + \frac{1}{5}xe^{2x} + \frac{1}{70}e^{4x}. \end{equation*}

Example 2.7.11.

Determine the form of the guess using undetermined coefficients for finding a particular solution of the non-homogeneous problem
\begin{equation*} y^{(9)} + y^{(8)} - 2y^{(5)} - 2y^{(4)} + y' + y = e^{x} + 3e^{-x} + \sin(x) + 2x. \end{equation*}
Solution.
To determine the guess, we need to first find the solution to the homogeneous equations. The characteristic equation of the homogeneous equation is
\begin{equation*} r^9 + r^8 - 2r^5 - 2r^4 + r + 1 = 0. \end{equation*}
We could use the root guessing method for this example, and all rational roots must be \(\pm 1\text{.}\) However, that method is not great for polynomials that are of degree higher than around 3 or 4. So, we’ll want to use some other technique to find all of the root.
If we start by grouping pairs of terms, we can rewrite this polynomial as
\begin{equation*} r^8(r+1) - 2r^4(r+1) + 1 (r+1) = 0 \end{equation*}
so that it can be rewritten as
\begin{equation*} (r+1)(r^8 - 2r^4 + 1) = 0. \end{equation*}
The second factor looks a lot like
\begin{equation*} (s-1)^2 = s^2 - 2s +1 \end{equation*}
if we take \(s = r^4\text{.}\) Since
\begin{equation*} (r^4 - 1) = (r^2 + 1)(r^2 - 1) = (r^2 + 1)(r+1)(r-1) \end{equation*}
using difference of squares twice. Thus, the entire characteristic equation can be written as
\begin{equation*} (r+1)(r^4-1)^2 = (r+1)[(r^2 + 1)(r+1)(r-1)]^2 = (r+1)^3(r-1)^2(r^2 + 1)^2. \end{equation*}
Therefore, we have a triple root at \(-1\text{,}\) a double root at \(1\text{,}\) and two copies of \((r^2 + 1)\text{,}\) which has a root of \(i\text{,}\) corresponding to solutions \(\sin(x)\) and \(\cos(x)\text{.}\) Putting all of this together, the general solution to the homogeneous equation is
\begin{equation*} y_c(x) = (C_1 + C_2x + C_3x^2)e^{-x} + (C_4 + C_5x)e^{x} + (C_6 + C_7x)\sin(x) + (C_8 + C_9x)\cos(x) . \end{equation*}
This has \(9\) unknown constants in it, which is expected from the ninth order equation.
Now, we need to figure out the appropriate guess for the non-homogeneous solution. Since the non-homogeneous part of the equation is \(e^{x} + 3e^{-x} + \sin{x} +2x\text{,}\) the base guess would be of the form
\begin{equation*} Ae^x + Be^{-x} + C\sin{x} + D\cos{x} + Ex + F \end{equation*}
because we always need to include both \(\sin(x)\) and \(\cos(x)\) whenever either of them appear. However, we need to factor in what terms show up in the homogeneous solution. For instance, the \(e^x\) term has a term with \(1\) and \(x\) in the homogeneous solution, we need to include the next one up in our guess for the solution to the non-homogeneous problem. Taking this into account for all terms gives the desired guess as
\begin{equation*} y_p(x) = Ax^2e^{x} + Bx^3e^{-x} + Cx^2\sin(x) + Dx^2\cos(x) + Ex + F. \end{equation*}
There is also an extension of variation of parameters to higher order equations. However, the fact that there are more terms in the solution means that the form of the expression is much more complicated that for second order, and is not worth looking into or trying to remember. The easier way to handle these situations using variation of parameters is by converting the higher order equation into a first order system and applying the methods there, which will be covered in SectionΒ 4.1 and SectionΒ 4.8 respectively.

Exercises Exercises

4.

Find the general solution for \(y''' + 2 y'' + 2 y' = 0\text{.}\)
Answer.
\(y = C_1 + C_2e^{-t}\cos(t) + C_3e^{-t}\sin(t)\)

6.

Suppose that a fourth order equation has a solution \(y = 2 e^{4x} x \cos x\text{.}\)
(b)
Find the initial conditions that the given solution satisfies.
Answer.
\(y(0) = 0\text{,}\) \(y'(0) = 2\text{,}\) \(y''(0) = 16\text{,}\) \(y'''(0) = 90\)

9.

Find the general solution of
\begin{equation*} y^{(4)} - y''' - 5y'' - 23y' - 20y = 0. \end{equation*}
Answer.
\(y(x) = C_1e^{4x} + C_2e^{-x} + C_3e^{-x}\cos(2x) + C_4e^{-x}\sin(2x)\)

10.

Find the general solution of
\begin{equation*} y''' - 6y'' + 13y' - 10y = 4e^x + 5e^{3x} - 20. \end{equation*}
Answer.
\(y(x) = C_1 e^{2x} + C_2e^{2x}\cos(x) + C_3e^{2x}\sin(x) - 2e^x + \frac{1}{16}e^{3x} - 2\)

11.

Find the general solution of
\begin{equation*} y''' - 3y' + 2y = 2e^{x} - e^{3x}. \end{equation*}
Answer.
\(y(x) = (C_1 + C_2x)e^{x} + C_3e^{-2x} + \frac{1}{3}x^2e^x - \frac{1}{20}e^{3x}\)

12.

Find the general solution of
\begin{equation*} y''' + 2y'' + y' + 2y = 3\cos(x) + x. \end{equation*}
Answer.
\(y(x) = C_1e^{-2x} + C_2cos(x) + C_3sin(x) - \frac{3}{10}x\cos(x) + \frac{3}{5}x\sin(x) + \frac{1}{2}x - \frac{1}{4}\)

13.

Find the general solution of
\begin{equation*} y^{(4)} + 2y'' + y = 4x\cos(x) - e^{3x} + 1 \end{equation*}
Hint: Remember, the guess needs to make sure that no terms in it solve the homogeneous equation.
Answer.
\(y(x) = (C_1 + C_2x)cos(x) + (C_3 + C_4x)sin(x) - \frac{1}{6}x^3\cos(x) + \frac{1}{2}x^2\sin(x) - \frac{1}{100}e^{3x} + 1\)

14.

Show that \(y=\cos(2t)\) is a solution to \(y^{(4)}+2y'''+9y''+8y'+20y=0\text{.}\) This tells us something about the factorization of the characteristic polynomial of this DE. Factor the characteristic polynomial completely, and solve the DE.
Answer.
\(y(t) = C_1\cos(2t) + C_2\sin(2t) + C_3e^{-t}\cos(2t) + C_3e^{-t}\sin(2t)\)

16.

Let \(f(x) = e^x - \cos x\text{,}\) \(g(x) = e^x + \cos x\text{,}\) and \(h(x) = \cos x\text{.}\) Are \(f(x)\text{,}\) \(g(x)\text{,}\) and \(h(x)\) linearly independent? If so, show it, if not, find a linear combination that works.
Answer.
No. \(f(x) - g(x) + 2h(x) = 0\)

17.

Let \(f(x) = 0\text{,}\) \(g(x) = \cos x\text{,}\) and \(h(x) = \sin x\text{.}\) Are \(f(x)\text{,}\) \(g(x)\text{,}\) and \(h(x)\) linearly independent? If so, show it, if not, find a linear combination that works.
Answer.
No. \(f(x) = 0\text{.}\)

18.

Are \(e^{x}\text{,}\) \(e^{x+1}\text{,}\) \(e^{2x}\text{,}\) \(\sin(x)\) linearly independent? If so, show it, if not find a linear combination that works.
Answer.
No. \($e^1 e^x - e^{x+1} = 0$\)

19.

Are \(x\text{,}\) \(x^2\text{,}\) and \(x^4\) linearly independent? If so, show it, if not, find a linear combination that works.
Answer.
Yes. (Hint: How many roots can a polynomial have?)

20.

Are \(e^x\text{,}\) \(xe^x\text{,}\) and \(x^2e^x\) linearly independent? If so, show it, if not, find a linear combination that works.
Answer.
Yes. Factor out an \(e^x\) first.

21.

Are \(\sin(x)\text{,}\) \(x\text{,}\) \(x\sin(x)\) linearly independent? If so, show it, if not find a linear combination that works.
Answer.
Yes. (Hint: First note that \(\sin(x)\) is bounded. Then note that \(x\) and \(x\sin(x)\) cannot be multiples of each other.)

22.

Show that \(\{e^t, te^t, e^{-t}, te^{-t}\}\) is a linearly independent set.
Answer.
Hint: Try to find the \(t\) value when they match, and determine that it can’t be all \(t\text{.}\)

23.

Solve \(1001y'''+3.2y''+\pi y'-\sqrt{4} y = 0\text{,}\) \(y(0)=0\text{,}\) \(y'(0) = 0\text{,}\) \(y''(0) = 0\text{.}\)
Answer.
\(y=0\text{.}\)

24.

Could \(y=t^2\cos t\) be a solution of a homogeneous DE with constant real coefficients? If so, give the minimum possible order of such a DE, and state which functions must also be solutions. If not, explain why this is impossible.
Answer.
Yes. Order 6. \(\cos(t)\text{,}\) \(t\cos(t)\text{,}\) \(\sin(t)\text{,}\) \(t\sin(t)\text{,}\) \(t^2\sin(t)\)

25.

Find a linear DE with constant real coefficients whose general solution is
\begin{equation*} y=c_1e^{2t}+ c_2e^{-t}\cos(4t) + c_3e^{-t}\sin(2t), \end{equation*}
or explain why there is no such thing.
Answer.
Not possible.

26.

Find a linear DE with constant real coefficients such that \(y=xe^{-2x}\sin(3x)\) is a solution.
Answer.
\(y^{(4)} + 8y''' + 42y'' + 104y' + 169y = 0\)

27.

Find a linear DE with constant real coefficients of minimal order such that \(y=\cos(x)\text{,}\) \(y=\sin(x)\text{,}\) \(y=e^x\) are solutions.
Answer.
\(y'''-y''+y'-y=0\)

28.

Find a linear DE with constant real coefficients of minimal order such that \(y=\cos(x)\text{,}\) \(y=\sin(2x)\text{,}\) \(y=e^{3x}\) are solutions.
Answer.
\(y^{(5)} - 3y^{(4)} + 5y^{(3)} - 15y'' + 4y' - 12y = 0\)

29.

Find a homogeneous DE with general solution
\begin{equation*} y=c_1e^t+ c_2e^{-t}+ c_3\cos t+ c_4\sin t + c_5te^t+ c_6te^{-t}+ c_7t\cos t+ c_8t\sin t. \end{equation*}
Answer.
\(y^{(8)} - 2y^{(4)} + y = 0\)