Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2021-22 (Term 2) · Section B · 3 marks

Q8: General solution of xdydx=y−xsin⁡(yx)x\frac{dy}{dx} = y - x\sin\left(\frac{y}{x}\right)⁠, or a particular solution of dydx+ycot⁡x=21+sin⁡x\frac{dy}{dx} + y\cot x = \frac{2}{1 + \sin x}

The question

(a) Find the general solution of the following differential equation:

xdydx=y−xsin⁡(yx)x\frac{dy}{dx} = y - x\sin\left(\frac{y}{x}\right)

OR

(b) Find the particular solution of the following differential equation, given that y=0y = 0 when x=π4x = \dfrac{\pi}{4}⁠:

dydx+ycot⁡x=21+sin⁡x\frac{dy}{dx} + y\cot x = \frac{2}{1 + \sin x}
Exam answer

(a)

The given differential equation can be written as

dydx=yx−sin⁡(yx)\frac{dy}{dx} = \frac{y}{x} - \sin\left(\frac{y}{x}\right)

It is a homogeneous differential equation.

Why?

Dividing both sides by xx leaves a right side that depends only on yx\frac{y}{x}⁠.

xdydx=y−xsin⁡yxdydx=yx−xxsin⁡yx=yx−sin⁡yx\begin{aligned} x\frac{dy}{dx} &= y - x\sin\frac{y}{x} \\ \frac{dy}{dx} &= \frac{y}{x} - \frac{x}{x}\sin\frac{y}{x} \\ &= \frac{y}{x} - \sin\frac{y}{x} \end{aligned}

An equation of the form

dydx=g(yx)\frac{dy}{dx} = g\left(\frac{y}{x}\right)

is homogeneous; here g(v)=v−sin⁡vg(v) = v - \sin v⁠. The standard method is the substitution y=vxy = vx⁠.

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

Why?

Here vv is a function of xx⁠, so differentiate vxvx by the product rule:

ddx(vx)=v⋅1+xdvdx\frac{d}{dx}(vx) = v\cdot 1 + x\frac{dv}{dx}

The equation becomes

v+xdvdx=v−sin⁡vv + x\frac{dv}{dx} = v - \sin v ⇒xdvdx=−sin⁡v\Rightarrow x\frac{dv}{dx} = -\sin v ⇒dvsin⁡v=−dxx\Rightarrow \frac{dv}{\sin v} = -\frac{dx}{x}
Why?

Since yx=v\frac{y}{x} = v⁠, the right side is v−sin⁡vv - \sin v⁠.

The vv on both sides cancels. Then separate the variables: divide by xsin⁡vx\sin v⁠, so that all the vv terms sit with dvdv and all the xx terms with dxdx⁠.

xdvdx=v−sin⁡v−v=−sin⁡vdvsin⁡v=−dxxcosec⁡v dv=−dxx\begin{aligned} x\frac{dv}{dx} &= v - \sin v - v \\ &= -\sin v \\[4pt] \frac{dv}{\sin v} &= -\frac{dx}{x} \\ \operatorname{cosec}v\,dv &= -\frac{dx}{x} \end{aligned}

The last line uses 1sin⁡v=cosec⁡v\frac{1}{\sin v} = \operatorname{cosec}v⁠.

⇒cosec⁡v dv=−dxx\Rightarrow \operatorname{cosec}v\,dv = -\frac{dx}{x}

Integrating both sides,

log⁡∣cosec⁡v−cot⁡v∣=−log⁡∣x∣+log⁡K, K>0\begin{aligned} &\log|\operatorname{cosec}v - \cot v| \\ &= -\log|x| + \log K,\ K > 0 \end{aligned}
Why?

Standard integrals:

∫cosec⁡v dv=log⁡∣cosec⁡v−cot⁡v∣\begin{aligned} &\int \operatorname{cosec}v\,dv \\ &= \log|\operatorname{cosec}v - \cot v| \end{aligned} ∫dxx=log⁡∣x∣\int \frac{dx}{x} = \log|x|

The constant is written as log⁡K\log K with K>0K > 0⁠, so that all the terms are logs and can be combined.

⇒log⁡∣(cosec⁡v−cot⁡v)x∣=log⁡K\begin{aligned} &\Rightarrow \log|(\operatorname{cosec}v - \cot v)x| \\ &\qquad = \log K \end{aligned} ⇒(cosec⁡v−cot⁡v)x=±K\Rightarrow (\operatorname{cosec}v - \cot v)x = \pm K
Why?

Move −log⁡∣x∣-\log|x| to the left and use log⁡a+log⁡b=log⁡ab\log a + \log b = \log ab⁠. Equal logs give equal numbers, so ∣(cosec⁡v−cot⁡v)x∣=K|(\operatorname{cosec}v - \cot v)x| = K⁠. Removing the modulus gives ±K\pm K⁠.

log⁡∣cosec⁡v−cot⁡v∣+log⁡∣x∣=log⁡Klog⁡∣(cosec⁡v−cot⁡v)x∣=log⁡K∣(cosec⁡v−cot⁡v)x∣=K\begin{aligned} &\log|\operatorname{cosec}v - \cot v| + \log|x| \\ &= \log K \\[4pt] &\log|(\operatorname{cosec}v - \cot v)x| \\ &= \log K \\[4pt] &|(\operatorname{cosec}v - \cot v)x| = K \end{aligned}

Finally put back v=yxv = \frac{y}{x} and call the constant ±K\pm K simply CC⁠.

∴\therefore The general solution is (cosec⁡yx−cot⁡yx)x=C\left(\operatorname{cosec}\frac{y}{x} - \cot\frac{y}{x}\right)x = C⁠, where C=±KC = \pm K⁠.

(b)

This is a linear differential equation dydx+Py=Q\frac{dy}{dx} + Py = Q with P=cot⁡xP = \cot x and Q=21+sin⁡xQ = \frac{2}{1 + \sin x}⁠.

I.F.=e∫cot⁡x dx=elog⁡sin⁡x=sin⁡x\begin{aligned} \text{I.F.} &= e^{\int \cot x\,dx} \\ &= e^{\log\sin x} = \sin x \end{aligned}
Why?

The equation is linear: yy and dydx\frac{dy}{dx} appear only to the first power. For such an equation the integrating factor is

I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}

Here ∫cot⁡x dx=log⁡∣sin⁡x∣\int \cot x\,dx = \log|\sin x|⁠. Near x=π4x = \frac{\pi}{4}⁠, sin⁡x>0\sin x > 0⁠, so the modulus can be dropped, and elog⁡a=ae^{\log a} = a⁠.

The general solution is given by

Why?

For dydx+Py=Q\frac{dy}{dx} + Py = Q the solution is

y×I.F.=∫Q×I.F. dxy \times \text{I.F.} = \int Q \times \text{I.F.}\,dx

plus a constant. Here Q×I.F.=2sin⁡x1+sin⁡xQ \times \text{I.F.} = \frac{2\sin x}{1 + \sin x}⁠.

ysin⁡x=∫2 sin⁡x1+sin⁡x dx=2∫sin⁡x+1−11+sin⁡x dx=2∫[1−11+sin⁡x]dx=2∫[1−11+cos⁡(π2−x)]dx\begin{aligned} &y\sin x = \int 2\,\frac{\sin x}{1 + \sin x}\,dx \\ &= 2\int \frac{\sin x + 1 - 1}{1 + \sin x}\,dx \\ &= 2\int \left[1 - \frac{1}{1 + \sin x}\right]dx \\ &= 2\int \left[1 - \frac{1}{1 + \cos\left(\frac{\pi}{2} - x\right)}\right]dx \end{aligned}
Why?

Adding and subtracting 1 in the numerator splits the fraction:

sin⁡x1+sin⁡x=1−11+sin⁡x\frac{\sin x}{1 + \sin x} = 1 - \frac{1}{1 + \sin x}

Step by step:

sin⁡x+1−11+sin⁡x=1+sin⁡x1+sin⁡x−11+sin⁡x=1−11+sin⁡x\begin{aligned} &\frac{\sin x + 1 - 1}{1 + \sin x} \\ &= \frac{1 + \sin x}{1 + \sin x} - \frac{1}{1 + \sin x} \\ &= 1 - \frac{1}{1 + \sin x} \end{aligned}

Then sin⁡x=cos⁡(π2−x)\sin x = \cos\left(\frac{\pi}{2} - x\right)⁠, which prepares for the half-angle identity.

Using 1+cos⁡θ=2cos⁡2θ21 + \cos\theta = 2\cos^2\frac{\theta}{2}⁠,

Why?

Take θ=π2−x\theta = \frac{\pi}{2} - x⁠. Half of it is π4−x2\frac{\pi}{4} - \frac{x}{2}⁠. Then 1cos⁡2u=sec⁡2u\frac{1}{\cos^2u} = \sec^2u⁠.

θ2=12(π2−x)=π4−x21+cos⁡(π2−x)=2cos⁡2(π4−x2)\begin{aligned} \frac{\theta}{2} &= \frac12\left(\frac{\pi}{2} - x\right) \\ &= \frac{\pi}{4} - \frac{x}{2} \\[4pt] &1 + \cos\left(\frac{\pi}{2} - x\right) \\ &= 2\cos^2\left(\frac{\pi}{4} - \frac{x}{2}\right) \end{aligned} 12cos⁡2(π4−x2)=12sec⁡2(π4−x2)\begin{aligned} &\frac{1}{2\cos^2\left(\frac{\pi}{4} - \frac{x}{2}\right)} \\ &= \frac12\sec^2\left(\frac{\pi}{4} - \frac{x}{2}\right) \end{aligned}
ysin⁡x=2∫[1−12cos⁡2(π4−x2)]dx=2∫[1−12sec⁡2(π4−x2)]dx=2[x+tan⁡(π4−x2)]+c\begin{aligned} &y\sin x \\ &= 2\int \left[1 - \frac{1}{2\cos^2\left(\frac{\pi}{4} - \frac{x}{2}\right)}\right]dx \\ &= 2\int \left[1 - \frac12\sec^2\left(\frac{\pi}{4} - \frac{x}{2}\right)\right]dx \\ &= 2\left[x + \tan\left(\frac{\pi}{4} - \frac{x}{2}\right)\right] + c \end{aligned}
Why?

Standard integral:

∫sec⁡2(ax+b) dx=1atan⁡(ax+b)+C\begin{aligned} &\int \sec^2(ax + b)\,dx \\ &= \frac{1}{a}\tan(ax + b) + C \end{aligned}

Here a=−12a = -\frac12⁠, so 1a=−2\frac1a = -2⁠:

∫12sec⁡2(π4−x2)dx=−tan⁡(π4−x2)\begin{aligned} &\int \frac12\sec^2\left(\frac{\pi}{4} - \frac{x}{2}\right)dx \\ &= -\tan\left(\frac{\pi}{4} - \frac{x}{2}\right) \end{aligned}

Also ∫1 dx=x\int 1\,dx = x⁠. So the bracket becomes

x−(−tan⁡(π4−x2))=x+tan⁡(π4−x2)\begin{aligned} &x - \left(-\tan\left(\frac{\pi}{4} - \frac{x}{2}\right)\right) \\ &= x + \tan\left(\frac{\pi}{4} - \frac{x}{2}\right) \end{aligned}

Subtracting this gives +tan⁡(π4−x2)+\tan\left(\frac{\pi}{4} - \frac{x}{2}\right) inside the bracket. Watch out: forgetting the factor 1a=−2\frac1a = -2 is the usual slip here.

Given y=0y = 0 when x=π4x = \frac{\pi}{4}⁠:

0=2[π4+tan⁡π8]+c0 = 2\left[\frac{\pi}{4} + \tan\frac{\pi}{8}\right] + c ⇒c=−π2−2tan⁡π8\Rightarrow c = -\frac{\pi}{2} - 2\tan\frac{\pi}{8}
Why?

At x=π4x = \frac{\pi}{4}⁠: π4−π8=π8\frac{\pi}{4} - \frac{\pi}{8} = \frac{\pi}{8}⁠, and the left side is ysin⁡x=0y\sin x = 0⁠.

x2=π/42=π8π4−π8=2π8−π8=π8\begin{aligned} \frac{x}{2} &= \frac{\pi/4}{2} = \frac{\pi}{8} \\ \frac{\pi}{4} - \frac{\pi}{8} &= \frac{2\pi}{8} - \frac{\pi}{8} = \frac{\pi}{8} \end{aligned}

Now solve for cc⁠:

0=2[π4+tan⁡π8]+c0=π2+2tan⁡π8+cc=−π2−2tan⁡π8\begin{aligned} 0 &= 2\left[\frac{\pi}{4} + \tan\frac{\pi}{8}\right] + c \\ 0 &= \frac{\pi}{2} + 2\tan\frac{\pi}{8} + c \\ c &= -\frac{\pi}{2} - 2\tan\frac{\pi}{8} \end{aligned}

Then divide ysin⁡x=…y\sin x = \ldots by sin⁡x\sin x⁠, that is, multiply by cosec⁡x\operatorname{cosec}x⁠, to get yy on its own.

ysin⁡x=2[x+tan⁡(π4−x2)]+cy=cosec⁡x [2{x+tan⁡(π4−x2)}+c]\begin{aligned} &y\sin x \\ &= 2\left[x + \tan\left(\frac{\pi}{4} - \frac{x}{2}\right)\right] + c \\[4pt] &y = \operatorname{cosec}x\,\bigg[2\Big\{x \\ &\qquad + \tan\left(\frac{\pi}{4} - \frac{x}{2}\right)\Big\} + c\bigg] \end{aligned}

and c=−π2−2tan⁡π8=−(π2+2tan⁡π8)c = -\frac{\pi}{2} - 2\tan\frac{\pi}{8} = -\left(\frac{\pi}{2} + 2\tan\frac{\pi}{8}\right)⁠.

Hence, the particular solution is

y=cosec⁡x [2{x+tan⁡(π4−x2)}y = \operatorname{cosec}x\,\Big[2\Big\{x + \tan\left(\dfrac{\pi}{4} - \dfrac{x}{2}\right)\Big\} −(π2+2tan⁡π8)]- \left(\dfrac{\pi}{2} + 2\tan\dfrac{\pi}{8}\right)\Big]

Where this comes from

Chapter 9, Differential Equations: Homogeneous and linear differential equations.

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

How to spot it: click to see

(a) 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−sin⁡yx\frac{dy}{dx} = \frac{y}{x} - \sin\frac{y}{x}⁠. Put y=vxy = vx⁠: the vv cancels, leaving cosec⁡v dv=−dxx\operatorname{cosec}v\,dv = -\frac{dx}{x}⁠.

(b) 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: Here P=cot⁡xP = \cot x and Q=21+sin⁡xQ = \frac{2}{1 + \sin x}⁠, so I.F.=elog⁡sin⁡x=sin⁡x\text{I.F.} = e^{\log\sin x} = \sin x⁠, and ysin⁡x=∫2sin⁡x1+sin⁡x dxy\sin x = \int\frac{2\sin x}{1 + \sin x}\,dx⁠.

(b) 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=0y = 0 at x=π4x = \frac{\pi}{4} gives c=−π2−2tan⁡π8c = -\frac{\pi}{2} - 2\tan\frac{\pi}{8}⁠; put it back for the particular solution.

Found an error?

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