Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2026-27 · Section C · 3 marks

Q29: Particular solution of x dy+(y−x2ex) dx=0x\,dy + (y - x^2e^x)\,dx = 0⁠, or of (x2+y2) dy=xy dx(x^2 + y^2)\,dy = xy\,dx

The question

(a) Find the particular solution of the differential equation

x dy+(y−x2ex) dx=0x\,dy + (y - x^2e^x)\,dx = 0⁠, given that y (1) =0

OR

(b) Find the particular solution of the differential equation (x2+y2) dy=xy dx(x^2 + y^2)\,dy = xy\,dx⁠, given that y(0)=1y(0) = 1

Exam answer

(a)

Dividing by dxdx⁠,

xdydx+y−x2ex=0x\frac{dy}{dx} + y - x^2e^x = 0

Dividing by xx⁠, the equation is linear:

dydx+1x y=xex\frac{dy}{dx} + \frac1x\,y = xe^x
Why?

Dividing by dxdx turns dydy into dydx\frac{dy}{dx}⁠. Dividing by xx leaves dydx\frac{dy}{dx} on its own, and x2exx=xex\frac{x^2e^x}{x} = xe^x moves to the right.

This is the linear form

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

with P=1xP = \frac1x and Q=xexQ = xe^x⁠, both functions of xx only.

I.F.=e∫1x dx=elog⁡x=x\text{I.F.} = e^{\int \frac1x\,dx} = e^{\log x} = x
Why?

The integrating factor is e∫P dxe^{\int P\,dx}⁠. Here ∫1x dx=log⁡x\int\frac1x\,dx = \log x (we may take x>0x > 0⁠, since the given point has x=1x = 1⁠).

Then elog⁡x=xe^{\log x} = x⁠, because ee and log⁡\log undo each other.

The solution is

y⋅x=∫x2ex dxy \cdot x = \int x^2e^x\,dx
Why?

The solution of a linear equation is

y⋅I.F.=∫Q⋅I.F. dx+Cy\cdot\text{I.F.} = \int Q\cdot\text{I.F.}\,dx + C

Here Q⋅I.F.=xex⋅x=x2exQ\cdot\text{I.F.} = xe^x\cdot x = x^2e^x⁠. The constant CC is added when the integral is done.

Using by parts,

yx=x2ex−∫2xex dxyx = x^2e^x - \int 2xe^x\,dx

Using by parts again,

yx=x2ex−2(xex−ex)+Cyx = x^2e^x - 2(xe^x - e^x) + C
Why?

By parts, with the algebraic factor as the first function and exe^x as the second:

∫x2ex dx=x2ex−∫2x ex dx\begin{aligned} \int x^2e^x\,dx &= x^2e^x \\ &\quad - \int 2x\,e^x\,dx \end{aligned}

Here the first function is x2x^2⁠, with derivative 2x2x⁠, and ∫ex dx=ex\int e^x\,dx = e^x⁠.

The power of xx drops by one each time, so do it once more:

∫xex dx=xex−ex\int xe^x\,dx = xe^x - e^x

This time the first function is xx⁠, with derivative 1:

∫xex dx=x ex−∫1⋅ex dx=xex−ex∫2xex dx=2(xex−ex)\begin{aligned} \int xe^x\,dx &= x\,e^x - \int 1\cdot e^x\,dx \\ &= xe^x - e^x \\[4pt] \int 2xe^x\,dx &= 2(xe^x - e^x) \end{aligned}

Watch the signs: −2(xex−ex)=−2xex+2ex-2(xe^x - e^x) = -2xe^x + 2e^x⁠.

Given y(1)=0y(1) = 0⁠: 0=e−2(e−e)+C0 = e - 2(e - e) + C⁠, so C=−eC = -e⁠.

Why?

Put x=1x = 1⁠, y=0y = 0⁠. The left side yxyx is 0. On the right, x2ex=ex^2e^x = e and xex−ex=e−e=0xe^x - e^x = e - e = 0⁠. So 0=e+C0 = e + C⁠.

(0)(1)=(1)2e1−2((1)e1−e1)+C0=e−2(e−e)+C0=e−2(0)+C0=e+CC=−e\begin{aligned} (0)(1) &= (1)^2e^1 \\ &\quad - 2\big((1)e^1 - e^1\big) + C \\ 0 &= e - 2(e - e) + C \\ 0 &= e - 2(0) + C \\ 0 &= e + C \\ C &= -e \end{aligned}

So xy=x2ex−2xex+2ex−exy = x^2e^x - 2xe^x + 2e^x - e⁠.

Why?

Put C=−eC = -e and open the bracket:

xy=x2ex−2(xex−ex)−e=x2ex−2xex+2ex−e\begin{aligned} xy &= x^2e^x - 2(xe^x - e^x) - e \\ &= x^2e^x - 2xe^x + 2e^x - e \end{aligned}

Then take out the common factor exe^x from the first three terms:

x2ex−2xex+2ex=ex(x2−2x+2)\begin{aligned} &x^2e^x - 2xe^x + 2e^x \\ &= e^x(x^2 - 2x + 2) \end{aligned}

∴\therefore Particular solution: xy=ex(x2−2x+2)−exy = e^x(x^2 - 2x + 2) - e

(b)

dydx=xyx2+y2\frac{dy}{dx} = \frac{xy}{x^2 + y^2}

This is a homogeneous differential equation. Let y=vxy = vx⁠. Then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠.

Why?

The top xyxy and the bottom x2+y2x^2 + y^2 both have degree 2 in every term. So the right side depends only on yx\frac{y}{x}⁠: the equation is homogeneous, and y=vxy = vx is the standard substitution.

dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx} comes from the product rule on vxvx⁠.

v+xdvdx=v1+v2⇒xdvdx=v−v−v31+v2=−v31+v2\begin{aligned} v + x\frac{dv}{dx} &= \frac{v}{1 + v^2} \\ \Rightarrow x\frac{dv}{dx} &= \frac{v - v - v^3}{1 + v^2} \\ &= \frac{-v^3}{1 + v^2} \end{aligned}
Why?

Put y=vxy = vx on the right and cancel x2x^2⁠:

x⋅vxx2+v2x2=v1+v2\frac{x\cdot vx}{x^2 + v^2x^2} = \frac{v}{1 + v^2} x⋅vxx2+v2x2=vx2x2(1+v2)=v1+v2\begin{aligned} \frac{x\cdot vx}{x^2 + v^2x^2} &= \frac{vx^2}{x^2(1 + v^2)} \\ &= \frac{v}{1 + v^2} \end{aligned}

Then subtract vv over the common denominator: v=v+v31+v2v = \frac{v + v^3}{1 + v^2}⁠.

xdvdx=v1+v2−v=v1+v2−v(1+v2)1+v2=v−v−v31+v2=−v31+v2\begin{aligned} x\frac{dv}{dx} &= \frac{v}{1 + v^2} - v \\ &= \frac{v}{1 + v^2} - \frac{v(1 + v^2)}{1 + v^2} \\ &= \frac{v - v - v^3}{1 + v^2} \\ &= \frac{-v^3}{1 + v^2} \end{aligned}

Separating the variables,

∫1+v2v3 dv=−∫dxx\int \frac{1 + v^2}{v^3}\,dv = -\int \frac{dx}{x}
Why?

Put all the vv terms with dvdv and all the xx terms with dxdx⁠:

Multiply both sides by 1+v2−v3\frac{1 + v^2}{-v^3} and by dxx\frac{dx}{x}⁠:

1+v2−v3 dv=dxx\frac{1 + v^2}{-v^3}\,dv = \frac{dx}{x}

Then move the minus sign to the right and integrate both sides.

∫(1v3+1v)dv=−∫dxx⇒ −12v2+log⁡∣v∣=−log⁡∣x∣+log⁡C\begin{aligned} &\int\left(\frac{1}{v^3} + \frac1v\right)dv = -\int\frac{dx}{x} \\ \Rightarrow\ &-\frac{1}{2v^2} + \log|v| \\ &\quad = -\log|x| + \log C \end{aligned}
Why?

Split the fraction: 1+v2v3=1v3+1v\frac{1 + v^2}{v^3} = \frac{1}{v^3} + \frac{1}{v}⁠.

1+v2v3=1v3+v2v3=1v3+1v\frac{1 + v^2}{v^3} = \frac{1}{v^3} + \frac{v^2}{v^3} = \frac{1}{v^3} + \frac{1}{v}

Also ∫1v dv=log⁡∣v∣\int\frac1v\,dv = \log|v| and −∫dxx=−log⁡∣x∣-\int\frac{dx}{x} = -\log|x|⁠.

Power rule with n=−3n = -3⁠:

∫v−3 dv=v−2−2=−12v2\int v^{-3}\,dv = \frac{v^{-2}}{-2} = -\frac{1}{2v^2}

Writing the constant as log⁡C\log C makes the logs easy to combine later.

Putting v=yxv = \frac{y}{x}⁠,

−x22y2+log⁡∣y∣−log⁡∣x∣=−log⁡∣x∣+log⁡C\begin{aligned} &-\frac{x^2}{2y^2} + \log|y| - \log|x| \\ &\quad = -\log|x| + \log C \end{aligned} log⁡∣yC∣=x22y2\log\left|\frac{y}{C}\right| = \frac{x^2}{2y^2}
Why?

With v=yxv = \frac{y}{x}⁠: 12v2=x22y2\frac{1}{2v^2} = \frac{x^2}{2y^2} and log⁡∣v∣=log⁡∣y∣−log⁡∣x∣\log|v| = \log|y| - \log|x|⁠.

The −log⁡∣x∣-\log|x| cancels from both sides. Then log⁡∣y∣−log⁡C=log⁡∣yC∣\log|y| - \log C = \log\left|\frac{y}{C}\right|⁠.

12v2=12(yx)2=12⋅y2x2=x22y2−x22y2+log⁡∣y∣=log⁡Clog⁡∣y∣−log⁡C=x22y2log⁡∣yC∣=x22y2\begin{aligned} \frac{1}{2v^2} &= \frac{1}{2\left(\frac{y}{x}\right)^2} = \frac{1}{2\cdot\frac{y^2}{x^2}} \\ &= \frac{x^2}{2y^2} \\[4pt] -\frac{x^2}{2y^2} + \log|y| &= \log C \\ \log|y| - \log C &= \frac{x^2}{2y^2} \\ \log\left|\frac{y}{C}\right| &= \frac{x^2}{2y^2} \end{aligned}

When x=0x = 0⁠, y=1y = 1⁠: log⁡1C=0\log\frac1C = 0⁠, so C=1C = 1⁠.

So log⁡y=x22y2\log y = \frac{x^2}{2y^2}⁠.

Why?

At x=0x = 0 the right side is 0. The only number whose log is 0 is 1, so 1C=1\frac1C = 1⁠.

log⁡∣1C∣=(0)22(1)2=02=01C=e0=1C=1\begin{aligned} \log\left|\frac{1}{C}\right| &= \frac{(0)^2}{2(1)^2} = \frac{0}{2} = 0 \\ \frac{1}{C} &= e^0 = 1 \\ C &= 1 \end{aligned}

So log⁡∣y1∣=log⁡∣y∣=x22y2\log\left|\frac{y}{1}\right| = \log|y| = \frac{x^2}{2y^2}⁠.

Near the point (0,1)(0, 1)⁠, yy is positive, so ∣y∣=y|y| = y⁠. Then log⁡y=k\log y = k means y=eky = e^k⁠.

∴\therefore The particular solution is y=ex22y2y = e^{\dfrac{x^2}{2y^2}}

Where this comes from

Chapter 9, Differential Equations: Linear and homogeneous differential equations.

Question type: (a) Linear equations + Integration by parts + A particular solution (combined); (b) Homogeneous equations + A particular solution (combined)

How to spot it: click to see

(a) Ch 9, type 7. Linear equations: the integrating factor

Spot it: dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, with PP and QQ in xx only, and yy only to power 1.

Here: Divide by x dxx\,dx⁠: dydx+1xy=xex\frac{dy}{dx} + \frac1x y = xe^x⁠. So P=1xP = \frac1x⁠, I.F.=x\text{I.F.} = x⁠, and yx=∫x2ex dxyx = \int x^2e^x\,dx⁠.

(a) Ch 7, type 8. Integration by parts: a product of two different kinds

Spot it: a product such as xsin⁡xx\sin x⁠, xexxe^x or xlog⁡xx\log x⁠. A lone log⁡x\log x or tan⁡−1x\tan^{-1}x works too: take the other function as 1.

Here: ∫x2ex dx\int x^2e^x\,dx is a power times exe^x⁠: integrate by parts twice, with x2x^2 and then xx as the first function.

(a) Ch 9, type 4. A particular solution: solve, then find CC

Spot it: a condition such as "y=1y = 1 when x=0x = 0", or "the curve passes through a point".

Here: Then y(1)=0y(1) = 0 gives 0=e−2(e−e)+C0 = e - 2(e - e) + C⁠, so C=−eC = -e⁠.

(b) Ch 9, type 6. Homogeneous equations: put y=vxy = vx

Spot it: every term has the same degree, like x2x^2⁠, xyxy and y2y^2⁠, or you see yx\frac{y}{x} inside sin, cos or log. You cannot separate xx and yy⁠.

Here: dydx=xyx2+y2\frac{dy}{dx} = \frac{xy}{x^2 + y^2} has every term of degree 2. Put y=vxy = vx⁠: xdvdx=−v31+v2x\frac{dv}{dx} = \frac{-v^3}{1 + v^2}⁠, so separate 1+v2v3 dv=−dxx\frac{1 + v^2}{v^3}\,dv = -\frac{dx}{x}⁠.

(b) Ch 9, type 4. A particular solution: solve, then find CC

Spot it: a condition such as "y=1y = 1 when x=0x = 0", or "the curve passes through a point".

Here: Then y(0)=1y(0) = 1 gives log⁡1C=0\log\frac1C = 0⁠, so C=1C = 1 and y=ex22y2y = e^{\frac{x^2}{2y^2}}⁠.

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →