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

Q29: Solve y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0⁠, or x dy−y dx=x2+y2 dxx\,dy - y\,dx = \sqrt{x^2 + y^2}\,dx

The question

(a) Solve the differential equation: y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0

OR

(b) Solve the differential equation: x dy−y dx=x2+y2 dxx\,dy - y\,dx = \sqrt{x^2 + y^2}\,dx

Exam answer

(a) y dx+(x−y2) dy=0y\,dx + (x - y^2)\,dy = 0

Reducing the given differential equation to the form dxdy+Px=Q\frac{dx}{dy} + Px = Q⁠, we get

y dx=(y2−x) dy⇒dxdy=y2−xy=y−xy\begin{aligned} y\,dx &= (y^2 - x)\,dy \\ \Rightarrow \frac{dx}{dy} &= \frac{y^2 - x}{y} = y - \frac{x}{y} \end{aligned} dxdy+xy=y\frac{dx}{dy} + \frac{x}{y} = y
Why?

Because of the y2y^2 term, the equation is not linear in yy⁠. But xx appears only to the first power, so it is linear in xx⁠. So we treat xx as the dependent variable and yy as the independent one.

The linear form is then dxdy+Px=Q\frac{dx}{dy} + Px = Q⁠, where PP and QQ are functions of yy only.

y dx+(x−y2) dy=0y dx=−(x−y2) dyy dx=(y2−x) dydxdy=y2−xy=y2y−xy=y−xy\begin{aligned} y\,dx + (x - y^2)\,dy &= 0 \\ y\,dx &= -(x - y^2)\,dy \\ y\,dx &= (y^2 - x)\,dy \\ \frac{dx}{dy} &= \frac{y^2 - x}{y} \\ &= \frac{y^2}{y} - \frac{x}{y} \\ &= y - \frac{x}{y} \end{aligned}

Then add xy\frac{x}{y} to both sides to get dxdy+xy=y\frac{dx}{dy} + \frac{x}{y} = y⁠.

Here P=1yP = \frac1y and Q=yQ = y⁠.

I.F.=e∫P dy=e∫1y dy=elog⁡y=y\begin{aligned} \text{I.F.} &= e^{\int P\,dy} = e^{\int\frac1y\,dy} \\ &= e^{\log y} = y \end{aligned}
Why?

The integrating factor is e∫P dye^{\int P\,dy}⁠. Here ∫1y dy=log⁡y\int\frac1y\,dy = \log y (taking y>0y > 0⁠), and elog⁡y=ye^{\log y} = y because exe^x and log⁡x\log x undo each other.

The general solution is given by

x⋅I.F.=∫Q⋅I.F. dy⇒xy=∫y2 dy\begin{aligned} x \cdot \text{I.F.} &= \int Q \cdot \text{I.F.}\,dy \\ \Rightarrow xy &= \int y^2\,dy \end{aligned}
Why?

For dxdy+Px=Q\frac{dx}{dy} + Px = Q the solution is

x⋅I.F.=∫Q⋅I.F. dy+Cx \cdot \text{I.F.} = \int Q \cdot \text{I.F.}\,dy + C

Here Q⋅I.F.=y⋅y=y2Q \cdot \text{I.F.} = y \cdot y = y^2⁠, and ∫y2 dy=y33\int y^2\,dy = \frac{y^3}{3}⁠. Watch out: add the constant CC at this step, not later.

∴ xy=y33+C\therefore\ xy = \frac{y^3}{3} + C⁠, which is the required general solution.

(b) x dy−y dx=x2+y2 dxx\,dy - y\,dx = \sqrt{x^2 + y^2}\,dx

⇒x dy=(x2+y2+y)dx\Rightarrow x\,dy = \left(\sqrt{x^2 + y^2} + y\right)dx dydx=x2+y2+yx=1+(yx)2+yx=f(yx)\begin{aligned} \frac{dy}{dx} &= \frac{\sqrt{x^2 + y^2} + y}{x} \\ &= \sqrt{1 + \left(\frac{y}{x}\right)^2} + \frac{y}{x} = f\left(\frac{y}{x}\right) \end{aligned}

(taking x>0x > 0⁠). So it is a homogeneous equation. Put y=vxy = vx⁠. Then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠.

Why?

A differential equation is homogeneous when dydx\frac{dy}{dx} can be written as a function of yx\frac{y}{x} alone. Divide the numerator by xx⁠; for x>0x > 0⁠, x=x2x = \sqrt{x^2}⁠, so

x2+y2x=1+y2x2\frac{\sqrt{x^2 + y^2}}{x} = \sqrt{1 + \frac{y^2}{x^2}}

Step by step:

x2+y2+yx=x2+y2x+yx=x2+y2x2+yx=x2+y2x2+yx=x2x2+y2x2+yx=1+(yx)2+yx\begin{aligned} &\frac{\sqrt{x^2 + y^2} + y}{x} \\ &= \frac{\sqrt{x^2 + y^2}}{x} + \frac{y}{x} \\ &= \frac{\sqrt{x^2 + y^2}}{\sqrt{x^2}} + \frac{y}{x} \\ &= \sqrt{\frac{x^2 + y^2}{x^2}} + \frac{y}{x} \\ &= \sqrt{\frac{x^2}{x^2} + \frac{y^2}{x^2}} + \frac{y}{x} \\ &= \sqrt{1 + \left(\frac{y}{x}\right)^2} + \frac{y}{x} \end{aligned}

For a homogeneous equation the substitution is y=vxy = vx⁠. By the product rule, ddx(vx)=v+xdvdx\frac{d}{dx}(vx) = v + x\frac{dv}{dx}⁠.

v+xdvdx=1+v2+vv + x\frac{dv}{dx} = \sqrt{1 + v^2} + v ⇒xdvdx=1+v2\Rightarrow x\frac{dv}{dx} = \sqrt{1 + v^2}

Separating the variables, we get

dv1+v2=dxx\frac{dv}{\sqrt{1 + v^2}} = \frac{dx}{x}
Why?

The vv on both sides cancels. Then put everything with vv on one side and everything with xx on the other: divide by x1+v2x\sqrt{1 + v^2} and multiply by dxdx⁠.

On the right, yx=v\frac{y}{x} = v⁠, so 1+(yx)2=1+v2\sqrt{1 + \left(\frac{y}{x}\right)^2} = \sqrt{1 + v^2}⁠.

v+xdvdx=1+v2+vxdvdx=1+v2dvdx=1+v2xdv1+v2=dxx\begin{aligned} v + x\frac{dv}{dx} &= \sqrt{1 + v^2} + v \\ x\frac{dv}{dx} &= \sqrt{1 + v^2} \\ \frac{dv}{dx} &= \frac{\sqrt{1 + v^2}}{x} \\ \frac{dv}{\sqrt{1 + v^2}} &= \frac{dx}{x} \end{aligned}

Integrating, we get

log⁡∣v+1+v2∣=log⁡∣x∣+log⁡K, K>0\begin{aligned} &\log\left|v + \sqrt{1 + v^2}\right| \\ &\quad = \log|x| + \log K,\ K > 0 \end{aligned}
Why?

Standard integrals (the first with a=1a = 1⁠):

∫dvv2+a2=log⁡∣v+v2+a2∣+C\begin{aligned} &\int\frac{dv}{\sqrt{v^2 + a^2}} \\ &= \log\left|v + \sqrt{v^2 + a^2}\right| + C \end{aligned} ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C

Writing the constant as log⁡K\log K lets us combine the logs in the next step.

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

log⁡∣y+x2+y2x∣=log⁡(Kx)⇒ log⁡∣y+x2+y2∣=log⁡(Kx2)⇒ y+x2+y2=±Kx2\begin{aligned} &\log\left|\frac{y + \sqrt{x^2 + y^2}}{x}\right| = \log(Kx) \\ \Rightarrow\ &\log\left|y + \sqrt{x^2 + y^2}\right| = \log(Kx^2) \\ \Rightarrow\ &y + \sqrt{x^2 + y^2} = \pm Kx^2 \end{aligned}
Why?

With x>0x > 0⁠, log⁡∣x∣+log⁡K=log⁡(Kx)\log|x| + \log K = \log(Kx)⁠, and

v+1+v2=y+x2+y2xv + \sqrt{1 + v^2} = \frac{y + \sqrt{x^2 + y^2}}{x}

because

yx+1+y2x2=yx+x2+y2x2=yx+x2+y2x=y+x2+y2x\begin{aligned} &\frac{y}{x} + \sqrt{1 + \frac{y^2}{x^2}} \\ &= \frac{y}{x} + \sqrt{\frac{x^2 + y^2}{x^2}} \\ &= \frac{y}{x} + \frac{\sqrt{x^2 + y^2}}{x} \\ &= \frac{y + \sqrt{x^2 + y^2}}{x} \end{aligned}

The log of a quotient is the difference of the logs, so the left side is log⁡∣y+x2+y2∣−log⁡x\log\left|y + \sqrt{x^2 + y^2}\right| - \log x⁠. Add log⁡x\log x to both sides: log⁡(Kx)+log⁡x=log⁡(Kx2)\log(Kx) + \log x = \log(Kx^2)⁠. Equal logs give equal moduli.

log⁡∣y+x2+y2∣−log⁡x=log⁡(Kx)log⁡∣y+x2+y2∣=log⁡(Kx)+log⁡x=log⁡(Kx⋅x)=log⁡(Kx2)∣y+x2+y2∣=Kx2\begin{aligned} &\log\left|y + \sqrt{x^2 + y^2}\right| - \log x \\ &= \log(Kx) \\[4pt] &\log\left|y + \sqrt{x^2 + y^2}\right| \\ &= \log(Kx) + \log x \\ &= \log(Kx \cdot x) = \log(Kx^2) \\[4pt] &\left|y + \sqrt{x^2 + y^2}\right| = Kx^2 \end{aligned}

Since KK is any positive constant, ±K\pm K is just an arbitrary constant, written CC⁠.

∴ y+x2+y2=Cx2\therefore\ y + \sqrt{x^2 + y^2} = Cx^2⁠, which is the required general solution.

Where this comes from

Chapter 9, Differential Equations: Linear DE dx/dy + Px = Q; homogeneous DE.

Question type: (a) Linear in xx; (b) Homogeneous equations

How to spot it: click to see

(a) Type 8. Linear in xx⁠: when yy will not behave, solve for xx

Spot it: there is a y2y^2 or tan⁡−1y\tan^{-1}y next to dydy⁠, but xx appears only to power 1.

Here: The y2y^2 next to dydy stops it being linear in yy⁠, but xx is only to power 1. Divide by y dyy\,dy⁠: dxdy+xy=y\frac{dx}{dy} + \frac{x}{y} = y⁠, so I.F.=y\text{I.F.} = y⁠.

(b) 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 x dxx\,dx gives dydx=1+(yx)2+yx\frac{dy}{dx} = \sqrt{1 + \left(\frac{y}{x}\right)^2} + \frac{y}{x}⁠. Put y=vxy = vx⁠: the vv cancels, leaving dv1+v2=dxx\frac{dv}{\sqrt{1 + v^2}} = \frac{dx}{x}⁠.

Found an error?

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