Class 12 Maths NCERT Solutions Chapter 9 Ex 9.5 – Linear Differential Equations | Boundless Maths
Ex 9.5 Class 12 Maths NCERT Solutions

Class 12 Maths NCERT Solutions Chapter 9 Ex 9.5 – Linear Differential Equations

This Class 12 Maths NCERT Solutions Chapter 9 Ex 9.5 page covers all 19 questions, solved step-by-step — writing the equation in the standard form \dfrac{dy}{dx}+Py=Q, finding the integrating factor e^{\int P\,dx}, and using it to turn the left side into an exact derivative that can be integrated directly.

Questions 1–12 build the integrating-factor method across equations of increasing complexity, including several — Q10, Q11 and Q12 — where it's actually x that's linear in terms of y, so the equation needs flipping to \dfrac{dx}{dy}+P_1x=Q_1 before the same method applies. Questions 13–15 add an initial condition to get a particular solution, Q16 and Q17 are curve-fitting problems built on a linear equation, and the exercise closes with two MCQs testing whether you can spot the integrating factor at a glance.

19Questions
Medium–HardDifficulty Mix
2026-27CBSE Syllabus

Class 12 Maths NCERT Solutions Chapter 9 Ex 9.5 — All 19 Questions

1

Find the general solution: \dfrac{dy}{dx}+2y=\sin x

Medium +
Solution

Here P=2,\ Q=\sin x, so I.F. =e^{\int 2\,dx}=e^{2x}.

y\,e^{2x}=\displaystyle\int e^{2x}\sin x\,dx+C. Using the standard reduction formula, \displaystyle\int e^{2x}\sin x\,dx=\dfrac{e^{2x}(2\sin x-\cos x)}{5}.

Answer: y = (2sin x − cos x)/5 + Ce⁻²ˣ
2

Find the general solution: \dfrac{dy}{dx}+3y=e^{-2x}

Easy +
Solution

I.F. =e^{\int 3\,dx}=e^{3x}.

y\,e^{3x}=\displaystyle\int e^{-2x}e^{3x}dx+C=\displaystyle\int e^x\,dx+C=e^x+C.

Answer: y = e⁻²ˣ + Ce⁻³ˣ
3

Find the general solution: \dfrac{dy}{dx}+\dfrac{y}{x}=x^2

Easy +
Solution

I.F. =e^{\int dx/x}=e^{\log x}=x.

y\cdot x=\displaystyle\int x^2\cdot x\,dx+C=\dfrac{x^4}{4}+C.

Answer: y = x³/4 + C/x
4

Find the general solution: \dfrac{dy}{dx}+(\sec x)y=\tan x \left(0\le x \lt \dfrac{\pi}{2}\right)

Hard +
Solution

I.F. =e^{\int\sec x\,dx}=e^{\log|\sec x+\tan x|}=\sec x+\tan x.

y(\sec x+\tan x)=\displaystyle\int\tan x(\sec x+\tan x)dx+C=\displaystyle\int(\sec x\tan x+\tan^2x)dx+C.

=\displaystyle\int\sec x\tan x\,dx+\displaystyle\int(\sec^2x-1)dx+C=\sec x+\tan x-x+C.

Answer: y(sec x + tan x) = sec x + tan x − x + C
5

Find the general solution: \cos^2x\dfrac{dy}{dx}+y=\tan x \left(0\le x \lt \dfrac{\pi}{2}\right)

Hard +
Solution

Dividing by \cos^2x: \dfrac{dy}{dx}+y\sec^2x=\tan x\sec^2x, so I.F. =e^{\int\sec^2x\,dx}=e^{\tan x}.

y\,e^{\tan x}=\displaystyle\int\tan x\sec^2x\,e^{\tan x}dx+C. Substituting t=\tan x: \displaystyle\int t\,e^t\,dt=e^t(t-1).

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

Answer: y = tan x − 1 + Ce⁻ᵗᵃⁿˣ
6

Find the general solution: x\dfrac{dy}{dx}+2y=x^2\log x

Hard +
Solution

Dividing by x: \dfrac{dy}{dx}+\dfrac{2y}{x}=x\log x, so I.F. =e^{\int 2/x\,dx}=x^2.

y\,x^2=\displaystyle\int x^3\log x\,dx+C. By parts (u=\log x): \displaystyle\int x^3\log x\,dx=\dfrac{x^4}{4}\log x-\dfrac{x^4}{16}+C.

Answer: y = (x²/4)log x − x²/16 + C/x²
7

Find the general solution: x\log x\dfrac{dy}{dx}+y=\dfrac{2}{x}\log x

Hard +
Solution

Dividing by x\log x: \dfrac{dy}{dx}+\dfrac{y}{x\log x}=\dfrac{2}{x^2}, so I.F. =e^{\int dx/(x\log x)}=e^{\log|\log x|}=\log x.

y\log x=\displaystyle\int\dfrac{2\log x}{x^2}dx+C. By parts (u=\log x): \displaystyle\int\dfrac{2\log x}{x^2}dx=-\dfrac{2\log x}{x}-\dfrac{2}{x}+C.

Answer: y log x = −(2/x)(1 + log x) + C
8

Find the general solution: (1+x^2)dy+2xy\,dx=\cot x\,dx (x\neq 0)

Medium +
Solution

\dfrac{dy}{dx}+\dfrac{2xy}{1+x^2}=\dfrac{\cot x}{1+x^2}, so I.F. =e^{\int 2x/(1+x^2)dx}=e^{\log(1+x^2)}=1+x^2.

y(1+x^2)=\displaystyle\int\cot x\,dx+C=\log|\sin x|+C.

Answer: y(1 + x²) = log|sin x| + C
9

Find the general solution: x\dfrac{dy}{dx}+y-x+xy\cot x=0 (x\neq 0)

Hard +
Solution

Dividing by x: \dfrac{dy}{dx}+y\left(\dfrac{1}{x}+\cot x\right)=1, so I.F. =e^{\int(1/x+\cot x)dx}=e^{\log x+\log\sin x}=x\sin x.

y\cdot x\sin x=\displaystyle\int x\sin x\,dx+C. Integrating by parts: \displaystyle\int x\sin x\,dx=\sin x-x\cos x+C.

Answer: xy sin x = sin x − x cos x + C
10

Find the general solution: (x+y)\dfrac{dy}{dx}=1

Hard +
Solution

This is linear in x rather than y. Rewriting: \dfrac{dx}{dy}=x+y, i.e. \dfrac{dx}{dy}-x=y, so I.F. =e^{\int -1\,dy}=e^{-y}.

x\,e^{-y}=\displaystyle\int y\,e^{-y}dy+C. By parts: \displaystyle\int y\,e^{-y}dy=-e^{-y}(y+1)+C.

Answer: x + y + 1 = Ceʸ
11

Find the general solution: y\,dx+(x-y^2)dy=0

Medium +
Solution

Linear in x: \dfrac{dx}{dy}+\dfrac{x}{y}=y, so I.F. =e^{\int dy/y}=y.

x\,y=\displaystyle\int y\cdot y\,dy+C=\dfrac{y^3}{3}+C.

Answer: x = y²/3 + C/y
12

Find the general solution: (x+3y^2)\dfrac{dy}{dx}=y (y \gt 0)

Medium +
Solution

Linear in x: \dfrac{dx}{dy}=\dfrac{x}{y}+3y, i.e. \dfrac{dx}{dy}-\dfrac{x}{y}=3y, so I.F. =e^{-\int dy/y}=\dfrac{1}{y}.

\dfrac{x}{y}=\displaystyle\int 3y\cdot\dfrac{1}{y}dy+C=3y+C.

Answer: x = 3y² + Cy

Know exactly which chapters are costing you marks

1000+ solved CBSE PYQs, unlimited AI-generated practice for your weak areas, and a chapter-wise Performance Report — not just for this chapter, but your entire syllabus.

Explore it →
13

Find the particular solution: \dfrac{dy}{dx}+2y\tan x=\sin x; y=0 when x=\dfrac{\pi}{3}.

Hard +
Solution

I.F. =e^{\int 2\tan x\,dx}=e^{2\log\sec x}=\sec^2x.

y\sec^2x=\displaystyle\int\sin x\sec^2x\,dx+C=\displaystyle\int\sec x\tan x\,dx+C=\sec x+C.

At x=\pi/3,y=0: \sec(\pi/3)=2, so 0=2+C\Rightarrow C=-2.

Answer: y = cos x − 2cos²x
14

Find the particular solution: (1+x^2)\dfrac{dy}{dx}+2xy=\dfrac{1}{1+x^2}; y=0 when x=1.

Hard +
Solution

I.F. =e^{\int 2x/(1+x^2)dx}=1+x^2.

y(1+x^2)=\displaystyle\int\dfrac{dx}{1+x^2}+C=\tan^{-1}x+C.

At x=1,y=0: 0=\dfrac{\pi}{4}+C\Rightarrow C=-\dfrac{\pi}{4}.

Answer: y(1 + x²) = tan⁻¹x − π/4
15

Find the particular solution: \dfrac{dy}{dx}-3y\cot x=\sin 2x; y=2 when x=\dfrac{\pi}{2}.

Hard +
Solution

I.F. =e^{-3\int\cot x\,dx}=e^{-3\log\sin x}=\csc^3x.

y\csc^3x=\displaystyle\int\sin 2x\csc^3x\,dx+C=\displaystyle\int\dfrac{2\cos x}{\sin^2x}dx+C=-\dfrac{2}{\sin x}+C.

At x=\pi/2,y=2: 2=-2+C\Rightarrow C=4. Multiplying through by \sin^3x:

Answer: y = 4sin³x − 2sin²x
16

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

Hard +
Solution

The condition gives \dfrac{dy}{dx}=x+y, i.e. \dfrac{dy}{dx}-y=x, so I.F. =e^{-x}.

y\,e^{-x}=\displaystyle\int x\,e^{-x}dx+C=-e^{-x}(x+1)+C.

At (0,0): 0=-1+C\Rightarrow C=1. So y\,e^{-x}=-e^{-x}(x+1)+1.

Answer: y = eˣ − x − 1
17

Find the equation of a curve passing through the point (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 5.

Hard +
Solution

The condition gives x+y=\dfrac{dy}{dx}+5, i.e. \dfrac{dy}{dx}-y=x-5, so I.F. =e^{-x}.

y\,e^{-x}=\displaystyle\int(x-5)e^{-x}dx+C=e^{-x}(4-x)+C.

At (0,2): 2=4+C\Rightarrow C=-2. So y\,e^{-x}=e^{-x}(4-x)-2.

Answer: y = 4 − x − 2eˣ
18

The Integrating Factor of the differential equation x\dfrac{dy}{dx}-y=2x^2 is

Easy +
Solution
(A) e⁻ˣ (B) e⁻ʸ (C) 1/x (D) x

Dividing by x: \dfrac{dy}{dx}-\dfrac{y}{x}=2x, so P=-\dfrac{1}{x}.

I.F. =e^{\int -1/x\,dx}=e^{-\log x}=\dfrac{1}{x}.

Answer: (C) 1/x
19

The Integrating Factor of the differential equation (1-y^2)\dfrac{dx}{dy}+yx=ay (-1 \lt y \lt 1) is

Medium +
Solution
(A) 1/(y²−1) (B) 1/√(y²−1) (C) 1/(1−y²) (D) 1/√(1−y²)

Dividing by 1-y^2: \dfrac{dx}{dy}+\dfrac{y}{1-y^2}x=\dfrac{ay}{1-y^2}, so P_1=\dfrac{y}{1-y^2}.

I.F. =e^{\int y/(1-y^2)\,dy}=e^{-\frac{1}{2}\log(1-y^2)}=(1-y^2)^{-1/2}.

Answer: (D) 1/√(1 − y²)
Common Questions

FAQs — Class 12 Maths NCERT Solutions Chapter 9 Ex 9.5

How many questions are there in Exercise 9.5?

Exercise 9.5 has 19 questions — 12 on finding the general solution of a linear differential equation, 3 on finding a particular solution given an initial condition, 2 curve-fitting problems, and 2 MCQs on identifying the integrating factor.

What is the integrating factor and how is it used?

For a linear differential equation of the form dy/dx + Py = Q, where P and Q are functions of x only, the integrating factor is I.F. = e^(∫P dx). Multiplying both sides of the equation by the integrating factor turns the left side into the derivative of y·I.F., so integrating both sides directly gives the solution y·I.F. = ∫(Q × I.F.) dx + C.

Where can I find the official NCERT textbook for this exercise?

Exercise 9.5 is from Chapter 9, Differential Equations, in the NCERT Class 12 Mathematics textbook (Part II), published by the National Council of Educational Research and Training (NCERT) and prescribed by CBSE. You can download the official textbook PDF directly from ncert.nic.in, NCERT's official website — the solutions on this page follow the questions exactly as they appear there.

Carry the formulas with you

One-page printable formula deck for every Calculus chapter, including Differential Equations.

Get the Formula Deck →
Expert CBSE Coaching · Class 9–12