Class 12 Maths, Worked in Full Past papersGet updates
CBSE Board Examination 2022 (Term 2) · Section B · 3 marks

Q10: Particular solution of xdydx+xcos⁡2(yx)=yx\frac{dy}{dx} + x\cos^2\left(\frac{y}{x}\right) = y with y=π4y = \frac{\pi}{4} at x=1x = 1

The question

Find the particular solution of the differential equation xdydx+xcos⁡2(yx)=yx\dfrac{dy}{dx} + x\cos^2\left(\dfrac{y}{x}\right) = y⁠; given that when x=1x = 1⁠, y=π4y = \dfrac{\pi}{4}⁠.

Exam answer

The given differential equation can be written as

dydx=yx−cos⁡2yx…(i)\frac{dy}{dx} = \frac{y}{x} - \cos^2\frac{y}{x} \quad\ldots(\text{i})
Why?

Divide every term by xx and move cos⁡2yx\cos^2\frac{y}{x} to the right, so that dydx\frac{dy}{dx} stands alone.

xdydx+xcos⁡2yx=ydydx+cos⁡2yx=yxdydx=yx−cos⁡2yx\begin{aligned} x\frac{dy}{dx} + x\cos^2\frac{y}{x} &= y \\ \frac{dy}{dx} + \cos^2\frac{y}{x} &= \frac{y}{x} \\ \frac{dy}{dx} &= \frac{y}{x} - \cos^2\frac{y}{x} \end{aligned}

It is a homogeneous differential equation.

Why?

The right side depends only on the ratio yx\frac{y}{x}⁠. Replacing x,yx, y by kx,kykx, ky leaves it unchanged, so it is homogeneous of degree 0.

For such equations the standard substitution is y=vxy = vx⁠, with vv a function of xx⁠.

Let y=vxy = vx⁠. ∴ dydx=v+xdvdx\therefore\ \frac{dy}{dx} = v + x\frac{dv}{dx}

Why?

Product rule on v⋅xv \cdot x⁠: the derivative of xx is 1, which gives vv⁠, plus xx times the derivative of vv⁠.

(i) becomes

v+xdvdx=v−cos⁡2vv + x\frac{dv}{dx} = v - \cos^2v ⇒xdvdx=−cos⁡2v\Rightarrow x\frac{dv}{dx} = -\cos^2v ⇒sec⁡2v dv=−dxx\Rightarrow \sec^2v\,dv = -\frac{dx}{x}
Why?

Since yx=v\frac{y}{x} = v⁠, the right side of (i) is v−cos⁡2vv - \cos^2v⁠. The vv on each side cancels.

v+xdvdx=v−cos⁡2vxdvdx=v−cos⁡2v−vxdvdx=−cos⁡2v\begin{aligned} v + x\frac{dv}{dx} &= v - \cos^2v \\ x\frac{dv}{dx} &= v - \cos^2v - v \\ x\frac{dv}{dx} &= -\cos^2v \end{aligned}

Separate the variables: divide by cos⁡2v\cos^2v and by xx⁠, and multiply by dxdx⁠. Use 1cos⁡2v=sec⁡2v\frac{1}{\cos^2v} = \sec^2v⁠.

dvcos⁡2v=−dxxsec⁡2v dv=−dxx\begin{aligned} \frac{dv}{\cos^2v} &= -\frac{dx}{x} \\ \sec^2v\,dv &= -\frac{dx}{x} \end{aligned}

Integrating both sides,

∫sec⁡2v dv=−∫dxx\int \sec^2v\,dv = -\int \frac{dx}{x} tan⁡v=−log⁡∣x∣+C\tan v = -\log|x| + C
Why?

Standard integrals:

∫sec⁡2v dv=tan⁡v∫dxx=log⁡∣x∣\begin{aligned} \int \sec^2v\,dv &= \tan v \\ \int \frac{dx}{x} &= \log|x| \end{aligned}

One arbitrary constant CC is enough for both sides.

⇒tan⁡yx=−log⁡∣x∣+C\Rightarrow \tan\frac{y}{x} = -\log|x| + C
Why?

Put back v=yxv = \frac{y}{x}⁠, since we set y=vxy = vx⁠. So tan⁡v\tan v becomes tan⁡yx\tan\frac{y}{x}⁠.

When x=1x = 1⁠, y=π4y = \frac{\pi}{4}⁠:

tan⁡π4=−log⁡1+C⇒C=1\tan\frac{\pi}{4} = -\log 1 + C \Rightarrow C = 1
Why?

At x=1x = 1⁠, yx=π4\frac{y}{x} = \frac{\pi}{4}⁠. Then tan⁡π4=1\tan\frac{\pi}{4} = 1 and log⁡1=0\log 1 = 0⁠, so 1=0+C1 = 0 + C⁠.

tan⁡π/41=−log⁡∣1∣+Ctan⁡π4=−log⁡1+C1=−0+CC=1\begin{aligned} \tan\frac{\pi/4}{1} &= -\log|1| + C \\ \tan\frac{\pi}{4} &= -\log 1 + C \\ 1 &= -0 + C \\ C &= 1 \end{aligned}

∴\therefore The particular solution is tan⁡yx=−log⁡∣x∣+1\tan\dfrac{y}{x} = -\log|x| + 1⁠.

Where this comes from

Chapter 9, Differential Equations: Homogeneous equation: particular solution.

Question type: Homogeneous equations + A particular solution (combines 2 types)

How to spot it: click to see

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: Dividing by xx gives dydx=yx−cos⁡2yx\frac{dy}{dx} = \frac{y}{x} - \cos^2\frac{y}{x}⁠, all in yx\frac{y}{x}⁠. Put y=vxy = vx⁠: the vv terms cancel, leaving sec⁡2v dv=−dxx\sec^2v\,dv = -\frac{dx}{x}⁠.

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: The condition y=π4y = \frac{\pi}{4} at x=1x = 1 then fixes the constant: tan⁡π4=−log⁡1+C\tan\frac{\pi}{4} = -\log 1 + C⁠, so C=1C = 1⁠.

Found an error?

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