Homogeneous Differential Equations

RS Aggarwal Class 12 Maths Solutions Exercise 20 — Homogeneous Differential Equations

RS Aggarwal, Class 12 Mathematics — Homogeneous Differential Equations, Exercise 20. All 30 questions solved.

Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.

Every equation in this exercise can be written as $\dfrac{dy}{dx} = f\!\left(\dfrac{y}{x}\right)$. Questions 1 to 24 ask for the general solution, Questions 25 to 29 for a particular solution through a given point, and Question 30 turns a statement about the slope of a curve into an equation of this type. One substitution handles all of them, and the work is mostly in the integration afterwards.

Key insight. Put $y = vx$, so that $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. The $v$ on the left cancels against the $v$ inside $f(v)$ and leaves $x\dfrac{dv}{dx} = f(v) – v$, whose variables separate as $\dfrac{dv}{f(v)-v} = \dfrac{dx}{x}$. Integrate, then replace $v$ by $\dfrac{y}{x}$. When $y$ is the awkward variable, as in Questions 16, 19 and 20, one may equally put $x = vy$.

Question 1

Solve $x\,dy = (x+y)\,dx$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Dividing by $x\,dx$ gives $\dfrac{dy}{dx} = 1 + \dfrac{y}{x}$. With $y = vx$ this reads $v + x\dfrac{dv}{dx} = 1 + v$, so $x\dfrac{dv}{dx} = 1$ and $dv = \dfrac{dx}{x}$. Integrating, $v = \log|x| + C$. Returning to $y$ by multiplying through by $x$ gives the result.

$$y = x\log|x| + Cx$$

Question 2

Solve $(x^2-y^2)\,dx + 2xy\,dy = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Rearranged, $\dfrac{dy}{dx} = \dfrac{y^2-x^2}{2xy} = \dfrac{v^2-1}{2v}$ after dividing top and bottom by $x^2$. Then $x\dfrac{dv}{dx} = \dfrac{v^2-1}{2v} – v = -\dfrac{1+v^2}{2v}$, so $\dfrac{2v\,dv}{1+v^2} = -\dfrac{dx}{x}$. Integrating, $\log(1+v^2) = -\log|x| + \log C$, that is $x(1+v^2) = C$. Since $x(1+v^2) = \dfrac{x^2+y^2}{x}$, we get $x^2+y^2 = Cx$.

$$x^2 + y^2 = Cx$$

Question 3

Solve $x^2\,dy + y(x+y)\,dx = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Here $\dfrac{dy}{dx} = -\dfrac{y(x+y)}{x^2} = -(v+v^2)$. Hence $x\dfrac{dv}{dx} = -v – v^2 – v = -v(v+2)$ and $\dfrac{dv}{v(v+2)} = -\dfrac{dx}{x}$. Using $\dfrac{1}{v(v+2)} = \dfrac12\left(\dfrac1v – \dfrac1{v+2}\right)$, integration gives $\dfrac12\log\left|\dfrac{v}{v+2}\right| = -\log|x| + c$, so $\dfrac{v}{v+2} = \dfrac{C}{x^2}$. Replacing $v$: $\dfrac{y}{y+2x} = \dfrac{C}{x^2}$, i.e. $x^2y = C(y+2x)$ (the constant may be written $C^2$ if preferred).

$$x^2y = C(y + 2x)$$

Question 4

Solve $(x-y)\,dy – (x+y)\,dx = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Then $\dfrac{dy}{dx} = \dfrac{x+y}{x-y} = \dfrac{1+v}{1-v}$, so $x\dfrac{dv}{dx} = \dfrac{1+v}{1-v} – v = \dfrac{1+v^2}{1-v}$. Separating, $\dfrac{1-v}{1+v^2}\,dv = \dfrac{dx}{x}$, and integrating, $\tan^{-1}v – \tfrac12\log(1+v^2) = \log|x| + C$. Moving the logarithms together, $\tan^{-1}\dfrac yx = \log|x| + \tfrac12\log\left(1+\dfrac{y^2}{x^2}\right) + C = \tfrac12\log(x^2+y^2) + C$.

$$\tan^{-1}\frac{y}{x} = \frac12\log(x^2+y^2) + C$$

Question 5

Solve $(x+y)\,dy + (y-2x)\,dx = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. We have $\dfrac{dy}{dx} = \dfrac{2x-y}{x+y} = \dfrac{2-v}{1+v}$, so $x\dfrac{dv}{dx} = \dfrac{2-v}{1+v} – v = \dfrac{2-2v-v^2}{1+v}$. Separating, $\dfrac{(1+v)\,dv}{v^2+2v-2} = -\dfrac{dx}{x}$. The numerator is half the derivative of the denominator, so $\tfrac12\log|v^2+2v-2| = -\log|x| + c$, giving $x^2(v^2+2v-2) = C$. Multiplying out with $v = \dfrac yx$: $y^2 + 2xy – 2x^2 = C$.

$$y^2 + 2xy – 2x^2 = C$$

Question 6

Solve $(x^2+3xy+y^2)\,dx – x^2\,dy = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Then $\dfrac{dy}{dx} = \dfrac{x^2+3xy+y^2}{x^2} = 1 + 3v + v^2$, so $x\dfrac{dv}{dx} = 1 + 2v + v^2 = (1+v)^2$. Thus $\dfrac{dv}{(1+v)^2} = \dfrac{dx}{x}$ and $-\dfrac{1}{1+v} = \log|x| + c$. Since $\dfrac{1}{1+v} = \dfrac{x}{x+y}$, this is $\log|x| + \dfrac{x}{x+y} = C$ with $C = -c$.

$$\log|x| + \frac{x}{x+y} = C$$

Question 7

Solve $2xy\,dx + (x^2+2y^2)\,dy = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Now $\dfrac{dy}{dx} = -\dfrac{2xy}{x^2+2y^2} = -\dfrac{2v}{1+2v^2}$, so $x\dfrac{dv}{dx} = -\dfrac{2v}{1+2v^2} – v = -\dfrac{v(3+2v^2)}{1+2v^2}$. Separating, $\dfrac{1+2v^2}{v(3+2v^2)}\,dv = -\dfrac{dx}{x}$. By partial fractions $\dfrac{1+2v^2}{v(3+2v^2)} = \dfrac{1}{3v} + \dfrac{4v}{3(3+2v^2)}$, which integrates to $\tfrac13\log|v| + \tfrac13\log(3+2v^2)$. So $v(3+2v^2)x^3 = C$. As $v(3+2v^2)x^3 = y(3x^2+2y^2)$, the solution is $3x^2y + 2y^3 = C$.

$$3x^2y + 2y^3 = C$$

Question 8

Solve $\dfrac{dy}{dx} + \dfrac{x-2y}{2x-y} = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. The equation is $\dfrac{dy}{dx} = \dfrac{2y-x}{2x-y} = \dfrac{2v-1}{2-v}$, so $x\dfrac{dv}{dx} = \dfrac{2v-1}{2-v} – v = \dfrac{v^2-1}{2-v}$. Separating, $\dfrac{2-v}{(v-1)(v+1)}\,dv = \dfrac{dx}{x}$, and $\dfrac{2-v}{(v-1)(v+1)} = \dfrac{1/2}{v-1} – \dfrac{3/2}{v+1}$. Integrating, $\tfrac12\log|v-1| – \tfrac32\log|v+1| = \log|x| + c$, hence $\dfrac{v-1}{(v+1)^3} = Cx^2$. In terms of $x,y$ the left side is $\dfrac{x^2(y-x)}{(y+x)^3}$, so $y – x = C(y+x)^3$.

$$y – x = C(y+x)^3$$

Question 9

Solve $\dfrac{dy}{dx} + \dfrac{x^2-y^2}{3xy} = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. So $\dfrac{dy}{dx} = \dfrac{y^2-x^2}{3xy} = \dfrac{v^2-1}{3v}$ and $x\dfrac{dv}{dx} = \dfrac{v^2-1}{3v} – v = -\dfrac{2v^2+1}{3v}$. Separating, $\dfrac{3v\,dv}{2v^2+1} = -\dfrac{dx}{x}$, so $\tfrac34\log(2v^2+1) = -\log|x| + c$, i.e. $(2v^2+1)^3x^4 = C$. Substituting $v = \dfrac yx$: $\dfrac{(x^2+2y^2)^3}{x^6}\cdot x^4 = C$, which gives $(x^2+2y^2)^3 = Cx^2$.

$$(x^2+2y^2)^3 = Cx^2$$

Question 10

Solve $\dfrac{dy}{dx} = \dfrac{x^2+y^2}{2xy}$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. With $y = vx$ the right side is $\dfrac{1+v^2}{2v}$, so $x\dfrac{dv}{dx} = \dfrac{1+v^2}{2v} – v = \dfrac{1-v^2}{2v}$. Separating, $\dfrac{2v\,dv}{1-v^2} = \dfrac{dx}{x}$, and integrating, $-\log|1-v^2| = \log|x| + c$. Therefore $x(1-v^2) = C$, and since $x(1-v^2) = \dfrac{x^2-y^2}{x}$, we get $x^2 – y^2 = Cx$.

$$x^2 – y^2 = Cx$$

Question 11

Solve $\dfrac{dy}{dx} = \dfrac{2xy}{x^2-y^2}$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. The right side is $\dfrac{2v}{1-v^2}$, so $x\dfrac{dv}{dx} = \dfrac{2v}{1-v^2} – v = \dfrac{v(1+v^2)}{1-v^2}$. Separating and splitting, $\dfrac{1-v^2}{v(1+v^2)}\,dv = \left(\dfrac1v – \dfrac{2v}{1+v^2}\right)dv = \dfrac{dx}{x}$. Integrating, $\log|v| – \log(1+v^2) = \log|x| + c$, so $\dfrac{v}{1+v^2} = Cx$. Now $\dfrac{v}{1+v^2} = \dfrac{xy}{x^2+y^2}$, so $xy = Cx(x^2+y^2)$, i.e. $y = C(x^2+y^2)$.

$$y = C(x^2+y^2)$$

Question 12

Solve $x^2\dfrac{dy}{dx} = 2xy + y^2$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Dividing by $x^2$, $\dfrac{dy}{dx} = 2v + v^2$, so $x\dfrac{dv}{dx} = v + v^2 = v(1+v)$. Separating with $\dfrac{1}{v(1+v)} = \dfrac1v – \dfrac1{1+v}$ gives $\log\left|\dfrac{v}{1+v}\right| = \log|x| + c$, so $\dfrac{v}{1+v} = Cx$. As $\dfrac{v}{1+v} = \dfrac{y}{x+y}$, the solution is $y = Cx(x+y)$.

$$y = Cx(x+y)$$

Question 13

Solve $x^2\dfrac{dy}{dx} = x^2 + xy + y^2$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Dividing by $x^2$, $\dfrac{dy}{dx} = 1 + v + v^2$, so $x\dfrac{dv}{dx} = 1 + v^2$. Separating, $\dfrac{dv}{1+v^2} = \dfrac{dx}{x}$, and integrating, $\tan^{-1}v = \log|x| + C$.

$$\tan^{-1}\frac{y}{x} = \log|x| + C$$

Question 14

Solve $y^2 + (x^2 – xy)\dfrac{dy}{dx} = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Here $\dfrac{dy}{dx} = -\dfrac{y^2}{x(x-y)} = -\dfrac{v^2}{1-v}$, so $x\dfrac{dv}{dx} = -\dfrac{v^2}{1-v} – v = -\dfrac{v}{1-v}$. Separating, $\dfrac{1-v}{v}\,dv = -\dfrac{dx}{x}$, i.e. $\left(\dfrac1v – 1\right)dv = -\dfrac{dx}{x}$. Integrating, $\log|v| – v = -\log|x| + c$, so $\log|vx| – v = c$. Since $vx = y$, this is $\log|y| – \dfrac yx = c$, which rearranges to $y = x\{\log|y| + C\}$ with $C = -c$.

$$y = x\{C + \log|y|\}$$

Question 15

Solve $x\dfrac{dy}{dx} – y = 2\sqrt{y^2-x^2}$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Dividing by $x$, $\dfrac{dy}{dx} = v + 2\sqrt{v^2-1}$ for $y>x>0$, so $x\dfrac{dv}{dx} = 2\sqrt{v^2-1}$. Separating, $\dfrac{dv}{\sqrt{v^2-1}} = \dfrac{2\,dx}{x}$, and integrating, $\log\left|v + \sqrt{v^2-1}\right| = 2\log|x| + c$. Hence $v + \sqrt{v^2-1} = Cx^2$, and substituting $v = \dfrac yx$ and multiplying by $x$: $y + \sqrt{y^2-x^2} = Cx^3$.

$$y + \sqrt{y^2-x^2} = Cx^3$$

Question 16

Solve $y^2\,dx + (x^2+xy+y^2)\,dy = 0$.

Solution. Here $y$ is the better independent variable. Write $\dfrac{dx}{dy} = -\dfrac{x^2+xy+y^2}{y^2}$ and put $x = vy$, so $\dfrac{dx}{dy} = v + y\dfrac{dv}{dy}$. Then $v + y\dfrac{dv}{dy} = -(v^2+v+1)$, so $y\dfrac{dv}{dy} = -(v+1)^2$. Separating, $\dfrac{dv}{(v+1)^2} = -\dfrac{dy}{y}$, which integrates to $-\dfrac{1}{v+1} = -\log|y| + c$. Since $\dfrac{1}{v+1} = \dfrac{y}{x+y}$, we have $\log|y| – \dfrac{y}{x+y} = C$. Because $\dfrac{y}{x+y} = 1 – \dfrac{x}{x+y}$, the same family is $\log|y| + \dfrac{x}{x+y} = C’$.

$$\log|y| + \frac{x}{x+y} = C$$

Question 17

Solve $(x-y)\dfrac{dy}{dx} = x+3y$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Then $\dfrac{dy}{dx} = \dfrac{1+3v}{1-v}$ and $x\dfrac{dv}{dx} = \dfrac{1+3v}{1-v} – v = \dfrac{(1+v)^2}{1-v}$. Separating, $\dfrac{1-v}{(1+v)^2}\,dv = \dfrac{dx}{x}$. Writing $1 – v = 2 – (1+v)$, the left side is $\dfrac{2}{(1+v)^2} – \dfrac{1}{1+v}$, which integrates to $-\dfrac{2}{1+v} – \log|1+v|$. So $-\dfrac{2}{1+v} – \log|1+v| = \log|x| + c$. Using $1+v = \dfrac{x+y}{x}$, we get $-\dfrac{2x}{x+y} – \log|x+y| = c$, i.e. $\log|x+y| + \dfrac{2x}{x+y} = C$.

$$\log|x+y| + \frac{2x}{x+y} = C$$

Question 18

Solve $(x^3+3xy^2)\,dx + (y^3+3x^2y)\,dy = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Dividing numerator and denominator by $x^3$, $\dfrac{dy}{dx} = -\dfrac{1+3v^2}{v^3+3v}$, so $x\dfrac{dv}{dx} = -\dfrac{1+3v^2}{v(v^2+3)} – v = -\dfrac{v^4+6v^2+1}{v(v^2+3)}$. Separating, $\dfrac{v^3+3v}{v^4+6v^2+1}\,dv = -\dfrac{dx}{x}$. The numerator is a quarter of the derivative of the denominator, so $\tfrac14\log(v^4+6v^2+1) = -\log|x| + c$, giving $x^4(v^4+6v^2+1) = C$, i.e. $y^4 + 6x^2y^2 + x^4 = C$.

$$y^4 + 6x^2y^2 + x^4 = C$$

Question 19

Solve $(x – \sqrt{xy})\,dy = y\,dx$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Then $\dfrac{dy}{dx} = \dfrac{y}{x-\sqrt{xy}} = \dfrac{v}{1-\sqrt v}$, so $x\dfrac{dv}{dx} = \dfrac{v}{1-\sqrt v} – v = \dfrac{v^{3/2}}{1-\sqrt v}$. Separating, $\dfrac{1-\sqrt v}{v^{3/2}}\,dv = \left(v^{-3/2} – v^{-1}\right)dv = \dfrac{dx}{x}$. Integrating, $-\dfrac{2}{\sqrt v} – \log v = \log x + c$. Moving everything across and using $v x = y$, $\dfrac{2}{\sqrt v} + \log(vx) = C$, that is $2\sqrt{\dfrac xy} + \log|y| = C$.

$$2\sqrt{\frac{x}{y}} + \log|y| = C$$

Question 20

Solve $x^2\dfrac{dy}{dx} + y^2 = xy$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Dividing by $x^2$, $\dfrac{dy}{dx} = v – v^2$, so $x\dfrac{dv}{dx} = -v^2$. Separating, $\dfrac{dv}{v^2} = -\dfrac{dx}{x}$, and integrating, $-\dfrac1v = -\log|x| + c$. As $\dfrac1v = \dfrac xy$, this is $\dfrac{x}{y} = \log|x| + \log C = \log|Cx|$, which is the same as $Cx = e^{x/y}$.

$$Cx = e^{x/y}$$

Question 21

Solve $x\dfrac{dy}{dx} = y(\log y – \log x + 1)$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Since $\log y – \log x = \log v$, the equation is $\dfrac{dy}{dx} = v(\log v + 1)$, so $x\dfrac{dv}{dx} = v\log v$. Separating, $\dfrac{dv}{v\log v} = \dfrac{dx}{x}$, and integrating, $\log|\log v| = \log|x| + c$. Therefore $\log v = Cx$, i.e. $v = e^{Cx}$ and $y = xe^{Cx}$.

$$y = xe^{Cx}$$

Question 22

Solve $x\dfrac{dy}{dx} – y + x\sin\dfrac{y}{x} = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Rewriting, $\dfrac{dy}{dx} = v – \sin v$, so $x\dfrac{dv}{dx} = -\sin v$. Separating, $\dfrac{dv}{\sin v} = -\dfrac{dx}{x}$, and since $\int\operatorname{cosec}v\,dv = \log\left|\tan\dfrac v2\right|$, we get $\log\left|\tan\dfrac v2\right| = -\log|x| + c$. Hence $x\tan\dfrac v2 = C$, that is $x\tan\dfrac{y}{2x} = C$.

$$x\tan\left(\frac{y}{2x}\right) = C$$

Question 23

Solve $x\dfrac{dy}{dx} = y – x\cos^2\dfrac{y}{x}$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Dividing by $x$, $\dfrac{dy}{dx} = v – \cos^2v$, so $x\dfrac{dv}{dx} = -\cos^2v$. Separating, $\sec^2v\,dv = -\dfrac{dx}{x}$, and integrating, $\tan v = -\log|x| + C’$. $\tan\dfrac yx + \log|x| = C$.

$$\tan\frac{y}{x} + \log|x| = C$$

Question 24

Solve $\left(x\cos\dfrac{y}{x}\right)\dfrac{dy}{dx} = y\cos\dfrac{y}{x} + x$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Dividing by $x\cos v$, $\dfrac{dy}{dx} = v + \sec v$, so $x\dfrac{dv}{dx} = \sec v$. Separating, $\cos v\,dv = \dfrac{dx}{x}$, and integrating, $\sin v = \log|x| + C$.

$$\sin\frac{y}{x} = \log|x| + C$$

Question 25

Find the particular solution of $2xy + y^2 – 2x^2\dfrac{dy}{dx} = 0$ given that $y = 2$ when $x = 1$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Then $\dfrac{dy}{dx} = \dfrac{2xy+y^2}{2x^2} = v + \dfrac{v^2}{2}$, so $x\dfrac{dv}{dx} = \dfrac{v^2}{2}$. Separating, $\dfrac{dv}{v^2} = \dfrac{dx}{2x}$, and integrating, $-\dfrac1v = \tfrac12\log|x| + c$. At $x=1$, $y=2$ we have $v=2$, so $-\tfrac12 = 0 + c$. Therefore $\dfrac1v = \dfrac{1-\log|x|}{2}$, giving $v = \dfrac{2}{1-\log|x|}$ and so $y = vx$.

$$y = \frac{2x}{1-\log|x|}$$

Question 26

Find the particular solution of $\left\{x\sin^2\dfrac{y}{x} – y\right\}dx + x\,dy = 0$ given that $y = \dfrac{\pi}{4}$ when $x = 1$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Then $\dfrac{dy}{dx} = \dfrac{y – x\sin^2(y/x)}{x} = v – \sin^2v$, so $x\dfrac{dv}{dx} = -\sin^2v$. Separating, $\operatorname{cosec}^2v\,dv = -\dfrac{dx}{x}$, so $-\cot v = -\log|x| + c$, i.e. $\cot v = \log|x| + C$. At $x=1$, $v = \dfrac\pi4$ and $\cot\dfrac\pi4 = 1$, so $1 = 0 + C$.

$$\cot\frac{y}{x} = \log|x| + 1$$

Question 27

Find the particular solution of $\dfrac{dy}{dx} = \dfrac{y(2y-x)}{x(2y+x)}$ given that $y = 1$ when $x = 1$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. The right side equals $\dfrac{v(2v-1)}{2v+1}$, so $x\dfrac{dv}{dx} = \dfrac{v(2v-1)}{2v+1} – v = -\dfrac{2v}{2v+1}$. Separating, $\dfrac{2v+1}{v}\,dv = -\dfrac{2\,dx}{x}$, i.e. $\left(2 + \dfrac1v\right)dv = -\dfrac{2\,dx}{x}$. Integrating, $2v + \log|v| = -2\log|x| + c$, so $2v + \log|vx^2| = c$, which is $\dfrac{2y}{x} + \log|xy| = c$. With $x = y = 1$ the left side is $2$, so $c = 2$. Dividing by 2 gives the answer.

$$\frac{y}{x} + \frac12\log|xy| = 1$$

Question 28

Find the particular solution of $(xe^{y/x} + y)\,dx = x\,dy$ given that $y(1) = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Then $\dfrac{dy}{dx} = e^v + v$, so $x\dfrac{dv}{dx} = e^v$. Separating, $e^{-v}\,dv = \dfrac{dx}{x}$, so $-e^{-v} = \log|x| + c$. At $x = 1$, $y = 0$ we have $v = 0$, so $-1 = 0 + c$. Thus $-e^{-v} = \log|x| – 1$, which rearranges to the result.

$$\log|x| + e^{-y/x} = 1$$

Question 29

Find the particular solution of $xe^{y/x} – y + x\dfrac{dy}{dx} = 0$ given that $y(e) = 0$.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. Here $\dfrac{dy}{dx} = v – e^v$, so $x\dfrac{dv}{dx} = -e^v$. Separating, $e^{-v}\,dv = -\dfrac{dx}{x}$, so $-e^{-v} = -\log|x| + c$. At $x = e$, $y=0$ we get $v=0$, so $-1 = -1 + c$ and $c = 0$. Hence $e^{-v} = \log|x|$, so $-v = \log(\log|x|)$ and $y = vx$.

$$y = -x\log(\log|x|)$$

Question 30

A curve in the first quadrant ($x>0$, $y>0$) has, at each of its points $(x,y)$, a tangent of gradient $\dfrac{y}{x} – \cot\dfrac{y}{x}\cos\dfrac{y}{x}$. Given that the curve goes through the point $\left(1,\dfrac\pi4\right)$, determine its equation.

Solution. Put $y = vx$ throughout, so $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$. The condition says $\dfrac{dy}{dx} = v – \cot v\cos v$, so $x\dfrac{dv}{dx} = -\cot v\cos v = -\dfrac{\cos^2v}{\sin v}$. Separating, $\dfrac{\sin v}{\cos^2v}\,dv = -\dfrac{dx}{x}$, and since $\int\dfrac{\sin v}{\cos^2v}\,dv = \sec v$, we get $\sec v = -\log x + c$ ($x>0$). The curve passes through $\left(1,\dfrac\pi4\right)$, where $v = \dfrac\pi4$ and $\sec\dfrac\pi4 = \sqrt2$, so $c = \sqrt2$.

$$\sec\frac{y}{x} + \log x = \sqrt{2}$$

Common mistakes

  • Forgetting the product rule: $\dfrac{dy}{dx}$ is $v + x\dfrac{dv}{dx}$, not $x\dfrac{dv}{dx}$. Dropping the $v$ makes every later step wrong.
  • Cancelling $v$ against the $-v$ too early or too late. After substituting, always compute $f(v) – v$ as a single fraction before separating, as in Questions 3, 5 and 17.
  • Splitting the partial fractions wrongly in Questions 3, 7, 8 and 11. Check by recombining the fractions and comparing with the original numerator.
  • Leaving the answer in $v$. The final relation must be returned to $x$ and $y$ by putting $v = \dfrac yx$.
  • Losing the constant in the particular solutions (Questions 25 to 30). Find $C$ from the given point immediately after integrating, before simplifying the logarithms.
  • Treating $\int \dfrac{dv}{\sin v}$ as $\log|\sin v|$ in Question 22. The correct result is $\log\left|\tan\dfrac v2\right|$.

Practise next

  • Solve $x\dfrac{dy}{dx} = 2y + x$ given that $y = 0$ when $x = 1$.
Show answer

$y = x^2 – x$. With $y = vx$ the equation becomes $x\dfrac{dv}{dx} = v + 1$, so $\log|v+1| = \log|x| + c$, i.e. $v + 1 = Cx$ and $y = Cx^2 – x$. The point $(1, 0)$ gives $C = 1$.

Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full

Subscribe