Homogeneous Differential Equations

Brown University, Applied Mathematics


Solving Homogeneous Equations

Homogeneous differential equations are the fundamental building block for all other differential equations you will be solving in APMA 33. You will recall on the previous page that we can easily write a characteristic equation to model a differential equation. In this section will will learn how to solve the most elementary types of these characteristic equations. In general, a homogeneous equation is one where the left-hand side of the equation is set equal to 0 on the right hand side of the equation. For instance, $x^2-4=0$ is a homogeneous equation, and similarly $8\frac{dY}{dt} + 14y = 0$ is a homogeneous differential equation. The specific type of homogeneous differential equation is the ordinary linear differential homogeneous equation, which will always yield a polynomial characteristic equation.

The easiest way to solve a differential equation of this type is to follow the following system:

  1. Write the characterisitic equation of the differential equation
  2. Solve the characterisitic equation for its roots
  3. Analyze the multiplicity and Real/Complex value of the root
  4. Write the general solution in terms of arbitrary constants

Characteristic Equation

Going one step further, we can simply talk about a general class of differential equations with constant coefficients by looking at their characteristic equations. Much like the big \( \texttt{D} \) operator, we will desbribe abstract differential equations with what is known as the characteristic polynomial. We will use either the Greek letter \( \lambda \) or the Latin letter "r" to write a polynomial equation that relates to a differential equation. Therefore, solving homogeneous constant coefficient equations is completely reduced to an algebraic equation. Being able to write the characteristic equation of a linear differential system will make it much easier to solve many types of differential equations. The characteristic equation is simply a set of differential operators that are abstracted from the differential equation you are given. Below is a quick derivation of how to associate the differential equation with an operator equation and then with the polynomial.

Given the differential operator applied to a function \( y(t) \) :

\[ \frac{{\text d}^2}{{\text d}t^2} \,y(t) + \frac{\text d}{{\text d}t}\,y + y . \]
We can rewrite it as
\[ \left( \texttt{D}^2 + \texttt{D} + 1\right) y , \]
which we associate with the polynomial
\[ \lambda^2 + \lambda +1 \qquad\qquad \mbox{or} \qquad\qquad r^2+r+1 . \]
And similarly
\( 3 \frac{{\text d}^3 X}{{\text d}t^3} -4 \frac{{\text d}X}{{\text d}t} +9X \)
becomes
\( \left( 3\texttt{D}^3 -4\texttt{D} + 9\right) X .\)
The corresponding characteristic polynomial becomes
\( 3\lambda^3 -4\lambda + 9 .\)

Soon enough, you will be able to look at any differential equation and write its charactistic equation very quickly. Since we can easily write polynomial equations in MuPAD, writing the characteristic equation is easy - it as simple as writing a normal polynomial equation.

Analysis of Characteristic Equation Roots

You should already know how to write the characteristic equation from a differential equation, which you learned on the previous page. Once you've written that equation, it should be a polynomial function that is set equal to zero. Now you can solve for the roots of the characteristic equation by hand or using MuPAD. These roots are characterized with the following properties:

Writing the Solution

Solutions for these kinds of linear ordinary differential equations will come in the form of \( C\,t^{m-1}\,e^{\lambda t} \) for real valued roots with multiplicity m and \( t^{m-1}e^{t\,\Re\lambda} \left( C_{1}\,\cos(\mu t)+C_{2}\,\sin{\mu t} \right) \) for complex roots of multiplicity m of the form \( \lambda = \Re \lambda + \mu{\bf j} , \) where \( \mu = \Im \lambda \) is the imaginary part of \( \lambda \) Here e is Euler's number (approximately 2.71828). A great proof for why these equations are the true solutions can be found here. The C in both general solutions are arbitrary constants. We need these because we are abstractly talking about a system of solutions for the differential equation. You will learn more about this in a few pages on this tutorial. We will multiply by \( t^{m -1} , \) where multiplicity is denoted as m because we want each root's solution to be linearly independent from each other. Multiplying by another t will always guarantee a new linearly independent solution. If you are unsure, you can try to calculate the wronskian of two solutions to check.

Using MuPAD to Solve

The following examples will illustrate how you might accomplish solving some of these homogeneous equations using MuPAD to help you with the more difficult computation. We will be using the "solve()" function as well as the other tools you have learned so far to do this.

Example 1: Solve 3y' -y =0.

 

We know that the characteristic equation is

char_eq := 3*r -1

3*r - 1

roots := solve(char_eq=0, r)

{1/3}

We know that the only root, 1/3 is real.  To check the multiplicity of the characteristic equation we can factor it

factor(char_eq)

3*r - 1

Thus the multiplicity of our root is 1.

We can now write the answer in the form:

C1*exp(roots[1]*t)

C1*exp(t/3)

Where exp() tells MuPAD to make an exponent of Euler's number e

 

 

Example 2: Solve y'' - 6y + 2y =0

 

char_eq2 := r^2-6*r+2

r^2 - 6*r + 2

roots := solve(%=0, r)

{3 - 7^(1/2), 7^(1/2) + 3}

factor(char_eq2, Full)

(r + 7^(1/2) - 3)*(r - 7^(1/2) - 3)

Where Full is tells MuPAD to accept non-integer factors

 

The final answer:

C1*exp(roots[1]*t)+C2*exp(roots[2]*t)

C1*exp(-t*(7^(1/2) - 3)) + C2*exp(t*(7^(1/2) + 3))

 

Example 3: Solve y'' -9y' +12y =0

First, write the characteristic equation:

char_eq3 := r^2 - 9*r +12

or, using the Greek letter \( \lambda \)

char_eq3 :=Symbol::lambda^2 -9*Symbol::lambda +12

\[ \lambda^2 - \lambda + 12 \]

Then write the roots of the characteristic equation and factor to check the multiplicity of the characteristic equation:

roots := solve(%=0, r)
roots := solve(%=0, Symbol::lambda)

\[ \left\{ \frac{9}{2} - \frac{\sqrt{33}}{2} , \ \frac{\sqrt{33}}{2} + \frac{9}{2} \right\} \]

With next command, we factor the characteristic polynomial. Note: 'Full' allows for non-integer factors to be accepted by MuPAD.

factor(char_eq3, Full)

 

\[ \left( \lambda + \frac{\sqrt{33}}{2} - \frac{9}{2} \right) \left( \lambda -\frac{\sqrt{33}}{2} - \frac{9}{2} \right) \]

Final solution:

C1*exp(roots[1]*t)+C2*exp(roots[2]*t)

 

Example 4: Solve y'''+4y'=0

char_eq4 := r^3 + 4*r

r^3 + 4*r

roots := solve(%=0, r)

{0, -2*I, 2*I}

factor(char_eq4, Full)

r*(r + 2*I)*(r + (- 2*I))

Final Answer:

We can factor out the real and imaginary parts of the roots using Re for real and Im for imaginary extraction

Re(roots[2])

0

Re(roots[3])

0

Im(roots[2])

-2

Im(roots[3])

2

We know that e^0 =1, so we end up with

C1*exp(roots[1]*t)+C2*cos(2*t)+C3*sin(2*t)+C4*cos(-2*t)+C4*sin(-2*t)

C1 + C2*cos(2*t) + C4*cos(2*t) + C3*sin(2*t) - C4*sin(2*t)

 

Example 5: solve 2y''''+11y'''+18y''+4y'-8y=0

char_eq5 := 2*r^4+11*r^3+18*r^2+4*r-8

2*r^4 + 11*r^3 + 18*r^2 + 4*r - 8

solve(%=0, r)

{-2, 1/2}

roots := factor(char_eq5, Full)

(2*r - 1)*(r + 2)^3

Notice that the root r=2 has multiplicity 3, so we must include the root 3 times and each time they must be linearly independent from each other, so we will multiply the 2nd result by t

and the third result by t^2

 

Final Answer:

C1*exp(roots[1]*t)+C2*exp(roots[2]*t)+C3*t*exp(roots[2]*t)+C4*t^2*exp(roots[2]*t)

C1*exp(t*(2*r - 1)) + C2*exp(t*(r + 2)^3) + C3*t*exp(t*(r + 2)^3) + C4*t^2*exp(t*(r + 2)^3)

 

Example 6: solve y''''+16y =0

char_eq6 := r^4+16

r^4 + 16

roots := solve(%=0, r)

{2^(1/2)*(- 1 - I), 2^(1/2)*(- 1 + I), 2^(1/2)*(1 - I), 2^(1/2)*(1 + I)}

factor(char_eq6, Full)

(r + 2^(1/2)*(1 + I))*(r + 2^(1/2)*(1 - I))*(r + 2^(1/2)*(- 1 + I))*(r + 2^(1/2)*(- 1 - I))

Final Answer

Root 1

re1 := Re(roots[1])

-2^(1/2)

im1:= Im(roots[1])

-2^(1/2)

Root 2

re2 := Re(roots[2])

-2^(1/2)

im2 := Im(roots[2])

2^(1/2)

Root 3

re3 := Re(roots[3])

2^(1/2)

im3 := Im(roots[3])

-2^(1/2)

Root 4

re4 := Re(roots[4])

2^(1/2)

im4 := Im(roots[4])

2^(1/2)

 

exp(re1*t)*(C2*cos(im1*t)+C3*sin(im1*t))+exp(re2*t)*(C2*cos(im2*t)+C3*sin(im2*t))+exp(re3*t)*(C2*cos(im3*t)+C3*sin(im3*t))+exp(re4*t)*(C2*cos(im4*t)+C3*sin(im4*t))

exp(2^(1/2)*t)*(C2*cos(2^(1/2)*t) + C3*sin(2^(1/2)*t)) + exp(2^(1/2)*t)*(C2*cos(2^(1/2)*t) - C3*sin(2^(1/2)*t)) + exp(-2^(1/2)*t)*(C2*cos(2^(1/2)*t) + C3*sin(2^(1/2)*t)) + exp(-2^(1/2)*t)*(C2*cos(2^(1/2)*t) - C3*sin(2^(1/2)*t))


Home

< Previous

Next >