A second-order differential equation is an equation in which the highest derivative of the dependent variable with respect to the independent variable is of order two. The general second-order ordinary differential equation has the form:
p(x,y)dx2d2y+q(x,y)dxdy+r(x,y)y=g(x,y)
A linear second-order differential equation takes the form:
p(x)dx2d2y+q(x)dxdy+r(x)y=g(x)(7.12)
where p(x), q(x), r(x), and g(x) are continuous functions of x or constants in a given interval, and p(x) is not identically zero.
If g(x)=0, the differential equation is called homogeneous. If g(x)=0, it is called non-homogeneous.
Example 1
Classify each of the following differential equations as homogeneous or non-homogeneous:
(a) dx2d2y−y=0
(b) dx2d2y+2xdxdy+y=2sinx
(c) xy′′+xy′=3
(d) y′′+5y′−4y=5x
(e) x2y′′′+y′′−exy′=1
(f) dx2d2y−sinxdxdy+cosxy=3
Solution:
(a) Homogeneous (g(x)=0)
(b) Non-homogeneous (g(x)=2sinx=0)
(c) Non-homogeneous (g(x)=3=0)
(d) Non-homogeneous (g(x)=5x=0)
(e) Non-homogeneous (g(x)=1=0)
(f) Non-homogeneous (g(x)=3=0)
Characteristic equation of a second-order homogeneous differential equation
Consider a second-order homogeneous differential equation with constant coefficients:
a2y′′+a1y′+a0y=0(7.13)
where a2, a1, and a0 are constants.
Assume a solution of the form y=eλx, where λ is a constant.
Then, y′=λeλx and y′′=λ2eλx.
Substituting these into equation (7.13) gives:
a2λ2eλx+a1λeλx+a0eλx=0
eλx(a2λ2+a1λ+a0)=0
Since eλx=0, we have:
a2λ2+a1λ+a0=0(7.14)
Equation (7.14) is called the characteristic equation or auxiliary equation.
Example 2
Write the characteristic equation for each of the following differential equations:
(a) y′′+6y′−8y=0
(b) dx2d2y−2dxdy+y=0
(c) y′′−9y=0
(d) 2dx2d2y+dxdy−y=0
Solution:
(a) λ2+6λ−8=0
(b) λ2−2λ+1=0
(c) λ2−9=0
(d) 2λ2+λ−1=0
Roots of characteristic equations and solutions to homogeneous differential equations
Consider the second-order homogeneous differential equation a2y′′+a1y′+a0y=0, whose characteristic equation is a2λ2+a1λ+a0=0. The roots of the characteristic equation determine the solution of the differential equation. Using the quadratic formula, the roots are:
λ=2a2−a1±a12−4a2a0
Three cases are considered:
Case 1: Distinct real roots
If a12−4a2a0>0, there are two distinct real roots, λ1 and λ2. The linearly independent solutions are y1=eλ1x and y2=eλ2x. The general solution is:
y=Aeλ1x+Beλ2x
where A and B are arbitrary constants.
Case 2: Repeated real roots
If a12−4a2a0=0, there are two equal real roots, λ1=λ2=λ. The solutions y1=eλx and y2=eλx are not linearly independent.
A second linearly independent solution is found using reduction of order. Let y2=xeλx. The general solution is:
y=Aeλx+Bxeλx=eλx(A+Bx)
Case 3: Conjugate complex roots
If a12−4a2a0<0, there are two conjugate complex roots, λ1=α+iβ and λ2=α−iβ, where i=−1.
The linearly independent solutions are e(α+iβ)x and e(α−iβ)x. Using Euler's formula (eiθ=cosθ+isinθ), we can rewrite the general solution as:
y=eαx(Acos(βx)+Bsin(βx))
where A and B are arbitrary constants.
Example 1
Solve each of the following differential equations:
(a) dx2d2y+2dxdy−15y=0
(b) y′′−4y′+4y=0; y(0)=4 and y′(0)=10
(c) dx2d2y−6dxdy+25y=0
Solution:
(a) The characteristic equation is λ2+2λ−15=0. Factoring gives (λ+5)(λ−3)=0. The roots are λ1=3 and λ2=−5. The general solution is:
y=c1e3x+c2e−5x
(b) The characteristic equation is λ2−4λ+4=0, or (λ−2)2=0. The repeated root is λ=2. The general solution is:
y=e2x(A+Bx)
Using the initial conditions:
y(0)=4: 4=e0(A+B(0))⇒A=4
y′(x)=2e2x(A+Bx)+Be2x
y′(0)=10: 10=2(4)+B⇒B=2
The particular solution is y=e2x(4+2x).
(c) The characteristic equation is λ2−6λ+25=0. Using the quadratic formula:
λ=26±(−6)2−4(1)(25)=26±36−100=26±−64=3±4i
The roots are λ=3±4i. The general solution is:
y=e3x(Acos(4x)+Bsin(4x))
Example 2
Solve the boundary-value problem dθ2d2x+4dθdx+29x=0; x(0)=4 and x′(π/2)=−7e−π.
Solution:
The characteristic equation is λ2+4λ+29=0. Using the quadratic formula: