
How to Solve Linear Differential Equations with Formula and Examples
The linear polynomial equation, which consists of derivatives of several variables is known as a linear differential equation.
The solution of a differential equation is the term that satisfies it. It can also be the case where there are no solutions or maybe infinite solutions to the differential equations.
What are Differential Equations?
Let us understand this with an example -
dx/dt denotes the instantaneous rate of change.
We will now make an assumption about the rate of changes or variations with first powers of x
dx/dt = -km
k>0 is a proportionality constant.
dx/x = -kdt……………(1)
Integrating it we get
Log = -kt + c
Where c is an arbitrary constant.
x = e^-kt+c
x = Ae^-kt
You must have seen this term in chemistry.
When we write dy/dx then y is a dependent variable and x is the independent variable. We can clearly see that the variations in y are dependent on x.
The term dy/dx denotes the rate of change of y with respect to x.
Now, we can say that an equation that involves dependent variables, independent variables, and derivatives of the dependent variable is called differential equations. It relates one or more functions and their derivatives.
Order And Degree In Differential Equations
The degree is the highest power of derivative.
Order is the highest numbered derivative
In this article, we are going to see about first-order linear differential equations.
Types of Differential Equations
Based on the approach to the solution we can classify these differential equations in several types such as
1.Ordinary/Partial,
2.Linear/Non-linear, and Homogeneous/heterogeneous.
First-order Linear Differential Equations
When there is only the term dy/dx used in the equation then it is termed as the first-order linear differential equation. The function y and its derivatives that are present in the equation are of up to first degree only. There are no products of y or any of its derivatives present and also the transcendental functions of y also do not occur.
Integrating Factor
A multiplying factor which will convert an inexact differential equation into an exact one is called the integrating factor.
∫p(x) dx = log u(x)
∴ u(x) = e^∫p(x)dx
This u(x) is also called the integrating factor.
The General Form Of Linear Differential Equations
1. dy/dx + py = q
p,q are continuous functions of x or constants
I.F = e^∫pdx
solution of this form is
y(I.F) = ∫(I.F)Q dx
2. dx/dy + px = q
p,q are continuous functions of y or constants
I.F = e^∫pdy
solution of this form is
x(Ι.F) = ∫(I.F)Q dy
Example : dy/dx + y/x = logx/x
1.First, we need to find whether it is a linear differential equation.
2.Find the type of equation it is.
we can clearly see that it is of the type
dy/dx + py = q
and p,q are functions of x
3.Identify p,q
∴ p = 1/x and q = logx/x
I(x) = e^∫p(x)dx
= e^∫1/x dx
= e^ log(x)
=x
4.solution of this form is
y(I.F) = ∫(I.F)Q dx
y(x) = ∫logx/x . x + c
∴ y(x) = ∫log(x) + c
∴ y(x) = x log x - x + c
Method for Finding a General Solution of the General First-order Linear Differential Equations.
By multiplying the integrating factor on both sides we get
[p(x)e^∫p(x)dxy - q(x)e^∫p(x)dx]dx + e^∫p(x)dxdy = 0
rewriting above equation in this form
e^∫p(x)dx dy + p(x)e^∫p(x)dx . ydx = q(x)e^∫p(x)dx. dx
∴ e^∫p(x)dx. y = ∫ e^∫p(x)dx .q(x)dx + c
FAQs on Linear Differential Equations Explained with Concepts and Solutions
1. What is a linear differential equation?
A linear differential equation is a differential equation in which the unknown function and its derivatives appear only to the first power and are not multiplied together. Its general first-order form is dy/dx + P(x)y = Q(x). In higher order cases, it looks like a_n(x)yⁿ + ... + a_1(x)y' + a_0(x)y = g(x), where the coefficients depend only on the independent variable. Linear means no products like yy' or powers like y² appear.
2. What is the standard form of a first-order linear differential equation?
The standard form of a first-order linear differential equation is dy/dx + P(x)y = Q(x). Here:
- P(x) and Q(x) are functions of x,
- y is the dependent variable,
- dy/dx is the first derivative.
3. How do you solve a first-order linear differential equation?
A first-order linear differential equation is solved using the integrating factor (IF) method. The steps are:
- Write in standard form: dy/dx + P(x)y = Q(x).
- Find the integrating factor: IF = e^{∫P(x)dx}.
- Multiply the whole equation by IF.
- Left side becomes d/dx (IF·y).
- Integrate both sides and solve for y.
4. What is the integrating factor in linear differential equations?
The integrating factor is a function used to make a first-order linear differential equation directly integrable. It is given by IF = e^{∫P(x)dx} for the equation dy/dx + P(x)y = Q(x). Multiplying the equation by the integrating factor converts the left-hand side into the derivative of a product, simplifying the solution process.
5. What is the general solution of a linear differential equation?
The general solution of a linear differential equation is the complete family of solutions containing arbitrary constants. For example, solving dy/dx + y = 0 gives y = Ce^{-x}, where C is an arbitrary constant. In higher-order linear differential equations, the general solution contains as many constants as the order of the equation.
6. What is the difference between linear and non-linear differential equations?
The main difference is that a linear differential equation has the dependent variable and its derivatives only to the first power, while a non-linear one does not.
- Linear example: dy/dx + y = x
- Non-linear example: dy/dx + y² = x
7. What is a homogeneous linear differential equation?
A homogeneous linear differential equation is a linear equation where the right-hand side is zero. Its first-order form is dy/dx + P(x)y = 0. For example, dy/dx + 2y = 0 has solution y = Ce^{-2x}. If the right-hand side is not zero, the equation is called non-homogeneous.
8. Can you give an example of solving a linear differential equation?
Yes, for dy/dx + y = e^x, the solution is y = (e^{2x}/2) + Ce^{-x}. Steps:
- P(x) = 1, so IF = e^{∫1dx} = e^x.
- Multiply equation by e^x: e^x dy/dx + e^x y = e^{2x}.
- Left side becomes d/dx (e^x y).
- Integrate: e^x y = ∫e^{2x} dx = e^{2x}/2 + C.
- Solve for y.
9. What is a second-order linear differential equation?
A second-order linear differential equation involves the second derivative and has the form a(x)y'' + b(x)y' + c(x)y = g(x). If g(x) = 0, it is homogeneous. For constant coefficients, it becomes ay'' + by' + cy = 0, which is solved using the characteristic equation.
10. What are the applications of linear differential equations?
Linear differential equations are used to model systems where change is proportional to the current state. Common applications include:
- Population growth and decay
- Electrical circuits (RL, RC circuits)
- Newton’s law of cooling
- Mechanical vibrations and motion

































