A differential equation is an equation that involves an unknown function and its derivatives.
Mathematically, equations that contain an independent variable, a dependent variable, and the derivative of the dependent variable with respect to the independent variable are known as differential equations.
It describes how one quantity changes in relation to another — for example, how velocity (the rate of change of position) changes over time.
For example,
\frac{dy}{dx} + x = 0 .In this equation, x is the independent variable and Y is the dependent variable of x, where the derivative of the dependent one with the independent variable X.
Forms of Differential Equations
- xdy + ydx = 0
\frac{d^2y}{dx^2} + 4y = 0 y = x\frac{dy}{dx } + \frac{a}{\frac{dy}{dx}} \frac{dy}{dx} + cos(\frac{dy}{dx}) = 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, meaning the function of x and dx on one side same for y and dy on the other side, then we can say the separation of variables.
- Type 1
Let
\frac{dy}{dx} = 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.
- Type 2
\frac{dy}{dx} = f(x)g(x) Separate same functions on one side,
\int\frac{dy}{g(y)} =\int{f(x) dx} +c 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
To solve differential equations,
- Put y = vx.
- Then
\frac{dy}{dx} = v + x\frac{dv}{dx} - 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.
Working Rule
Let linear differential equation
- 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
y - n
\frac{dy}{dx} + Py1 - n = Qlet y1 - n = z
z = (1 - n)y-n
\frac{dy}{dx} = \frac{dz}{dx} Given equation becomes
\frac{dz}{dx} + (1 - n)QWhich is linear equations in z.
Here, If = e∫(1-n)Pdx
Required solution is,
z(IF) = ∫(1 - n) Q e∫(1 - n)Pdx
Solved Questions on Differential Equations
Problem 1: Solve the differential equation
Solution:
\frac{dy}{dx} = \frac{y-x}{x+y} ⇢ (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
\frac{dy}{dx} = v+x\frac{dv}{dx} ⇢ (3)From eq. (3) to eq. (1), we have
v+x\frac{dv}{dx} = \frac{vx-x}{x+vx} = \frac{v-1}{1+v} x\frac{dv}{dx} =\frac{v-1}{1+v} -v = \frac{v-1-v^2-v}{v+1} = -\frac{1+v^2}{1+v} \frac{1+v}{1+v^2} dv=-\frac{dx}{x} ∫ \frac{1+v}{1+v^2} dv=-∫\frac{dx}{x} ∫\frac{1}{1+v^2} + \frac{1}{2} ∫\frac{2v}{1+v^2} =- ∫\frac{dx}{x} After further classification, we get
tan^-1\frac{y}{x} + log(x^2+y^2) =c
Problem 2: Solve
Solution:
(x tan \frac{y}{x}-ysec^2 \frac{y}{x})dx-xsec^2 \frac{y}{x}dy=0 ⇢ (1)After differentiating, we can write above equations as,
\frac{dy}{dx} = (\frac{y}{x}sec^2\frac{y}{x}-tan\frac{y}{x})cos^2\frac{y}{x} Above equations is homogeneous. Putting y = vx
v+x\frac{dv}{dx}=(vsec^2v-tanv)cos^2v x dv/dx = v - tanv cos2v - v
Separating the variables
\frac{sec^2v}{tanv}dv=-dx/x Integrating both sides log tanv = -logx + logc
xtanv = C
From y = vx, we get
xtany/x = C
Problem 3: Solve the differential equation
Solution:
\frac{dy}{dx} + y = sinx (Given)By comparing it with
\frac{dy}{dx} + Py = Q, we get: p = 1 and Q = sinxIF =∫ e(pdx) = ex
As we know, y(IF) = ∫Q(IF)dx + c
yex = ∫ sinx ex
After integration we get
yex =
\frac{e^x}{2} (sinx-cosx) +c y = 1/2 (sinx-cosx) + c
Problem 4: Solve,
Solution:
The given equation can be written as,
\frac{dy}{dx}+\frac{y}{x} = \frac{y^2}{x}logx (Dividing by x)
\frac{dy}{dx}+\frac{y}{x}=\frac{y^2}{x}logx Now, divide thought y2
\frac{dy}{dx}\frac{1}{y^2}+\frac{1}{xy}=\frac{logx}{x} ⇢ (A)Put 1/y = v ⇢ (1)
After differentiating equation (1), we get
(\frac{-1}{y^2})\frac{dy}{dx}=(\frac{dv}{dx}) By substitution equation (A)
\frac{dv}{dx}-\frac{v}{x}=-\frac{logx}{x} This is linear with v as the dependent variables.
Here, P=
-\frac{1}{x} , Q=-\frac{logx}{x} 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
\frac{dy}{dx} = (1 + x2)(1 + y2) ⇢ (given)Integrating both sides, we get;
∫\frac{dy}{1+y^2} = ∫(1 + x2)dxtan-1y = x + x3/3 + c,