Learning Objectives
- Recognize homogeneous and nonhomogeneous linear differential equations.
- Determine the characteristic equation of a homogeneous linear equation.
Consider the second-order differential equation
xy′′+2x2y′+5x3y=0xy′′+2x2y′+5x3y=0.
Notice that yy and its derivatives appear in a relatively simple form. They are multiplied by functions of xx, but are not raised to any powers themselves, nor are they multiplied together. As discussed in Introduction to Differential Equations, first-order equations with similar characteristics are said to be linear. The same is true of second-order equations. Also note that all the terms in this differential equation involve either yy or one of its derivatives. There are no terms involving only functions of xx. Equations like this, in which every term contains yy or one of its derivatives, are called homogeneous.
Not all differential equations are homogeneous. Consider the differential equation
xy′′+2x2y′+5x3y=x2xy′′+2x2y′+5x3y=x2.
The x2x2 term on the right side of the equal sign does not contain yy or any of its derivatives. Therefore, this differential equation is nonhomogeneous.
definition
A second-order differential equation is linear if it can be written in the form
a2(x)y′′+a1(x)y′+a0(x)y=r(x)a2(x)y′′+a1(x)y′+a0(x)y=r(x),
where a2(x)a2(x), a1(x)a1(x), a0(x)a0(x), and r(x)r(x) are real-valued functions and a2(x)a2(x) is not identically zero. If r(x)=0r(x)=0—in other words, if r(x)=0r(x)=0 for every value of xx—the equation is said to be a homogeneous linear equation. If r(x)≠0r(x)≠0 for some value of xx, the equation is said to be a nonhomogeneous linear equation.
Interactive
Visit this website to study more about second-order linear differential equations.
In linear differential equations, yy and its derivatives can be raised only to the first power and they may not be multiplied by one another. Terms involving y2y2 or √y′√y′ make the equation nonlinear. Functions of yy and its derivatives, such as sinysiny or ey′ey′ are similarly prohibited in linear differential equations.
Note that equations may not always be given in standard form (the form shown in the definition). It can be helpful to rewrite them in that form to decide whether they are linear, or whether a linear equation is homogeneous.
Example: Classifying second-order equations
Classify each of the following equations as linear or nonlinear. If the equation is linear, determine further whether it is homogeneous or nonhomogeneous.
- y″+3x4y′+x2y2=x3y′′+3x4y′+x2y2=x3
- (sinx)y″+(cosx)y′+3y=0(sinx)y′′+(cosx)y′+3y=0
- 4t2x″+3txx′+4x=04t2x′′+3txx′+4x=0
- 5y″+y=4x55y′′+y=4x5
- (cosx)y″−siny′+(sinx)y−cosx=0(cosx)y′′−siny′+(sinx)y−cosx=0
- 8ty″−6t2y′+4ty−3t2=08ty′′−6t2y′+4ty−3t2=0
- sin(x2)y″−(cosx)y′+x2y=y′−3sin(x2)y′′−(cosx)y′+x2y=y′−3
- y″+5xy′−3y=cosyy′′+5xy′−3y=cosy
Interactive
Visit this website that discusses second-order differential equations.
try it
Classify each of the following equations as linear or nonlinear. If the equation is linear, determine further whether it is homogeneous or nonhomogeneous.
- (y″)2−y′+8x3y=0(y′′)2−y′+8x3y=0
- (sint)y″+cost−3ty′=0(sint)y′′+cost−3ty′=0
Later in this section, we will see some techniques for solving specific types of differential equations. Before we get to that, however, let’s get a feel for how solutions to linear differential equations behave. In many cases, solving differential equations depends on making educated guesses about what the solution might look like. Knowing how various types of solutions behave will be helpful.
Example: verifying a solution
Consider the linear, homogeneous differential equation
x2y″−xy′−3y=0x2y′′−xy′−3y=0.
Looking at this equation, notice that the coefficient functions are polynomials, with higher powers of xx associated with higher-order derivatives of yy. Show that y=x3y=x3 is a solution to this differential equation.
try it
Show that y=2x2y=2x2 is a solution to the differential equation
12x2y″−xy′+y=012x2y′′−xy′+y=0.
Although simply finding any solution to a differential equation is important, mathematicians and engineers often want to go beyond finding one solution to a differential equation to finding all solutions to a differential equation. In other words, we want to find a general solution. Just as with first-order differential equations, a general solution (or family of solutions) gives the entire set of solutions to a differential equation. An important difference between first-order and second-order equations is that, with second-order equations, we typically need to find two different solutions to the equation to find the general solution. If we find two solutions, then any linear combination of these solutions is also a solution. We state this fact as the following theorem.
Theorem: superposition principle
If y1(x) and y2(x) are solutions to a linear homogeneous differential equation, then the function
y(x)=c1y1(x)+c2y2(x),
where c1 and c2 are constants, is also a solution.
The proof of this superposition principle theorem is left as an exercise.
Example: verifying the superposition principle
Consider the differential equation
y′′−4y′−5y=0.
Given that e−x and e5x are solutions to this differential equation, show that 4e−x+e5x is a solution.
try it
Consider the differential equation
y″+5y′+6y=0.
Given that e−2x and e−3x are solutions to this differential equation, show that 3e−2x+6e−3x is a solution.
Watch the following video to see the worked solution to the above Try It
Unfortunately, to find the general solution to a second-order differential equation, it is not enough to find any two solutions and then combine them. Consider the differential equation
x″+7x′+12x=0.
Both e−3t and 2e−3t are solutions (check this). However, x(t)=c1e−3y+c2(2e−3t) is not the general solution. This expression does not account for all solutions to the differential equation. In particular, it fails to account for the function e−4t, which is also a solution to the differential equation.
It turns out that to find the general solution to a second-order differential equation, we must find two linearly independent solutions. We define that terminology here.
definition
A set of functions f1(x),f2(x),…,fn(x) is said to be linearly dependent if there are constants c1,c2,…cn, not all zero, such that c1f1(x)+c2f2(x)+⋯cnfn(x)=0 for all x over the interval of interest. A set of functions that is not linearly dependent is said to be linearly independent.
In this chapter, we usually test sets of only two functions for linear independence, which allows us to simplify this definition. From a practical perspective, we see that two functions are linearly dependent if either one of them is identically zero or if they are constant multiples of each other.
First we show that if the functions meet the conditions given previously, then they are linearly dependent. If one of the functions is identically zero—say, f2(x)≡0—then choose c1=0 and c2=1, and the condition for linear dependence is satisfied. If, on the other hand, neither f1(x) nor f2(x) is identically zero, but f1(x)=Cf2(x) for some constant C, then choose c1=1C and c2=−1, and again, the condition is satisfied.
Next, we show that if two functions are linearly dependent, then either one is identically zero or they are constant multiples of one another. Assume f1(x) and f2(x) are linearly independent. Then, there are constants, c1 and c2, not both zero, such that
c1f1(x)+c2f2(x)=0
for all x over the interval of interest. Then,
c1f1(x)=−c2f2(x).
Now, since we stated that c1 and c2 can’t both be zero, assume c2≠0. Then, there are two cases: either c1=0 or c1≠0. If c1=0, then
0=−c2f2(x)0=f2(x),
so one of the functions is identically zero. Now suppose c1≠0. Then,
f1(x)=(−c2c1)f2(x)
and we see that the functions are constant multiples of one another.
theorem: linear dependence of two functions
Two functions, f1(x) and f2(x), are said to be linearly dependent if either one of them is identically zero or if f1(x)=Cf2(x) for some constant C and for all x over the interval of interest. Functions that are not linearly dependent are said to be linearly independent.
Example: testing for linear dependence
Determine whether the following pairs of functions are linearly dependent or linearly independent.
- f1(x)=x2, f2(x)=5x2
- f1(x)=sinx, f2(x)=cosx
- f1(x)=e3x, f2(x)=e−3x
- f1(x)=3x, f2(x)=3x+1
try it
Determine whether the following pairs of functions are linearly dependent or linearly independent: f1(x)=ex, f2(x)=3e3x.
If we are able to find two linearly independent solutions to a second-order differential equation, then we can combine them to find the general solution. This result is formally stated in the following theorem.
theorem: general solution to a homogeneous equation
If y1(x) and y2(x) are linearly independent solutions to a second-order, linear, homogeneous differential equation, then the general solution is given by
y(x)=c1y1(x)+c2y2(x),
wherec1 and c2 are constants.
When we say a family of functions is the general solution to a differential equation, we mean that (1) every expression of that form is a solution and (2) every solution to the differential equation can be written in that form, which makes this theorem extremely powerful. If we can find two linearly independent solutions to a differential equation, we have, effectively, found all solutions to the differential equation—quite a remarkable statement. The proof of this theorem is beyond the scope of this text.
Example: writing the general solution
If y1(t)=e3t and y2(t)=e−3t are solutions to y″−9y=0, what is the general solution?
try it
If y1(x)=e3x and y2(x)=xe3x are solutions to y″−6y′+9y=0, what is the general solution?
Candela Citations
- CP 7.3. Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 3. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/books/calculus-volume-3/pages/1-introduction. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-3/pages/1-introduction