Confirming your payment

Skip to content

Opening your dashboard

Class 12 Maths Ch 9 Ex 9.5: Differential Equations Solutions

19 questions from Exercise 9.5 of Class 12 Maths Chapter 9, Differential Equations, each solved step by step. Free to read, CBSE 2026-27.

Ex 9.5 solutions

19 questions with solutions

1–5 marks · Easy difficulty

The first 16 solutions are on this page. This chapter is a long one, so the rest open on their own page to keep this one quick to load.

  1. 1

    Exercise 9.5 Question 1

    In each of the following differential equations given in Exercises 1 to 4, find the general solution: dydx+2y=sin⁡x\frac{dy}{dx} + 2y = \sin x
    Easy
    5 marks
    Solve with AI
    Written solution

    The given differential equation is

    dydx+2y=sin⁡x\frac{dy}{dx} + 2y = \sin x

    This is the standard form of a linear differential equation.

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=2andQ=sin⁡xP = 2 \quad \text{and} \quad Q = \sin x

    Integrating Factor

    ∫P dx=∫2 dx=2∫1 dx=2x\int P\,dx = \int 2\,dx = 2\int 1\,dx = 2x I.F.=e∫P dx=e2x\text{I.F.} = e^{\int P\,dx} = e^{2x}

    Solution Formula

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒ye2x=∫e2xsin⁡x dx+c\Rightarrow y e^{2x} = \int e^{2x} \sin x\,dx + c ⇒ye2x=I+c(i)\Rightarrow y e^{2x} = I + c \tag{i}

    where

    I=∫e2xsin⁡x dx(ii)I = \int e^{2x} \sin x\,dx \tag{ii}

    Evaluation of II

    Applying Product Rule of Integration:

    ∫u v dx=u∫v dx−∫(dudx∫v dx)dx\int u\,v\,dx = u \int v\,dx - \int \left(\frac{du}{dx}\int v\,dx\right) dx

    Taking e2xe^{2x} as the first function and sin⁡x\sin x as the second function,

    I=e2x(−cos⁡x)−∫2e2x(−cos⁡x) dxI = e^{2x}(-\cos x) - \int 2e^{2x}(-\cos x)\,dx ⇒I=−e2xcos⁡x+2∫e2xcos⁡x dx\Rightarrow I = -e^{2x}\cos x + 2\int e^{2x}\cos x\,dx

    Again applying Product Rule:

    ∫e2xcos⁡x dx=e2xsin⁡x−∫2e2xsin⁡x dx\int e^{2x}\cos x\,dx = e^{2x}\sin x - \int 2e^{2x}\sin x\,dx ⇒I=−e2xcos⁡x+2e2xsin⁡x−4∫e2xsin⁡x dx\Rightarrow I = -e^{2x}\cos x + 2e^{2x}\sin x - 4\int e^{2x}\sin x\,dx ⇒I=e2x(−cos⁡x+2sin⁡x)−4I\Rightarrow I = e^{2x}(-\cos x + 2\sin x) - 4I

    Transposing,

    5I=e2x(2sin⁡x−cos⁡x)5I = e^{2x}(2\sin x - \cos x) ⇒I=e2x5(2sin⁡x−cos⁡x)\Rightarrow I = \frac{e^{2x}}{5}(2\sin x - \cos x)

    Substituting value of II in (i)

    ye2x=e2x5(2sin⁡x−cos⁡x)+cy e^{2x} = \frac{e^{2x}}{5}(2\sin x - \cos x) + c

    Dividing every term by e2xe^{2x}:

    y=15(2sin⁡x−cos⁡x)+ce2xy = \frac{1}{5}(2\sin x - \cos x) + \frac{c}{e^{2x}} ⇒y=15(2sin⁡x−cos⁡x)+ce−2x\Rightarrow y = \frac{1}{5}(2\sin x - \cos x) + ce^{-2x}  y=15(2sin⁡x−cos⁡x)+ce−2x \boxed{\,y = \frac{1}{5}(2\sin x - \cos x) + ce^{-2x}\,}

    which is the required general solution.

  2. 2

    Exercise 9.5 Question 2

    dydx+3y=e−2x\frac{dy}{dx} + 3y = e^{-2x}
    Easy
    3 marks
    Solve with AI
    Written solution

    The given differential equation is

    dydx+3y=e−2x\frac{dy}{dx} + 3y = e^{-2x}

    This is the standard form of a linear differential equation.

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=3andQ=e−2xP = 3 \quad \text{and} \quad Q = e^{-2x}

    Integrating Factor

    ∫P dx=∫3 dx=3∫1 dx=3x\int P\,dx = \int 3\,dx = 3\int 1\,dx = 3x I.F.=e∫P dx=e3x\text{I.F.} = e^{\int P\,dx} = e^{3x}

    Solution Formula

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒ye3x=∫e−2xe3x dx+c\Rightarrow y e^{3x} = \int e^{-2x} e^{3x}\,dx + c ⇒ye3x=∫e−2x+3x dx+c\Rightarrow y e^{3x} = \int e^{-2x+3x}\,dx + c ⇒ye3x=∫ex dx+c\Rightarrow y e^{3x} = \int e^{x}\,dx + c ⇒ye3x=ex+c\Rightarrow y e^{3x} = e^{x} + c

    Final Solution

    Dividing every term by e3xe^{3x},

    y=exe3x+ce3xy = \frac{e^{x}}{e^{3x}} + \frac{c}{e^{3x}} ⇒y=e−2x+ce−3x\Rightarrow y = e^{-2x} + ce^{-3x}  y=e−2x+ce−3x \boxed{\,y = e^{-2x} + ce^{-3x}\,}

    which is the required general solution.

  3. 3

    Exercise 9.5 Question 3

    dydx+yx=x2\frac{dy}{dx} + \frac{y}{x} = x^2
    Easy
    3 marks
    Solve with AI
    Written solution

    The given differential equation is

    dydx+yx=x2\frac{dy}{dx} + \frac{y}{x} = x^2

    It is of the form

    dydx+Py=Q\frac{dy}{dx} + Py = Q

    Comparing,

    P=1x,Q=x2P = \frac{1}{x}, \quad Q = x^2

    Integrating Factor

    ∫P dx=∫1x dx=log⁡x\int P\,dx = \int \frac{1}{x}\,dx = \log x I.F.=e∫P dx=elog⁡x=x\text{I.F.} = e^{\int P\,dx} = e^{\log x} = x

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒yx=∫x2⋅x dx+c\Rightarrow yx = \int x^2 \cdot x\,dx + c ⇒yx=∫x3 dx+c\Rightarrow yx = \int x^3\,dx + c ⇒xy=x44+c\Rightarrow xy = \frac{x^4}{4} + c  xy=x44+c \boxed{\,xy = \frac{x^4}{4} + c\,}

    which is the required general solution.

  4. 4

    Exercise 9.5 Question 4

    dydx+(sec⁡x) y=tan⁡x(0≤x<π2)\frac{dy}{dx} + (\sec x)\,y = \tan x \qquad \left(0 \le x < \frac{\pi}{2}\right)
    Easy
    3 marks
    Solve with AI
    Written solution

    The given differential equation is

    dydx+(sec⁡x) y=tan⁡x\frac{dy}{dx} + (\sec x)\,y = \tan x

    It is of the form

    dydx+Py=Q\frac{dy}{dx} + Py = Q

    Comparing,

    P=sec⁡x,Q=tan⁡xP = \sec x, \quad Q = \tan x

    Integrating Factor

    ∫P dx=∫sec⁡x dx=log⁡(sec⁡x+tan⁡x)\int P\,dx = \int \sec x\,dx = \log(\sec x + \tan x) I.F.=e∫P dx=elog⁡(sec⁡x+tan⁡x)=sec⁡x+tan⁡x\text{I.F.} = e^{\int P\,dx} = e^{\log(\sec x + \tan x)} = \sec x + \tan x

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒y(sec⁡x+tan⁡x)=∫tan⁡x(sec⁡x+tan⁡x) dx+c\Rightarrow y(\sec x + \tan x) = \int \tan x(\sec x + \tan x)\,dx + c =∫(sec⁡xtan⁡x+tan⁡2x) dx+c= \int (\sec x \tan x + \tan^2 x)\,dx + c

    Using tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1,

    =∫(sec⁡xtan⁡x+sec⁡2x−1) dx+c= \int (\sec x \tan x + \sec^2 x - 1)\,dx + c =sec⁡x+tan⁡x−x+c= \sec x + \tan x - x + c  y(sec⁡x+tan⁡x)=sec⁡x+tan⁡x−x+c \boxed{\,y(\sec x + \tan x) = \sec x + \tan x - x + c\,}

    which is the required general solution.

  5. 5

    Exercise 9.5 Question 5

    For each of the following differential equations given in Exercises 5 to 8, find the general solution:

    cos⁡2x dydx+y=tan⁡x(0≤x<π2)\cos^2 x \,\frac{dy}{dx} + y = \tan x \qquad \left(0 \le x < \frac{\pi}{2}\right)
    Easy
    3 marks
    Solve with AI
    Written solution

    The given differential equation is

    cos⁡2x dydx+y=tan⁡x\cos^2 x \,\frac{dy}{dx} + y = \tan x

    Dividing throughout by cos⁡2x\cos^2 x to make the coefficient of
    dydx\dfrac{dy}{dx} unity,

    dydx+ycos⁡2x=tan⁡xcos⁡2x\frac{dy}{dx} + \frac{y}{\cos^2 x} = \frac{\tan x}{\cos^2 x} ⇒dydx+(sec⁡2x) y=sec⁡2xtan⁡x\Rightarrow \frac{dy}{dx} + (\sec^2 x)\,y = \sec^2 x \tan x

    Linear Differential Equation

    It is of the form

    dydx+Py=Q\frac{dy}{dx} + Py = Q

    Comparing,

    P=sec⁡2x,Q=sec⁡2xtan⁡xP = \sec^2 x, \quad Q = \sec^2 x \tan x

    Integrating Factor

    ∫P dx=∫sec⁡2x dx=tan⁡x\int P\,dx = \int \sec^2 x\,dx = \tan x I.F.=e∫P dx=etan⁡x\text{I.F.} = e^{\int P\,dx} = e^{\tan x}

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒yetan⁡x=∫sec⁡2xtan⁡x etan⁡x dx+c(i)\Rightarrow y e^{\tan x} = \int \sec^2 x \tan x \, e^{\tan x}\,dx + c \tag{i}

    Substitution

    Put

    tan⁡x=t\tan x = t

    Differentiating,

    sec⁡2x dx=dt\sec^2 x\,dx = dt

    Hence,

    ∫sec⁡2xtan⁡x etan⁡x dx=∫tet dt\int \sec^2 x \tan x \, e^{\tan x}\,dx = \int t e^{t}\,dt

    Applying Integration by Parts

    ∫tet dt=tet−∫1⋅et dt\int t e^{t}\,dt = t e^{t} - \int 1 \cdot e^{t}\,dt =tet−et=(t−1)et= t e^{t} - e^{t} = (t - 1)e^{t} =(tan⁡x−1)etan⁡x= (\tan x - 1)e^{\tan x}

    Substituting in (i)

    yetan⁡x=(tan⁡x−1)etan⁡x+cy e^{\tan x} = (\tan x - 1)e^{\tan x} + c

    Dividing every term by etan⁡xe^{\tan x},

    y=(tan⁡x−1)+ce−tan⁡xy = (\tan x - 1) + c e^{-\tan x}  y=(tan⁡x−1)+ce−tan⁡x \boxed{\,y = (\tan x - 1) + c e^{-\tan x}\,}

    which is the required general solution.

  6. 6

    Exercise 9.5 Question 6

    xdydx+2y=x2log⁡xx \frac{dy}{dx} + 2y = x^2 \log x
    Easy
    5 marks
    Solve with AI
    Written solution

    The given differential equation is

    xdydx+2y=x2log⁡xx \frac{dy}{dx} + 2y = x^2 \log x

    Dividing every term by xx
    (to make the coefficient of dydx\dfrac{dy}{dx} unity),

    dydx+2xy=xlog⁡x\frac{dy}{dx} + \frac{2}{x}y = x \log x

    Linear Differential Equation

    It is of the form

    dydx+Py=Q\frac{dy}{dx} + Py = Q

    Comparing,

    P=2x,Q=xlog⁡xP = \frac{2}{x}, \quad Q = x \log x

    Integrating Factor

    ∫P dx=2∫1x dx=2log⁡x\int P\,dx = 2\int \frac{1}{x}\,dx = 2\log x I.F.=e∫P dx=e2log⁡x=elog⁡x2=x2\text{I.F.} = e^{\int P\,dx} = e^{2\log x} = e^{\log x^2} = x^2

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒yx2=∫(xlog⁡x) x2 dx+c\Rightarrow yx^2 = \int (x \log x)\,x^2\,dx + c =∫x3log⁡x dx+c= \int x^3 \log x\,dx + c

    Evaluation of Integral

    Applying integration by parts,

    ∫x3log⁡x dx=log⁡x⋅x44−∫1x⋅x44 dx\int x^3 \log x\,dx = \log x \cdot \frac{x^4}{4} - \int \frac{1}{x}\cdot \frac{x^4}{4}\,dx =x44log⁡x−14∫x3 dx= \frac{x^4}{4}\log x - \frac{1}{4}\int x^3\,dx =x44log⁡x−x416= \frac{x^4}{4}\log x - \frac{x^4}{16}

    Substituting Back

    yx2=x44log⁡x−x416+cyx^2 = \frac{x^4}{4}\log x - \frac{x^4}{16} + c

    Dividing every term by x2x^2,

    y=x24log⁡x−x216+cx2y = \frac{x^2}{4}\log x - \frac{x^2}{16} + \frac{c}{x^2} =x216(4log⁡x−1)+cx2= \frac{x^2}{16}(4\log x - 1) + \frac{c}{x^2}  y=x216(4log⁡x−1)+cx2 \boxed{\,y = \frac{x^2}{16}(4\log x - 1) + \frac{c}{x^2}\,}

    which is the required general solution.

  7. 7

    Exercise 9.5 Question 7

    xlog⁡x dydx+y=2xlog⁡xx \log x \,\frac{dy}{dx} + y = \frac{2}{x}\log x
    Easy
    4 marks
    Solve with AI
    Written solution

    The given differential equation is

    xlog⁡x dydx+y=2xlog⁡xx \log x \,\frac{dy}{dx} + y = \frac{2}{x}\log x

    Dividing every term by xlog⁡xx \log x to make the coefficient of
    dydx\dfrac{dy}{dx} unity,

    dydx+1xlog⁡x y=2x2\frac{dy}{dx} + \frac{1}{x \log x}\,y = \frac{2}{x^2}

    Linear Differential Equation

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=1xlog⁡x,Q=2x2P = \frac{1}{x \log x}, \quad Q = \frac{2}{x^2}

    Integrating Factor

    ∫P dx=∫1xlog⁡x dx=∫(1/x)log⁡x dx=log⁡(log⁡x)\int P\,dx = \int \frac{1}{x \log x}\,dx = \int \frac{(1/x)}{\log x}\,dx = \log(\log x) I.F.=e∫P dx=elog⁡(log⁡x)=log⁡x\text{I.F.} = e^{\int P\,dx} = e^{\log(\log x)} = \log x

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒ylog⁡x=∫2x2log⁡x dx+c\Rightarrow y \log x = \int \frac{2}{x^2}\log x\,dx + c =2∫(log⁡x) x−2 dx+c= 2 \int (\log x)\,x^{-2}\,dx + c

    Applying Integration by Parts

    Let

    I=log⁡x,II=x−2I = \log x, \quad II = x^{-2} ∫(log⁡x) x−2 dx=log⁡x⋅x−1−1−∫1x⋅x−1−1 dx\int (\log x)\,x^{-2}\,dx = \log x \cdot \frac{x^{-1}}{-1} - \int \frac{1}{x}\cdot \frac{x^{-1}}{-1}\,dx =−log⁡xx+∫x−2 dx= -\frac{\log x}{x} + \int x^{-2}\,dx =−log⁡xx−1x= -\frac{\log x}{x} - \frac{1}{x}

    Substituting Back

    ylog⁡x=2(−log⁡xx−1x)+cy \log x = 2\left(-\frac{\log x}{x} - \frac{1}{x}\right) + c ⇒ylog⁡x=−2x(1+log⁡x)+c\Rightarrow y \log x = -\frac{2}{x}(1 + \log x) + c  ylog⁡x=−2x(1+log⁡x)+c \boxed{\,y \log x = -\frac{2}{x}(1 + \log x) + c\,}

    which is the required general solution.

  8. 8

    Exercise 9.5 Question 8

    (1+x2) dy+2xy dx=cot⁡x dx(x≠0)(1 + x^2)\,dy + 2xy\,dx = \cot x \, dx \qquad (x \ne 0)
    Easy
    4 marks
    Solve with AI
    Written solution

    The given differential equation is

    (1+x2) dy+2xy dx=cot⁡x dx(1 + x^2)\,dy + 2xy\,dx = \cot x \, dx

    Dividing every term by dxdx,

    (1+x2)dydx+2xy=cot⁡x(1 + x^2)\frac{dy}{dx} + 2xy = \cot x

    Dividing every term by (1+x2)(1 + x^2) to make the coefficient of
    dydx\dfrac{dy}{dx} unity,

    dydx+2x1+x2 y=cot⁡x1+x2\frac{dy}{dx} + \frac{2x}{1 + x^2}\,y = \frac{\cot x}{1 + x^2}

    Linear Differential Equation

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=2x1+x2,Q=cot⁡x1+x2P = \frac{2x}{1 + x^2}, \quad Q = \frac{\cot x}{1 + x^2}

    Integrating Factor

    ∫P dx=∫2x1+x2 dx\int P\,dx = \int \frac{2x}{1 + x^2}\,dx =log⁡∣1+x2∣= \log |1 + x^2|

    Since 1+x2>01 + x^2 > 0,

    log⁡∣1+x2∣=log⁡(1+x2)\log |1 + x^2| = \log (1 + x^2) I.F.=e∫P dx=elog⁡(1+x2)=1+x2\text{I.F.} = e^{\int P\,dx} = e^{\log(1 + x^2)} = 1 + x^2

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒y(1+x2)=∫cot⁡x1+x2(1+x2) dx+c\Rightarrow y(1 + x^2) = \int \frac{\cot x}{1 + x^2}(1 + x^2)\,dx + c ⇒y(1+x2)=∫cot⁡x dx+c\Rightarrow y(1 + x^2) = \int \cot x\,dx + c ⇒y(1+x2)=log⁡∣sin⁡x∣+c\Rightarrow y(1 + x^2) = \log|\sin x| + c

    Final Solution

    Dividing every term by 1+x21 + x^2,

    y=log⁡∣sin⁡x∣1+x2+c1+x2y = \frac{\log|\sin x|}{1 + x^2} + \frac{c}{1 + x^2}

    or

    y=(1+x2)−1log⁡∣sin⁡x∣+c(1+x2)−1y = (1 + x^2)^{-1}\log|\sin x| + c(1 + x^2)^{-1}  y=log⁡∣sin⁡x∣1+x2+c1+x2 \boxed{\,y = \frac{\log|\sin x|}{1 + x^2} + \frac{c}{1 + x^2}\,}

    which is the required general solution.

  9. 9

    Exercise 9.5 Question 9

    xdydx+y−x+xycot⁡x=0(x≠0)x\frac{dy}{dx} + y - x + xy\cot x = 0 \qquad (x \ne 0)
    Easy
    4 marks
    Solve with AI
    Written solution

    The given differential equation is

    xdydx+y−x+xycot⁡x=0x\frac{dy}{dx} + y - x + xy\cot x = 0 ⇒xdydx+y+xycot⁡x=x\Rightarrow x\frac{dy}{dx} + y + xy\cot x = x ⇒xdydx+(1+xcot⁡x)y=x\Rightarrow x\frac{dy}{dx} + (1 + x\cot x)y = x

    Dividing every term by xx to make the coefficient of
    dydx\dfrac{dy}{dx} unity,

    dydx+1+xcot⁡xx y=1\frac{dy}{dx} + \frac{1 + x\cot x}{x}\,y = 1

    Linear Differential Equation

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=1+xcot⁡xx,Q=1P = \frac{1 + x\cot x}{x}, \quad Q = 1

    Integrating Factor

    ∫P dx=∫1+xcot⁡xx dx\int P\,dx = \int \frac{1 + x\cot x}{x}\,dx =∫(1x+cot⁡x) dx= \int \left(\frac{1}{x} + \cot x\right)\,dx =log⁡x+log⁡sin⁡x=log⁡(xsin⁡x)= \log x + \log \sin x = \log(x\sin x) I.F.=e∫P dx=elog⁡(xsin⁡x)=xsin⁡x\text{I.F.} = e^{\int P\,dx} = e^{\log(x\sin x)} = x\sin x

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒y(xsin⁡x)=∫xsin⁡x dx+c\Rightarrow y(x\sin x) = \int x\sin x\,dx + c

    Applying Integration by Parts

    Let

    I=x,II=sin⁡xI = x, \quad II = \sin x ∫xsin⁡x dx=x(−cos⁡x)−∫1(−cos⁡x) dx\int x\sin x\,dx = x(-\cos x) - \int 1(-\cos x)\,dx =−xcos⁡x+∫cos⁡x dx= -x\cos x + \int \cos x\,dx =−xcos⁡x+sin⁡x= -x\cos x + \sin x

    Substituting Back

    y(xsin⁡x)=−xcos⁡x+sin⁡x+cy(x\sin x) = -x\cos x + \sin x + c

    Dividing every term by xsin⁡xx\sin x,

    y=−xcos⁡xxsin⁡x+sin⁡xxsin⁡x+cxsin⁡xy = -\frac{x\cos x}{x\sin x} + \frac{\sin x}{x\sin x} + \frac{c}{x\sin x} ⇒y=−cot⁡x+1x+cxsin⁡x\Rightarrow y = -\cot x + \frac{1}{x} + \frac{c}{x\sin x}  y=−cot⁡x+1x+cxsin⁡x \boxed{\,y = -\cot x + \frac{1}{x} + \frac{c}{x\sin x}\,}

    which is the required general solution.

  10. 10

    Exercise 9.5 Question 10

    (x+y)dydx=1(x + y)\frac{dy}{dx} = 1
    Easy
    4 marks
    Solve with AI
    Written solution

    The given differential equation is

    (x+y)dydx=1(x + y)\frac{dy}{dx} = 1 ⇒dx=(x+y) dy\Rightarrow dx = (x + y)\,dy ⇒dxdy=x+y\Rightarrow \frac{dx}{dy} = x + y ⇒dxdy−x=y\Rightarrow \frac{dx}{dy} - x = y

    This is the standard form of a linear differential equation.

    Comparing with

    dxdy+Px=Q,\frac{dx}{dy} + Px = Q,

    we have

    P=−1,Q=yP = -1, \quad Q = y

    Integrating Factor

    ∫P dy=∫(−1) dy=−∫1 dy=−y\int P\,dy = \int (-1)\,dy = -\int 1\,dy = -y I.F.=e∫P dy=e−y\text{I.F.} = e^{\int P\,dy} = e^{-y}

    General Solution

    x(I.F.)=∫Q(I.F.) dy+cx(\text{I.F.}) = \int Q(\text{I.F.})\,dy + c ⇒xe−y=∫ye−y dy+c\Rightarrow x e^{-y} = \int y e^{-y}\,dy + c

    Applying Integration by Parts

    Let

    I=y,II=e−yI = y, \quad II = e^{-y}

    Using the product rule,

    ∫I⋅II dy=I∫II dy−∫(dIdy∫II dy)dy\int I \cdot II\,dy = I \int II\,dy - \int \left(\frac{dI}{dy}\int II\,dy\right) dy =y(e−y−1)−∫1(e−y−1)dy= y\left(\frac{e^{-y}}{-1}\right) - \int 1\left(\frac{e^{-y}}{-1}\right) dy =−ye−y+∫e−y dy= -y e^{-y} + \int e^{-y}\,dy =−ye−y−e−y= -y e^{-y} - e^{-y}

    Substituting Back

    xe−y=−ye−y−e−y+cx e^{-y} = -y e^{-y} - e^{-y} + c

    Dividing every term by e−ye^{-y},

    x=−y−1+ce−yx = -y - 1 + \frac{c}{e^{-y}}

    or

    x+y+1=ceyx + y + 1 = c e^{y}  x+y+1=cey \boxed{\,x + y + 1 = c e^{y}\,}

    which is the required general solution.

  11. 11

    Exercise 9.5 Question 11

    y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0
    Easy
    4 marks
    Solve with AI
    Written solution

    The given differential equation is

    y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0

    Dividing by dydy,

    ydxdy+x−y2=0y\frac{dx}{dy} + x - y^2 = 0

    or

    ydxdy+x=y2y\frac{dx}{dy} + x = y^2

    Dividing every term by yy (to make the coefficient of
    dxdy\dfrac{dx}{dy} unity),

    dxdy+1yx=y\frac{dx}{dy} + \frac{1}{y}x = y

    This is the standard form of a linear differential equation.

    Linear Differential Equation

    Comparing with

    dxdy+Px=Q,\frac{dx}{dy} + Px = Q,

    we have

    P=1y,Q=yP = \frac{1}{y}, \quad Q = y

    Integrating Factor

    ∫P dy=∫1y dy=log⁡y\int P\,dy = \int \frac{1}{y}\,dy = \log y I.F.=e∫P dy=elog⁡y=y\text{I.F.} = e^{\int P\,dy} = e^{\log y} = y

    General Solution

    x(I.F.)=∫Q(I.F.) dy+cx(\text{I.F.}) = \int Q(\text{I.F.})\,dy + c ⇒xy=∫y⋅y dy+c\Rightarrow x y = \int y \cdot y\,dy + c ⇒xy=∫y2 dy+c\Rightarrow xy = \int y^2\,dy + c ⇒xy=y33+c\Rightarrow xy = \frac{y^3}{3} + c

    Final Solution

    Dividing every term by yy,

    x=y23+cyx = \frac{y^2}{3} + \frac{c}{y}  x=y23+cy \boxed{\,x = \frac{y^2}{3} + \frac{c}{y}\,}

    which is the required general solution.

  12. 12

    Exercise 9.5 Question 12

    (x+3y2)dydx=y(y>0)(x + 3y^2)\frac{dy}{dx} = y \qquad (y > 0)
    Easy
    4 marks
    Solve with AI
    Written solution

    The given differential equation is

    (x+3y2)dydx=y(x + 3y^2)\frac{dy}{dx} = y ⇒y dx=(x+3y2) dy\Rightarrow y\,dx = (x + 3y^2)\,dy ⇒ydxdy=x+3y2\Rightarrow y\frac{dx}{dy} = x + 3y^2 ⇒ydxdy−x=3y2\Rightarrow y\frac{dx}{dy} - x = 3y^2

    Dividing every term by yy
    (to make the coefficient of dxdy\dfrac{dx}{dy} unity),

    dxdy−1yx=3y\frac{dx}{dy} - \frac{1}{y}x = 3y

    This is the standard form of a linear differential equation. Linear Differential Equation

    Comparing with

    dxdy+Px=Q,\frac{dx}{dy} + Px = Q,

    we have

    P=−1y,Q=3yP = -\frac{1}{y}, \quad Q = 3y

    Integrating Factor

    ∫P dy=−∫1y dy=−log⁡y=log⁡y−1\int P\,dy = -\int \frac{1}{y}\,dy = -\log y = \log y^{-1} I.F.=e∫P dy=elog⁡y−1=y−1=1y\text{I.F.} = e^{\int P\,dy} = e^{\log y^{-1}} = y^{-1} = \frac{1}{y}

    General Solution

    x(I.F.)=∫Q(I.F.) dy+cx(\text{I.F.}) = \int Q(\text{I.F.})\,dy + c ⇒x⋅1y=∫3y⋅1y dy+c\Rightarrow x\cdot \frac{1}{y} = \int 3y \cdot \frac{1}{y}\,dy + c ⇒xy=3∫1 dy+c\Rightarrow \frac{x}{y} = 3\int 1\,dy + c ⇒xy=3y+c\Rightarrow \frac{x}{y} = 3y + c

    Final Solution

    Cross-multiplying,

    x=3y2+cyx = 3y^2 + cy  x=3y2+cy \boxed{\,x = 3y^2 + cy\,}

    which is the required general solution.

  13. 13

    Exercise 9.5 Question 13

    For each of the differential equations given in Exercises 13 to 15, find a particular solution satisfying the given condition:

    dydx+2ytan⁡x=sin⁡x;y=0 when x=π3\frac{dy}{dx} + 2y \tan x = \sin x; \qquad y = 0 \text{ when } x = \frac{\pi}{3}
    Easy
    4 marks
    Solve with AI
    Written solution

    The given differential equation is

    dydx+2ytan⁡x=sin⁡x;y=0 when x=π3\frac{dy}{dx} + 2y \tan x = \sin x; \qquad y = 0 \text{ when } x = \frac{\pi}{3}

    (It is the standard form of a linear differential equation.)

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=2tan⁡x,Q=sin⁡xP = 2\tan x, \quad Q = \sin x

    Integrating Factor

    ∫P dx=2∫tan⁡x dx=2log⁡sec⁡x=log⁡(sec⁡x)2(∵nlog⁡m=log⁡mn)\int P\,dx = 2\int \tan x\,dx = 2\log \sec x = \log(\sec x)^2 \quad (\because n\log m = \log m^n) I.F.=e∫P dx=elog⁡(sec⁡x)2=(sec⁡x)2=sec⁡2x\text{I.F.} = e^{\int P\,dx} = e^{\log(\sec x)^2} = (\sec x)^2 = \sec^2 x

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒ysec⁡2x=∫sin⁡xsec⁡2x dx+c\Rightarrow y\sec^2 x = \int \sin x \sec^2 x\,dx + c =∫sin⁡xcos⁡2x dx+c=∫sin⁡xcos⁡x⋅cos⁡x dx+c= \int \frac{\sin x}{\cos^2 x}\,dx + c = \int \frac{\sin x}{\cos x \cdot \cos x}\,dx + c

    or

    ysec⁡2x=∫tan⁡xsec⁡x dx+c=sec⁡x+cy\sec^2 x = \int \tan x \sec x\,dx + c = \sec x + c ⇒ycos⁡2x=1cos⁡x+c\Rightarrow \frac{y}{\cos^2 x} = \frac{1}{\cos x} + c

    Multiplying by L.C.M. =cos⁡2x= \cos^2 x,

    y=cos⁡x+ccos⁡2x(i)y = \cos x + c\cos^2 x \tag{i}

    To Find cc

    Given

    y=0 when x=π3y = 0 \text{ when } x = \frac{\pi}{3}

    From (i),

    0=cos⁡π3+ccos⁡2π30 = \cos\frac{\pi}{3} + c\cos^2\frac{\pi}{3} ⇒0=12+c(12)2\Rightarrow 0 = \frac{1}{2} + c\left(\frac{1}{2}\right)^2 ⇒0=12+c4\Rightarrow 0 = \frac{1}{2} + \frac{c}{4} ⇒c4=−12⇒c=−2\Rightarrow \frac{c}{4} = -\frac{1}{2} \quad \Rightarrow \quad c = -2

    Particular Solution

    Putting c=−2c = -2 in (i),

     y=cos⁡x−2cos⁡2x \boxed{\,y = \cos x - 2\cos^2 x\,}

    which is the required particular solution.

  14. 14

    Exercise 9.5 Question 14

    (1+x2)dydx+2xy=11+x2;y=0 when x=1(1 + x^2)\frac{dy}{dx} + 2xy = \frac{1}{1 + x^2}; \qquad y = 0 \text{ when } x = 1
    Easy
    3 marks
    Solve with AI
    Written solution

    The given differential equation is

    (1+x2)dydx+2xy=11+x2;y=0 when x=1(1 + x^2)\frac{dy}{dx} + 2xy = \frac{1}{1 + x^2}; \qquad y = 0 \text{ when } x = 1

    Dividing every term by (1+x2)(1 + x^2) to make the coefficient of
    dydx\dfrac{dy}{dx} unity,

    dydx+2x1+x2 y=1(1+x2)2\frac{dy}{dx} + \frac{2x}{1 + x^2}\,y = \frac{1}{(1 + x^2)^2}

    Linear Differential Equation

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=2x1+x2,Q=1(1+x2)2P = \frac{2x}{1 + x^2}, \qquad Q = \frac{1}{(1 + x^2)^2}

    Integrating Factor

    ∫P dx=∫2x1+x2 dx=∫f′(x)f(x) dx=log⁡f(x)=log⁡(1+x2)\int P\,dx = \int \frac{2x}{1 + x^2}\,dx = \int \frac{f'(x)}{f(x)}\,dx = \log f(x) = \log(1 + x^2) I.F.=e∫P dx=elog⁡(1+x2)=1+x2\text{I.F.} = e^{\int P\,dx} = e^{\log(1 + x^2)} = 1 + x^2

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒y(1+x2)=∫1(1+x2)2(1+x2) dx+c\Rightarrow y(1 + x^2) = \int \frac{1}{(1 + x^2)^2}(1 + x^2)\,dx + c ⇒y(1+x2)=∫1x2+1 dx+c\Rightarrow y(1 + x^2) = \int \frac{1}{x^2 + 1}\,dx + c ⇒y(1+x2)=tan⁡−1x+c(i)\Rightarrow y(1 + x^2) = \tan^{-1} x + c \tag{i}

    To Find cc

    Given

    y=0 when x=1y = 0 \text{ when } x = 1

    Putting y=0y = 0 and x=1x = 1 in (i),

    0=tan⁡−11+c0 = \tan^{-1} 1 + c 0=π4+c(∵tan⁡π4=1)0 = \frac{\pi}{4} + c \qquad (\because \tan \tfrac{\pi}{4} = 1) ⇒c=−π4\Rightarrow c = -\frac{\pi}{4}

    Particular Solution

    Putting c=−π4c = -\frac{\pi}{4} in (i),

     y(1+x2)=tan⁡−1x−π4 \boxed{\,y(1 + x^2) = \tan^{-1} x - \frac{\pi}{4}\,}

    which is the required particular solution.

  15. 15

    Exercise 9.5 Question 15

    dydx−3ycot⁡x=sin⁡2x;y=2 when x=π2\frac{dy}{dx} - 3y \cot x = \sin 2x; \qquad y = 2 \text{ when } x = \frac{\pi}{2}
    Easy
    4 marks
    Solve with AI
    Written solution

    The given differential equation is

    dydx−3ycot⁡x=sin⁡2x\frac{dy}{dx} - 3y \cot x = \sin 2x

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=−3cot⁡x,Q=sin⁡2xP = -3\cot x, \quad Q = \sin 2x

    Integrating Factor

    ∫P dx=−3∫cot⁡x dx=−3log⁡sin⁡x=log⁡(sin⁡x)−3\int P\,dx = -3\int \cot x\,dx = -3\log \sin x = \log(\sin x)^{-3} I.F.=e∫P dx=elog⁡(sin⁡x)−3=(sin⁡x)−3=1sin⁡3x\text{I.F.} = e^{\int P\,dx} = e^{\log(\sin x)^{-3}} = (\sin x)^{-3} = \frac{1}{\sin^3 x}

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒ysin⁡3x=∫sin⁡2x⋅1sin⁡3x dx+c\Rightarrow \frac{y}{\sin^3 x} = \int \sin 2x \cdot \frac{1}{\sin^3 x}\,dx + c

    Using sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x \cos x,

    ysin⁡3x=∫2sin⁡xcos⁡xsin⁡3x dx+c\frac{y}{\sin^3 x} = \int \frac{2\sin x \cos x}{\sin^3 x}\,dx + c =2∫cos⁡xsin⁡2x dx+c= 2\int \frac{\cos x}{\sin^2 x}\,dx + c =2∫cos⁡xsin⁡x⋅sin⁡x dx+c= 2\int \frac{\cos x}{\sin x \cdot \sin x}\,dx + c =2∫cosec⁡xcot⁡x dx+c= 2\int \cosec x \cot x\,dx + c =−2cosec⁡x+c= -2\cosec x + c

    Simplifying

    ysin⁡3x=−2sin⁡x+c\frac{y}{\sin^3 x} = -\frac{2}{\sin x} + c

    Multiplying every term by L.C.M. =sin⁡3x= \sin^3 x,

    y=−2sin⁡2x+csin⁡3x(i)y = -2\sin^2 x + c\sin^3 x \tag{i}

    To Find cc

    Given

    y=2whenx=π2y = 2 \quad \text{when} \quad x = \frac{\pi}{2}

    Putting in (i),

    2=−2sin⁡2π2+csin⁡3π22 = -2\sin^2\frac{\pi}{2} + c\sin^3\frac{\pi}{2} 2=−2+c2 = -2 + c ⇒c=4\Rightarrow c = 4

    Particular Solution

    Putting c=4c = 4 in (i),

     y=−2sin⁡2x+4sin⁡3x \boxed{\,y = -2\sin^2 x + 4\sin^3 x\,}

    which is the required particular solution.

  16. 16

    Exercise 9.5 Question 16

    Find the equation of the curve passing through the origin, given that the slope of the tangent to the curve at any point (x,y)(x, y) is equal to the sum of coordinates of that point.

    Easy
    4 marks
    Solve with AI
    Written solution

    Given:
    Slope of the tangent to the curve at any point (x,y)(x, y)

    =Sum of coordinates of the point (x,y)= \text{Sum of coordinates of the point } (x, y) ⇒dydx=x+y\Rightarrow \frac{dy}{dx} = x + y ⇒dydx−y=x\Rightarrow \frac{dy}{dx} - y = x

    Linear Differential Equation

    Comparing with

    dydx+Py=Q,\frac{dy}{dx} + Py = Q,

    we have

    P=−1,Q=xP = -1, \quad Q = x

    Integrating Factor

    ∫P dx=∫(−1) dx=−x\int P\,dx = \int (-1)\,dx = -x I.F.=e∫P dx=e−x\text{I.F.} = e^{\int P\,dx} = e^{-x}

    General Solution

    y(I.F.)=∫Q(I.F.) dx+cy(\text{I.F.}) = \int Q(\text{I.F.})\,dx + c ⇒ye−x=∫xe−x dx+c\Rightarrow y e^{-x} = \int x e^{-x}\,dx + c

    Applying Integration by Parts

    Let

    I=x,II=e−xI = x, \quad II = e^{-x}

    Using the product rule,

    ∫I⋅II dx=I∫II dx−∫(dIdx∫II dx)dx\int I \cdot II\,dx = I \int II\,dx - \int \left(\frac{dI}{dx}\int II\,dx\right) dx =x(e−x−1)−∫1(e−x−1)dx= x\left(\frac{e^{-x}}{-1}\right) - \int 1\left(\frac{e^{-x}}{-1}\right) dx =−xe−x+∫e−x dx= -x e^{-x} + \int e^{-x}\,dx =−xe−x−e−x= -x e^{-x} - e^{-x}

    Substituting Back

    ye−x=−xe−x−e−x+cy e^{-x} = -x e^{-x} - e^{-x} + c

    Dividing every term by e−xe^{-x},

    y=−x−1+cex(i)y = -x - 1 + c e^{x} \tag{i}

    To Find cc

    Given: the curve passes through the origin (0,0)(0,0).

    Putting x=0x = 0 and y=0y = 0 in (i),

    0=0−1+c0 = 0 - 1 + c ⇒c=1\Rightarrow c = 1

    Equation of the Required Curve

    Putting c=1c = 1 in (i),

    y=−x−1+exy = -x - 1 + e^{x}

    or

     x+y+1=ex \boxed{\,x + y + 1 = e^{x}\,}

    which is the required equation of the curve.

  17. 17

    Exercise 9.5 Question 17

    Find the equation of the curve passing through the point

    (0,2)(0, 2)

    given that the sum of the coordinates of any point on the curve exceeds the magnitude of the slope of the tangent to the curve at that point by 55.

    Easy
    4 marks
  18. 18

    Exercise 9.5 Question 18

    . Choose the correct answer:

    The integrating factor of the differential equation

    xdydx−y=2x2x\frac{dy}{dx} - y = 2x^2

    is

    (A) e−xe^{-x}
    (B) e−ye^{-y}
    (C) 1x\dfrac{1}{x}
    (D) xx

    Easy
    1 mark
  19. 19

    Exercise 9.5 Question 19

    . Choose the correct answer:

    The integrating factor of the differential equation

    (1−y2)dxdy+yx=ay(−1<y<1)(1 - y^2)\frac{dx}{dy} + yx = ay \qquad (-1 < y < 1)

    is

    (A) 1y2−1\dfrac{1}{y^2 - 1}
    (B) 1y2−1\dfrac{1}{\sqrt{y^2 - 1}}
    (C) 11−y2\dfrac{1}{1 - y^2}
    (D) 11−y2\dfrac{1}{\sqrt{1 - y^2}}

    Easy
    1 mark
AI Tutor

Stuck on one of these? Work it through out loud

A finished solution tells you the answer. The AI tutor takes one question of Ex 9.5 at a time and works it with you until you can do the next one on your own.

  • Ask it out loud, in your own words
  • It gives you the next step, not the answer
  • Stuck on part (ii)? Start there
The rest of Ch 9

The other 4 exercises in Differential Equations

Every exercise in Class 12 Maths Ch 9, solved the same way. Or open the whole chapter on one page.

Common questions

What students ask about Ex 9.5

How many questions are in Ex 9.5 of Class 12 Maths?

Ex 9.5 has 19 questions. Every one is solved step by step on this page, free to read.

Where does Ex 9.5 come in Chapter 9?

It is the fifth of the 5 exercises in Class 12 Maths Chapter 9, Differential Equations. It is the last one in the chapter.

How many marks is Ex 9.5 worth?

The 19 questions here carry 67 marks between them, at easy difficulty overall. Marks are shown on each question so you can see what a full answer needs.

Are these Ex 9.5 solutions free?

Yes. Every question and its full working is free to read, with no account needed.

Can I download Ex 9.5 solutions as a PDF?

There is no PDF to download. Every solution is on this page instead, which means it is searchable, always the current 2026-27 syllabus, and readable on a phone. Use your browser's print option if you want it on paper.