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

By Ehsan Ahmed · updated
Exercise 4.2 solved examples thumbnail for 12th class math chapter 4 (Differential Equations)

Solved examples of Exercise 4.2 (Separable and Homogeneous Equations and Initial Values): the 7 textbook examples, Chapter 4: Differential Equations, 12th class Mathematics new book (Punjab, PECTAA 2026-27), worked step by step.

Tap an example to open or close it.
Example 1Show that the relation $y=cx+2$ represents a solution of the differential equation $y-x\dfrac{dy}{dx}=2$.
Formula used
$$\frac{d}{dx}(cx)=c,\quad\frac{d}{dx}(\text{constant})=0$$

Solution:

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

Differentiating equation (1) with respect to $x$:

$$\begin{aligned}\frac{dy}{dx}&=\frac{d}{dx}(cx+2)\\[6pt]&=c\end{aligned}$$
$$\frac{dy}{dx}=c\qquad\text{(3)}$$

Put the value of $y$ from equation (1) and of $\dfrac{dy}{dx}$ from equation (3) in the left-hand side of equation (2):

$$\begin{aligned}y-x\frac{dy}{dx}&=(cx+2)-x(c)\\[6pt]&=cx+2-cx\\[6pt]&=2\end{aligned}$$
$$y-x\frac{dy}{dx}=2\quad\text{which is (2)}$$

Relation (1) is the family of straight lines with $y$-intercept $2$. The arbitrary constant $c$ is the slope of each line.

Some lines of the family y=cx+2, all through (0,2): c=0 (blue), c=1 (red), c=-1 (green), c=3 (purple), c=-3 (orange).
Some lines of the family $y=cx+2$, all through $(0,2)$: $c=0$ (blue), $c=1$ (red), $c=-1$ (green), $c=3$ (purple), $c=-3$ (orange).
Answer Hence proved.
Example 2Show that the relation $\tan y=10(e^x-1)^2$ represents a particular solution for the differential equation $2e^x\tan y+(1-e^x)\sec^2y\dfrac{dy}{dx}=0$.
Formula used
$$\frac{d}{dx}(\tan y)=\sec^2y\,\frac{dy}{dx}$$
$$\frac{d}{dx}(u^2)=2u\frac{du}{dx}$$

Solution:

We have

$$\tan y=10(e^x-1)^2\qquad\text{(1)}$$

Differentiating equation (1) with respect to $x$:

$$\frac{d}{dx}(\tan y)=10\frac{d}{dx}(e^x-1)^2$$
$$\sec^2y\,\frac{dy}{dx}=10\times2(e^x-1)e^x$$

Multiplying both sides by $(e^x-1)$:

$$\begin{aligned}&(e^x-1)\sec^2y\,\frac{dy}{dx}\\[6pt]&=2\times10(e^x-1)^2e^x\end{aligned}$$

Using equation (1):

$$(e^x-1)\sec^2y\,\frac{dy}{dx}=2\tan y\,e^x$$
$$-(1-e^x)\sec^2y\,\frac{dy}{dx}=2e^x\tan y$$
$$2e^x\tan y+(1-e^x)\sec^2y\,\frac{dy}{dx}=0$$

This is the given differential equation. Equation (1) has no arbitrary constant, so it represents a particular solution.

Answer Hence proved.
Example 3Find the general solution of the differential equation $x\,dx+y\,dy=0$.
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int\frac1{h(y)}\,dy=\int g(x)\,dx$$
$$\int u^n\,du=\frac{u^{n+1}}{n+1}+c\quad(n\ne-1)$$

Solution:

The given differential equation is separable. It can be written as

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

Integrating both sides:

$$\int y\,dy=-\int x\,dx$$
$$\frac{y^2}2=-\frac{x^2}2+c$$
$$y^2=-x^2+2c$$

The constant $c$ is arbitrary, so it can be replaced by $\dfrac c2$.

$$y^2=-x^2+c$$
Some circles of the family x^2+y^2=c: c=1 (blue), c=4 (red), c=9 (green).
Some circles of the family $x^2+y^2=c$: $c=1$ (blue), $c=4$ (red), $c=9$ (green).
Answer $x^2+y^2=c$
Note: The constant $c$ must be positive, because a sum of squares of real numbers is never negative. The solution is the family of circles of radius $\sqrt c$ with centre at the origin. At $y=0$ the derivative $-\frac xy$ is undefined; we ignore this special case.
Example 4Solve the initial value problem: $\dfrac{dy}{dx}=\dfrac34x^2+x-3;\ y(2)=0$
Formula used
$$\frac{dy}{dx}=g(x)h(y)$$
$$\int u^n\,du=\frac{u^{n+1}}{n+1}+c\quad(n\ne-1)$$

Solution:

The given differential equation is separable. It can be written as

$$dy=\left(\frac34x^2+x-3\right)dx$$

Integrating both sides:

$$\int dy=\int\left(\frac34x^2+x-3\right)dx$$
$$y=\frac34\int x^2\,dx+\int x\,dx-3\int dx$$
$$y=\frac34\cdot\frac{x^3}3+\frac{x^2}2-3x+c$$
$$y=\frac14x^3+\frac12x^2-3x+c\qquad\text{(1)}$$

Applying the initial condition $y(2)=0$, that is $y=0$ when $x=2$:

$$0=\frac14(2)^3+\frac12(2)^2-3(2)+c$$
$$0=2+2-6+c$$
$$c=2$$

Put $c=2$ in equation (1).

Answer $y=\frac14x^3+\frac12x^2-3x+2$
Example 5Solve the differential equation: $2e^x\tan y\,dx+(1-e^x)\sec^2y\,dy=0;\ y\in\left(-\dfrac\pi2,\dfrac\pi2\right),\ y\ne0$.
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$$

Solution:

The given differential equation can be written as

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

This is a separable equation. Rewrite it in the form

$$dy=\frac{2e^x\tan y}{(e^x-1)\sec^2y}\,dx$$

Multiplying both sides by $\dfrac{\sec^2y}{\tan y}$ (here $\tan y\ne0$, because $y\ne0$):

$$\frac{\sec^2y}{\tan y}\,dy=\frac{2e^x}{e^x-1}\,dx$$

Integrating both sides:

$$\int\frac{\sec^2y}{\tan y}\,dy=2\int\frac{e^x}{e^x-1}\,dx$$
$$\ln|\tan y|=2\ln|e^x-1|+\ln c$$
$$\ln|\tan y|=\ln|c(e^x-1)^2|$$

The logarithmic function is one-to-one, so

$${|\tan y|}=|c(e^x-1)^2|$$
$$\tan y=\pm c(e^x-1)^2$$

The constant $c$ is arbitrary, so the general solution can be written as

$$\tan y=c(e^x-1)^2$$

Since $y\in\left(-\dfrac\pi2,\dfrac\pi2\right)$, we can take the inverse tangent.

Answer $y=\tan^{-1}\left[c(e^x-1)^2\right]$
Example 6Find the general solution of the differential equation $\dfrac{dy}{dx}=\dfrac{x+y}{y-x}$.
Formula used
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Solution:

The given differential equation is

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

Every term of the numerator and of the denominator is of degree $1$. Thus equation (1) is homogeneous. Put $y=vx$.

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

Integrating both sides:

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

Put $v=\dfrac yx$:

$$\left|-\frac{y^2}{x^2}+2\frac yx+1\right|=\frac1{c^2x^2}$$
$$\frac{|-y^2+2xy+x^2|}{x^2}=\frac1{c^2x^2}$$
$${|-y^2+2xy+x^2|}=\frac1{c^2}$$
$$-y^2+2xy+x^2=\pm\frac1{c^2}$$

Renaming the constant $\pm\dfrac1{c^2}$ as $c\ne0$:

$$-y^2+2xy+x^2=c$$
Answer $x^2+2xy-y^2=c$
Example 7The slope of tangent at any point to a family of curves $f(x,y,c)=0$ is given by the rule $m(x,y)=\dfrac{x^2+3y^2}{2xy};\ x,y\ne0$. Find particular members of the family passing through the point $P_0(2,6)$.
Formula used
$$\text{slope of tangent}=\frac{dy}{dx}$$
$$y=vx,\quad\frac{dy}{dx}=v+x\frac{dv}{dx}$$
$$\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+c$$

Solution:

The derivative $\dfrac{dy}{dx}$ is the slope of the tangent, so we have to solve the initial value problem

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

Each term of the numerator and of the denominator is of degree $2$. So equation (1) is homogeneous. Put $y=vx$.

$$\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}$$
$$\frac{2v}{1+v^2}\,dv=\frac1x\,dx$$

Integrating 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$$
$$x^2+y^2=cx^3$$
$$y^2=cx^3-x^2\qquad\text{(2)}$$

Put $x=2$ and $y=6$ in equation (2):

$$(6)^2=c(2)^3-(2)^2$$
$$36=8c-4$$
$$8c=40$$
$$c=5$$

Put $c=5$ in equation (2).

Some members of y^2=cx^3-x^2: c=5 (blue), the required one through (2,6); c=1 (red); c=-1 (green); c=-5 (purple).
Some members of $y^2=cx^3-x^2$: $c=5$ (blue), the required one through $(2,6)$; $c=1$ (red); $c=-1$ (green); $c=-5$ (purple).
Answer $y^2=5x^3-x^2$

See Exercise 4.2 solutions

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