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

All textbook examples for Exercise 4.2 (Separation of Variables and Initial Conditions) of Chapter 4: Differential Equations, 12th class Mathematics, Federal Board (FBISE). All 5 examples are worked step by step, with the final answers highlighted.
Worked textbook examples
Example 8Solve $\dfrac{dy}{dx}=\dfrac{x^2}{y}$.
Solution:
Multiply by $y\,dx$ and integrate.
Multiply by $6$ and write $c=6C$.
Example 9Solve $(1+x)dy-y\,dx=0$.
Solution:
The zero solution corresponds to $c=0$. On intervals with $x\ne-1$ and $y\ne0$, separate the variables.
Exponentiate and absorb the sign into $c$.
Example 10Solve $\dfrac{dy}{dx}=\dfrac1{x\tan y}$.
Solution:
Separate the variables and integrate.
Combine the logarithms to get $\ln|x\cos y|=-c$. Exponentiate and absorb the sign into $C$.
Example 11Solve the initial value problem $\dfrac{dy}{dx}=-\dfrac{x}{y};\ y(1)=3$.
Solution:
Separate and integrate.
Multiply by $2$ and write the relation as $x^2+y^2=c$.
Substitute $x=1,\ y=3$.
This is a circle with centre $(0,0)$ and radius $\sqrt{10}$; the part through $(1,3)$ is the upper half.
Example 12Solve $\dfrac{dy}{dx}=2x$ such that $y(2)=4$.
Solution:
Separate and integrate.
Substitute $x=2,\ y=4$.