Exercise 4.2 Solutions – 12th Class Math New Book (Separable and Homogeneous Equations and Initial Values)

By Ehsan Ahmed · updated
Exercise 4.2 solutions thumbnail for 12th class math chapter 4 (Differential Equations) showing the key formulas of the exercise

Exercise 4.2 (Separable and Homogeneous Equations and Initial Values) of Chapter 4: Differential Equations, 12th class Mathematics new book (Punjab, PECTAA 2026-27). All 25 questions are solved step by step with the final answer highlighted.

Tap a question to open or close it.
Question 1Show that each of the following relations written against the differential equation is its solution.
Formula used
$$\frac{d}{dx}(x^n)=nx^{n-1}$$
$$\frac{d}{dx}(\tan x)=\sec^2x=1+\tan^2x$$
$$\frac{d}{dx}(\cos x)=-\sin x$$
$$\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}$$

(i) $x\frac{dy}{dx}=1+y\,;\quad y=cx-1$

Sol:

$$x\frac{dy}{dx}=1+y\qquad\text{(i)}$$
$$y=cx-1\qquad\text{(ii)}$$

Differentiate (ii) with respect to $x$.

$$\frac{dy}{dx}=c\qquad\text{(iii)}$$

Put the value of $y$ from (ii) in the right-hand side of (i).

$$\begin{aligned}1+y&=1+(cx-1)\\[6pt]&=cx\\[6pt]&=x\frac{dy}{dx}\quad\text{from (iii)}\end{aligned}$$

So (ii) satisfies (i), and $y=cx-1$ is a solution of (i).

Answer Hence proved.

(ii) $x^2(2y+1)\frac{dy}{dx}=1\,;\quad y^2+y=5-\frac1x$

Sol:

$$x^2(2y+1)\frac{dy}{dx}=1\qquad\text{(i)}$$
$$y^2+y=5-\frac1x\qquad\text{(ii)}$$

Differentiate (ii) with respect to $x$.

$$2y\frac{dy}{dx}+\frac{dy}{dx}=0-\left(-\frac1{x^2}\right)$$
$$(2y+1)\frac{dy}{dx}=\frac1{x^2}$$

Multiply both sides by $x^2$.

$$x^2(2y+1)\frac{dy}{dx}=1\quad\text{which is (i)}$$

So (ii) is a solution of (i).

Answer Hence proved.

(iii) $\frac{ds}{dt}=e^t(s^2+1)\,;\quad s=\tan(e^t-10)$

Sol:

$$\frac{ds}{dt}=e^t(s^2+1)\qquad\text{(i)}$$
$$s=\tan(e^t-10)\qquad\text{(ii)}$$

Differentiate (ii) with respect to $t$.

$$\begin{aligned}\frac{ds}{dt}&=\sec^2(e^t-10)\cdot\frac{d}{dt}(e^t-10)\\[6pt]&=\sec^2(e^t-10)\cdot e^t\\[6pt]&=e^t\left[1+\tan^2(e^t-10)\right]\end{aligned}$$

Use (ii) again: $\tan(e^t-10)=s$.

$$\frac{ds}{dt}=e^t(1+s^2)\quad\text{which is (i)}$$

So (ii) is a solution of (i).

Answer Hence proved.

(iv) $x\tan y\,\frac{dy}{dx}-1=0\,;\quad x\cos y=b$

Sol:

$$x\tan y\,\frac{dy}{dx}-1=0\qquad\text{(i)}$$
$$x\cos y=b\qquad\text{(ii)}$$

Differentiate (ii) with respect to $x$, by the product rule. Here $b$ is a constant.

$$x(-\sin y)\frac{dy}{dx}+\cos y\cdot1=0$$
$$-x\sin y\,\frac{dy}{dx}+\cos y=0$$

Divide both sides by $-\cos y$. (Here $\cos y\ne0$, because $\tan y$ is defined.)

$$x\frac{\sin y}{\cos y}\,\frac{dy}{dx}-1=0$$
$$x\tan y\,\frac{dy}{dx}-1=0\quad\text{which is (i)}$$

So (ii) is a solution of (i).

Answer Hence proved.
Question 2Which of the following differential equations are separable and which of them are homogeneous?
Formula used
$$\text{Separable: }\frac{dy}{dx}=g(x)h(y)$$
$$\text{Homogeneous: }\frac{dy}{dx}=F\left(\frac yx\right)$$
$$\text{(test: }f(tx,ty)=f(x,y)\text{)}$$

(i) $x\frac{dy}{dx}=1+y$

Sol:

$$\begin{aligned}\frac{dy}{dx}&=\frac{1+y}x\\[6pt]&=\frac1x\cdot(1+y)\end{aligned}$$

This is a function of $x$ times a function of $y$. So the equation is separable:

$$\frac1{1+y}\,dy=\frac1x\,dx$$

For $f(x,y)=\dfrac{1+y}x$ we get $f(tx,ty)=\dfrac{1+ty}{tx}\ne f(x,y)$. So it is not homogeneous.

Answer Separable

(ii) $x^2(2y+1)\,dy-dx=0$

Sol:

$$x^2(2y+1)\,dy=dx$$
$$\begin{aligned}\frac{dy}{dx}&=\frac1{x^2(2y+1)}\\[6pt]&=\frac1{x^2}\cdot\frac1{2y+1}\end{aligned}$$

This is a function of $x$ times a function of $y$. So the equation is separable:

$$(2y+1)\,dy=\frac1{x^2}\,dx$$

For $f(x,y)=\dfrac1{x^2(2y+1)}$ we get $f(tx,ty)=\dfrac1{t^2x^2(2ty+1)}\ne f(x,y)$. So it is not homogeneous.

Answer Separable

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

Sol:

$$(2xy+x^2)\,dy=y^2\,dx$$
$$\frac{dy}{dx}=\frac{y^2}{2xy+x^2}$$

Every term of the numerator and of the denominator is of degree $2$. Divide both by $x^2$.

$$\frac{dy}{dx}=\frac{\left(\frac yx\right)^2}{2\left(\frac yx\right)+1}=F\left(\frac yx\right)$$

So the equation is homogeneous. The denominator $x(2y+x)$ mixes $x$ and $y$ in a sum, so the variables cannot be separated.

Answer Homogeneous

(iv) $\frac{dy}{dx}=e^{x-y}$

Sol:

$$\frac{dy}{dx}=e^x\cdot e^{-y}$$

This is a function of $x$ times a function of $y$. So the equation is separable:

$$e^y\,dy=e^x\,dx$$

For $f(x,y)=e^{x-y}$ we get $f(tx,ty)=e^{t(x-y)}\ne f(x,y)$. So it is not homogeneous.

Answer Separable

(v) $\frac{dT}{dt}+k(T-T_m)=0$

Sol:

$$\frac{dT}{dt}=-k(T-T_m)$$

Here $k$ and $T_m$ are constants. The right side is a function of $T$ only, so the equation is separable:

$$\frac1{T-T_m}\,dT=-k\,dt$$

The right side is not a function of the ratio $\dfrac Tt$. So it is not homogeneous.

Answer Separable

(vi) $\frac{dy}{dx}=\ln(x)-\ln(y)\,;\ x>0,\ y>0$

Sol:

$$\begin{aligned}\frac{dy}{dx}&=\ln x-\ln y\\[6pt]&=-(\ln y-\ln x)\\[6pt]&=-\ln\left(\frac yx\right)\\[6pt]&=F\left(\frac yx\right)\end{aligned}$$

So the equation is homogeneous. The difference $\ln x-\ln y$ is not a function of $x$ times a function of $y$, so it is not separable.

Answer Homogeneous
Question 3Find the general solution of the differential equation: $\frac{dy}{dx}=\left(\frac{1-y^2}{1-x^2}\right)^{\frac12}$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{dx}{\sqrt{1-x^2}}=\sin^{-1}x+c$$

Sol:

$$\frac{dy}{dx}=\frac{\sqrt{1-y^2}}{\sqrt{1-x^2}}$$

Separate the variables.

$$\frac{dy}{\sqrt{1-y^2}}=\frac{dx}{\sqrt{1-x^2}}$$

Integrate both sides.

$$\int\frac{dy}{\sqrt{1-y^2}}=\int\frac{dx}{\sqrt{1-x^2}}$$
$$\sin^{-1}y=\sin^{-1}x+c_1$$
$$\sin^{-1}y-\sin^{-1}x-c_1=0$$

Put $-c_1=c$.

Answer $\sin^{-1}y-\sin^{-1}x+c=0$
Note: We divided by $\sqrt{1-y^2}$, so $y\ne\pm1$ here, and $|x|<1$. The constant functions $y=1$ and $y=-1$ also satisfy the equation. They are singular solutions, which the book does not study.
Question 4Find the general solution of the differential equation: $\frac{dy}{dx}=e^{x-y}$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int e^x\,dx=e^x+c$$

Sol:

$$\frac{dy}{dx}=e^x\cdot e^{-y}$$
$$\frac{dy}{dx}=\frac{e^x}{e^y}$$

Separate the variables.

$$e^y\,dy=e^x\,dx$$

Integrate both sides.

$$\int e^y\,dy=\int e^x\,dx$$
Answer $e^y=e^x+c$
Question 5Find the general solution of the differential equation: $\frac{dy}{dx}=\sqrt y\cos^2\sqrt y$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\sec^2u\,du=\tan u+c$$

Sol:

$$\frac1{\sqrt y\cos^2\sqrt y}\,dy=dx$$
$$\sec^2\sqrt y\cdot\frac1{\sqrt y}\,dy=dx\qquad\text{(i)}$$

Let $u=\sqrt y$.

$$\frac{du}{dy}=\frac1{2\sqrt y}$$
$$2\,du=\frac1{\sqrt y}\,dy$$

Substitute in (i).

$$\sec^2u\,(2\,du)=dx$$

Integrate both sides.

$$2\int\sec^2u\,du=\int dx$$
$$2\tan u=x+c$$

Put $u=\sqrt y$.

Answer $2\tan\sqrt y=x+c$
Note: We divided by $\sqrt y\cos^2\sqrt y$, so it must not be zero. Constant values of $y$ that make it zero, such as $y=0$, also satisfy the equation. The book does not study such singular solutions.
Question 6Find the general solution of the differential equation: $\sqrt x\,\frac{dy}{dx}=e^{y+\sqrt x}$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int e^x\,dx=e^x+c$$

Sol:

$$\sqrt x\,dy=e^y\cdot e^{\sqrt x}\,dx$$

Divide both sides by $\sqrt x\,e^y$.

$$e^{-y}\,dy=\frac{e^{\sqrt x}}{\sqrt x}\,dx\qquad\text{(i)}$$

Let $u=\sqrt x$.

$$\frac{du}{dx}=\frac1{2\sqrt x}$$
$$2\,du=\frac1{\sqrt x}\,dx$$

Substitute in (i).

$$e^{-y}\,dy=2e^u\,du$$

Integrate both sides.

$$\int e^{-y}\,dy=2\int e^u\,du$$
$$-e^{-y}=2e^u+c$$

Put $u=\sqrt x$.

$$-e^{-y}=2e^{\sqrt x}+c$$
Answer $e^{-y}+2e^{\sqrt x}+c=0$
Question 7Find the general solution of the differential equation: $\frac{dy}{dx}=2x\sqrt{1-y^2}$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{dx}{\sqrt{1-x^2}}=\sin^{-1}x+c$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c$$

Sol:

Separate the variables.

$$\frac{dy}{\sqrt{1-y^2}}=2x\,dx$$

Integrate both sides.

$$\int\frac{dy}{\sqrt{1-y^2}}=2\int x\,dx$$
$$\sin^{-1}y=2\left(\frac{x^2}2\right)+c$$
$$\sin^{-1}y=x^2+c$$
Answer $y=\sin(x^2+c)$
Note: Here $x^2+c$ is a value of $\sin^{-1}y$, so it lies between $-\frac\pi2$ and $\frac\pi2$. The constant functions $y=1$ and $y=-1$, lost when dividing by $\sqrt{1-y^2}$, also satisfy the equation.
Question 8Find the general solution of the differential equation: $\frac{dy}{dx}=\frac{1+x}{(1-x)(1+x^2)}$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$dy=\frac{1+x}{(1-x)(1+x^2)}\,dx\qquad\text{(i)}$$

Write the fraction in partial fractions.

$$\begin{aligned}&\frac{1+x}{(1-x)(1+x^2)}\\[6pt]&=\frac A{1-x}+\frac{Bx+C}{1+x^2}\qquad\text{(ii)}\end{aligned}$$

Multiply both sides by $(1-x)(1+x^2)$.

$$\begin{aligned}1+x&=A(1+x^2)\\&\quad+(Bx+C)(1-x)\qquad\text{(iii)}\end{aligned}$$

Put $x=1$ in (iii).

$$1+1=A(1+1^2)+0$$
$$2=2A$$
$$A=1$$

Expand (iii).

$$\begin{aligned}1+x&=A+Ax^2+Bx\\&\quad-Bx^2+C-Cx\end{aligned}$$

Equate the coefficients of $x^2$.

$$0=A-B$$
$$B=A=1$$

Equate the constant terms.

$$1=A+C$$
$$C=1-1=0$$

Put the values of $A$, $B$ and $C$ in (ii).

$$\frac{1+x}{(1-x)(1+x^2)}=\frac1{1-x}+\frac x{1+x^2}$$

Put this in (i).

$$dy=\left(\frac1{1-x}+\frac{x}{1+x^2}\right)dx$$

Integrate both sides.

$$y=\int\frac1{1-x}\,dx+\int\frac{x}{1+x^2}\,dx$$
$$y=-\int\frac{-dx}{1-x}+\frac12\int\frac{2x\,dx}{1+x^2}$$
$$\begin{aligned}y&=-\ln|1-x|\\&\quad+\frac12\ln(1+x^2)+\ln|c|\end{aligned}$$
$$\begin{aligned}y&=-\ln|1-x|\\&\quad+\ln\sqrt{1+x^2}+\ln|c|\end{aligned}$$
Answer $y=\ln\left|\frac{c\sqrt{1+x^2}}{1-x}\right|$
Question 9Find the general solution of the differential equation: $x^2\,dx+(1-x^2)\,dy=0$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{dx}{x^2-1}=\frac12\ln\left|\frac{x-1}{x+1}\right|+c$$

Sol:

$$(1-x^2)\,dy=-x^2\,dx$$

Divide both sides by $1-x^2$.

$$dy=\frac{-x^2}{1-x^2}\,dx$$
$$dy=\frac{x^2}{x^2-1}\,dx$$

Write $x^2=(x^2-1)+1$.

$$dy=\frac{(x^2-1)+1}{x^2-1}\,dx$$
$$dy=\left(1+\frac1{x^2-1}\right)dx$$

Integrate both sides.

$$\int dy=\int dx+\int\frac1{x^2-1}\,dx$$
Answer $y=x+\frac12\ln\left|\frac{x-1}{x+1}\right|+c$
Question 10Find the general solution of the differential equation: $y-x\frac{dy}{dx}=2\left(y^2+\frac{dy}{dx}\right)$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$y-x\frac{dy}{dx}=2y^2+2\frac{dy}{dx}$$
$$y-2y^2=x\frac{dy}{dx}+2\frac{dy}{dx}$$
$$y(1-2y)=(x+2)\frac{dy}{dx}$$

Separate the variables.

$$\frac1{y(1-2y)}\,dy=\frac1{x+2}\,dx\qquad\text{(i)}$$

Write the left side in partial fractions.

$$\frac1{y(1-2y)}=\frac A y+\frac B{1-2y}\qquad\text{(ii)}$$

Multiply both sides by $y(1-2y)$.

$$1=A(1-2y)+By\qquad\text{(iii)}$$

Put $y=0$ in (iii).

$$1=A(1-0)+0$$
$$A=1$$

Put $y=\dfrac12$ in (iii).

$$1=0+\frac12B$$
$$B=2$$

Put $A$ and $B$ in (ii), and then use (i).

$$\left(\frac1y+\frac2{1-2y}\right)dy=\frac1{x+2}\,dx$$

Integrate both sides.

$$\int\frac{dy}y-\int\frac{-2\,dy}{1-2y}=\int\frac{dx}{x+2}$$
$$\begin{aligned}&\ln|y|-\ln|1-2y|\\&=\ln|x+2|+\ln|c|\end{aligned}$$
$$\ln\left|\frac y{1-2y}\right|=\ln|c(x+2)|$$
$$\left|\frac y{1-2y}\right|=|c(x+2)|$$
$$\frac y{1-2y}=\pm c(x+2)$$
$$y=\pm c(x+2)(1-2y)$$
$$y=\mp c(x+2)(2y-1)$$

The constant $c$ is arbitrary, so replace $\mp c$ by $c$.

Answer $y=c(x+2)(2y-1)$
Note: We divided by $1-2y$. The constant function $y=\frac12$ also satisfies the equation.
Question 11Find the general solution of the differential equation: $\sec^2x\tan y\,dx+\sec^2y\tan x\,dy=0$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

Divide both sides by $\tan x\tan y$.

$$\frac{\sec^2x}{\tan x}\,dx+\frac{\sec^2y}{\tan y}\,dy=0$$

Integrate both sides.

$$\int\frac{\sec^2x}{\tan x}\,dx+\int\frac{\sec^2y}{\tan y}\,dy=\ln|c|$$
$$\ln|\tan x|+\ln|\tan y|=\ln|c|$$
$$\ln|\tan x\tan y|=\ln|c|$$
$${|\tan x\tan y|}=|c|$$
$$\tan x\tan y=\pm c$$

The constant $c$ is arbitrary, so replace $\pm c$ by $c$.

Answer $\tan x\tan y=c$
Question 12Find the general solution of the differential equation: $(e^{2x}+e^{-2x})\,dy+(e^{-2x}-e^{2x})\,dx=0$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$(e^{2x}+e^{-2x})\,dy=-(e^{-2x}-e^{2x})\,dx$$
$$(e^{2x}+e^{-2x})\,dy=(e^{2x}-e^{-2x})\,dx$$

Divide both sides by $e^{2x}+e^{-2x}$.

$$dy=\frac{e^{2x}-e^{-2x}}{e^{2x}+e^{-2x}}\,dx$$

Multiply both sides by $2$. The numerator becomes the derivative of the denominator.

$$2\,dy=\frac{2e^{2x}-2e^{-2x}}{e^{2x}+e^{-2x}}\,dx$$

Integrate both sides.

$$2\int dy=\int\frac{2e^{2x}-2e^{-2x}}{e^{2x}+e^{-2x}}\,dx$$
$$2y=\ln|e^{2x}+e^{-2x}|+\ln|c|$$
Answer $2y=\ln|c(e^{2x}+e^{-2x})|$
Question 13Find the general solution of the differential equation: $x\sin x\,dx+\ln y\,dy=0$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int u\,dv=uv-\int v\,du$$

Sol:

$$\ln y\,dy=-x\sin x\,dx$$

Integrate both sides.

$$\int\ln y\,dy=-\int x\sin x\,dx\qquad\text{(i)}$$

Find each integral by parts.

For the first, $u=\ln y$ and $dv=dy$.

$$\begin{aligned}\int\ln y\,dy&=(\ln y)y-\int y\cdot\frac1y\,dy\\[6pt]&=y\ln y-\int dy\\[6pt]&=y\ln y-y\end{aligned}$$

For the second, $u=x$ and $dv=\sin x\,dx$, so $v=-\cos x$.

$$\begin{aligned}&\int x\sin x\,dx\\[6pt]&=x(-\cos x)-\int(-\cos x)\,dx\\[6pt]&=-x\cos x+\int\cos x\,dx\\[6pt]&=-x\cos x+\sin x\end{aligned}$$

Put these values in (i), with the constant of integration $c$.

$$\begin{aligned}&y\ln y-y\\&=-(-x\cos x+\sin x)+c\end{aligned}$$
$$y\ln y-y=x\cos x-\sin x+c$$
Answer $y\ln y=y+x\cos x-\sin x+c$
Question 14Find the general solution of the differential equation: $\frac{dy}{dx}=\cos^2\left(\frac yx\right)+\frac yx$
Formula used
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int\sec^2v\,dv=\tan v+c$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.

$$v+x\frac{dv}{dx}=\cos^2v+v$$
$$x\frac{dv}{dx}=\cos^2v$$

Separate the variables.

$$\frac1{\cos^2v}\,dv=\frac1x\,dx$$
$$\sec^2v\,dv=\frac1x\,dx$$

Integrate both sides.

$$\int\sec^2v\,dv=\int\frac1x\,dx$$
$$\tan v=\ln|x|+\ln|c|$$
$$\tan v=\ln|cx|$$

Put $v=\dfrac yx$.

Answer $\tan\left(\frac yx\right)=\ln|cx|$
Note: We divided by $\cos^2v$. The lines with $\cos\frac yx=0$, such as $y=\frac\pi2x$, also satisfy the equation.
Question 15Find the general solution of the differential equation: $(y^2+2xy)\,dx+x^2\,dy=0$
Formula used
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$x^2\,dy=-(y^2+2xy)\,dx$$
$$\frac{dy}{dx}=-\frac{y^2+2xy}{x^2}$$

This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.

$$\begin{aligned}v+x\frac{dv}{dx}&=-\frac{v^2x^2+2x(vx)}{x^2}\\[6pt]&=-(v^2+2v)\end{aligned}$$
$$\begin{aligned}x\frac{dv}{dx}&=-v^2-2v-v\\[6pt]&=-(v^2+3v)\end{aligned}$$

Separate the variables.

$$\frac1{v(v+3)}\,dv=-\frac1x\,dx\qquad\text{(i)}$$

Write the left side in partial fractions.

$$\frac1{v(v+3)}=\frac A v+\frac B{v+3}\qquad\text{(ii)}$$

Multiply both sides by $v(v+3)$.

$$1=A(v+3)+Bv\qquad\text{(iii)}$$

Put $v=0$ in (iii).

$$1=3A$$
$$A=\frac13$$

Put $v=-3$ in (iii).

$$1=-3B$$
$$B=-\frac13$$

Put $A$ and $B$ in (ii), and then use (i).

$$\frac13\left(\frac1v-\frac1{v+3}\right)dv=-\frac1x\,dx$$
$$\left(\frac1v-\frac1{v+3}\right)dv=-\frac3x\,dx$$

Integrate both sides.

$$\int\frac1v\,dv-\int\frac1{v+3}\,dv=-3\int\frac1x\,dx$$
$$\ln|v|-\ln|v+3|=\ln|c|-3\ln|x|$$
$$\ln\left|\frac v{v+3}\right|=\ln\left|\frac c{x^3}\right|$$
$$\left|\frac v{v+3}\right|=\left|\frac c{x^3}\right|$$
$$\frac v{v+3}=\pm\frac c{x^3}$$

The constant $c$ is arbitrary, so replace $\pm c$ by $c$.

$$\frac v{v+3}=\frac c{x^3}$$
$$x^3v=c(v+3)$$

Put $v=\dfrac yx$.

$$x^3\cdot\frac yx=c\left(\frac yx+3\right)$$

Multiply both sides by $x$.

Answer $x^3y=c(y+3x)$
Note: We divided by $v+3$. The line $y=-3x$ also satisfies the equation.
Question 16Find the general solution of the differential equation: $(x^2+3y^2)\,dx-2xy\,dy=0$
Formula used
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$2xy\,dy=(x^2+3y^2)\,dx$$
$$\frac{dy}{dx}=\frac{x^2+3y^2}{2xy}$$

This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.

$$\begin{aligned}v+x\frac{dv}{dx}&=\frac{x^2+3v^2x^2}{2x(vx)}\\[6pt]&=\frac{1+3v^2}{2v}\end{aligned}$$
$$\begin{aligned}x\frac{dv}{dx}&=\frac{1+3v^2}{2v}-v\\[6pt]&=\frac{1+3v^2-2v^2}{2v}\\[6pt]&=\frac{1+v^2}{2v}\end{aligned}$$

Separate the variables.

$$\frac{2v}{1+v^2}\,dv=\frac1x\,dx$$

Integrate both sides.

$$\int\frac{2v}{1+v^2}\,dv=\int\frac1x\,dx$$
$$\ln(1+v^2)=\ln|x|+\ln|c|$$
$$\ln(1+v^2)=\ln|cx|$$
$$1+v^2=|cx|$$

The arbitrary constant allows us to write this as

$$1+v^2=cx$$

Put $v=\dfrac yx$.

$$1+\frac{y^2}{x^2}=cx$$

Multiply both sides by $x^2$.

Answer $x^2+y^2=cx^3$
Question 17Find the general solution of the differential equation: $(x^2+xy+y^2)\,dx-x^2\,dy=0$
Formula used
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int\frac{dv}{1+v^2}=\tan^{-1}v+c$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$x^2\,dy=(x^2+xy+y^2)\,dx$$
$$\frac{dy}{dx}=\frac{x^2+xy+y^2}{x^2}$$

This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.

$$\begin{aligned}v+x\frac{dv}{dx}&=\frac{x^2+x(vx)+v^2x^2}{x^2}\\[6pt]&=1+v+v^2\end{aligned}$$
$$\begin{aligned}x\frac{dv}{dx}&=1+v+v^2-v\\[6pt]&=1+v^2\end{aligned}$$

Separate the variables.

$$\frac1{1+v^2}\,dv=\frac1x\,dx$$

Integrate both sides.

$$\int\frac1{1+v^2}\,dv=\int\frac1x\,dx$$
$$\tan^{-1}v=\ln|x|+\ln|c|$$
$$\tan^{-1}v=\ln|cx|$$

Put $v=\dfrac yx$.

Answer $\tan^{-1}\left(\frac yx\right)=\ln|cx|$
Question 18Find the general solution of the differential equation: $x\frac{dy}{dx}=xe^{-\frac yx}+y$
Formula used
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int e^v\,dv=e^v+c$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

Divide both sides by $x$.

$$\frac{dy}{dx}=e^{-\frac yx}+\frac yx$$

This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.

$$v+x\frac{dv}{dx}=e^{-v}+v$$
$$x\frac{dv}{dx}=e^{-v}$$

Separate the variables.

$$e^v\,dv=\frac1x\,dx$$

Integrate both sides.

$$\int e^v\,dv=\int\frac1x\,dx$$
$$e^v=\ln|x|+\ln|c|$$
$$e^v=\ln|cx|$$

Put $v=\dfrac yx$.

Answer $e^{\frac yx}=\ln|cx|$
Question 19Find the general solution of the differential equation: $y-x\frac{dy}{dx}=3\left(1+x\frac{dy}{dx}\right)$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$y-x\frac{dy}{dx}=3+3x\frac{dy}{dx}$$
$$y-3=3x\frac{dy}{dx}+x\frac{dy}{dx}$$
$$y-3=4x\frac{dy}{dx}$$

Separate the variables.

$$\frac1{y-3}\,dy=\frac1{4x}\,dx$$

Integrate both sides.

$$\int\frac1{y-3}\,dy=\frac14\int\frac1x\,dx$$
$$\ln|y-3|=\frac14\ln|x|+\ln|c|$$

Take $x>0$, so $|x|=x$.

$$\ln|y-3|=\ln\left|cx^{\frac14}\right|$$
$${|y-3|}=\left|cx^{\frac14}\right|$$
$$y-3=\pm cx^{\frac14}$$

The constant $c$ is arbitrary, so replace $\pm c$ by $c$.

$$y-3=cx^{\frac14}$$
Answer $y=3+cx^{\frac14}$
Note: For $x<0$ the working gives $y=3+c(-x)^{\frac14}$.
Question 20Find the general solution of the differential equation: $y\,dx+x\,dy=0$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$x\,dy=-y\,dx$$

Separate the variables.

$$\frac1y\,dy=-\frac1x\,dx$$

Integrate both sides.

$$\int\frac1y\,dy=-\int\frac1x\,dx$$
$$\ln|y|=-\ln|x|+\ln|c|$$
$$\ln|y|+\ln|x|=\ln|c|$$
$$\ln|xy|=\ln|c|$$
$${|xy|}=|c|$$
$$xy=\pm c$$

The constant $c$ is arbitrary, so replace $\pm c$ by $c$.

Answer $xy=c$
Question 21Find the general solution of the differential equation: $\frac{dy}{dx}+\frac{2xy}{2y+1}=x$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c$$

Sol:

$$\begin{aligned}\frac{dy}{dx}&=x-\frac{2xy}{2y+1}\\[6pt]&=\frac{2xy+x-2xy}{2y+1}\\[6pt]&=\frac{x}{2y+1}\end{aligned}$$

Separate the variables.

$$(2y+1)\,dy=x\,dx$$

Integrate both sides.

$$\int(2y+1)\,dy=\int x\,dx$$
$$2\cdot\frac{y^2}2+y=\frac{x^2}2+c$$
$$y^2+y=\frac12x^2+c$$
Answer $y(y+1)=\frac12x^2+c$
Question 22Solve the initial value problem: $\frac{dy}{dx}-x=xy^2\,;\ y(0)=1$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{dv}{1+v^2}=\tan^{-1}v+c$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c$$

Sol:

$$\frac{dy}{dx}=x+xy^2$$
$$\frac{dy}{dx}=x(1+y^2)$$

Separate the variables.

$$\frac1{1+y^2}\,dy=x\,dx$$

Integrate both sides.

$$\int\frac1{1+y^2}\,dy=\int x\,dx$$
$$\tan^{-1}y=\frac{x^2}2+c\qquad\text{(i)}$$

Apply the condition $y(0)=1$: put $x=0$ and $y=1$ in (i).

$$\tan^{-1}(1)=0+c$$
$$c=\frac\pi4$$

Put $c=\dfrac\pi4$ in (i).

Answer $\tan^{-1}y=\frac{x^2}2+\frac\pi4$
Question 23Solve the initial value problem: $\frac{ds}{dt}+2st=0\,;\ s=4e$ when $t=0$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$
$$\int x^n\,dx=\frac{x^{n+1}}{n+1}+c$$

Sol:

$$\frac{ds}{dt}=-2st$$

Separate the variables.

$$\frac1s\,ds=-2t\,dt$$

Integrate both sides.

$$\int\frac1s\,ds=-2\int t\,dt$$
$$\ln|s|=-t^2+c_1$$
$${|s|}=e^{-t^2+c_1}$$
$$s=\pm e^{c_1}e^{-t^2}$$

Put $\pm e^{c_1}=c$.

$$s=ce^{-t^2}\qquad\text{(i)}$$

Put $t=0$ and $s=4e$ in (i).

$$4e=ce^0$$
$$c=4e$$

Put $c=4e$ in (i).

$$s=4e\cdot e^{-t^2}$$
Answer $s=4e^{1-t^2}$
Question 24Solve the initial value problem: $\left(y+\sqrt{x^2+y^2}\right)dx-x\,dy=0\,;\ y=0$ when $x=1$
Formula used
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int\frac{dv}{\sqrt{1+v^2}}=\sinh^{-1}v+c$$
$$\sinh^{-1}v=\ln\left(v+\sqrt{v^2+1}\right)$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

$$x\,dy=\left(y+\sqrt{x^2+y^2}\right)dx$$
$$\frac{dy}{dx}=\frac{y+\sqrt{x^2+y^2}}{x}$$

This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.

The condition is at $x=1$, so we take $x>0$ and $\sqrt{x^2}=x$.

$$\begin{aligned}v+x\frac{dv}{dx}&=\frac{vx+\sqrt{x^2+v^2x^2}}x\\[6pt]&=\frac{vx+x\sqrt{1+v^2}}x\\[6pt]&=v+\sqrt{1+v^2}\end{aligned}$$
$$x\frac{dv}{dx}=\sqrt{1+v^2}$$

Separate the variables.

$$\frac1{\sqrt{1+v^2}}\,dv=\frac1x\,dx$$

Integrate both sides.

$$\int\frac1{\sqrt{1+v^2}}\,dv=\int\frac1x\,dx$$
$$\sinh^{-1}v=\ln x+\ln c$$
$$\sinh^{-1}v=\ln(cx)$$

Use the logarithmic form of $\sinh^{-1}v$.

$$\ln\left(v+\sqrt{v^2+1}\right)=\ln(cx)$$
$$v+\sqrt{v^2+1}=cx$$

Put $v=\dfrac yx$.

$$\frac yx+\sqrt{\frac{y^2}{x^2}+1}=cx$$
$$\frac{y+\sqrt{x^2+y^2}}x=cx$$
$$y+\sqrt{x^2+y^2}=cx^2\qquad\text{(i)}$$

Put $x=1$ and $y=0$ in (i).

$$0+\sqrt{1^2+0^2}=c(1)^2$$
$$c=1$$

Put $c=1$ in (i).

Answer $y+\sqrt{x^2+y^2}=x^2$
Question 25Solve the initial value problem: $\frac{dy}{dx}=\frac{x+y}x\,;\ y(1)=1$
Formula used
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Sol:

This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.

$$\begin{aligned}v+x\frac{dv}{dx}&=\frac{x+vx}{x}\\[6pt]&=1+v\end{aligned}$$
$$x\frac{dv}{dx}=1$$

Separate the variables.

$$dv=\frac1x\,dx$$

Integrate both sides.

$$\int dv=\int\frac1x\,dx$$
$$v=\ln|x|+c$$

Put $v=\dfrac yx$.

$$\frac yx=\ln|x|+c$$
$$y=x\ln|x|+cx\qquad\text{(i)}$$

Put $x=1$ and $y=1$ in (i).

$$1=1\cdot\ln1+c(1)$$

Here $\ln1=0$.

$$c=1$$

Put $c=1$ in (i).

Answer $y=x+x\ln|x|$

Quick check: MCQs on Exercise 4.2

  1. What is a given value of the form $y(x_0)=y_0$ called in a first-order initial value problem?
    (a) Boundary at infinity · (b) General solution · (c) Initial value condition · (d) Family of solutions
    Show answer
    Answer: (c) Initial value condition. It specifies the value at a starting point and fixes the integration constant.
  2. What is the main step in solving a separable differential equation?
    (a) Differentiate both sides · (b) Separate variables and integrate · (c) Add constants before separating · (d) Multiply both sides by $x$
    Show answer
    Answer: (b) Separate variables and integrate. Put the expression in $y$ with $dy$ and the expression in $x$ with $dx$.
  3. Which form is characteristic of a first-order homogeneous equation?
    (a) $\dfrac{dy}{dx}=x^2y$ · (b) $\dfrac{dy}{dx}=x+1$ · (c) $\dfrac{dy}{dx}=F\left(\dfrac yx\right)$ · (d) $\dfrac{dy}{dx}=xy+x$
    Show answer
    Answer: (c) $\dfrac{dy}{dx}=F\left(\dfrac yx\right)$. The right side depends on the ratio $y/x$.

Take the Exercise 4.2 quiz (3 MCQs)

Popular posts from this blog

Chapter 6 Conic Section Notes – 12th Class Math New Book

Exercise 3.3 Solutions – 12th Class Math New Book (Integration by Parts)

Chapter 11 MCQs and Short Questions – 12th Class Math New Book