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

Q29: Solve yexy dx=(xexy+y2)dyye^{\frac{x}{y}}\,dx = \left(xe^{\frac{x}{y}} + y^2\right)dy⁠, or (cos⁡2x)dydx+y=tan⁡x(\cos^2 x)\frac{dy}{dx} + y = \tan x

The question

(a) Solve the differential equation: yexy dx=(xexy+y2)dyye^{\frac{x}{y}}\,dx = \left(xe^{\frac{x}{y}} + y^2\right)dy⁠, (y≠0)(y \ne 0)⁠.

OR

(b) Solve the differential equation: (cos⁡2x)dydx+y=tan⁡x(\cos^2 x)\dfrac{dy}{dx} + y = \tan x⁠; (0≤x<π2)\left(0 \le x < \dfrac{\pi}{2}\right)⁠.

Exam answer

(a) We have

dxdy=xexy+y2y exy\frac{dx}{dy} = \frac{xe^{\frac{x}{y}} + y^2}{y\,e^{\frac{x}{y}}}
Why?

Divide both sides by y exy dyy\,e^{\frac{x}{y}}\,dy⁠. The right side is then built around xy\frac{x}{y}⁠, so we treat xx as the unknown function of yy and work with dxdy\frac{dx}{dy}⁠.

On the left yexyye^{\frac{x}{y}} cancels, leaving dxdy\frac{dx}{dy}⁠. On the right only dydy cancels.

⇒dxdy=xy+yexy…(i)\Rightarrow \frac{dx}{dy} = \frac{x}{y} + \frac{y}{e^{\frac{x}{y}}}\quad\ldots(\text{i})
Why?

Split the fraction into two:

xexyy exy=xy,y2y exy=yexy\frac{xe^{\frac{x}{y}}}{y\,e^{\frac{x}{y}}} = \frac{x}{y},\quad \frac{y^2}{y\,e^{\frac{x}{y}}} = \frac{y}{e^{\frac{x}{y}}}

Let x=vy⇒dxdy=v+ydvdyx = vy \Rightarrow \dfrac{dx}{dy} = v + y\dfrac{dv}{dy}⁠.

Why?

The substitution x=vyx = vy turns xy\frac{x}{y} into the single letter vv⁠.

Both vv and yy vary, so differentiate vyvy with respect to yy by the product rule: v⋅1+ydvdyv \cdot 1 + y\frac{dv}{dy}⁠.

Watch out: dxdy\frac{dx}{dy} is not just vv⁠.

So equation (i) becomes

v+ydvdy=v+yevv + y\frac{dv}{dy} = v + \frac{y}{e^v} ⇒ydvdy=yev\Rightarrow y\frac{dv}{dy} = \frac{y}{e^v} ⇒ev dv=dy\Rightarrow e^v\,dv = dy
Why?

In (i), put v+ydvdyv + y\frac{dv}{dy} for dxdy\frac{dx}{dy} and vv for xy\frac{x}{y}⁠. So exy=eve^{\frac{x}{y}} = e^v⁠.

vv is on both sides, so it cancels. Then divide by yy (allowed, as y≠0y \ne 0⁠) to get dvdy=1ev\frac{dv}{dy} = \frac{1}{e^v}⁠.

Multiply by ev dye^v\,dy to separate the variables: everything in vv on one side, everything in yy on the other.

v+ydvdy=v+yevydvdy=yev(subtract v)dvdy=1ev(divide by y)ev dv=dy(× ev dy)\begin{aligned} v + y\frac{dv}{dy} &= v + \frac{y}{e^v} \\ y\frac{dv}{dy} &= \frac{y}{e^v} \quad (\text{subtract } v) \\ \frac{dv}{dy} &= \frac{1}{e^v} \quad (\text{divide by } y) \\ e^v\,dv &= dy \quad (\times\, e^v\,dy) \end{aligned}

On integrating, we get

∫ev dv=∫dy⇒ev=y+c\int e^v\,dv = \int dy \Rightarrow e^v = y + c
Why?

∫ev dv=ev\int e^v\,dv = e^v and ∫dy=y\int dy = y⁠. One constant cc on one side is enough.

Then put v=xyv = \frac{x}{y} back to return to xx and yy⁠.

⇒exy=y+c\Rightarrow e^{\frac{x}{y}} = y + c⁠, where cc is an arbitrary constant of integration.

(b) Dividing both the sides by cos⁡2x\cos^2 x⁠, we get

dydx+ysec⁡2x=tan⁡xsec⁡2x…(i)\begin{aligned} &\frac{dy}{dx} + y\sec^2 x \\ &= \tan x\sec^2 x\quad\ldots(\text{i}) \end{aligned}
Why?

The standard linear form needs dydx\frac{dy}{dx} on its own, with coefficient 1, so divide every term by cos⁡2x\cos^2 x⁠. This is allowed because cos⁡x≠0\cos x \ne 0 for 0≤x<π20 \le x < \frac{\pi}{2}⁠.

1cos⁡2x=sec⁡2x\frac{1}{\cos^2 x} = \sec^2 x⁠, and tan⁡xcos⁡2x=tan⁡xsec⁡2x\frac{\tan x}{\cos^2 x} = \tan x\sec^2 x⁠.

Comparing with dydx+Py=Q\dfrac{dy}{dx} + Py = Q⁠: P=sec⁡2xP = \sec^2 x⁠, Q=tan⁡xsec⁡2xQ = \tan x\sec^2 x⁠.

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

The integrating factor of dydx+Py=Q\frac{dy}{dx} + Py = Q is

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

Here ∫sec⁡2x dx=tan⁡x\int\sec^2 x\,dx = \tan x⁠, because ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 x⁠. No constant is needed in the I.F.

On multiplying equation (i) by etan⁡xe^{\tan x}⁠, we get

ddx(yetan⁡x)=etan⁡xtan⁡xsec⁡2x\frac{d}{dx}\left(ye^{\tan x}\right) = e^{\tan x}\tan x\sec^2 x
Why?

The I.F. is chosen so that the left side becomes the derivative of a product. By the product and chain rules,

ddx(yetan⁡x)=etan⁡xdydx+yetan⁡xsec⁡2x\begin{aligned} &\frac{d}{dx}\left(ye^{\tan x}\right) \\ &= e^{\tan x}\frac{dy}{dx} + ye^{\tan x}\sec^2 x \end{aligned}

which is exactly the left side of (i) times etan⁡xe^{\tan x}⁠.

On integrating, with t=tan⁡xt = \tan x⁠, so that dt=sec⁡2x dxdt = \sec^2 x\,dx⁠,

yetan⁡x=∫tet dt=tet−∫et dt=tet−et+c=(tan⁡x−1)etan⁡x+c\begin{aligned} ye^{\tan x} &= \int te^t\,dt \\ &= te^t - \int e^t\,dt \\ &= te^t - e^t + c \\ &= (\tan x - 1)e^{\tan x} + c \end{aligned}
Why?

With t=tan⁡xt = \tan x⁠, the right side etan⁡xtan⁡xsec⁡2x dxe^{\tan x}\tan x\sec^2 x\,dx becomes tet dtte^t\,dt⁠.

Integrate by parts with tt as the first function and ete^t as the second:

(Inside the integral: tan⁡x\tan x becomes tt⁠, etan⁡xe^{\tan x} becomes ete^t⁠, and sec⁡2x dx\sec^2 x\,dx becomes dtdt⁠.)

u=t,dudt=1∫et dt=et\begin{aligned} u &= t, & \frac{du}{dt} &= 1 \\ \int e^t\,dt &= e^t \end{aligned} ∫tet dt=tet−∫1⋅et dt\int te^t\,dt = te^t - \int 1\cdot e^t\,dt tet−∫et dt=tet−et+c=(t−1)et+c\begin{aligned} &te^t - \int e^t\,dt \\ &= te^t - e^t + c \\ &= (t - 1)e^t + c \end{aligned}

(The last line takes out ete^t⁠.)

Put t=tan⁡xt = \tan x back, then divide both sides by etan⁡xe^{\tan x}⁠: cetan⁡x=ce−tan⁡x\frac{c}{e^{\tan x}} = ce^{-\tan x}⁠.

yetan⁡x=(tan⁡x−1)etan⁡x+cy=(tan⁡x−1)etan⁡xetan⁡x+cetan⁡x=tan⁡x−1+ce−tan⁡x\begin{aligned} ye^{\tan x} &= (\tan x - 1)e^{\tan x} + c \\ y &= \frac{(\tan x - 1)e^{\tan x}}{e^{\tan x}} + \frac{c}{e^{\tan x}} \\ &= \tan x - 1 + ce^{-\tan x} \end{aligned}

∴ y=tan⁡x−1+ce−tan⁡x\therefore\ y = \tan x - 1 + ce^{-\tan x}⁠, where cc is an arbitrary constant of integration.

Where this comes from

Chapter 9, Differential Equations: Differential equations: x = vy; linear equation.

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

How to spot it: click to see

(a) 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: xy\frac{x}{y} sits inside ex/ye^{x/y}⁠, so turn the y=vxy = vx idea round: write dxdy\frac{dx}{dy} and put x=vyx = vy⁠. The vv terms cancel, leaving ev dv=dye^v\,dv = dy⁠.

(b) 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 cos⁡2x\cos^2x so that dydx\frac{dy}{dx} stands alone: P=sec⁡2xP = \sec^2x⁠, Q=tan⁡xsec⁡2xQ = \tan x\sec^2x⁠, and I.F.=etan⁡x\text{I.F.} = e^{\tan x}⁠.

(b) 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: With t=tan⁡xt = \tan x⁠, the right side becomes ∫tet dt\int te^t\,dt⁠: a product of tt and ete^t⁠, so integrate by parts, with tt as the first function.

Found an error?

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