How to solve Differential Equations?
Last Updated :
17 Nov, 2022
Equations that have an independent variable, as well as the dependent variable and the derivative of the dependent variable with respect to the independent variable, are known as differential equations. Those differential equations which contain a single independent variable are called ordinary differential equations and which have more than one independent variable and their partial derivative are called partial differential equations.
In this equation, X is the independent variable and Y is the dependent variable of x, where derivative of dependent one with independent variable X.
Forms of Differential Equations
- xdy + ydx = 0
Solving differential equations
There are different ways of solving differential equations. They are the variable separation methods, homogeneous differential equations, linear differential equations, etc. Let’s learn each of the methods in detail,
By variable separation method
In the equation, if it is possible to get all the same functions on one side mean function of x and dx on one side same for y and dy on the other side, then we can say separation of a variable.
Let = f(x)
Now separate all function of x and dx on one side,
dy = f(x)dx
Now, integrating both sides,
∫dy =∫f(x)dx
y = ∫f(x)
Which is the required solution, where c is an arbitrary constant.
Separate same functions on one side,
Where c is arbitrary constant.
By Homogeneous differential equations
A differential equation in x and y is said to be a homogeneous equation if it can be put in form of, where f1(x, y) and f2(x, y) are of same in degree in x and y. Hence, both the functions are homogeneous in degrees of x and y.
To solve differential equations,
- Put y = vx.
- Then
- Separate the variables v and x, and integrate.
- Substitute v from y = vx.
The required solution was obtained.
By linear differential equations
A differential equation is said to be linear if the dependent variable and its differential coefficients occur only in the first degree and are not multiplied together.
, where P and Q are constants or functions of x only, is called a differential equation of first order. Similarly, , where P and Q are constants or functions of y only, is called a linear differential equation of first order.
Working Rule
Let linear differential equation + Py = Q
- Identify the P and Q from given equations
- Find integrating factor (IF) i.e. e∫pdx
- Solution is given by y(IF) =∫ Q(IF)dx + c
- Special case: Bernoulli’s Equation
An equation of the form where P and Q are functions of x only and n ≠0, 1 is known as Bernoulli’s differential equation. It is easy to reduce the equation into linear form as below by dividing both sides by yn,
y – n + Py1 – n = Q
let y1 – n = z
z = (1 – n)y-n
Given equation becomes + (1 – n)Q
Which is linear equations in z.
Here, If = e∫(1-n)Pdx
Required solution is,
z(IF) = ∫(1 – n) Q e∫(1 – n)Pdx
Sample Problems
Problem 1: Solve the differential equation
Solution:
⇢ (1)
Which is a homogeneous differential equation as function y – x and x + y is of degree of 1.
Put y = vx ⇢ (2)
Differentiate eq(2), we get
⇢ (3)
From eq. (3) to eq. (1), we have
After further classification, we get
Problem 2: Solve
Solution:
⇢ (1)
After differentiating, we can write above equations as,
Above equations is homogeneous. Putting y = vx
x dv/dx = v – tanv cos2v – v
Separating the variables
Integrating both sides log tanv = -logx + logc
xtanv = C
From y = vx, we get
xtany/x = C
Problem 3: Solve the differential equation +y = sinx
Solution:
+ y = sinx (Given)
By comparing it with + Py = Q, we get: p = 1 and Q = sinx
IF =∫ e(pdx) = ex
As we know, y(IF) = ∫Q(IF)dx + c
yex = ∫ sinx ex
After integration we get
yex =
y = 1/2 (sinx-cosx) + c
Problem 4: Solve,
Solution:
The given equation can be written as,
(Dividing by x)
Now, divide thought y2
⇢ (A)
Put 1/y = v ⇢ (1)
After differentiating equation (1), we get
By substitution equation (A)
This is linear with v as the dependent variables.
Here, P=, Q=
IF = e∫Pdx =e∫(-1/x)dx =e-logx 1/x
Hence,
1/xy = (1\x)logx + 1\x + C
Problem 5: Solve the differential equation:
Solution:
dy/dx = (ex + 1)y ⇢ (given)
dy/y = (ex + 1) dx
Integrating both sides,
∫dy/y = ∫(ex + 1) dx
log|y| =ex + x + c
Problem 6: Solve The following differential equations,
- dy/y = ytan2x
- dy/dx = (1 + x2)(1 + y2)
Solution:
- dy/y = ytan2x ⇢ (given)
∫1/ydy = tan2x . dx ⇢ (separating variables)
Integrating both sides,
∫1/ydy = ∫tan2x dx
log|y| = 1/2log|sec2x| + c
- = (1 + x2)(1 + y2) ⇢ (given)
Integrating both sides, we get;
= ∫(1 + x2)dx
tan-1y = x + x3/3 + c,
Share your thoughts in the comments
Please Login to comment...