Showing posts with label calculus. Show all posts
Showing posts with label calculus. Show all posts

Saturday, December 13, 2025

25.12 - More Solved Examples on Linear Differential equations

In the previous section, we saw some solved examples on the solution of linear differential equations. In this section, we will see a few more solved examples.

Solved example 25.71
Find the general solution of the differential equation $\boldsymbol{y dx~+~\left(x - y^2 \right)dy~=~0}$.
Solution
:
1. The given differential equation is:
$\small{y dx~+~\left(x - y^2 \right)dy~=~0}$

This can be rearranged as: $\small{\frac{dy}{dx}~=~\frac{y}{y^2 - x}}$

It is not a linear form. So we rearrange in another way: $\small{\frac{dx}{dy}~=~\frac{y^2 - x}{y}}$

$\small{\Rightarrow \frac{dx}{dy}~=~y~-~\left(\frac{1}{y} \right)x}$

$\small{\Rightarrow \frac{dx}{dy}~+~\left(\frac{1}{y} \right)x~=~y}$

• Here P1 = $\small{\frac{1}{y}}$ and Q1 = $\small{y}$

• P1 and Q1 must  satisfy any one of the following three conditions:
(i) Both P1 and Q1 are constants
(ii) Both P1 and Q1 are functions of y
(iii) P1 is a constant and Q1 is a function of y

• Here, both P1 and Q1 are functions of y. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}_1} \right]dy} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}_1} \right]dy}}    & {~=~}    &{\int{\left[\frac{1}{y} \right]dy}~=~\log \left|y \right|}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}_1} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log \left|y \right| \right)} ~=~\left|y \right|}    \\
\end{array}}$

3. Write the equation with independent x:
$\small{x\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q_1(I.F)}} \right]dy}}$

We get: $\small{x\left[y  \right]~=~\int{\left[y~\times~y \right]dy}~=~\int{\left[y^2 \right]dy}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\frac{y^3}{3}~+~\rm{C}}$

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{x}    & {~=~}    &{\left[\frac{y^3}{3}~+~\rm{C} \right]\frac{1}{y}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{x}    & {~=~}    &{\frac{y^2}{3}~+~\frac{{\rm{C}}}{y}}    \\
\end{array}}$

Solved example 25.72
Find the general solution of the differential equation $\boldsymbol{\left(x + 3y^2 \right)\frac{dy}{dx}~=~y~(y>0)}$.
Solution
:
1. The given differential equation is:
$\small{\left(x + 3y^2 \right)\frac{dy}{dx}~=~y~(y>0)}$

This can be rearranged as: $\small{\frac{dy}{dx}~=~\frac{y}{x + 3y^2}}$

It is not a linear form. So we rearrange in another way: $\small{\frac{dx}{dy}~=~\frac{x + 3y^2}{y}}$

$\small{\Rightarrow \frac{dx}{dy}~=~\frac{x}{y}~+~3y}$

$\small{\Rightarrow \frac{dx}{dy}~-~\left(\frac{1}{y} \right)x~=~3y}$

• Here P1 = $\small{\frac{-1}{y}}$ and Q1 = $\small{3y}$

• P1 and Q1 must  satisfy any one of the following three conditions:
(i) Both P1 and Q1 are constants
(ii) Both P1 and Q1 are functions of y
(iii) P1 is a constant and Q1 is a function of y

• Here, both P1 and Q1 are functions of y. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}_1} \right]dy} \right)}}$

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}_1} \right]dy}}    & {~=~}    &{\int{\left[\frac{-1}{y} \right]dy}~=~-\log \left|y \right|~=~\log \left|y \right|^{-1}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}_1} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log \left|y \right| \right)} ~=~\left|y \right|^{-1}~=~\frac{1}{\left|y \right|}}    \\
\end{array}}$

3. Write the equation with independent x:
$\small{x\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q_1(I.F)}} \right]dy}}$

We get: $\small{x\left[\frac{1}{y}  \right]~=~\int{\left[3y~\times~\frac{1}{y} \right]dy}~=~\int{\left[3 \right]dy}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{3y~+~\rm{C}}$

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{x}    & {~=~}    &{\left[3y~+~\rm{C} \right]y}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{x}    & {~=~}    &{3y^2~+~{\rm{C}}\,y}    \\
\end{array}}$

Solved example 25.73
Find the general solution of the differential equation $\boldsymbol{\left(1 + x^2 \right)dy~+~2xy\,dx~=~\cot x\,dx~~\left(x\ne0 \right)}$.
Solution
:
1. The given differential equation is:
$\small{\left(1 + x^2 \right)dy~+~2xy\,dx~=~\cot x\,dx~~\left(x\ne0 \right)}$

This can be rearranged as shown below:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\left(1 + x^2 \right)dy~+~2xy\,dx }    & {~=~}    &{\cot x\,dx}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\left(1 + x^2 \right)dy}    & {~=~}    &{\left(\cot x~-~2xy \right)\,dx}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{\frac{dy}{dx}}    & {~=~}    &{\frac{\cot x~-~2xy}{1 + x^2}}    \\
{~\color{magenta} 4    }    &{{\Rightarrow}}    &{\frac{dy}{dx}~+~\left(\frac{2x}{1+x^2} \right)y}    & {~=~}    &{\frac{\cot x}{1 + x^2}}    \\
\end{array}}$

• Here P = $\small{\frac{2x}{1+x^2}}$ and Q = $\small{\frac{\cot x}{1 + x^2}}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\frac{2x}{1+x^2} \right]dx}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\log\left[\left|1 + x^2 \right| \right]}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log\left[ 1 + x^2  \right] \right)}~=~1 + x^2 }    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[1 + x^2  \right]~=~\int{\left[\frac{\cot x}{1 + x^2}~\times~1 + x^2 \right]dx}~=~\int{\left[\cot x \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\log \left(\left|\sin x \right| \right)~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\log \left(\left|\sin x \right| \right)~+~\rm{C} \right]\frac{1}{1 + x^2}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{(1 + x^2)^{-1}\,\log \left(\left|\sin x \right| \right)~+~\rm{C}\,(1 + x^2)^{-1}}    \\
\end{array}}$

Solved example 25.74
For the differential equation $\boldsymbol{\frac{dy}{dx}~+~y\,\cot x~=~2x~+~x^2\cot x~~\left(x\ne0 \right)}$; y = 0 when x = $\small{\frac{\pi}{2}}$, find the particular solution satisfying the given conditions.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~+~y\,\cot x~=~2x~+~x^2\cot x~~\left(x\ne0 \right)}$

• Here P = $\small{\cot x}$ and Q = $\small{2x~+~x^2\cot x}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\cot x \right]dx}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\log\left[\left|\sin x \right| \right]}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log\left[\sin x  \right] \right)}~=~\sin x }    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[\sin x \right]~=~\int{\left[\left(2x~+~x^2\cot x \right)~\times~\sin x \right]dx}}$

$\small{\Rightarrow y\left[\sin x \right]~=~\int{\left[2x \sin x~+~x^2\,\cos x \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{2\left(\sin x~-~x\,\cos x \right)~+~\left(x^{2} - 2\right) \sin\left(x\right) + 2x \cos\left(x\right)~+~\rm{C}}$

$\small{\Rightarrow 2 \sin x - 2x \,\cos x+ x^2 \sin x - 2 \sin x + 2x \cos x~+~\rm{C}}$

$\small{\Rightarrow  x^2 \sin x ~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[x^2 \sin x~+~\rm{C} \right]\frac{1}{\sin x}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y \sin x}    & {~=~}    &{x^2 \sin x~+~\rm{C}}    \\
\end{array}}$

6. Now we can find the particular solution.
• Given that: y = 0 when x = $\small{\frac{\pi}{2}}$
• Substituting in the general solution, we get:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y \sin x}    & {~=~}    &{x^2 \sin x~+~\rm{C}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{0}    & {~=~}    &{\left(\frac{\pi^2}{4} \right)\sin \left(\frac{\pi}{2} \right)~+~\rm{C}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{0}    & {~=~}    &{\left(\frac{\pi^2}{4} \right) \left(1 \right)~+~\rm{C}}    \\
{~\color{magenta} 4    }    &{{\Rightarrow}}    &{\rm{C}}    & {~=~}    &{(-1)\frac{\pi^2}{4}}    \\
\end{array}}$

• So the particular solution is:

$\small{y \sin x ~=~x^2\,\sin x~-~\frac{\pi^2}{4}}$

Solved example 25.75
For the differential equation $\boldsymbol{\frac{dy}{dx}~+~y\,\cot x~=~4x\,\csc x~~\left(x\ne0 \right)}$; y = 0 when x = $\small{\frac{\pi}{2}}$, find the particular solution satisfying the given conditions.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~+~y\,\cot x~=~4x\,\csc x~~\left(x\ne0 \right)}$

• Here P = $\small{\cot x}$ and Q = $\small{4x\,\csc x}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\cot x \right]dx}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\log\left[\left|\sin x \right| \right]}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log\left[\sin x  \right] \right)}~=~\sin x }    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[\sin x \right]~=~\int{\left[\left(4x\,\csc x \right)~\times~\sin x \right]dx}}$

$\small{\Rightarrow y\left[\sin x \right]~=~\int{\left[4x \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{2x^2~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[2x^2~+~\rm{C} \right]\frac{1}{\sin x}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y \sin x}    & {~=~}    &{2x^2~+~\rm{C}}    \\
\end{array}}$

6. Now we can find the particular solution.
• Given that: y = 0 when x = $\small{\frac{\pi}{2}}$
• Substituting in the general solution, we get:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y \sin x}    & {~=~}    &{2x^2~+~\rm{C}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{0}    & {~=~}    &{2\left(\frac{\pi^2}{4} \right)~+~\rm{C}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{\rm{C}}    & {~=~}    &{(-1)\frac{\pi^2}{2}}    \\
\end{array}}$

• So the particular solution is:

$\small{y \sin x ~=~2x^2~-~\frac{\pi^2}{2}}$

Solved example 25.76
Find the general solution of the differential equation $\boldsymbol{\left[\frac{e^{-2 \sqrt{x}}}{\sqrt{x}}~-~\frac{y}{\sqrt{x}} \right]\frac{dx}{dy}~=~1~~\left(x\ne0 \right)}$.
Solution
:
1. The given differential equation is:
$\small{\left[\frac{e^{-2 \sqrt{x}}}{\sqrt{x}}~-~\frac{y}{\sqrt{x}} \right]\frac{dx}{dy}~=~1~~\left(x\ne0 \right)}$

This can be rearranged as shown below:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\frac{dy}{dx}}    & {~=~}    &{\frac{e^{-2 \sqrt{x}}}{\sqrt{x}}~-~\frac{y}{\sqrt{x}}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\frac{dy}{dx}~+~\frac{y}{\sqrt{x}}}    & {~=~}    &{\frac{e^{-2 \sqrt{x}}}{\sqrt{x}}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{\frac{dy}{dx}~+~\left(\frac{1}{\sqrt{x}} \right)y}    & {~=~}    &{\frac{e^{-2 \sqrt{x}}}{\sqrt{x}}}    \\
\end{array}}$

• Here P = $\small{\frac{1}{\sqrt{x}}}$ and Q = $\small{\frac{e^{-2 \sqrt{x}}}{\sqrt{x}}}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\frac{1}{\sqrt{x}} \right]dx}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{2 \sqrt{x}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(2 \sqrt{x} \right)} }    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[e^{\left(2 \sqrt{x} \right)}  \right]~=~\int{\left[\frac{e^{-2 \sqrt{x}}}{\sqrt{x}}~\times~e^{\left(2 \sqrt{x} \right)} \right]dx}~=~\int{\left[\frac{1}{\sqrt{x}} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{2 \sqrt{x}~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[2 \sqrt{x}~+~\rm{C} \right]e^{\left(-2 \sqrt{x} \right)}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y\,e^{\left(2 \sqrt{x} \right)}}    & {~=~}    &{2 \sqrt{x}~+~\rm{C}}    \\
\end{array}}$

Solved example 25.77
Find the equation of a curve passing through the point (0,1). If the slope of the tangent to the curve at any point (x,y) is equal to the sum of the x coordinate (abscissa) and the product of the x coordinate and y coordinate of that point.
Solution
:
1. The slope of the tangent to the curve at any point (x,y) is $\small{\frac{dy}{dx}}$.
• Given that: This slope is equal to the sum of the x coordinate (abscissa) and the product of the x coordinate and y coordinate of that point.
• So we can write: $\small{\frac{dy}{dx}~=~x + xy}$
• This is the differential equation that we need to solve.

This can be rearranged as shown below:

$\small{\frac{dy}{dx}~-~(x)y~=~x}$

• Here P = $\small{-x}$ and Q = $\small{x}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[-x \right]dx}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{(-1)\frac{x^2}{2}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\frac{-x^2}{2} \right)} }    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[e^{\left(\frac{-x^2}{2} \right)}  \right]~=~\int{\left[x~\times~e^{\left(\frac{-x^2}{2} \right)} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{-e^{\left(\frac{-x^2}{2} \right)}~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[-e^{\left(\frac{-x^2}{2} \right)}~+~\rm{C} \right]\frac{1}{e^{\left(\frac{-x^2}{2} \right)}}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{\left[-e^{\left(\frac{-x^2}{2} \right)}~+~\rm{C} \right]e^{\left(\frac{x^2}{2} \right)}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{-1~+~{\rm{C}}\,e^{\left(\frac{x^2}{2} \right)} }    \\
\end{array}}$

6. Now we can find the particular solution.
• Given that: y = 1 when x = 0 because, the curve passes through (0,1)
• Substituting in the general solution, we get:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{-1~+~{\rm{C}}\,e^{\left(\frac{x^2}{2} \right)}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{1}    & {~=~}    &{-1~+~{\rm{C}}\,e^{\left(\frac{0^2}{2} \right)}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{2}    & {~=~}    &{\rm{C}}    \\
\end{array}}$

• So the particular solution is:

$\small{y ~=~-1~+~{2}\,e^{\left(\frac{x^2}{2} \right)}}$

• This is the equation of the required curve.


The link below gives a few more solved examples:

Exercise 9.5


In the next section, we will see linear differential equations.

Previous

Contents

Next 

Copyright©2025 Higher secondary mathematics.blogspot.com

Wednesday, December 10, 2025

25.11 - Solved Examples on Linear Differential Equations

In the previous section, we saw linear differential equations and the method to solve them. We saw some solved examples also. In this section, we will see a few more solved examples.

Solved example 25.62
Find the general solution of the differential equation $\boldsymbol{\frac{dy}{dx}~-~y~=~\cos x}$.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~-~y~=~\cos x}$
• Here P = −1 and Q = cos x

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, P is a constant and Q is a function of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[{\rm{-1}} \right]dx}~=~-x}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(-x \right)}}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[e^{-x} \right]~=~\int{\left[\cos x~\times~e^{\left(-x \right)} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\frac{(\sin x~-~\cos x)e^{-x}}{2}~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\frac{(\sin x~-~\cos x)e^{-x}}{2}~+~\rm{C} \right]\frac{1}{e^{-x}}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{\frac{(\sin x~-~\cos x)}{2}~+~{\rm{C}}\,e^{x}}    \\
\end{array}}$

Solved example 25.63
Find the general solution of the differential equation $\boldsymbol{\frac{dy}{dx}~+~2y~=~\sin x}$.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~+~2y~=~\sin x}$
• Here P = 2 and Q = sin x

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, P is a constant and Q is a function of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[{\rm{2}} \right]dx}~=~2x}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(2x \right)}}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[e^{2x} \right]~=~\int{\left[\sin x~\times~e^{\left(2x \right)} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\frac{(2\sin x~-~\cos x)e^{2x}}{5}~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\frac{(2\sin x~-~\cos x)e^{2x}}{5}~+~\rm{C} \right]\frac{1}{e^{2x}}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{\frac{2\sin x~-~\cos x}{5}~+~{\rm{C}}\,e^{-2x}}    \\
\end{array}}$

Solved example 25.64
Find the general solution of the differential equation $\boldsymbol{\cos^2 x \frac{dy}{dx}~+~y~=~\tan x~~\left(0\le x < \frac{\pi}{2} \right)}$.
Solution
:
1. The given differential equation is:
$\small{\cos^2 x \frac{dy}{dx}~+~y~=~\tan x~~\left(0\le x\le\frac{\pi}{2} \right)}$
Dividing both sides by $\small{\cos^2 x}$,we get:
$\small{\frac{dy}{dx}~+~\left(\sec^2 x \right) \,y~=~\left(\sec^2 x \right)\tan x~~\left(0\le x\le\frac{\pi}{2} \right)}$
• Here P = $\small{\sec^2 x}$ and Q = $\small{\left(\sec^2 x \right)\tan x}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\sec^2 x \right]dx}~=~\tan x}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\tan x \right)}}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[e^{\tan x} \right]~=~\int{\left[\left(\sec^2 x \right)\tan x~\times~e^{\left(\tan x \right)} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{e^{\left(\tan x \right)}[\tan x~-~1]~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[e^{\left(\tan x \right)}[\tan x~-~1]~+~\rm{C} \right]\frac{1}{e^{\tan x}}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{\tan x ~-~1~+~{\rm{C}}\,e^{-\tan x}}    \\
\end{array}}$

Solved example 25.65
Find the general solution of the differential equation $\boldsymbol{\frac{dy}{dx}~+~(\sec x)y~=~\tan x~~\left(0\le x < \frac{\pi}{2} \right)}$.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~+~(\sec x)y~=~\tan x~~\left(0\le x\le\frac{\pi}{2} \right)}$

• Here P = $\small{\sec x}$ and Q = $\small{\tan x}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\sec x \right]dx}~=~\log \left|\sec x~+~\tan x \right|}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log \left|\sec x~+~\tan x \right| \right)}~=~\left|\sec x~+~\tan x \right|}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[\sec x~+~\tan x \right]~=~\int{\left[\tan x~\times~(\sec x~+~\tan x) \right]dx}}$

$\small{~=~\int{\left[\sec x\,\tan x~+~\tan^2 x) \right]dx}}$

• Given that $\small{\left(0\le x\le\frac{\pi}{2} \right)}$. This is the first quadrant. Cosine and tangent are +ve. So we can discard the absolute value symbol.

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\sec x~+~\tan x~-~x~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\sec x~+~\tan x~-~x~+~\rm{C} \right]\frac{1}{\sec x +\tan x}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y(\sec x +\tan x)}    & {~=~}    &{\sec x~+~\tan x~-~x~+~\rm{C}}    \\
\end{array}}$

Solved example 25.66
Find the general solution of the differential equation $\boldsymbol{x\,\frac{dy}{dx}~+~y~-~x~+~(xy)\cot x~=~0~~\left(x\ne0 \right)}$.
Solution
:
1. The given differential equation is:
$\small{x\,\frac{dy}{dx}~+~y~-~x~+~(xy)\cot x~=~0~~\left(x\ne0 \right)}$

Dividing by x and rearranging, we get:
$\small{\frac{dy}{dx}~+~\left(\frac{1}{x} \right)y~-~1~+~(y)\cot x~=~0}$

$\small{\Rightarrow\frac{dy}{dx}~+~\left(\frac{1}{x}~+~\cot x \right)y~-~1~=~0}$

$\small{\Rightarrow \frac{dy}{dx}~+~\left(\frac{1}{x}~+~\cot x \right)y~=~1}$

• Here P = $\small{\left(\frac{1}{x}~+~\cot x \right)}$ and Q = $\small{1}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\frac{1}{x}~+~\cot x \right]dx}~=~\log \left|x \right|+\log \left|\sin x \right|}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\log\left[\left|x \right|~\times~\left|\sin x \right| \right]~=~\log\left[ \left|x\,\sin x \right| \right]}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log\left[ x\,\sin x  \right] \right)}~=~x\,\sin x }    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[x\,\sin x  \right]~=~\int{\left[1~\times~x\,\sin x \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\sin\left(x\right) - x \cos\left(x\right)~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\sin\left(x\right) - x \cos\left(x\right)~+~\rm{C} \right]\frac{1}{x\,\sin x}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{\frac{1}{x}~-~\cot x~+~\frac{\rm{C}}{x\,\sin x}}    \\
\end{array}}$

Solved example 25.67
For the differential equation $\boldsymbol{\frac{dy}{dx}~+~2y\,\tan x~=~\sin x}$; y = 0 when x = $\small{\frac{\pi}{3}}$, find the particular solution satisfying the given conditions.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~+~2y\,\tan x~=~\sin x}$

• Here P = $\small{2\tan x}$ and Q = $\small{\sin x}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[2\tan x \right]dx}~=~(-2)\log \left|\cos x \right|}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\log\left[\sec^2 x \right]}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log\left[\sec^2 x \right] \right)}~=~\sec^2 x}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[\sec^2 x  \right]~=~\int{\left[\sin x~\times~\sec^2 x \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\sec x~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\sec x~+~\rm{C} \right]\frac{1}{\sec^2 x}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{\cos x~+~\rm{C}\,\cos^2x}    \\
\end{array}}$

6. Now we can find the particular solution.
• Given that: y = 0 when x = $\small{\frac{\pi}{3}}$
• Substituting in the general solution, we get:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\cos x~+~\rm{C}\,\cos^2x}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{0}    & {~=~}    &{\cos \left(\frac{\pi}{3} \right)~+~\rm{C}\,\cos^2\left(\frac{\pi}{3} \right)}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{0}    & {~=~}    &{\frac{1}{2}~+~\rm{C}\,\left(\frac{1}{4} \right)}    \\
{~\color{magenta} 4    }    &{{\Rightarrow}}    &{0}    & {~=~}    &{2~+~\rm{C}}    \\
{~\color{magenta} 5    }    &{{\Rightarrow}}    &{\rm{C}}    & {~=~}    &{-2}    \\
\end{array}}$

• So the particular solution is:

$\small{y~=~\cos x~-~2\cos^2x}$

Solved example 25.68
For the differential equation $\boldsymbol{\frac{dy}{dx}~-~3y\,\cot x~=~\sin (2x)}$; y = 2 when x = $\small{\frac{\pi}{2}}$, find the particular solution satisfying the given conditions.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~-~3y\,\cot x~=~\sin (2x)}$

• Here P = $\small{-3\cot x}$ and Q = $\small{\sin (2x)}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[-3\cot x \right]dx}~=~(-3)\log \left|\sin x \right|}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\log\left[\csc^3 x \right]}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log\left[\csc^3 x \right] \right)}~=~\csc^3 x}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[\csc^3 x  \right]~=~\int{\left[\sin (2x)~\times~\csc^3 x \right]dx}}$

$\small{\Rightarrow y\left[\csc^3 x  \right]~=~\int{\left[\frac{2 \cos x}{\sin^2 x} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{-2\csc x~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[-2\csc x~+~\rm{C} \right]\frac{1}{\csc^3 x}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{-2\sin^2 x~+~\rm{C}\,\sin^3 x}    \\
\end{array}}$

6. Now we can find the particular solution.
• Given that: y = 2 when x = $\small{\frac{\pi}{2}}$
• Substituting in the general solution, we get:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{-2\sin^2 x~+~\rm{C}\,\sin^3 x}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{2}    & {~=~}    &{-2 \sin^2 \left(\frac{\pi}{2} \right)~+~\rm{C}\,\sin^3\left(\frac{\pi}{2} \right)}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{2}    & {~=~}    &{-2~+~\rm{C}}    \\
{~\color{magenta} 4    }    &{{\Rightarrow}}    &{\rm{C}}    & {~=~}    &{4}    \\
\end{array}}$

• So the particular solution is:

$\small{y~=~-2\sin^2 x~+~4\sin^3 x}$

Solved example 25.69
Find the general solution of the differential equation $\boldsymbol{(x+y)\frac{dy}{dx}~=~1}$.
Solution
:
1. The given differential equation is:

$\small{(x+y)\frac{dy}{dx}~=~1}$

• This can be rearranged as: $\small{\frac{dy}{dx}~=~\frac{1}{x+y}}$

• It is not a linear form. So we rearrange in another way: $\small{\frac{dx}{dy}~=~x+y}$

$\small{\Rightarrow \frac{dx}{dy}~-~x~=~y}$

• Here P1 = $\small{-1}$ and Q1 = $\small{y}$

• P1 and Q1 must  satisfy any one of the following three conditions:
(i) Both P1 and Q1 are constants
(ii) Both P1 and Q1 are functions of y
(iii) P1 is a constant and Q1 is a function of y

• Here, P1 is a constant and Q1 is a function of y. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}_1} \right]dy} \right)}}$

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}_1} \right]dy}}    & {~=~}    &{\int{\left[-1 \right]dy}~=~-y}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}_1} \right]dx} \right)}}    & {~=~}    &{e^{\left(-y \right)} }    \\
\end{array}}$

3. Write the equation with independent x:
$\small{x\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q_1(I.F)}} \right]dy}}$

We get: $\small{x\left[e^{\left(-y \right)}  \right]~=~\int{\left[y~\times~e^{\left(-y \right)} \right]dy}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{(-1)(y+1)e^{-y}~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{x}    & {~=~}    &{\left[(-1)(y+1)e^{-y}~+~\rm{C} \right]\frac{1}{e^{-y}}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{x}    & {~=~}    &{(-1)(y+1)~+~{\rm{C}}\,e^y}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{x+y+1}    & {~=~}    &{{\rm{C}}\,e^y}    \\
\end{array}}$

Solved example 25.70
Find the general solution of the differential equation $\boldsymbol{y dx~-~\left(x + 2y^2 \right)dy~=~0}$.
Solution
:
1. The given differential equation is:
$\small{y dx~-~\left(x + 2y^2 \right)dy~=~0}$

This can be rearranged as: $\small{\frac{dy}{dx}~=~\frac{y}{x + 2y^2}}$

It is not a linear form. So we rearrange in another way: $\small{\frac{dx}{dy}~=~\frac{x + 2y^2}{y}}$

$\small{\Rightarrow \frac{dx}{dy}~=~\left(\frac{1}{y} \right)x~+~2y}$

$\small{\Rightarrow \frac{dx}{dy}~-~\left(\frac{1}{y} \right)x~=~2y}$

• Here P1 = $\small{\frac{-1}{y}}$ and Q1 = $\small{2y}$

• P1 and Q1 must  satisfy any one of the following three conditions:
(i) Both P1 and Q1 are constants
(ii) Both P1 and Q1 are functions of y
(iii) P1 is a constant and Q1 is a function of y

• Here, both P1 and Q1 are functions of y. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}_1} \right]dy} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}_1} \right]dy}}    & {~=~}    &{\int{\left[\frac{-1}{y} \right]dy}~=~-\log \left|y \right|}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}_1} \right]dx} \right)}}    & {~=~}    &{e^{\left(-\log \left|y \right| \right)} ~=~\left|y \right|^{-1}~=~\frac{1}{\left|y \right|}}    \\
\end{array}}$

3. Write the equation with independent x:
$\small{x\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q_1(I.F)}} \right]dy}}$

We get: $\small{x\left[\frac{1}{y}  \right]~=~\int{\left[2y~\times~\frac{1}{y} \right]dy}~=~\int{\left[2 \right]dy}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{2y~+~\rm{C}}$

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{x}    & {~=~}    &{\left[2y~+~\rm{C} \right]y}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{x}    & {~=~}    &{2y^2~+~{\rm{C}}y}    \\
\end{array}}$


In the next section, we will see a few more solved examples.

Previous

Contents

Next 

Copyright©2025 Higher secondary mathematics.blogspot.com

Saturday, December 6, 2025

25.10 - Linear Differential Equations

In the previous section, we completed a discussion on the method to solve homogeneous differential equations. In this section, we will see linear differential equations.

Some basic details can be written in 3 steps:

Type I:
1. Consider the differential equation $\small{\frac{dy}{dx}~+~\rm{P}y~=~\rm{Q}}$

2. Suppose that P and Q satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

3. Then the equation written in (1), is a first order linear differential equation.

Let us see some examples:

• $\small{\frac{dy}{dx}~+~y~=~\sin x}$
   ♦ Condition  (iii) is satisfied

• $\small{\frac{dy}{dx}~+~\left(\frac{1}{x} \right)y~=~e^x}$
   ♦ Condition  (ii) is satisfied

• $\small{\frac{dy}{dx}~+~\left(\frac{1}{x\,\log x} \right)y~=~\frac{1}{x}}$
   ♦ Condition  (ii) is satisfied

Type II:
1. Consider the differential equation $\small{\frac{dx}{dy}~+~\rm{P}_1 x~=~\rm{Q}_1}$

2. Suppose that P1 and Q1 satisfy any one of the following three conditions:
(i) Both P1 and Q1 are constants
(ii) Both P1 and Q1 are functions of y
(iii) P1 is a constant and Q1 is a function of y

3. Then the equation written in (1), is a first order linear differential equation.

Let us see some examples:

• $\small{\frac{dx}{dy}~+~x~=~\cos y}$
   ♦ Condition  (iii) is satisfied

• $\small{\frac{dx}{dy}~+~\left(\frac{-2}{y} \right)x~=~y^2\;e^y}$
   ♦ Condition  (ii) is satisfied


So now we know what a first order linear differential equation is. Let us try to solve such equations:

First we will solve type I:
1. We have: $\small{\frac{dy}{dx}~+~\rm{P}y~=~\rm{Q}}$

2. Multiply both sides by a function of x, say $\small{g(x)}$.
• We get:
$\small{g(x)\,\frac{dy}{dx}~+~\rm{P}\,g(x)\,y~=~{\rm{Q}}\,g(x)}$

3. The function $\small{g(x)}$ should be such that:
$\small{{\rm{Q}}\,g(x)~=~\frac{d}{dx}\left[g(x)\,y \right]}$

4. Based on (2) and (3), we get:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{g(x)\,\frac{dy}{dx}~+~{\rm{P}}\,g(x)\,y}    & {~=~}    &{{\rm{Q}}\,g(x)}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{g(x)\,\frac{dy}{dx}~+~{\rm{P}}\,g(x)\,y}    & {~=~}    &{\frac{d}{dx}\left[g(x)\,y \right]}    \\
{~\color{magenta}    3}    &{{\Rightarrow}}    &{g(x)\,\frac{dy}{dx}~+~{\rm{P}}\,g(x)\,y}    & {~=~}    &{g(x)\,\frac{dy}{dx}~+~y\;g'(x)}    \\
{~\color{magenta}    4    }    &{{\Rightarrow}}    &{{\rm{P}}\,g(x)}    & {~=~}    &{g'(x)}    \\
{~\color{magenta}    5    }    &{{\Rightarrow}}    &{{\rm{P}}}    & {~=~}    &{\frac{g'(x)}{g(x)}}    \\
{~\color{magenta}    6    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}  &{\int{\left[\frac{g'(x)}{g(x)} \right]dx}}    \\
{~\color{magenta}    7    }    &{{\Rightarrow}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}  &{\log\left[g(x) \right]}    \\
{~\color{magenta}    8    }    &{{\Rightarrow}}    &{g(x)}    & {~=~}  &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    \\
\end{array}}$

5. So we have obtained $\small{g(x)}$.
• It is called the integrating factor (abbreviated as I.F).
• Now the equation in (2) becomes:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{g(x)\,\frac{dy}{dx}~+~{\rm{P}}\,g(x)\,y}    & {~=~}    &{{\rm{Q}}\,g(x)}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}\,\frac{dy}{dx}~+~{\rm{P}}\,e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}\,y}    & {~=~}    &{{\rm{Q}}\,e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    \\
{~\color{magenta}    3}    &{{\Rightarrow}}    &{\frac{d}{dx}\left[y\,e^{\left(\int{\left[{\rm{P}} \right]dx} \right)} \right]}    & {~=~}    &{{\rm{Q}}\,e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    \\
{~\color{magenta}    4    }    &{{\Rightarrow}}    &{y\,e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{\int{\left[{\rm{Q}}\,e^{\left(\int{\left[{\rm{P}} \right]dx} \right)} \right]dx}}    \\
\end{array}}$

• From this, we can write y.

◼ Remarks:
• The L.H.S of [(2) magenta color], is the derivative of $y\,e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}$, w.r.t x.
• In [(4) magenta color], we integrate both sides of [(3) magenta color]


The above five steps can be rewritten in an "easy to remember" form:
1. Write the given differential equation in the form:
$\small{\frac{dy}{dx}~+~{\rm{P}}y~=~\rm{Q}}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x

2. Find I.F:
I.F =$\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

5. Multiply the above result in (4), by the reciprocal of the I.F


Next, we will solve type II.
We can directly write the "easy to remember" five steps:

1. Write the given differential equation in the form:
$\small{\frac{dx}{dy}~+~{\rm{P}_1}y~=~\rm{Q}_1}$

• P1 and Q1 must satisfy any one of the following three conditions:
(i) Both P1 and Q1 are constants
(ii) Both P1 and Q1 are functions of y
(iii) P1 is a constant and Q1 is a function of y

2. Find I.F:
I.F =$\small{e^{\left(\int{\left[{\rm{P}_1} \right]dy} \right)}}$

3. Write the equation with independent x:
$\small{x\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q_1(I.F)}} \right]dy}}$

4. Do the integration in the R.H.S, and add the constant of integration.

5. Multiply the above result in (4), by the reciprocal of the I.F


Now we will see some solved examples:

Solved example 25.56
Find the general solution of the differential equation $\boldsymbol{\frac{dy}{dx}~+~3y~=~e^{-2x}}$.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~+~3y~=~e^{-2x}}$

• Here P = 3 and Q = $\small{e^{-2x}}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x


• Here, P is a constant and Q is a function of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[3 \right]dx}~=~ 3x}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(3x \right)}}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[e^{\left(3x \right)} \right]~=~\int{\left[e^{-2x}~\left(e^{\left(3x \right)} \right) \right]dx}~=~\int{\left[e^{x} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{e^x~+~\rm{C}}$

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[e^x~+~\rm{C} \right]\frac{1}{e^{3x}}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{e^{\left(-2x \right)}~+~{\rm{C}}e^{\left(-3x \right)}}    \\
\end{array}}$

Solved example 25.57
Find the general solution of the differential equation $\boldsymbol{\frac{dy}{dx}~+~\frac{y}{x}~=~x^2}$.
Solution
:
1. The given differential equation is:
$\small{\frac{dy}{dx}~+~\frac{y}{x}~=~x^2}$

• Here P = 1/x and Q = x2

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x


• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\frac{1}{x} \right]dx}~=~ \log x}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(\log x \right)}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{x~~\left({\rm{since}}~~e^{\log u}~=~u \right)}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[x \right]~=~\int{\left[x^2~\left(x \right) \right]dx}~=~\int{\left[x^3 \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\frac{x^4}{4}~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\frac{x^4}{4}~+~\rm{C} \right]\frac{1}{x}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{xy}    & {~=~}    &{\frac{x^4}{4}~+~{\rm{C}}}    \\
\end{array}}$

Solved example 25.58
Find the general solution of the differential equation $\boldsymbol{x\frac{dy}{dx}~+~2y~=~x^2~~(x\ne 0)}$.
Solution
:
1. The given differential equation is:
$\small{x\frac{dy}{dx}~+~2y~=~x^2~~(x\ne 0)}$
Dividing both sides by x, we get:
$\small{\frac{dy}{dx}~+~\left(\frac{2}{x} \right)y~=~x~~(x\ne 0)}$
• Here P = 2/x and Q = x

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x


• Both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\frac{2}{x} \right]dx}~=~2 \log x}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\left(2 \log x \right)}~=~e^{\left( \log x^2 \right)}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{x^2~~\left({\rm{since}}~~e^{\log u}~=~u \right)}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[x^2 \right]~=~\int{\left[x~\left(x^2 \right) \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\frac{x^4}{4}~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\frac{x^4}{4}~+~\rm{C} \right]\frac{1}{x^2}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{\frac{x^2}{4}~+~{\rm{C}}\,x^{-2}}    \\
\end{array}}$

Solved example 25.59
Find the general solution of the differential equation $\boldsymbol{x\frac{dy}{dx}~+~2y~=~x^2\,\log x}$.
Solution
:
1. The given differential equation is:
$\small{x\frac{dy}{dx}~+~2y~=~x^2\,\log x}$

Dividing both sides by x, we get:

$\small{\frac{dy}{dx}~+~\left(\frac{2}{x} \right)y~=~x\,\log x}$

• Here P = $\small{\frac{2}{x}}$ and Q = $\small{x\,\log x}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x


• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\frac{2}{x} \right]dx}~=~ 2\,\log x~=~\log\left(x^2 \right)}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\log\left(x^2 \right)}~=~x^2}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[x^2 \right]~=~\int{\left[x \log x~\left(x^2 \right) \right]dx}~=~\int{\left[x^3~\times~\log x \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\frac{x^4 \log \left|x \right|}{4}~-~\frac{x^4}{16}~+~\rm{C}}$

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\frac{x^4 \log \left|x \right|}{4}~-~\frac{x^4}{16}~+~\rm{C} \right]\frac{1}{x^2}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y}    & {~=~}    &{\frac{x^2 \log \left|x \right|}{4}~-~\frac{x^2}{16}~+~{\rm{C}}x^{-2}}    \\
\end{array}}$

Solved example 25.60
Find the general solution of the differential equation $\boldsymbol{x\,\log x \frac{dy}{dx}~+~y~=~\left(\frac{2}{x} \right)\log x}$.
Solution
:
1. The given differential equation is:
$\small{x\,\log x \frac{dy}{dx}~+~y~=~\left(\frac{2}{x} \right)\log x}$

Dividing both sides by x log x, we get:

$\small{\frac{dy}{dx}~+~\left(\frac{1}{x\,\log x} \right)y~=~\frac{2}{x^2}}$

• Here P = $\small{\frac{1}{x\,\log x}}$ and Q = $\small{\frac{2}{x^2}}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x


• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\frac{1}{x\,\log x} \right]dx}~=~\log \left|\log \left|x \right| \right|}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\log \left|\log \left|x \right| \right|}~=~\log \left|x \right|}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[\log x \right]~=~\int{\left[\frac{2}{x^2}~\left(\log \left|x \right| \right) \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\frac{-2 \log \left|x \right|~-~2}{x}~+~\rm{C}}$

• The reader must write all the steps involved in this integration.

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\frac{-2 \log \left|x \right|~-~2}{x}~+~\rm{C} \right]\frac{1}{\log \left|x \right|}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y\,\log \left|x \right|}    & {~=~}    &{\frac{-2 \log \left|x \right|~-~2}{x}~+~\rm{C}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{y\,\log \left|x \right|}    & {~=~}    &{\frac{-2 }{x}\left(\log \left|x \right|~+~1 \right)~+~\rm{C}}    \\
\end{array}}$

Solved example 25.61
For the differential equation $\boldsymbol{\left(1 +x^2 \right) \frac{dy}{dx}~+~2xy~=~\frac{1}{1+x^2}}$; y = 0 when x = 1, find the particular solution satisfying the given conditions.
Solution
:
1. The given differential equation is:
$\small{\left(1 +x^2 \right) \frac{dy}{dx}~+~2xy~=~\frac{1}{1+x^2}}$

Dividing both sides by $\small{\left(1 +x^2 \right)}$, we get:

$\small{\frac{dy}{dx}~+~\left(\frac{2x}{1 +x^2 } \right)y~=~\frac{1}{\left(1 +x^2 \right)^2}}$

• Here P = $\small{\frac{2x}{1 +x^2 }}$ and Q = $\small{\frac{1}{\left(1 +x^2 \right)^2}}$

• P and Q must  satisfy any one of the following three conditions:
(i) Both P and Q are constants
(ii) Both P and Q are functions of x
(iii) P is a constant and Q is a function of x


• Here, both P and Q are functions of x. So it is a first order linear differential equation.

2. Finding I.F = $\small{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}$  

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{\int{\left[{\rm{P}} \right]dx}}    & {~=~}    &{\int{\left[\frac{2x}{1 +x^2 } \right]dx}~=~\log (1+x^2)}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{e^{\left(\int{\left[{\rm{P}} \right]dx} \right)}}    & {~=~}    &{e^{\log (1+x^2)}~=~1 + x^2}    \\
\end{array}}$

3. Write the equation with independent y:
$\small{y\left[{\rm{I.F}} \right]~=~\int{\left[{\rm{Q(I.F)}} \right]dx}}$

We get: $\small{y\left[1 + x^2 \right]~=~\int{\left[\frac{1}{\left(1 +x^2 \right)^2}~\left(1 + x^2 \right) \right]dx}~=~\int{\left[\frac{1}{1 +x^2} \right]dx}}$

4. Do the integration in the R.H.S, and add the constant of integration.

We get: $\small{\tan^{-1}x~+~\rm{C}}$

5. Multiply the above result in (4), by the reciprocal of the I.F

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y}    & {~=~}    &{\left[\tan^{-1}x~+~\rm{C} \right]\frac{1}{1 + x^2}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{y\,\left(1 + x^2 \right)}    & {~=~}    &{\tan^{-1}x~+~\rm{C}}    \\
\end{array}}$

6. Now we can find the particular solution.
• Given that: y = 0 when x = 1
• Substituting in the general solution, we get:

$\small{\begin{array}{ll}{~\color{magenta}    1    }  &{{}}    &{y\,\left(1 + x^2 \right)}    & {~=~}    &{\tan^{-1}x~+~\rm{C}}    \\
{~\color{magenta} 2    }    &{{\Rightarrow}}    &{(0)\left(1 + 1^2 \right)}    & {~=~}    &{\tan^{-1}1~+~\rm{C}}    \\
{~\color{magenta} 3    }    &{{\Rightarrow}}    &{0}    & {~=~}    &{\tan^{-1}1~+~\rm{C}}    \\
{~\color{magenta} 4    }    &{{\Rightarrow}}    &{\rm{C}}    & {~=~}    &{(-1)\tan^{-1}1}    \\
{~\color{magenta} 5    }    &{{\Rightarrow}}    &{\rm{C}}    & {~=~}    &{\frac{-\pi}{4}}    \\
\end{array}}$

• So the particular solution is:

$\small{y\,\left(1 + x^2 \right)~=~\tan^{-1}x~-~\frac{\pi}{4}}$


In the next section, we will see a few more solved examples.

Previous

Contents

Next 

Copyright©2025 Higher secondary mathematics.blogspot.com

Sunday, November 16, 2025

25.9 - Solved Examples on Solution of Homogeneous Differential Equations

In the previous section, we saw the method to solve homogeneous differential equations. We also saw some solved examples. In this section, we will see a few more solved examples. 

Solved example 25.52
Show that the differential equation $\boldsymbol{x \cos\left(\frac{y}{x} \right) \,\frac{dy}{dx}~=~y \cos \left(\frac{y}{x} \right)~+~x}$ is homogeneous and solve it.
Solution
:
Part I: Showing that the given differential equation is homogeneous
1. We can rearrange the given differential equation as:
$\small{\frac{dy}{dx}~=~\frac{y \cos \left(\frac{y}{x} \right)~+~x}{x \cos\left(\frac{y}{x} \right)}}$

2. Let $\small{F(x,y)~=~\frac{y \cos \left(\frac{y}{x} \right)~+~x}{x \cos\left(\frac{y}{x} \right)}}$
• We need to show that, this is a homogeneous function of degree zero.

3. Dividing both numerator and denominator by x, we get:

$\small{F(x,y)~=~\frac{\left(\frac{y}{x} \right) \cos \left(\frac{y}{x} \right)~+~1}{\cos\left(\frac{y}{x} \right)}~=~x^0\left[g\left(\frac{y}{x} \right) \right]}$

• Here, $\boldsymbol{g\left(\frac{y}{x} \right) ~=~\frac{\left(\frac{y}{x} \right) \cos \left(\frac{y}{x} \right)~+~1}{\cos\left(\frac{y}{x} \right)}}$

4. We see that:
For the function $\small{F(x,y)}$, it is possible to write:
$\small{F(x,y)~=~x^n\left[g\left(\frac{y}{x} \right) \right]}$
   ♦ Where n is a natural number.
• So it is a homogeneous function.

• For this function, n = 0. So degree is zero.
• So the given differential equation is homogeneous.

Part II: Solving the differential equation
1. We make the substitution: $\small{\frac{y}{x}~=~v}$
Which is same as: $\small{y~=~vx}$

2. Differentiating the above equation with respect to x, we get:
$\small{\frac{dy}{dx}~=~v~+~x \frac{dv}{dx}}$

3. Substituting (1) and (2) in the given differential equation, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}    &{\frac{dy}{dx}}    & {~=~}    &{\frac{\left(\frac{y}{x} \right) \cos \left(\frac{y}{x} \right)~+~1}{\cos\left(\frac{y}{x} \right)}}    \\
{~\color{magenta}    2    }    &{{\Rightarrow}}    &{v~+~x \frac{dv}{dx}}    & {~=~}    &{\frac{\left(v \right) \cos \left(v \right)~+~1}{\cos\left(v \right)}}    \\
{~\color{magenta}    3    }    &{{\Rightarrow}}    &{x \frac{dv}{dx}}    & {~=~}    &{\frac{v \cos \left(v \right)~+~1}{\cos\left(v \right)}~-~v}    \\
{~\color{magenta}    4    }    &{{\Rightarrow}}    &{x \frac{dv}{dx}}    & {~=~}    &{\frac{v \cos \left(v \right)~+~1~-~v \cos\left(v \right)}{\cos\left(v \right)}}    \\
{~\color{magenta}    5    }    &{{\Rightarrow}}    &{x \frac{dv}{dx}}    & {~=~}    &{\frac{1}{\cos v}}    \\
{~\color{magenta}    6    }    &{{\Rightarrow}}    &{\left[\cos v \right]dv}    & {~=~}    &{\frac{dx}{x}}    \\
\end{array}}$

4. So we have separated the variables. Integrating both sides, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{\int{\left[\cos v \right]dv}}    & {~=~}    &{\int{\left[\frac{1}{x} \right]dx}}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}    &{\sin v~+~\rm{C}_1}    & {~=~}&{\log \left|x \right|~+~\rm{C}_2}    \\
{~\color{magenta} 3    }&{{\Rightarrow}}    &{\sin v}    & {~=~}&{\log \left|x \right|~+~\rm{C}_3}    \\
\end{array}}$

5. Replacing 'v', we will get the general solution:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{\sin v}    & {~=~}    &{\log \left|x \right|~+~\rm{C}_3}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}&{\sin\left(\frac{y}{x} \right)}    & {~=~}    &{\log \left|x \right|~+~\log \left|\rm{C} \right|}    \\
{~\color{magenta}    3    }&{{\Rightarrow}}&{\sin\left(\frac{y}{x} \right)}    & {~=~}    &{\log \left|\rm{C}\,x \right|}    \\
\end{array}}$

Solved example 25.53
Show that the differential equation $\boldsymbol{x \, \frac{dy}{dx}~-~y~+~x \sin \left(\frac{y}{x} \right)~=~0}$ is homogeneous and solve it.
Solution
:
Part I: Showing that the given differential equation is homogeneous

1. We can rearrange the given differential equation as:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}    &{x \, \frac{dy}{dx}~-~y~+~x \sin \left(\frac{y}{x} \right)}    & {~=~}    &{0}    \\
{~\color{magenta}    2    }    &{{\Rightarrow}}    &{x \, \frac{dy}{dx}}    & {~=~}    &{y~-~x \sin \left(\frac{y}{x} \right)}    \\
{~\color{magenta}    3    }    &{{\Rightarrow}}    &{ \frac{dy}{dx}}    & {~=~}    &{\frac{y~-~x \sin \left(\frac{y}{x} \right)}{x}}    \\
\end{array}}$

2. Let $\small{F(x,y)~=~\frac{y~-~x \sin \left(\frac{y}{x} \right)}{x}}$
• We need to show that, this is a homogeneous function of degree zero.

3. Dividing both numerator and denominator by x, we get:

$\small{F(x,y)~=~\frac{\left(\frac{y}{x} \right)~-~ \sin \left(\frac{y}{x} \right)}{1}~=~x^0\left[g\left(\frac{y}{x} \right) \right]}$

• Here, $\boldsymbol{g\left(\frac{y}{x} \right) ~=~\left(\frac{y}{x} \right)~-~ \sin \left(\frac{y}{x} \right)}$

4. We see that:
For the function $\small{F(x,y)}$, it is possible to write:
$\small{F(x,y)~=~x^n\left[g\left(\frac{y}{x} \right) \right]}$
   ♦ Where n is a natural number.
• So it is a homogeneous function.

• For this function, n = 0. So degree is zero.
• So the given differential equation is homogeneous.

Part II: Solving the differential equation
1. We make the substitution: $\small{\frac{y}{x}~=~v}$
Which is same as: $\small{y~=~vx}$

2. Differentiating the above equation with respect to x, we get:
$\small{\frac{dy}{dx}~=~v~+~x \frac{dv}{dx}}$

3. Substituting (1) and (2) in the given differential equation, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}    &{\frac{dy}{dx}}    & {~=~}    &{\left(\frac{y}{x} \right)~-~ \sin \left(\frac{y}{x} \right)}    \\
{~\color{magenta}    2    }    &{{\Rightarrow}}    &{v~+~x \frac{dv}{dx}}    & {~=~}    &{v~-~\sin v}    \\
{~\color{magenta}    3    }    &{{\Rightarrow}}    &{x \frac{dv}{dx}}    & {~=~}    &{-\sin v}    \\
{~\color{magenta}    4    }    &{{\Rightarrow}}    &{\left[\frac{1}{\sin v} \right]dv}    & {~=~}    &{-\frac{dx}{x}}    \\
\end{array}}$

4. So we have separated the variables. Integrating both sides, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{\int{\left[\frac{1}{\sin v} \right]dv}}    & {~=~}    &{(-1)\int{\left[\frac{1}{x} \right]dx}}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}    &{\log \left|\csc v~-~\cot v \right|~+~\rm{C}_1}    & {~=~}&{(-1)\log \left|x \right|~+~\rm{C}_2}    \\
{~\color{magenta} 3    }&{{\Rightarrow}}    &{\log \left|\csc v~-~\cot v \right|~+~\log \left|x \right|}    & {~=~}&{\rm{C}_2~-~\rm{C}_1}    \\
{~\color{magenta} 4    }&{{\Rightarrow}}    &{\log \left|\csc v~-~\cot v \right|~+~\log \left|x \right|}    & {~=~}&{\rm{C}_3}    \\
{~\color{magenta} 5    }&{{\Rightarrow}}    &{\log \left|(\csc v~-~\cot v)x  \right|}    & {~=~}&{\rm{C}_3}    \\
{~\color{magenta} 6    }&{{\Rightarrow}}    &{(\csc v~-~\cot v)x}    & {~=~}&{e^{\rm{C}_3}~=~\rm{C}}    \\
{~\color{magenta} 7    }&{{\Rightarrow}}    &{\frac{x(1~-~\cos v)}{\sin v}}    & {~=~}&{e^{\rm{C}_3}~=~\rm{C}}    \\
\end{array}}$

5. Replacing 'v', we will get the general solution:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{\frac{x(1~-~\cos v)}{\sin v}}    & {~=~}    &{\rm{C}}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}&{\frac{x\left[1~-~\cos \left(\frac{y}{x} \right) \right]}{\sin \left(\frac{y}{x} \right)}}    & {~=~}    &{\rm{C}}    \\
{~\color{magenta}    3    }&{{\Rightarrow}}&{x\left[1~-~\cos \left(\frac{y}{x} \right) \right]}    & {~=~}    &{\rm{C}\sin\left(\frac{y}{x} \right)}    \\
\end{array}}$

Solved example 25.54
Show that the differential equation $\boldsymbol{2y e^{x/y} dx~+~\left(y\,-\,2x e^{x/y} \right)dy~=~0}$ is homogeneous and find it's particular solution, given that, x = 0 when y = 1.
Solution
:
Part I: Showing that the given differential equation is homogeneous

1. We can rearrange the given differential equation as:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}    &{2y e^{x/y} dx~+~\left(y\,-\,2x e^{x/y} \right)dy}    & {~=~}    &{0}    \\
{~\color{magenta}    2    }    &{{\Rightarrow}}    &{2y e^{x/y} dx}    & {~=~}    &{(-1)\left(y\,-\,2x e^{x/y} \right)dy}    \\
{~\color{magenta}    3    }    &{{\Rightarrow}}    &{2y e^{x/y} dx}    & {~=~}    &{\left(2x e^{x/y}\,-\,y \right)dy}    \\
{~\color{magenta}    4    }    &{{\Rightarrow}}    &{\frac{dx}{dy}}    & {~=~}    &{\frac{2x e^{x/y}\,-\,y }{2y e^{x/y}}}    \\
\end{array}}$

• Here we write $\small{\frac{dx}{dy}}$ instead of $\small{\frac{dy}{dx}}$ because, the given differential equation involves $\small{x/y}$.

2. Let $\small{F(x,y)~=~\frac{2x e^{x/y}\,-\,y }{2y e^{x/y}}}$
• We need to show that, this is a homogeneous function of degree zero.

3. Dividing both numerator and denominator by y, we get:

$\small{F(x,y)~=~\frac{2(x/y) e^{x/y}\,-\,1 }{2 e^{x/y}}~=~y^0\left[h\left(\frac{x}{y} \right) \right]}$

• Here, $\boldsymbol{h\left(\frac{x}{y} \right) ~=~\frac{2(x/y) e^{x/y}\,-\,1 }{2 e^{x/y}}}$

4. We see that:
For the function $\small{F(x,y)}$, it is possible to write:
$\small{F(x,y)~=~y^n\left[h\left(\frac{x}{y} \right) \right]}$
   ♦ Where n is a natural number.
• So it is a homogeneous function.

• For this function, n = 0. So degree is zero.
• So the given differential equation is homogeneous.

Part II: Solving the differential equation
1. We make the substitution: $\small{\frac{x}{y}~=~u}$
Which is same as: $\small{x~=~uy}$

2. Differentiating the above equation with respect to y, we get:
$\small{\frac{dx}{dy}~=~u~+~y \frac{du}{dy}}$

3. Substituting (1) and (2) in the given differential equation, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}    &{\frac{dx}{dy}}    & {~=~}    &{\frac{2(x/y) e^{x/y}\,-\,1 }{2 e^{x/y}}}    \\
{~\color{magenta}    2    }    &{{\Rightarrow}}    &{u~+~y \frac{du}{dy}}    & {~=~}    &{\frac{2(u) e^{u}\,-\,1 }{2 e^{u}}}    \\
{~\color{magenta}    3    }    &{{\Rightarrow}}    &{u~+~y \frac{du}{dy}}    & {~=~}    &{u~-~\frac{1 }{2 e^{u}}}    \\
{~\color{magenta}    4    }    &{{\Rightarrow}}    &{y \frac{du}{dy}}    & {~=~}    &{-\frac{1 }{2 e^{u}}}    \\
{~\color{magenta}    5    }    &{{\Rightarrow}}    &{2 e^u\,du}    & {~=~}    &{-\frac{1 }{y}dy}    \\
\end{array}}$

4. So we have separated the variables. Integrating both sides, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{\int{\left[2 e^u \right]du}}    & {~=~}    &{(-1)\int{\left[\frac{1}{y} \right]dy}}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}    &{2 e^u~+~\rm{C}_1}    & {~=~}&{(-1)\log \left|y \right|~+~\rm{C}_2}    \\
{~\color{magenta} 3    }&{{\Rightarrow}}    &{2 e^u~+~\log \left|y \right|}    & {~=~}&{\rm{C}_2~-~\rm{C}_1}    \\
{~\color{magenta} 4    }&{{\Rightarrow}}    &{2 e^u~+~\log \left|y \right|}    & {~=~}&{\rm{C}}    \\
\end{array}}$

5. Replacing 'u', we will get the general solution:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{2 e^u~+~\log \left|y \right|}    & {~=~}    &{\rm{C}}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}&{2 e^{(x/y)}~+~\log \left|y \right|}    & {~=~}    &{\rm{C}}    \\
\end{array}}$

Part III: To find the particular solution
1. Given that, x = 0 when y = 1.

2. Substituting in the general solution, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{2 e^{(x/y)}~+~\log \left|y \right|}    & {~=~}    &{\rm{C}}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}&{2 e^{(0/1)}~+~\log \left(1 \right)}    & {~=~}    &{\rm{C}}    \\
{~\color{magenta}    3    }&{{\Rightarrow}}&{2 e^{(0)}~+~0}    & {~=~}    &{\rm{C}}    \\
{~\color{magenta}    4    }&{{\Rightarrow}}&{2 (1)~+~0}    & {~=~}    &{\rm{C}}    \\
{~\color{magenta}    5    }&{{\Rightarrow}}&{2}    & {~=~}    &{\rm{C}}    \\
\end{array}}$

3. So based on the result from part II, we get the particular solution as:

$\boldsymbol{2 e^{(x/y)}~+~\log \left|y \right|~=~2}$

Solved example 25.55
Show that the family of curves for which the slope of the tangent at any point (x,y) on it is $\boldsymbol{\frac{x^2 + y^2}{2xy}}$, is  given by $\boldsymbol{x^2 ~-~y^2~=~cx}$.
Solution
:
Part I: Finding the differential equation
1. We know that, the slope is same as the derivative $\small{\frac{dy}{dx}}$.

2. So based on the given information, we can write:
$\small{\frac{dy}{dx}~=~\frac{x^2 + y^2}{2xy}}$
• This is the required differential equation.

Part II: Showing that the differential equation is homogeneous

1. We have the  differential equation:
$\small{\frac{dy}{dx}~=~\frac{x^2 + y^2}{2xy}}$

2. Let $\small{F(x,y)~=~\frac{x^2 + y^2}{2xy}}$
• We need to show that, this is a homogeneous function of degree zero.

3. Dividing both numerator and denominator by $\small{x^2}$, we get:

$\small{F(x,y)~=~\frac{1 + \frac{y^2}{x^2}}{2\left(\frac{y}{x} \right)}~=~x^0\left[g\left(\frac{y}{x} \right) \right]}$

• Here, $\boldsymbol{g\left(\frac{y}{x} \right) ~=~\frac{1 + \left(\frac{y}{x} \right)^2}{2\left(\frac{y}{x} \right)}}$

4. We see that:
For the function $\small{F(x,y)}$, it is possible to write:
$\small{F(x,y)~=~x^n\left[g\left(\frac{y}{x} \right) \right]}$
   ♦ Where n is a natural number.
• So it is a homogeneous function.

• For this function, n = 0. So degree is zero.

• So the given differential equation is homogeneous.

Part III: Solving the differential equation
1. We make the substitution: $\small{\frac{y}{x}~=~v}$
Which is same as: $\small{y~=~vx}$

2. Differentiating the above equation with respect to x, we get:
$\small{\frac{dy}{dx}~=~v~+~x \frac{dv}{dx}}$

3. Substituting (1) and (2) in the given differential equation, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}    &{\frac{dy}{dx}}    & {~=~}    &{\frac{1 + \left(\frac{y}{x} \right)^2}{2\left(\frac{y}{x} \right)}}    \\
{~\color{magenta}    2    }    &{{\Rightarrow}}    &{v~+~x \frac{dv}{dx}}    & {~=~}    &{\frac{1 + \left(v \right)^2}{2\left(v \right)}~=~\frac{1}{2v}~+~\frac{v}{2}}    \\
{~\color{magenta}    3    }    &{{\Rightarrow}}    &{x \frac{dv}{dx}}    & {~=~}    &{\frac{1}{2v}~-~\frac{v}{2}~=~\frac{1}{2}\left[\frac{1}{v}~-~v \right]}    \\
{~\color{magenta}    4    }    &{{\Rightarrow}}    &{ \frac{dv}{\frac{1}{v}~-~v }}    & {~=~}    &{\frac{dx}{2x}}    \\
{~\color{magenta}    5    }    &{{\Rightarrow}}    &{\left[ \frac{1}{\frac{1}{v}~-~v } \right]dv}    & {~=~}    &{\left[ \frac{1}{2x } \right]dx}    \\
{~\color{magenta}    6    }    &{{\Rightarrow}}    &{\left[\frac{v}{1~-~v^2 } \right]dv}    & {~=~}    &{\left[ \frac{1}{2x } \right]dx}    \\
\end{array}}$

4. So we have separated the variables. Integrating both sides, we get:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{\int{\left[\frac{v}{1~-~v^2 } \right]dv}}    & {~=~}    &{\int{\left[\frac{1}{2x} \right]dx}}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}    &{(-1)\left(\frac{1}{2} \right)\log \left|(1 - v^2) \right|~+~\rm{C}_1}    & {~=~}&{\left(\frac{1}{2} \right)\log \left|x \right|~+~\rm{C}_2}    \\
{~\color{magenta}    3    }&{{\Rightarrow}}    &{(-1)\log \left|(1 - v^2) \right|~+~2\rm{C}_1}    & {~=~}&{\log \left|x \right|~+~2\rm{C}_2}    \\
{~\color{magenta} 4    }&{{\Rightarrow}}    &{\log \left|x \right|~+~\log \left|(1 - v^2) \right|}    & {~=~}&{2\rm{C}_1~-~2\rm{C}_2}    \\
{~\color{magenta} 5    }&{{\Rightarrow}}    &{\log \left|x(1 - v^2) \right|}    & {~=~}&{\rm{C}_3}    \\
{~\color{magenta} 6    }&{{\Rightarrow}}    &{\log \left|x(1 - v^2) \right|}    & {~=~}&{\log \left|\rm{C}_4 \right|}    \\
{~\color{magenta} 7    }&{{\Rightarrow}}    &{x(1 - v^2)}    & {~=~}&{\pm\rm{C}_4}    \\
\end{array}}$

5. Replacing 'v', we will get the general solution:

$\small{\begin{array}{ll} {~\color{magenta}    1    }    &{{}}&{x(1 - v^2)}    & {~=~}    &{\pm \rm{C}_4}    \\
{~\color{magenta}    2    }&{{\Rightarrow}}&{x\left(1 - \frac{y^2}{x^2}\right) }    & {~=~}    &{\pm \rm{C}_4}    \\
{~\color{magenta}    3    }&{{\Rightarrow}}&{\frac{x^2~-~y^2}{x}}    & {~=~}    &{\pm \rm{C}_4}    \\
{~\color{magenta}    4    }&{{\Rightarrow}}&{x^2~-~y^2}    & {~=~}    &{{\rm{C}}\,x}    \\
\end{array}}$


The link below gives a few more solved examples:

Exercise 9.5


In the next section, we will see linear differential equations.

Previous

Contents

Next 

Copyright©2025 Higher secondary mathematics.blogspot.com