Higher Order Differential Equations
Higher Order Linear DEs
A second order differential equation (DE) involves a function along with its first and second derivatives.
E.g. y′′+3y′−y=0
Such equations can be converted into a system of first order DEs by making the following substitutions:
→Let y1=y and y2=y′
Note: Given a third order differential equation, make the substitution y3=y′′ (and so on for higher orders).
With these substitutions, we can write an equivalent system of linear DEs:
{y1′=a11y1+a12y2y2′=a21y1+a22y2
Example
Write the equation y′′+3y′−y=0 as a system of linear differential equations.
Make the substitutions y1=y and y2=y′.
Equation 1
We want y1′ on the LHS. Take the derivative of the first substitution: y1=y ⟹ y1′=y′
We don't want any derivatives on the right-hand side (RHS), so we want to replace y′.
Since the second substitution tells us y2=y′, we can write: y1′=y2.
So the first equation of our linear system is: y1′=y2
Equation 2
Now we are looking for y2′, so we can take the derivative of our second substitution: y2=y′ ⟹ y2′=y′′.
We don't want any derivatives on the right-hand side (RHS), so we want to replace y′′.
Since we are given the equation y′′+3y′−y=0, we can solve for y′′:
y′′=y−3y′
Using the substitutions we made earlier (y1=y and y2=y′), we get the second equation of the system:
y2′=y1−3y2
Then the system is:
{y1′y2′==y2y1−3y2
We can now solve this by writing it in matrix-vector form, as in the previous section.
Example: Higher Order Linear DEs
Solve the following second order differential equation if y(0)=2 and y′(0)=−2.
y′′+4y′−12y=0
Let y1=y and let y2=y′.
Then:
y1′=y′ ⟹ y1′=y2
And solving for y′′ in the original DE, we have y′′=12y−4y′, so we can write:
y2′=y′′ ⟹ y2′=12y−4y′ ⟹ y2′=12y1−4y2
So we have the linear system:
{y1′y2′==y212y1−4y2⟺{y1′y2′==0y1+1y212y1−4y2
Write this in matrix-vector form as:
[y1′y2′]=A[0121−4][y1y2]
It can be shown that the eigenvalues and eigenvectors of A are:
λ1=−6x1=[−16]λ2=2x2=[12]
The eigenvalues are the coefficients of x (in the exponent), and we multiply each term by the corresponding eigenvector:
y⟹[y1y2]=(C1eλ1x)x1+(C2eλ2x)x2=C1e−6x[−16]+C2e2x[12]
Multiplying into each vector yields the following solution (look at each row after multiplying):
⎩⎨⎧y1y2==−C1e−6x6C1e−6x+C2e2x+2C2e2x
We can now use the initial conditions to solve for C1 and C2.
Use the earlier substitions y1=y and y2=y′, and recall the initial conditions:
- y(0)=2 ⟹ y1(0)=2
- y′(0)=−2 ⟹ y2(0)=−2
This means we want y1=2 and y2=−2 when x=0.
Plugging these into the boxed solution:
⎩⎨⎧2−2==−C1e−6(0)6C1e−6(0)+C2e2(0)+2C2e2(0)==−C1+C26C1+2C2
Solving (substitution, elimination, or row-reduction) yields: C1=−43, C2=45
Note: the solution to the original DE is a single function y. Our first substitution tells us this is simply y1.
y1=−C1e−6x+C2e2x
⟹y=−(−43)e−6x+45e2x
⟹y=43e−6x+45e2x
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Practice: Higher Order DEs
Solve the following second order differential equation:
y′′−5y′+4y=0