Exercise 4.2 Solutions – 12th Class Math Federal Board (Separation of Variables and Initial Conditions)

Exercise 4.2 solutions thumbnail for 12th class math Federal Board chapter 4 (Differential Equations) showing the key formulas of the exercise

Exercise 4.2 (Separation of Variables and Initial Conditions) of Chapter 4: Differential Equations, 12th class Mathematics, Federal Board (FBISE). All 15 questions are worked step by step, with the final answers highlighted.

Worked textbook questions

Solve the differential equations by separating the variables.

Tap a question to open or close it.
Question 1$\dfrac{dy}{dx}=-\dfrac1{e^{3x}}$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides.

Sol:

Write the reciprocal as $e^{-3x}$ and separate.

$$\begin{aligned}dy&=-e^{-3x}\,dx\\[7pt]\int dy&=-\int e^{-3x}\,dx\\[7pt]y&=-\frac{e^{-3x}}{-3}+c\end{aligned}$$
Answer $y=\dfrac13 e^{-3x}+c$.
Question 2$x\dfrac{dy}{dx}=4y$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides.

Sol:

Separate the variables for $x\ne0$ and $y\ne0$.

$$\begin{aligned}x\,dy&=4y\,dx\\[7pt]\frac{dy}{y}&=4\frac{dx}{x}\\[7pt]\int\frac{dy}{y}&=4\int\frac{dx}{x}\\[7pt]\ln|y|&=4\ln|x|+C\end{aligned}$$

Exponentiate and absorb the sign into $c$. The solution $y=0$, lost on dividing by $y$, is the case $c=0$.

Answer $y=cx^4$.
Question 3$\dfrac{dy}{dx}=\dfrac{y^3}{x^2}$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides.

Sol:

$y=0$ is also a solution (it is lost when we divide by $y^3$). For $y\ne0$ and $x\ne0$, separate the variables.

$$\begin{aligned}\frac{dy}{y^3}&=\frac{dx}{x^2}\\[7pt]\int y^{-3}\,dy&=\int x^{-2}\,dx\\[7pt]-\frac{1}{2y^2}&=-\frac1x+C\end{aligned}$$

Multiply by $-2$ and put $c=-2C$.

Answer $\dfrac1{y^2}=\dfrac2x+c$.
Question 4$\dfrac{dy}{dx}=e^{2x+3y}$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides.

Sol:

Write $e^{2x+3y}=e^{2x}e^{3y}$ and separate.

$$\begin{aligned}e^{-3y}\,dy&=e^{2x}\,dx\\[7pt]\int e^{-3y}\,dy&=\int e^{2x}\,dx\\[7pt]-\frac13 e^{-3y}&=\frac12 e^{2x}+C\end{aligned}$$

Multiply by $-3$ and collect the two exponential terms.

Answer $e^{-3y}+\dfrac32e^{2x}=c$.
Question 5$\dfrac{dy}{dx}=\dfrac{x^2y^2}{1+x}$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides.

Sol:

$y=0$ is also a solution (it is lost when we divide by $y^2$). For $y\ne0$, separate and divide $x^2$ by $1+x$.

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

Integrate each term.

$$\begin{aligned}\int y^{-2}\,dy&=\int x\,dx-\int dx+\int\frac{dx}{1+x}\\[7pt]-\frac1y&=\frac{x^2}{2}-x+\ln|1+x|+c\end{aligned}$$
Answer $-\dfrac1y=\dfrac{x^2}{2}-x+\ln|1+x|+c$.
Question 6$2y(x+1)dy=x\,dx$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides.

Sol:

Divide by $1+x$ and integrate.

$$\begin{aligned}2y\,dy&=\frac{x}{x+1}\,dx\\[7pt]2\int y\,dy&=\int\frac{(x+1)-1}{x+1}\,dx\\[7pt]&=\int dx-\int\frac{dx}{x+1}\end{aligned}$$
Answer $y^2=x-\ln|x+1|+c$, for $x\ne-1$.
Question 7$\dfrac{dy}{dx}+y^2\sin x=0$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides.

Sol:

$y=0$ is also a solution (it is lost when we divide by $y^2$). For $y\ne0$, move $y^2\sin x$ to the right and separate.

$$\begin{aligned}\frac{dy}{y^2}&=-\sin x\,dx\\[7pt]\int y^{-2}\,dy&=-\int\sin x\,dx\\[7pt]-\frac1y&=\cos x+C\end{aligned}$$

Multiply by $-1$ and write $c=-C$.

Answer $\dfrac1y=c-\cos x$.
Question 8$(\sin x+\cos x)dx=\cot y\cos x\,dy$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides.

Sol:

Divide by $\cos x$ and integrate.

$$\begin{aligned}(\tan x+1)\,dx&=\cot y\,dy\\[7pt]\int\tan x\,dx+\int dx&=\int\cot y\,dy\\[7pt]-\ln|\cos x|+x&=\ln|\sin y|+C\end{aligned}$$

Combine the logarithms to get $\ln|\cos x\sin y|=x-C$. Exponentiate and absorb the sign into $c$.

Answer $\cos x\sin y=ce^x$.
Question 9Solve the initial value problem. $\dfrac{dy}{dx}=\cos x$ ; $y(0)=1$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides. Substitute the initial values into the integrated relation.

Sol:

Separate and integrate.

$$\begin{aligned}dy&=\cos x\,dx\\[7pt]\int dy&=\int\cos x\,dx\\[7pt]y&=\sin x+c\end{aligned}$$

Substitute $x=0,\ y=1$.

$$\begin{aligned}1=\sin 0+c=0+c\\[7pt]c=1\end{aligned}$$
Answer $y=\sin x+1$.
Question 10Solve the initial value problem. $2\dfrac{dy}{dx}=4xe^{-x}$ ; $y(0)=2$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides. Substitute the initial values into the integrated relation.

Sol:

Divide by $2$ and integrate. Use parts with $u=x$ and $dv=e^{-x}\,dx$, so $du=dx$ and $v=-e^{-x}$.

$$\begin{aligned}dy&=2xe^{-x}\,dx\\[7pt]y&=2\int xe^{-x}\,dx\\[7pt]&=-2xe^{-x}+2\int e^{-x}\,dx\\[7pt]&=-2xe^{-x}-2e^{-x}+c\\[7pt]&=-2(x+1)e^{-x}+c\end{aligned}$$

Substitute $x=0,\ y=2$.

$$\begin{aligned}2=-2(0+1)e^{0}+c=-2+c\\[7pt]c=4\end{aligned}$$
Answer $y=4-2(x+1)e^{-x}$.
Question 11Solve the initial value problem. $\dfrac{dy}{dx}+\left(\dfrac{1+x}{x}\right)y=0$ ; $y(1)=1$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides. Substitute the initial values into the integrated relation.

Sol:

Separate the variables. Near $x=1,\ y=1$ both $x$ and $y$ are positive, so no absolute values are needed.

$$\begin{aligned}\frac{dy}{y}&=-\left(\frac1x+1\right)dx\\[7pt]\int\frac{dy}{y}&=-\int\frac{dx}{x}-\int dx\\[7pt]\ln y&=-\ln x-x+c\\[7pt]\ln(xy)&=-x+c\end{aligned}$$

Substitute $x=1,\ y=1$.

$$\begin{aligned}\ln(1\cdot1)&=-1+c\\[7pt]0&=-1+c\\[7pt]c&=1\end{aligned}$$

Put $c=1$ back in $\ln(xy)=-x+c$.

Answer $\ln(xy)+x=1$.
Question 12Solve the initial value problem. $\dfrac{dy}{dx}+y\tan2x=0$ ; $y(0)=2$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides. Substitute the initial values into the integrated relation.

Sol:

Separate and write the tangent using sine and cosine.

$$\begin{aligned}\frac{dy}{y}&=-\tan 2x\,dx\\[7pt]\int\frac{dy}{y}&=\frac12\int\frac{-2\sin 2x}{\cos 2x}\,dx\\[7pt]\ln|y|&=\frac12\ln|\cos 2x|+C\end{aligned}$$

Near $x=0$ we have $\cos 2x>0$ and $y>0$, so take antilog of both sides.

$$y=c\sqrt{\cos 2x}$$

Substitute $x=0,\ y=2$.

$$2=c\sqrt{\cos 0}=c$$
Answer $y=2\sqrt{\cos2x}$ on $(-\dfrac{\pi}{4},\dfrac{\pi}{4})$.
Question 13Solve the initial value problem. $\dfrac{dy}{dx}=y^2+4$ ; $y(0)=-2$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides. Substitute the initial values into the integrated relation.

Sol:

Separate and use the inverse tangent integral.

$$\begin{aligned}\int\frac{dy}{y^2+4}&=\int dx\\[7pt]\frac12\tan^{-1}\!\left(\frac y2\right)&=x+c\end{aligned}$$

Substitute $x=0,\ y=-2$.

$$\begin{aligned}c&=\frac12\tan^{-1}\!\left(\frac{-2}{2}\right)\\[7pt]&=-\frac\pi8\end{aligned}$$

Put $c=-\frac\pi8$ back into the integrated equation.

Answer $\dfrac12\tan^{-1}\!\left(\dfrac y2\right)=x-\dfrac\pi8$ for $-\dfrac\pi8<x<\dfrac{3\pi}{8}$.
Question 14Solve the initial value problem. $(1-x)dy+y^{-1}dx=0$ ; $y(0)=2$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides. Substitute the initial values into the integrated relation.

Sol:

Multiply by $y$ and separate for $y\ne0$ and $x\ne1$.

$$\begin{aligned}y\,dy&=-\frac{dx}{1-x}\\[7pt]\int y\,dy&=-\int\frac{dx}{1-x}\\[7pt]\frac{y^2}{2}&=\ln|1-x|+c\end{aligned}$$

Substitute $x=0,\ y=2$.

$$\begin{aligned}\frac{2^2}{2}&=\ln(1-0)+c\\[7pt]2&=0+c\\[7pt]c&=2\end{aligned}$$

Put $c=2$ back in the integrated equation.

Answer $\dfrac{y^2}{2}=\ln(1-x)+2$.
Question 15Solve the initial value problem. $2(y-1)dy=(3x^2+4x+2)dx$ ; $y(0)=-1$
Formula used

Move all $y$ terms to the $dy$ side and all $x$ terms to the $dx$ side. Integrate both sides. Substitute the initial values into the integrated relation.

Sol:

Expand the left factor and integrate each term.

$$\begin{aligned}\int(2y-2)\,dy&=\int(3x^2+4x+2)\,dx\\[7pt]y^2-2y&=x^3+2x^2+2x+c\end{aligned}$$

Substitute $x=0,\ y=-1$.

$$\begin{aligned}(-1)^2-2(-1)&=0^3+2(0)^2+2(0)+c\\[7pt]3&=c\end{aligned}$$

Put $c=3$ back in the integrated equation.

Answer $y^2-2y=x^3+2x^2+2x+3$.

Quick check: MCQs on Exercise 4.2

  1. What equation results from separating $y'=x(y+4)$ where $y\ne-4$?
    (a) $(y+4)dy=x\,dx$ · (b) $\dfrac{dy}{y+4}=x\,dx$ · (c) $dy=\dfrac{(y+4)dx}{x}$ · (d) $x\,dy=(y+4)dx$
    Show answer
    Answer: (b) $\dfrac{dy}{y+4}=x\,dx$. Divide by $y+4$ and multiply by $dx$.
  2. Integrate $\dfrac{dy}{dx}=6x^2$.
    (a) $y=6x^3+c$ · (b) $y=12x+c$ · (c) $y=2x^3+c$ · (d) $y=3x^2+c$
    Show answer
    Answer: (c) $y=2x^3+c$. $\int 6x^2\,dx=\dfrac{6x^3}{3}+c$.
  3. Which constant function also solves $y'=x(y-3)^2$?
    (a) $y=0$ · (b) $y=-3$ · (c) $y=9$ · (d) $y=3$
    Show answer
    Answer: (d) $y=3$. $y=3$ makes both the derivative and the right side zero.
  4. If $y=2x^2+c$ and $y(2)=11$, what is $c$?
    (a) $3$ · (b) $7$ · (c) $8$ · (d) $11$
    Show answer
    Answer: (a) $3$. $11=2(2)^2+c=8+c$.

Take the Exercise 4.2 quiz (12 MCQs)

Popular posts from this blog

Chapter 10 Numerical Methods MCQs and Short Questions – 12th Class Math Federal Board

Exercise 10.1 Solutions – 12th Class Math Federal Board (Root Finding by Iteration)

Exercise 10.2 Examples – 12th Class Math Federal Board (Trapezoidal and Simpson Rules)