Second Order Linear Differential Equation
Last Updated :
28 May, 2024
The second-order linear differential equation involves the second derivative of function. It is crucial in many areas of physics and engineering, such as mechanical vibrations, electrical circuits, and heat conduction. The general form of a second-order linear differential equation is:
a(x) \frac{d^2y}{dx^2} + b(x) \frac{dy}{dx} + c(x) y = g(x)
Types of Second Order Linear Differential Equation
There are two types of second order linear differential equations: Homogeneous Equation, and Non-Homogeneous Equation.
Homogeneous Equation
A homogeneous equation in the context of differential equations can refer to two related but distinct concepts depending on the context: homogeneity in algebraic terms and homogeneity concerning differential equations.
General Form of Equation: These equations are of the form:
A(x)y" + B(x)y' + C(x)y = 0
where y'=(dy/dx) and A(x), B(x) and C(x) are functions of independent variable 'x'. For the purpose of this article we will learn how to solve the equation where all the above three functions are constants.
Properties:(I) Suppose g(x) is a solution of the homogeneous equation. We will prove that 'cg(x)' is also a solution, where c is a constant.
Ag"+Bg'+Cg = 0 (1)
Now, A(cg)" + B(cg)' + Cg
= cAg" + cBg' + Cg
= c(Ag" + Bg' + Cg)
= c(0) [From (1)]
= 0
Hence, 'cg(x)' is also a solution.
(II)
Suppose h(x) is also a solution along with g(x).We will prove that 'h(x)+g(x)' is also a solution.
Ag"+Bg'+Cg = 0 (1)
Ah"+Bh'+Ch = 0 (2)
Now, A(h+g)" + B(h+g)' + C(h+g)
= A(h"+g") + B(h'+g') + C(h+g)
= (Ah" + Bh' + Ch) + (Ag" + Bg' + Cg)
= 0 + 0 [From (1) and (2)]
= 0
(III)
From I and II we can say that the general solution of a homogeneous equation is:
'kg(x) + ch(x)'
where 'k' and 'c' are arbitrary constants.
Solving Homogeneous Equations: The basic step is of course is to 'guess' the function which satisfies the equation. But in this case I have done this for you. The first step involves assuming, rx where 'r' is some real number(may be complex also as we will see!). So,
Ar2erx + Berxr + Cerx = 0
(erx)(Ar2 + Br + C) = 0 [Taking erx common from all the terms]
Ar2 + Br + C = 0 [As erx cannot be zero]
Based on above equation 3 cases arise:
(I)
If both roots are real, say r
1
and r
2
, then the solution will be
f(x) = c1(er1x) + c2(er2x)
(II)
If the roots are complex then they must be conjugate as the coefficients of the quadratic equation are real.
Let r1 = a1 + ia2, r2 = a1 - ia2
where 'i' is iota, i.e., 'i' is square root of (-1). So, the general solution will be:
f(x) = c1er1x + c2er2x
which if you will simplify will look like:
f(x) = ea1x(k1cos(a2x) + k2sin(a2x))
[ I hope you know e
it
= cos(t) + isin(t), Also k
1
and k
2
are different from c
1
and c
2
]. I also encourage you to find the relation between k
1
and k
2
and c
1
and c
2
.
(III)
If the roots are repeated, then y = ce
rx
is not the general solution but only a particular solution. So what to do? Hence again assume,
y = p(x)erx
where 'r' is the root that you got in the above equation. By solving you will get that
p(x)=c1x + c2
Hence your general solution will look like,
y = (c1x + c2)erx
These examples will give you clarity:
Example-1:
y" + 5y' + 6y = 0
Assume y = e
rx
.Putting this in the equation, we finally get:
r2 + 5r + 6 = 0
(r+2)(r+3) = 0
r = (-2) OR r = (-3)
So,
r1 = (-2) and r2 = (-3)
Since both are real the general solution will be:
y = c1e(-2x) + c2e(-3x)
Example-2:
y" + y' + y = 0
Again assume y = r
rx
and solve for 'r'. Your 'r' will look something like this:
r1 = (-1/2) + i(-sqrt(3)/2)
and r2 = (-1/2) - i(-sqrt(3)/2)
So,
a1 = (-1/2)
and a2 = (sqrt(3)/2)
Hence the general solution will look like this:
y = e(-x/2)(c1cos(x√(3)/2) + c2sin(x√(3)/2))
Example-3:
y" + 4y' + 4y = 0
Again assume y = r
rx
and solve for 'r'. The 'particular solution will be:
y = ce2x
Assume
y = p(x)e
2x
.Putting it in the differential equation will give you:
p" = 0 which implies
p'= c2 which again implies
p = c1x + c2
Hence the general solution will be:
y = (c1x + c2)e2x
Similar Reads
Second Order Differential Equation Differential equations of the second order, in mathematics are differential equations involving the second-order derivative of a function. Second Order Differential Equation involves the second-order derivative of a function, which is critical in providing accurate models of various real-world insta
10 min read
First Order Differential Equation A first-order differential equation is a type of differential equation that involves derivatives of the first degree (first derivatives) of a function. It does not involve higher derivatives. It can generally be expressed in the form: dy/dx = f(x, y). Here, y is a function of x, and f(x, y) is a fun
9 min read
Linear Differential Equations Linear Differential Equations are differential equations where the unknown function and its derivatives appear linearly. In other words, the equation is a linear combination of the function and its derivative, with constant coefficients. Such types of equations have solutions that can be expressed a
12 min read
Legendre's Differential Equation Legendre's Differential Equation is a second-order linear differential equation that plays a crucial role in various fields of mathematical physics and engineering. This equation is named after Adrien-Marie Legendre, a prominent French mathematician known for his contributions to analysis and algebr
6 min read
Ordinary Differential Equations Ordinary Differential Equations(ODE) is the mathematical equation that describe how a function's rate of change relates to its current state. It involves a single independent variable and its derivatives.Ordinary Differential Equations Let's know more about Ordinary Differential Equations, it's type
12 min read