RS Aggarwal Class 12 Maths Solutions Exercise 19B — Differential Equations with Variable Separable
RS Aggarwal, Class 12 Mathematics — Differential Equations with Variable Separable, Exercise 19B. All 60 questions solved.
Independent solutions by Shiwam’s Classes. Not affiliated with or endorsed by the author or publisher of the book.
Exercise 19B is about equations whose variables can be separated. Questions 1 to 38 ask for a general solution, Questions 39 to 52 give an initial condition to fix the constant, and Questions 53 to 60 turn a geometric or growth statement into a differential equation first. Each solution below separates, integrates and, where a condition is given, substitutes its own numbers.
Key insight. Move everything containing $y$ to one side with $dy$ and everything containing $x$ to the other with $dx$, integrate both sides, and add a single constant. For a particular solution, substitute the given point into the integrated equation to fix that constant, and only then simplify.
Question 1
Solve $\dfrac{dy}{dx} = \dfrac{x-1}{y+2}$.
Solution. Variables separate directly: $(y+2)\,dy = (x-1)\,dx$. Integrating, $\dfrac{y^2}{2} + 2y = \dfrac{x^2}{2} – x + c$. Multiplying by $2$ and collecting terms gives the result with $C = 2c$.
$y^2 + 4y – x^2 + 2x = C$
Question 2
Solve $\dfrac{dy}{dx} = \dfrac{x}{x^2+1}$.
Solution. Here $dy = \dfrac{x}{x^2+1}\,dx$. The numerator is half the derivative of $x^2+1$, so $y = \dfrac12\log(x^2+1) + C$.
$y = \dfrac12\log(x^2+1) + C$
Question 3
Solve $\dfrac{dy}{dx} = (1+x)(1+y^2)$.
Solution. Divide by $1+y^2$ to separate: $\dfrac{dy}{1+y^2} = (1+x)\,dx$. Integrating, $\tan^{-1}y = x + \dfrac{x^2}{2} + C$.
$\tan^{-1}y = x + \dfrac{x^2}{2} + C$
Question 4
Solve $(1+x^2)\dfrac{dy}{dx} = xy$.
Solution. Separate: $\dfrac{dy}{y} = \dfrac{x\,dx}{1+x^2}$. Integrating, $\log|y| = \dfrac12\log(1+x^2) + \log C_1$, so $|y| = C_1\sqrt{1+x^2}$. The constant absorbs the sign.
$y = C_1\sqrt{1+x^2}$
Question 5
Solve $\dfrac{dy}{dx} + y = 1$, where $y \neq 1$.
Solution. Rewrite as $\dfrac{dy}{dx} = 1 – y$ and separate: $\dfrac{dy}{1-y} = dx$. The condition $y \ne 1$ is what allows the division. Integrating, $-\log|1-y| = x + c$, that is, $x + \log|1-y| = C$.
$x + \log|1-y| = C$
Question 6
Solve $\dfrac{dy}{dx} + \sqrt{\dfrac{1-y^2}{1-x^2}} = 0$.
Solution. Move the root across: $\dfrac{dy}{\sqrt{1-y^2}} = -\dfrac{dx}{\sqrt{1-x^2}}$. Both sides are standard, so $\sin^{-1}y = -\sin^{-1}x + C$.
$\sin^{-1}y + \sin^{-1}x = C$
Question 7
Solve $x\dfrac{dy}{dx} + y = y^2$.
Solution. Then $x\dfrac{dy}{dx} = y^2 – y = y(y-1)$, so $\dfrac{dy}{y(y-1)} = \dfrac{dx}{x}$. Partial fractions: $\dfrac{1}{y(y-1)} = \dfrac{1}{y-1} – \dfrac1y$. Integrating, $\log\left|\dfrac{y-1}{y}\right| = \log|x| + \log|C|$, so $\dfrac{y-1}{y} = Cx$. That is $y – 1 = Cxy$.
$y = 1 + Cxy$
Question 8
Solve $x^2(y+1)\,dx + y^2(x-1)\,dy = 0$.
Solution. Divide by $(x-1)(y+1)$: $\dfrac{x^2}{x-1}\,dx + \dfrac{y^2}{y+1}\,dy = 0$. Both fractions are improper, so divide out: $\dfrac{x^2}{x-1} = x + 1 + \dfrac{1}{x-1}$ and $\dfrac{y^2}{y+1} = y – 1 + \dfrac{1}{y+1}$. Integrating term by term gives the answer.
$\dfrac{x^2}{2} + \dfrac{y^2}{2} + x – y + \log|x-1| + \log|y+1| = C$
Question 9
Solve $y(1-x^2)\dfrac{dy}{dx} = x(1+y^2)$.
Solution. Separate: $\dfrac{y\,dy}{1+y^2} = \dfrac{x\,dx}{1-x^2}$. Integrate: $\dfrac12\log(1+y^2) = -\dfrac12\log|1-x^2| + c$. Multiply by $2$ and combine logarithms: $\log\left[(1+y^2)|1-x^2|\right] = 2c$, so the product is constant.
$(1+y^2)(1-x^2) = C$
Question 10
Solve $y\log y\,dx – x\,dy = 0$.
Solution. Separate: $\dfrac{dy}{y\log y} = \dfrac{dx}{x}$. On the left, put $u = \log y$, so $\int\dfrac{du}{u} = \log|\log y|$. Hence $\log|\log y| = \log|x| + \log|C|$, which gives $\log y = Cx$.
$\log y = Cx$, that is, $y = e^{Cx}$
Question 11
Solve $x(x^2 – x^2y^2)\,dy + y(y^2 + x^2y^2)\,dx = 0$.
Solution. Factor: $x^3(1-y^2)\,dy + y^3(1+x^2)\,dx = 0$. Dividing by $x^3y^3$ separates the variables: $\dfrac{1-y^2}{y^3}\,dy + \dfrac{1+x^2}{x^3}\,dx = 0$, that is, $\left(y^{-3} – y^{-1}\right)dy + \left(x^{-3} + x^{-1}\right)dx = 0$. Integrating, $-\dfrac{1}{2y^2} – \log|y| – \dfrac{1}{2x^2} + \log|x| = C$.
$-\dfrac{1}{2y^2} – \dfrac{1}{2x^2} + \log\left|\dfrac{x}{y}\right| = C$
Question 12
Solve $(1-x^2)\,dy + xy(1-y)\,dx = 0$.
Solution. Then $\dfrac{dy}{y(1-y)} = -\dfrac{x\,dx}{1-x^2}$. Use $\dfrac{1}{y(1-y)} = \dfrac1y + \dfrac{1}{1-y}$ on the left. Integrating, $\log|y| – \log|1-y| = \dfrac12\log|1-x^2| + \log|C|$. So $\dfrac{y}{1-y} = C\sqrt{1-x^2}$.
$y = C(1-y)\sqrt{1-x^2}$
Question 13
Solve $(1-x^2)(1-y)\,dx = xy(1+y)\,dy$.
Solution. Separate: $\dfrac{1-x^2}{x}\,dx = \dfrac{y(1+y)}{1-y}\,dy$. On the left, $\dfrac1x – x$ integrates to $\log|x| – \dfrac{x^2}{2}$. On the right, long division gives $\dfrac{y^2+y}{1-y} = -(y+2) – \dfrac{2}{y-1}$, which integrates to $-\dfrac{y^2}{2} – 2y – 2\log|1-y|$. Equating and moving the logarithms to one side:
$$\log|x| + 2\log|1-y| = \frac{x^2}{2} – \frac{y^2}{2} – 2y + C.$$
$\log\left|x(1-y)^2\right| = \dfrac{x^2}{2} – \dfrac{y^2}{2} – 2y + C$
Question 14
Solve $(y + xy)\,dx + (x – xy^2)\,dy = 0$.
Solution. Factor as $y(1+x)\,dx + x(1-y^2)\,dy = 0$ and divide by $xy$: $\dfrac{1+x}{x}\,dx + \dfrac{1-y^2}{y}\,dy = 0$. That is $\left(\dfrac1x + 1\right)dx + \left(\dfrac1y – y\right)dy = 0$. Integrating gives $\log|x| + x + \log|y| – \dfrac{y^2}{2} = C$.
$\log|xy| + x – \dfrac{y^2}{2} = C$
Question 15
Solve $(x^2 – yx^2)\,dy + (y^2 + xy^2)\,dx = 0$.
Solution. Factor: $x^2(1-y)\,dy + y^2(1+x)\,dx = 0$. Divide by $x^2y^2$: $\dfrac{1-y}{y^2}\,dy + \dfrac{1+x}{x^2}\,dx = 0$, i.e. $\left(y^{-2} – y^{-1}\right)dy + \left(x^{-2} + x^{-1}\right)dx = 0$. Integrating, $-\dfrac1y – \log|y| – \dfrac1x + \log|x| = C_0$. Rearranged:
$\log\left|\dfrac{x}{y}\right| = \dfrac1x + \dfrac1y + C$
Question 16
Solve $(x^2y – x^2)\,dx + (xy^2 – y^2)\,dy = 0$.
Solution. Factor: $x^2(y-1)\,dx + y^2(x-1)\,dy = 0$. Divide by $(x-1)(y-1)$: $\dfrac{x^2}{x-1}\,dx + \dfrac{y^2}{y-1}\,dy = 0$. Dividing out, $\dfrac{x^2}{x-1} = x + 1 + \dfrac{1}{x-1}$ and $\dfrac{y^2}{y-1} = y + 1 + \dfrac{1}{y-1}$. Integrating both gives the result.
$\dfrac12(x^2+y^2) + (x+y) + \log|(x-1)(y-1)| = C$
Question 17
Solve $x\sqrt{1+y^2}\,dx + y\sqrt{1+x^2}\,dy = 0$.
Solution. Divide by $\sqrt{(1+x^2)(1+y^2)}$: $\dfrac{x\,dx}{\sqrt{1+x^2}} + \dfrac{y\,dy}{\sqrt{1+y^2}} = 0$. Each term is the derivative of a square root, so $\sqrt{1+x^2} + \sqrt{1+y^2} = C$.
$\sqrt{1+x^2} + \sqrt{1+y^2} = C$
Question 18
Solve $\dfrac{dy}{dx} = e^{x+y} + x^2e^y$.
Solution. Factor $e^y$: $\dfrac{dy}{dx} = e^y(e^x + x^2)$. Then $e^{-y}\,dy = (e^x + x^2)\,dx$, and integrating, $-e^{-y} = e^x + \dfrac{x^3}{3} + c$.
$e^x + e^{-y} + \dfrac{x^3}{3} = C$
Question 19
Solve $\dfrac{dy}{dx} = \dfrac{3e^{2x} + 3e^{4x}}{e^x + e^{-x}}$.
Solution. Multiply top and bottom by $e^x$: the fraction becomes $\dfrac{3e^{3x}(1+e^{2x})}{e^{2x}+1} = 3e^{3x}$. So $dy = 3e^{3x}\,dx$ and $y = e^{3x} + C$.
$y = e^{3x} + C$
Question 20
Solve $3e^x\tan y\,dx + (1-e^x)\sec^2y\,dy = 0$.
Solution. Divide by $(1-e^x)\tan y$: $\dfrac{3e^x}{1-e^x}\,dx + \dfrac{\sec^2y}{\tan y}\,dy = 0$. The first term integrates to $-3\log|1-e^x|$, the second to $\log|\tan y|$. So $\log|\tan y| = 3\log|1-e^x| + \log|C|$, giving $\tan y = C(1-e^x)^3$.
$\tan y = C(1-e^x)^3$
Question 21
Solve $e^y(1+x^2)\,dy – \dfrac{x}{y}\,dx = 0$.
Solution. Then $ye^y\,dy = \dfrac{x}{1+x^2}\,dx$. The left side needs integration by parts: $\int ye^y\,dy = ye^y – e^y = (y-1)e^y$. The right side is $\dfrac12\log(1+x^2)$.
$(y-1)e^y = \dfrac12\log(1+x^2) + C$
Question 22
Solve $\dfrac{dy}{dx} = e^{x+y} + e^{x-y}$.
Solution. Factor: $\dfrac{dy}{dx} = e^x(e^y + e^{-y})$. Separating, $\dfrac{dy}{e^y+e^{-y}} = e^x\,dx$. Multiply the left by $e^y/e^y$: $\dfrac{e^y\,dy}{e^{2y}+1}$. With $u = e^y$ this is $\int\dfrac{du}{1+u^2} = \tan^{-1}(e^y)$.
$\tan^{-1}(e^y) = e^x + C$
Question 23
Solve $(e^y+1)\cos x\,dx + e^y\sin x\,dy = 0$.
Solution. Divide by $(e^y+1)\sin x$: $\dfrac{\cos x}{\sin x}\,dx + \dfrac{e^y}{e^y+1}\,dy = 0$. Each term is a logarithmic derivative, so $\log|\sin x| + \log(e^y+1) = \log C$, that is, $(1+e^y)\sin x = C$.
$(1+e^y)\sin x = C$
Question 24
Solve $\dfrac{dy}{dx} + \dfrac{xy+y}{xy+x} = 0$.
Solution. Factor: $\dfrac{y(x+1)}{x(y+1)}$. So $\dfrac{y+1}{y}\,dy = -\dfrac{x+1}{x}\,dx$, i.e. $\left(1 + \dfrac1y\right)dy = -\left(1 + \dfrac1x\right)dx$. Integrating, $y + \log|y| = -x – \log|x| + c$.
$x + y + \log|xy| = C$
Question 25
Solve $\sqrt{1-x^4}\,dy = x\,dx$.
Solution. Then $dy = \dfrac{x\,dx}{\sqrt{1-x^4}}$. Put $t = x^2$, so $x\,dx = \dfrac{dt}{2}$: $y = \dfrac12\int\dfrac{dt}{\sqrt{1-t^2}} = \dfrac12\sin^{-1}t$.
$y = \dfrac12\sin^{-1}(x^2) + C$
Question 26
Solve $\operatorname{cosec}x\,\log y\,\dfrac{dy}{dx} + x^2y = 0$.
Solution. Move the second term and use $\sin x$ for $1/\operatorname{cosec}x$: $\dfrac{\log y}{y}\,dy = -x^2\sin x\,dx$. The left side integrates to $\dfrac12(\log y)^2$. For the right, integrate by parts twice: $\int x^2\sin x\,dx = -x^2\cos x + 2x\sin x + 2\cos x$. Hence $\dfrac12(\log y)^2 = x^2\cos x – 2x\sin x – 2\cos x + C$.
$\dfrac12(\log y)^2 + (2-x^2)\cos x + 2x\sin x = C$
Question 27
Solve $y\,dx + (1+x^2)\tan^{-1}x\,dy = 0$.
Solution. Divide by $y(1+x^2)\tan^{-1}x$: $\dfrac{dx}{(1+x^2)\tan^{-1}x} + \dfrac{dy}{y} = 0$. With $u = \tan^{-1}x$, the first term is $\int\dfrac{du}{u}$. So $\log|\tan^{-1}x| + \log|y| = \log C$.
$y\tan^{-1}x = C$
Question 28
Solve $\dfrac1x\cdot\dfrac{dy}{dx} = \tan^{-1}x$.
Solution. Then $dy = x\tan^{-1}x\,dx$. Integrate by parts, taking $\tan^{-1}x$ as the first function: $\int x\tan^{-1}x\,dx = \dfrac{x^2}{2}\tan^{-1}x – \dfrac12\int\dfrac{x^2}{1+x^2}\,dx$. Since $\dfrac{x^2}{1+x^2} = 1 – \dfrac{1}{1+x^2}$, the last integral is $x – \tan^{-1}x$. So $y = \dfrac{x^2+1}{2}\tan^{-1}x – \dfrac x2 + C$.
$y = \dfrac12(x^2+1)\tan^{-1}x – \dfrac12x + C$
Question 29
Solve $e^x\sqrt{1-y^2}\,dx + \dfrac yx\,dy = 0$.
Solution. Divide by $\sqrt{1-y^2}$ and multiply by $x$: $xe^x\,dx + \dfrac{y}{\sqrt{1-y^2}}\,dy = 0$. By parts, $\int xe^x\,dx = (x-1)e^x$, and $\int\dfrac{y\,dy}{\sqrt{1-y^2}} = -\sqrt{1-y^2}$. So $(x-1)e^x – \sqrt{1-y^2} = C$.
$(x-1)e^x – \sqrt{1-y^2} = C$
Question 30
Solve $\dfrac{dy}{dx} = \dfrac{1-\cos x}{1+\cos x}$.
Solution. Using $1-\cos x = 2\sin^2\frac x2$ and $1+\cos x = 2\cos^2\frac x2$, the right side is $\tan^2\frac x2 = \sec^2\frac x2 – 1$. Then $y = 2\tan\frac x2 – x + C$.
$y = 2\tan\dfrac x2 – x + C$
Question 31
Solve $(\cos x)\dfrac{dy}{dx} + \cos 2x = \cos 3x$.
Solution. $\dfrac{dy}{dx} = \dfrac{\cos3x – \cos2x}{\cos x}$. Use $\cos 3x = 4\cos^3x – 3\cos x$, so $\dfrac{\cos3x}{\cos x} = 4\cos^2x – 3 = 2\cos2x – 1$. Also $\dfrac{\cos2x}{\cos x} = \dfrac{2\cos^2x – 1}{\cos x} = 2\cos x – \sec x$. Therefore $\dfrac{dy}{dx} = 2\cos2x – 1 – 2\cos x + \sec x$. Integrating, $y = \sin2x – x – 2\sin x + \log|\sec x + \tan x| + C$.
$y = \sin 2x – 2\sin x – x + \log|\sec x + \tan x| + C$
Question 32
Solve $\dfrac{dy}{dx} + \dfrac{1+\cos2y}{1-\cos2x} = 0$.
Solution. Use $1+\cos2y = 2\cos^2y$ and $1-\cos2x = 2\sin^2x$: $\dfrac{dy}{dx} = -\dfrac{\cos^2y}{\sin^2x}$. Separating, $\sec^2y\,dy = -\operatorname{cosec}^2x\,dx$, so $\tan y = \cot x + C$.
$\tan y = \cot x + C$
Question 33
Solve $\dfrac{dy}{dx} + \dfrac{\cos x\sin y}{\cos y} = 0$.
Solution. Separate: $\dfrac{\cos y}{\sin y}\,dy = -\cos x\,dx$. Integrating, $\log|\sin y| = -\sin x + c$.
$\log|\sin y| + \sin x = C$
Question 34
Solve $\cos x(1+\cos y)\,dx – \sin y(1+\sin x)\,dy = 0$.
Solution. Divide by $(1+\sin x)(1+\cos y)$: $\dfrac{\cos x}{1+\sin x}\,dx = \dfrac{\sin y}{1+\cos y}\,dy$. The left integrates to $\log(1+\sin x)$, the right to $-\log(1+\cos y)$. So $\log\left[(1+\sin x)(1+\cos y)\right] = \log C$.
$(1+\sin x)(1+\cos y) = C$
Question 35
Solve $\sin^3x\,dx – \sin y\,dy = 0$.
Solution. Write $\sin^3x = \dfrac{3\sin x – \sin3x}{4}$. Then $\int\sin^3x\,dx = \dfrac{-3\cos x + \frac13\cos3x}{4} = -\dfrac{9\cos x – \cos3x}{12}$. Also $\int\sin y\,dy = -\cos y$. So $-\dfrac{9\cos x – \cos3x}{12} = -\cos y + c$. Multiply by $-12$ and absorb the constant.
$12\cos y = 9\cos x – \cos3x + C$
Question 36
Solve $\dfrac{dy}{dx} + \sin(x+y) = \sin(x-y)$.
Solution. $\dfrac{dy}{dx} = \sin(x-y) – \sin(x+y) = -2\cos x\sin y$. Separating, $\operatorname{cosec}y\,dy = -2\cos x\,dx$. Since $\int\operatorname{cosec}y\,dy = \log|\operatorname{cosec}y – \cot y|$, we get $\log|\operatorname{cosec}y – \cot y| = -2\sin x + c$.
$\log|\operatorname{cosec}y – \cot y| + 2\sin x = C$
Question 37
Solve $\dfrac1x\cos^2y\,dy + \dfrac1y\cos^2x\,dx = 0$.
Solution. Multiply by $xy$: $y\cos^2y\,dy + x\cos^2x\,dx = 0$. With $\cos^2\theta = \frac{1+\cos2\theta}{2}$, by parts, $\int\theta\cos^2\theta\,d\theta = \dfrac{\theta^2}{4} + \dfrac{\theta\sin2\theta}{4} + \dfrac{\cos2\theta}{8}$. Apply it to both variables and multiply the sum by $8$:
$2(x^2+y^2) + 2x\sin2x + 2y\sin2y + \cos2x + \cos2y = C$
Question 38
Solve $\dfrac{dy}{dx} = \sin^3x\cos^2x + xe^x$.
Solution. For the first term, put $u = \cos x$: $\sin^3x\cos^2x\,dx = -(1-u^2)u^2\,du$, with integral $-\dfrac{u^3}{3} + \dfrac{u^5}{5}$. For the second, by parts, $\int xe^x\,dx = xe^x – e^x$.
$y = -\dfrac13\cos^3x + \dfrac15\cos^5x + xe^x – e^x + C$
Question 39
Find the particular solution of $\dfrac{dy}{dx} = 1 + x + y + xy$, given that $y = 0$ when $x = 1$.
Solution. Factorise the right side: $1 + x + y + xy = (1+x)(1+y)$. So $\dfrac{dy}{1+y} = (1+x)\,dx$ and $\log|1+y| = x + \dfrac{x^2}{2} + c$. Put $x = 1$, $y = 0$: $0 = 1 + \dfrac12 + c$, so $c = -\dfrac32$.
$\log|1+y| = x + \dfrac{x^2}{2} – \dfrac32$
Question 40
Find the particular solution of $x(1+y^2)\,dx – y(1+x^2)\,dy = 0$, given that $y = 1$ when $x = 0$.
Solution. Separate: $\dfrac{y\,dy}{1+y^2} = \dfrac{x\,dx}{1+x^2}$, so $\log(1+y^2) = \log(1+x^2) + \log C$, i.e. $1+y^2 = C(1+x^2)$. At $x = 0$, $y = 1$: $2 = C$. Hence $1 + y^2 = 2 + 2x^2$, so $y^2 = 2x^2 + 1$. The positive root is taken because $y = 1 > 0$ at the given point.
$y = \sqrt{2x^2+1}$
Question 41
Find the particular solution of $\log\left(\dfrac{dy}{dx}\right) = 3x + 4y$, given that $y = 0$ when $x = 0$.
Solution. Remove the logarithm: $\dfrac{dy}{dx} = e^{3x+4y} = e^{3x}e^{4y}$. Then $e^{-4y}\,dy = e^{3x}\,dx$, so $-\dfrac{e^{-4y}}{4} = \dfrac{e^{3x}}{3} + c$. At $(0, 0)$: $-\dfrac14 = \dfrac13 + c$, so $c = -\dfrac{7}{12}$. Multiply by $-12$: $3e^{-4y} = -4e^{3x} + 7$.
$4e^{3x} + 3e^{-4y} = 7$
Question 42
Solve $(x^2 – yx^2)\,dy + (y^2 + x^2y^2)\,dx = 0$, given that $y = 1$ when $x = 1$.
Solution. Factor: $x^2(1-y)\,dy + y^2(1+x^2)\,dx = 0$. Divide by $x^2y^2$: $\left(y^{-2} – y^{-1}\right)dy + \left(x^{-2} + 1\right)dx = 0$. Integrating, $-\dfrac1y – \log|y| – \dfrac1x + x = c$. At $(1,1)$: $-1 – 0 – 1 + 1 = -1$, so $c = -1$. Multiply by $-1$:
$\log|y| + \dfrac1y + \dfrac1x – x = 1$
Question 43
Find the particular solution of $e^x\sqrt{1-y^2}\,dx + \dfrac yx\,dy = 0$, given that $y = 1$ when $x = 0$.
Solution. As in the general case, $xe^x\,dx + \dfrac{y\,dy}{\sqrt{1-y^2}} = 0$, giving $(x-1)e^x – \sqrt{1-y^2} = c$. At $x = 0$, $y = 1$: $-1 – 0 = c$. So $(x-1)e^x – \sqrt{1-y^2} = -1$, that is, $(x-1)e^x = \sqrt{1-y^2} – 1$.
$e^x(x-1) = \sqrt{1-y^2} – 1$
Question 44
Find the particular solution of $\dfrac{dy}{dx} = \dfrac{x(2\log x+1)}{\sin y + y\cos y}$, given that $y = \dfrac\pi2$ when $x = 1$.
Solution. Cross-multiplying: $(\sin y + y\cos y)\,dy = x(2\log x+1)\,dx$. The left is exactly $d(y\sin y)$. The right is $d(x^2\log x)$, since $\dfrac{d}{dx}(x^2\log x) = 2x\log x + x$. So $y\sin y = x^2\log x + c$. At $x = 1$, $y = \frac\pi2$: $\frac\pi2\cdot1 = 0 + c$.
$y\sin y = x^2\log x + \dfrac\pi2$
Question 45
Solve $\dfrac{dy}{dx} = y\sin2x$, given that $y(0) = 1$.
Solution. $\dfrac{dy}{y} = \sin2x\,dx$ gives $\log y = -\dfrac{\cos2x}{2} + c$. Using $\cos2x = 1 – 2\sin^2x$, this is $\log y = \sin^2x + c’$ with $c’ = c – \tfrac12$. At $x = 0$, $y = 1$: $0 = 0 + c’$.
$y = e^{\sin^2x}$
Question 46
Solve $(x+1)\dfrac{dy}{dx} = 2xy$, given that $y(2) = 3$.
Solution. $\dfrac{dy}{y} = \dfrac{2x}{x+1}\,dx = \left(2 – \dfrac{2}{x+1}\right)dx$. So $\log y = 2x – 2\log|x+1| + c$. At $x = 2$, $y = 3$: $\log3 = 4 – 2\log3 + c$, so $c = 3\log3 – 4$. Then $y(x+1)^2 = e^{2x}\cdot e^{c} = 27e^{2x-4}$.
$y(x+1)^2 = 27e^{2x-4}$
Question 47
Solve $\dfrac{dy}{dx} = x(2\log x+1)$, given that $y = 0$ when $x = 2$.
Solution. Integrating, $y = x^2\log x + c$ (the same antiderivative as in Question 44). At $x = 2$: $0 = 4\log2 + c$, so $c = -4\log2$.
$y = x^2\log x – 4\log2$
Question 48
Solve $(x^3 + x^2 + x + 1)\dfrac{dy}{dx} = 2x^2 + x$, given that $y = 1$ when $x = 0$.
Solution. Factor: $x^3 + x^2 + x + 1 = (x+1)(x^2+1)$. Partial fractions: $\dfrac{2x^2+x}{(x+1)(x^2+1)} = \dfrac{A}{x+1} + \dfrac{Bx+D}{x^2+1}$. Putting $x = -1$ gives $A = \dfrac12$. Comparing $x^2$ coefficients, $2 = A + B$, so $B = \dfrac32$; comparing constants, $0 = A + D$, so $D = -\dfrac12$. Integrating:
$$y = \tfrac12\log|x+1| + \tfrac34\log(x^2+1) – \tfrac12\tan^{-1}x + c.$$
At $x = 0$, $y = 1$: $1 = 0 + 0 – 0 + c$, so $c = 1$.
$y = \dfrac12\left\{\log|x+1| + \dfrac32\log(x^2+1) – \tan^{-1}x\right\} + 1$
Question 49
Solve $\dfrac{dy}{dx} = y\tan x$, given that $y = 1$ when $x = 0$.
Solution. $\dfrac{dy}{y} = \tan x\,dx$ gives $\log y = -\log|\cos x| + c$, so $y\cos x = C$. At $x = 0$, $y = 1$: $C = 1\cdot1 = 1$.
$y\cos x = 1$
Question 50
Solve $\dfrac{dy}{dx} = y^2\tan2x$, given that $y = 2$ when $x = 0$.
Solution. $\dfrac{dy}{y^2} = \tan2x\,dx$. Integrating, $-\dfrac1y = -\dfrac12\log|\cos2x| + c$. At $x = 0$, $y = 2$: $-\dfrac12 = 0 + c$. So $\dfrac1y = \dfrac12\left(1 + \log|\cos2x|\right)$, i.e. $y\left(1 + \log|\cos2x|\right) = 2$.
$y\left(1 + \log|\cos2x|\right) = 2$
Question 51
Solve $\dfrac{dy}{dx} = y\cot2x$, given that $y = 2$ when $x = \dfrac\pi4$.
Solution. $\dfrac{dy}{y} = \cot2x\,dx$, so $\log y = \dfrac12\log|\sin2x| + c$. At $x = \frac\pi4$, $\sin\frac\pi2 = 1$, so $\log2 = 0 + c$. Therefore $y = 2\sqrt{\sin2x}$.
$y = 2\sqrt{\sin2x}$
Question 52
Solve $(1+x^2)\sec^2y\,dy + 2x\tan y\,dx = 0$, given that $y = \dfrac\pi4$ when $x = 1$.
Solution. Divide by $(1+x^2)\tan y$: $\dfrac{\sec^2y}{\tan y}\,dy = -\dfrac{2x}{1+x^2}\,dx$. So $\log|\tan y| = -\log(1+x^2) + \log C$, i.e. $(1+x^2)\tan y = C$. At $x = 1$, $y = \frac\pi4$: $C = 2\cdot1 = 2$.
$(1+x^2)\tan y = 2$
Question 53
Find the equation of the curve through the point $\left(0, \dfrac\pi4\right)$ whose differential equation is $\sin x\cos y\,dx + \cos x\sin y\,dy = 0$.
Solution. Divide by $\cos x\cos y$: $\tan x\,dx + \tan y\,dy = 0$. Integrating, $-\log|\cos x| – \log|\cos y| = c$, so $\cos x\cos y = C$. At $\left(0, \frac\pi4\right)$: $C = 1\cdot\frac{1}{\sqrt2}$. Hence $\cos y = \dfrac{1}{\sqrt2}\sec x$.
$y = \cos^{-1}\left(\dfrac{1}{\sqrt2}\sec x\right)$
Question 54
Find the equation of the curve that passes through the origin and has the differential equation $\dfrac{dy}{dx} = e^x\sin x$.
Solution. Let $I = \int e^x\sin x\,dx$. Two integrations by parts give $I = e^x\sin x – e^x\cos x – I$, so $I = \dfrac{e^x(\sin x – \cos x)}{2}$. Thus $y = \dfrac{e^x(\sin x – \cos x)}{2} + c$. The origin gives $0 = \dfrac{1\cdot(0-1)}{2} + c$, so $c = \dfrac12$.
$2y = e^x(\sin x – \cos x) + 1$
Question 55
A curve goes through $(0, -2)$. At every point $(x, y)$ on it, the slope of the tangent multiplied by the $y$-coordinate equals the $x$-coordinate. Find its equation.
Solution. The condition reads $y\dfrac{dy}{dx} = x$, so $y\,dy = x\,dx$ and $\dfrac{y^2}{2} = \dfrac{x^2}{2} + c$, i.e. $y^2 = x^2 + C$. The point $(0, -2)$ gives $4 = 0 + C$. The equation $y^2 = x^2 + 4$ describes two branches; since $y = -2 < 0$ at the given point, the curve itself is the lower one, $y = -\sqrt{x^2+4}$.
$y^2 = x^2 + 4$
Question 56
A curve passes through $(-2, 1)$. At each of its points, the tangent’s slope is double the slope of the line joining that point to $(-4, -3)$. Find the equation of the curve.
Solution. The slope of the joining line is $\dfrac{y+3}{x+4}$, so $\dfrac{dy}{dx} = \dfrac{2(y+3)}{x+4}$. Separate: $\dfrac{dy}{y+3} = \dfrac{2\,dx}{x+4}$, giving $\log|y+3| = 2\log|x+4| + \log|C|$, i.e. $y + 3 = C(x+4)^2$. At $(-2, 1)$: $4 = C\cdot4$, so $C = 1$.
$y + 3 = (x+4)^2$
Question 57
A bank’s principal grows continuously at $r\%$ per annum, so that $\dfrac{dP}{dt} = \dfrac{r}{100}P$. Find $r$ if ₹ 100 doubles in 10 years. Take $\log_e2 = 0.6931$.
Solution. Separating, $\log P = \dfrac{rt}{100} + c$, so $P = P_0e^{rt/100}$ with $P_0 = 100$. For $P = 200$ at $t = 10$: $2 = e^{r/10}$, so $\dfrac{r}{10} = \log_e2 = 0.6931$ and $r = 6.931$.
$r = 6.931\%$ per annum
Question 58
A bank’s principal grows continuously at $5\%$ per annum, and ₹ 1000 is deposited. What will it be worth after $10$ years? Take $e^{0.5} = 1.648$.
Solution. From $\dfrac{dP}{dt} = \dfrac{5}{100}P$ we get $P = 1000e^{0.05t}$. At $t = 10$: $P = 1000e^{0.5} = 1000 \times 1.648 = 1648$.
₹ 1648
Question 59
A spherical balloon is inflated so that its volume changes at a constant rate. The radius is $3$ units at the start and $6$ units after $3$ seconds. Find the radius after $t$ seconds.
Solution. Constant rate means $\dfrac{dV}{dt} = k$, so $V = kt + c$. With $V = \frac43\pi r^3$ this gives $r^3 = at + b$ for new constants. At $t = 0$, $r = 3$: $b = 27$. At $t = 3$, $r = 6$: $216 = 3a + 27$, so $a = 63$. Hence $r^3 = 63t + 27$.
$r = (63t + 27)^{1/3}$
Question 60
A culture has $100000$ bacteria. The count rises by $10\%$ in $2$ hours. If the growth rate is proportional to the count present, how many hours does it take to reach $200000$?
Solution. $\dfrac{dN}{dt} = kN$ gives $N = 100000\,e^{kt}$. After $2$ hours $N = 110000$, so $e^{2k} = \dfrac{11}{10}$ and $k = \dfrac12\log\dfrac{11}{10}$. For $N = 200000$: $e^{kt} = 2$, so $t = \dfrac{\log2}{k} = \dfrac{2\log2}{\log(11/10)}$. Numerically $t \approx \dfrac{1.3863}{0.09531} \approx 14.5$ hours.
$t = \dfrac{2\log2}{\log\frac{11}{10}} \approx 14.5$ hours
Common mistakes
- Dividing by an expression that can be zero without a word. In Question 5 the condition $y \ne 1$ is there for exactly this reason.
- Splitting improper fractions wrongly. In Questions 8, 13 and 16 the integrand must first be divided out, for instance $\dfrac{x^2}{x-1} = x + 1 + \dfrac{1}{x-1}$, before integrating.
- Losing a power when logs combine. In Question 13 the term is $2\log|1-y|$, which gives $(1-y)^2$, not $(1-y)$.
- Putting in the initial values before the arbitrary constant has been introduced, or substituting into the wrong form. In Questions 39 to 52 find $c$ from the integrated equation, then simplify.
- Forgetting the sign when a trigonometric integral is negative, such as $\int\tan x\,dx = -\log|\cos x|$ in Questions 49, 50 and 53.
Practise next
- Solve $\dfrac{dy}{dx} = e^{x-y}$, given that $y = 1$ when $x = 0$.
Show answer
$y = \log\left(e^x + e – 1\right)$. Separating gives $e^y\,dy = e^x\,dx$, so $e^y = e^x + c$; $x = 0$, $y = 1$ gives $c = e – 1$.
- Solve $x\log x\,\dfrac{dy}{dx} = 1 + y^2$, given that $y = 1$ when $x = e$.
Show answer
$y = \tan\left(\log\log x + \dfrac\pi4\right)$. Separating gives $\tan^{-1}y = \log|\log x| + c$; at $x = e$, $\log\log e = 0$, so $c = \dfrac\pi4$.
- Solve $(1+x^2)\dfrac{dy}{dx} = 2xy$, given that $y = 4$ when $x = 1$.
Show answer
$y = 2(1+x^2)$. Separating gives $\log y = \log(1+x^2) + \log C$, so $y = C(1+x^2)$; $x = 1$, $y = 4$ gives $C = 2$.
Shiwam's Classes: IIT JEEJEE Main and Advanced, worked in full
Subscribe