My Cart
Your Cart 0

    Your cart is empty.

  • Total (Amount) ₹0.00
NCERT · Class 12 · Maths · 2025-26

Chapter 9: Differential Equations

Practice each question, then open the answer or worked solution.

EXERCISE 9.5

Textbook page 328 · 19 questions
Q1Written answer
For each of the differential equations given in Exercises 1 to 12, find the general solution:
\(\dfrac{dy}{dx} + 2y = \sin x\)
Show solutionHide solution
Worked solution
This is a first-order linear differential equation:
\(\dfrac{dy}{dx}+2y=\sin x\).

The coefficient of \(y\) is \(2\), so an integrating factor is \[\mu(x)=e^{\int 2\,dx}=e^{2x}.\] Multiplying both sides by \(e^{2x}\), \[e^{2x}\dfrac{dy}{dx}+2e^{2x}y=e^{2x}\sin x,\] so \[\dfrac{d}{dx}\left(e^{2x}y\right)=e^{2x}\sin x.\] Integrating, \[e^{2x}y=\int e^{2x}\sin x\,dx.\] Using \[\int e^{ax}\sin(bx)\,dx=\dfrac{e^{ax}}{a^2+b^2}\bigl(a\sin(bx)-b\cos(bx)\bigr)+C,\] with \(a=2\) and \(b=1\), we get \[\int e^{2x}\sin x\,dx=\dfrac{e^{2x}}{5}(2\sin x-\cos x)+C.\] Therefore \[e^{2x}y=\dfrac{e^{2x}}{5}(2\sin x-\cos x)+C,\] and hence \[y=\dfrac{2\sin x-\cos x}{5}+Ce^{-2x},\] where \(C\) is an arbitrary real constant. The solution is valid for all real \(x\).

A quick check: \[y'=\dfrac{2\cos x+\sin x}{5}-2Ce^{-2x},\] so \[y'+2y=\dfrac{2\cos x+\sin x}{5}-2Ce^{-2x}+2\left(\dfrac{2\sin x-\cos x}{5}+Ce^{-2x}\right)=\sin x,\] as required.
Q2Written answer
For each of the differential equations given in Exercises 1 to 12, find the general solution:
\(\dfrac{dy}{dx} + 3y = e^{-2x}\)
Show solutionHide solution
Worked solution

This is a first-order linear differential equation of the form \( \dfrac{dy}{dx}+P(x)y=Q(x) \), with \( P(x)=3 \) and \( Q(x)=e^{-2x} \).

The integrating factor is \[ \mu(x)=e^{\int 3\,dx}=e^{3x}. \] Multiplying both sides by \(e^{3x}\) gives \[ e^{3x}\dfrac{dy}{dx}+3e^{3x}y=e^{x}. \] The left-hand side is the derivative of \(e^{3x}y\), so \[ \dfrac{d}{dx}\left(e^{3x}y\right)=e^x. \] Integrating both sides, \[ e^{3x}y=e^x+C, \] where \(C\) is an arbitrary real constant. Hence \[ y=e^{-2x}+Ce^{-3x}. \]

Check: if \(y=e^{-2x}+Ce^{-3x}\), then \[ y'=-2e^{-2x}-3Ce^{-3x}. \] Therefore \[ y'+3y=(-2e^{-2x}-3Ce^{-3x})+3(e^{-2x}+Ce^{-3x})=e^{-2x}, \] so the differential equation is satisfied for every real \(x\).

Q3Written answer
For each of the differential equations given in Exercises 1 to 12, find the general solution:
\(\dfrac{dy}{dx} + \dfrac{y}{x} = x^{2}\)
Show solutionHide solution
Worked solution

The differential equation is linear:

\[ \frac{dy}{dx}+\frac{1}{x}y=x^2,\qquad x\ne0. \]

An integrating factor is \(x\), because

\[ \frac{d}{dx}(x)=1=\frac{1}{x}\cdot x. \]

Multiplying both sides by \(x\) gives

\[ x\frac{dy}{dx}+y=x^3. \]

The left-hand side is the derivative of \(xy\):

\[ \frac{d}{dx}(xy)=x^3. \]

Integrating with respect to \(x\),

\[ xy=\frac{x^4}{4}+C. \]

Since \(x\ne0\), divide by \(x\):

\[ y=\frac{x^3}{4}+\frac{C}{x}. \]

This is the general solution on either interval \(x>0\) or \(x<0\). The point \(x=0\) is excluded because the original equation contains \(y/x\) and \(1/x\).

Verification:

\[ y'=\frac{3x^2}{4}-\frac{C}{x^2}, \]

so

\[ y'+\frac{y}{x}=\left(\frac{3x^2}{4}-\frac{C}{x^2}\right)+\left(\frac{x^2}{4}+\frac{C}{x^2}\right)=x^2. \]

Thus the solution is correct.

Q4Written answer
For each of the differential equations given in Exercises 1 to 12, find the general solution:
\(\dfrac{dy}{dx} + (\sec x) y = \tan x \left( 0 \leq x < \dfrac{\pi}{2} \right)\)
Show solutionHide solution
Worked solution

The differential equation is already in linear form:

\[ \frac{dy}{dx}+(\sec x)y=\tan x,\qquad 0\le x<\frac{\pi}{2}. \]

Here \(P(x)=\sec x\) and \(Q(x)=\tan x\). On the given interval, \(\cos x>0\), so

\[ \sec x+\tan x=\frac{1+\sin x}{\cos x}>0. \]

Thus an integrating factor is

\[ \mu(x)=e^{\int \sec x\,dx}=e^{\ln(\sec x+\tan x)}=\sec x+\tan x. \]

Multiplying the differential equation by \(\sec x+\tan x\), we get

\[ \left[ y(\sec x+\tan x)\right]'=(\sec x+\tan x)\tan x. \]

Integrate both sides:

\[ y(\sec x+\tan x)=\int \left(\tan x\sec x+\tan^2 x\right)\,dx. \]

Now

\[ \int \tan x\sec x\,dx=\sec x, \qquad \int \tan^2 x\,dx=\int(\sec^2 x-1)\,dx=\tan x-x. \]

Hence

\[ y(\sec x+\tan x)=\sec x+\tan x-x+C, \]

where \(C\) is an arbitrary constant. Therefore

\[ y=1+\frac{C-x}{\sec x+\tan x}. \]

Equivalently, since

\[ (\sec x+\tan x)(\sec x-\tan x)=1, \]

on the given interval we may also write the general solution as

\[ y=1+(C-x)(\sec x-\tan x), \]

with \(0\le x<\frac{\pi}{2}\).

Q5Written answer
For each of the differential equations given in Exercises 1 to 12, find the general solution:
\(\cos^{2} x \dfrac{dy}{dx} + y = \tan x \left( 0 \leq x < \dfrac{\pi}{2} \right)\)
Show solutionHide solution
Worked solution

For \(0\le x<\dfrac{\pi}{2}\), we have \(\cos x>0\), so division by \(\cos ^2x\) is valid. The differential equation is

\[ \cos ^2x\frac{dy}{dx}+y=\tan x \] \[ \frac{dy}{dx}+\sec ^2x\,y=\tan x\sec ^2x. \]

This is linear in the form \(y'+P(x)y=Q(x)\), with \(P(x)=\sec ^2x\). An integrating factor is

\[ \mu(x)=e^{\int \sec ^2x\,dx}=e^{\tan x}. \]

Multiplying both sides by \(e^{\tan x}\),

\[ \frac{d}{dx}\left(y e^{\tan x}\right)=\tan x\sec ^2x\,e^{\tan x}. \]

Put \(t=\tan x\), so that \(dt=\sec ^2x\,dx\). Then

\[ \int \tan x\sec ^2x\,e^{\tan x}\,dx =\int t e^t\,dt =(t-1)e^t =(\tan x-1)e^{\tan x}. \]

Hence

\[ y e^{\tan x}=(\tan x-1)e^{\tan x}+C. \]

Therefore the general solution is

\[ \boxed{y=\tan x-1+Ce^{-\tan x}},\qquad 0\le x<\frac{\pi}{2}, \]

where \(C\) is an arbitrary constant.

Verification: differentiating the solution gives

\[ y'=\sec ^2x-C\sec ^2x\,e^{-\tan x}. \]

Thus

\[ \cos ^2x\,y'+y =1-Ce^{-\tan x}+\tan x-1+Ce^{-\tan x} =\tan x. \]

So the solution satisfies the given differential equation on the stated interval. The endpoint \(x=\frac{\pi}{2}\) is excluded because \(\tan x\) and \(\sec ^2x\) are undefined there.

Q6Written answer
For each of the differential equations given in Exercises 1 to 12, find the general solution:
\(x \dfrac{dy}{dx} + 2y = x^{2} \log x\)
Show solutionHide solution
Worked solution

For \(\log x\) to be real, we must have \(x>0\). Divide the differential equation by \(x\):

\[ \frac{dy}{dx}+\frac{2}{x}y=x\log x. \]

This is linear in \(y\), with integrating factor

\[ \mu(x)=e^{\int \frac{2}{x}\,dx}=e^{2\log x}=x^2 \]

since \(x>0\). Multiplying through by \(x^2\),

\[ x^2\frac{dy}{dx}+2xy=x^3\log x, \]

so

\[ \frac{d}{dx}\left(x^2y\right)=x^3\log x. \]

Integrate both sides. Using integration by parts with \(u=\log x\) and \(dv=x^3\,dx\),

\[ \int x^3\log x\,dx=\frac{x^4}{4}\log x-\int \frac{x^4}{4}\cdot\frac{1}{x}\,dx =\frac{x^4}{4}\log x-\frac{x^4}{16}+C. \]

Hence

\[ x^2y=\frac{x^4}{4}\log x-\frac{x^4}{16}+C, \]

and therefore the general solution is

\[ y=\frac{x^2}{4}\log x-\frac{x^2}{16}+\frac{C}{x^2},\qquad x>0. \]

As a check, differentiating the answer gives

\[ y'=\frac{x}{2}\log x+\frac{x}{8}-\frac{2C}{x^3}, \]

so

\[\nxy'+2y=x\left(\frac{x}{2}\log x+\frac{x}{8}-\frac{2C}{x^3}\right)+2\left(\frac{x^2}{4}\log x-\frac{x^2}{16}+\frac{C}{x^2}\right)=x^2\log x. \]

Thus the solution satisfies the original differential equation.

Q7Written answer
For each of the differential equations given in Exercises 1 to 12, find the general solution:
\(x \log x \dfrac{dy}{dx} + y = \dfrac{2}{x} \log x\)
Show solutionHide solution
Worked solution

Given \[ x\log x\frac{dy}{dx}+y=\frac{2}{x}\log x,\qquad x>0. \] Since \(x\log x\) is the coefficient of \(dy/dx\), the normal form has a singularity at \(x=1\). Thus solve on either \((0,1)\) or \((1,\infty)\).

Divide the equation by \(x>0\):

\[ \log x\,y'+\frac{y}{x}=\frac{2\log x}{x^2}. \]

Notice that

\[ \frac{d}{dx}(y\log x)=\log x\,y'+\frac{y}{x}. \]

Hence

\[ \frac{d}{dx}(y\log x)=\frac{2\log x}{x^2}. \]

Integrating,

\[ y\log x=\int\frac{2\log x}{x^2}\,dx. \]

Using integration by parts with \(u=\log x\), \(dv=2x^{-2}dx\), so \(du=dx/x\), \(v=-2/x\):

\[ \int\frac{2\log x}{x^2}\,dx =-\frac{2\log x}{x}+2\int\frac{1}{x^2}\,dx =-\frac{2\log x}{x}-\frac{2}{x}+C =-\frac{2(\log x+1)}{x}+C. \]

Therefore

\[ y\log x=C-\frac{2(\log x+1)}{x}. \]

So the general solution is

\[ y=\frac{C}{\log x}-\frac{2}{x}-\frac{2}{x\log x}, \]

or equivalently

\[ y=\frac{Cx-2\log x-2}{x\log x}, \]

where \(C\) is an arbitrary constant; on the intervals \(0<x<1\) and \(x>1\) the constant may be chosen independently. The expression is not defined at \(x=1\), which is the singular point of the differential equation in normal form.

Q8Written answer
For each of the differential equations given in Exercises 1 to 12, find the general solution:
\((1 + x^{2}) dy + 2xy\ dx = \cot x\ dx\ (x \neq 0)\)
Show solutionHide solution
Worked solution

Rewrite the equation as a first-order linear differential equation. Dividing by \(dx\) gives

\[(1+x^2)\frac{dy}{dx}+2xy=\cot x,\] so \[\frac{d}{dx}\bigl((1+x^2)y\bigr)=\cot x,\] because \(\frac{d}{dx}(1+x^2)=2x\).

Integrate both sides on an interval where \(\cot x\) is defined, i.e. where \(\sin x\neq 0\):

\[(1+x^2)y=\int \cot x\,dx=\ln|\sin x|+C.\] Therefore, the general solution is \[\boxed{y=\frac{\ln|\sin x|+C}{1+x^2}},\] where \(C\) is an arbitrary constant and the solution is valid on any interval not containing an integer multiple of \(\pi\).

The condition \(x\neq 0\) is automatically respected on such intervals; the points \(x=k\pi\) are excluded because \(\cot x\) is undefined there. On disjoint intervals between consecutive multiples of \(\pi\), the arbitrary constant may be chosen separately.

Q9Written answer

For each of the differential equations given in Exercises 1 to 12, find the general solution:

\(x\frac{dy}{dx}+y-x+xy\cot x=0\ (x\neq 0)\)
Show solutionHide solution
Worked solution

Rewrite the equation as

\[ x\frac{dy}{dx}+y+xy\cot x=x. \]

Notice that

\[ \frac{d}{dx}(xy)=x\frac{dy}{dx}+y. \]

Hence

\[ (xy)'+(xy)\cot x=x. \]

Let \(u=xy\). Then

\[ u'+u\cot x=x. \]

An integrating factor is

\[ \mu=e^{\int\cot x\,dx}=e^{\ln|\sin x|}=|\sin x|. \]

On any interval where \(\sin x\ne0\), we may take \(\mu=\sin x\). Multiplying gives

\[ (\sin x\,u)'=x\sin x. \]

Integrate:

\[ \sin x\,u=-x\cos x+\sin x+C, \]

because the derivative of \(-x\cos x+\sin x\) is \(x\sin x\). Since \(u=xy\),

\[ xy\sin x=-x\cos x+\sin x+C. \]

Therefore the general solution is

\[ y=\frac{-x\cos x+\sin x+C}{x\sin x} =\frac1x-\cot x+\frac{C}{x\sin x}. \]

This is valid on any interval with \(x\ne0\) and \(\sin x\ne0\), i.e. \(x\notin\{0,\pm\pi,\pm2\pi,\ldots\}\). At the excluded points the original equation is undefined; the arbitrary constant \(C\) is fixed on each such interval.

Q10Written answer

For each of the differential equations given in Exercises 1 to 12, find the general solution:

\((x+y)\frac{dy}{dx}=1\)
Show solutionHide solution
Worked solution

Given \((x+y)\frac{dy}{dx}=1\). Since the right-hand side is \(1\), we cannot have \(x+y=0\). Thus \(\frac{dy}{dx}=\frac{1}{x+y}\), and on intervals where the solution is differentiable we may invert it:

\[ \frac{dx}{dy}=\frac{1}{\frac{dy}{dx}}=x+y. \]

Now treat \(x\) as a function of \(y\):

\[ \frac{dx}{dy}-x=y. \]

This is linear in \(x\). The integrating factor is \(\mu(y)=e^{\int -1\,dy}=e^{-y}\). Multiplying gives

\[ e^{-y}\frac{dx}{dy}-e^{-y}x=ye^{-y}, \]

so

\[ \frac{d}{dy}(xe^{-y})=ye^{-y}. \]

Integrating,

\[ xe^{-y}=\int ye^{-y}\,dy=-(y+1)e^{-y}+C. \]

Therefore

\[ x=-y-1+Ce^{y}, \]

or, in implicit form,

\[ x+y+1=Ce^{y},\qquad C\in\mathbb{R}. \]

Check: From \(x=Ce^y-y-1\), \(\frac{dx}{dy}=Ce^y-1=x+y\), so \(\frac{dy}{dx}=\frac{1}{x+y}\). Hence \((x+y)\frac{dy}{dx}=1\).

Domain note: The original equation requires \(x+y\ne0\). In the family, \(x+y=Ce^y-1\). If \(C\le0\), this is never zero, so the solution is valid for all real \(x\). If \(C>0\), then \(x+y=0\) only when \(Ce^y=1\), i.e. at \(y=-\ln C\) and \(x=\ln C\). At that point \(\frac{dy}{dx}\) is undefined, so the solution must be taken on either side of this point, not through it. Thus the general solution is \(x+y+1=Ce^y\), with the usual restriction \(x+y\ne0\) (splitting into two branches when \(C>0\)).