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

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.
Question 1Show that each of the following relations written against the differential equation is its solution.
(i) $x\frac{dy}{dx}=1+y\,;\quad y=cx-1$
Sol:
Differentiate (ii) with respect to $x$.
Put the value of $y$ from (ii) in the right-hand side of (i).
So (ii) satisfies (i), and $y=cx-1$ is a solution of (i).
(ii) $x^2(2y+1)\frac{dy}{dx}=1\,;\quad y^2+y=5-\frac1x$
Sol:
Differentiate (ii) with respect to $x$.
Multiply both sides by $x^2$.
So (ii) is a solution of (i).
(iii) $\frac{ds}{dt}=e^t(s^2+1)\,;\quad s=\tan(e^t-10)$
Sol:
Differentiate (ii) with respect to $t$.
Use (ii) again: $\tan(e^t-10)=s$.
So (ii) is a solution of (i).
(iv) $x\tan y\,\frac{dy}{dx}-1=0\,;\quad x\cos y=b$
Sol:
Differentiate (ii) with respect to $x$, by the product rule. Here $b$ is a constant.
Divide both sides by $-\cos y$. (Here $\cos y\ne0$, because $\tan y$ is defined.)
So (ii) is a solution of (i).
Question 2Which of the following differential equations are separable and which of them are homogeneous?
(i) $x\frac{dy}{dx}=1+y$
Sol:
This is a function of $x$ times a function of $y$. So the equation is separable:
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.
(ii) $x^2(2y+1)\,dy-dx=0$
Sol:
This is a function of $x$ times a function of $y$. So the equation is separable:
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.
(iii) $(2xy+x^2)\,dy-y^2\,dx=0$
Sol:
Every term of the numerator and of the denominator is of degree $2$. Divide both by $x^2$.
So the equation is homogeneous. The denominator $x(2y+x)$ mixes $x$ and $y$ in a sum, so the variables cannot be separated.
(iv) $\frac{dy}{dx}=e^{x-y}$
Sol:
This is a function of $x$ times a function of $y$. So the equation is separable:
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.
(v) $\frac{dT}{dt}+k(T-T_m)=0$
Sol:
Here $k$ and $T_m$ are constants. The right side is a function of $T$ only, so the equation is separable:
The right side is not a function of the ratio $\dfrac Tt$. So it is not homogeneous.
(vi) $\frac{dy}{dx}=\ln(x)-\ln(y)\,;\ x>0,\ y>0$
Sol:
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.
Question 3Find the general solution of the differential equation: $\frac{dy}{dx}=\left(\frac{1-y^2}{1-x^2}\right)^{\frac12}$
Sol:
Separate the variables.
Integrate both sides.
Put $-c_1=c$.
Question 4Find the general solution of the differential equation: $\frac{dy}{dx}=e^{x-y}$
Sol:
Separate the variables.
Integrate both sides.
Question 5Find the general solution of the differential equation: $\frac{dy}{dx}=\sqrt y\cos^2\sqrt y$
Sol:
Let $u=\sqrt y$.
Substitute in (i).
Integrate both sides.
Put $u=\sqrt y$.
Question 6Find the general solution of the differential equation: $\sqrt x\,\frac{dy}{dx}=e^{y+\sqrt x}$
Sol:
Divide both sides by $\sqrt x\,e^y$.
Let $u=\sqrt x$.
Substitute in (i).
Integrate both sides.
Put $u=\sqrt x$.
Question 7Find the general solution of the differential equation: $\frac{dy}{dx}=2x\sqrt{1-y^2}$
Sol:
Separate the variables.
Integrate both sides.
Question 8Find the general solution of the differential equation: $\frac{dy}{dx}=\frac{1+x}{(1-x)(1+x^2)}$
Sol:
Write the fraction in partial fractions.
Multiply both sides by $(1-x)(1+x^2)$.
Put $x=1$ in (iii).
Expand (iii).
Equate the coefficients of $x^2$.
Equate the constant terms.
Put the values of $A$, $B$ and $C$ in (ii).
Put this in (i).
Integrate both sides.
Question 9Find the general solution of the differential equation: $x^2\,dx+(1-x^2)\,dy=0$
Sol:
Divide both sides by $1-x^2$.
Write $x^2=(x^2-1)+1$.
Integrate both sides.
Question 10Find the general solution of the differential equation: $y-x\frac{dy}{dx}=2\left(y^2+\frac{dy}{dx}\right)$
Sol:
Separate the variables.
Write the left side in partial fractions.
Multiply both sides by $y(1-2y)$.
Put $y=0$ in (iii).
Put $y=\dfrac12$ in (iii).
Put $A$ and $B$ in (ii), and then use (i).
Integrate both sides.
The constant $c$ is arbitrary, so replace $\mp c$ by $c$.
Question 11Find the general solution of the differential equation: $\sec^2x\tan y\,dx+\sec^2y\tan x\,dy=0$
Sol:
Divide both sides by $\tan x\tan y$.
Integrate both sides.
The constant $c$ is arbitrary, so replace $\pm c$ by $c$.
Question 12Find the general solution of the differential equation: $(e^{2x}+e^{-2x})\,dy+(e^{-2x}-e^{2x})\,dx=0$
Sol:
Divide both sides by $e^{2x}+e^{-2x}$.
Multiply both sides by $2$. The numerator becomes the derivative of the denominator.
Integrate both sides.
Question 13Find the general solution of the differential equation: $x\sin x\,dx+\ln y\,dy=0$
Sol:
Integrate both sides.
Find each integral by parts.
For the first, $u=\ln y$ and $dv=dy$.
For the second, $u=x$ and $dv=\sin x\,dx$, so $v=-\cos x$.
Put these values in (i), with the constant of integration $c$.
Question 14Find the general solution of the differential equation: $\frac{dy}{dx}=\cos^2\left(\frac yx\right)+\frac yx$
Sol:
This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.
Separate the variables.
Integrate both sides.
Put $v=\dfrac yx$.
Question 15Find the general solution of the differential equation: $(y^2+2xy)\,dx+x^2\,dy=0$
Sol:
This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.
Separate the variables.
Write the left side in partial fractions.
Multiply both sides by $v(v+3)$.
Put $v=0$ in (iii).
Put $v=-3$ in (iii).
Put $A$ and $B$ in (ii), and then use (i).
Integrate both sides.
The constant $c$ is arbitrary, so replace $\pm c$ by $c$.
Put $v=\dfrac yx$.
Multiply both sides by $x$.
Question 16Find the general solution of the differential equation: $(x^2+3y^2)\,dx-2xy\,dy=0$
Sol:
This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.
Separate the variables.
Integrate both sides.
The arbitrary constant allows us to write this as
Put $v=\dfrac yx$.
Multiply both sides by $x^2$.
Question 17Find the general solution of the differential equation: $(x^2+xy+y^2)\,dx-x^2\,dy=0$
Sol:
This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.
Separate the variables.
Integrate both sides.
Put $v=\dfrac yx$.
Question 18Find the general solution of the differential equation: $x\frac{dy}{dx}=xe^{-\frac yx}+y$
Sol:
Divide both sides by $x$.
This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.
Separate the variables.
Integrate both sides.
Put $v=\dfrac yx$.
Question 19Find the general solution of the differential equation: $y-x\frac{dy}{dx}=3\left(1+x\frac{dy}{dx}\right)$
Sol:
Separate the variables.
Integrate both sides.
Take $x>0$, so $|x|=x$.
The constant $c$ is arbitrary, so replace $\pm c$ by $c$.
Question 20Find the general solution of the differential equation: $y\,dx+x\,dy=0$
Sol:
Separate the variables.
Integrate both sides.
The constant $c$ is arbitrary, so replace $\pm c$ by $c$.
Question 21Find the general solution of the differential equation: $\frac{dy}{dx}+\frac{2xy}{2y+1}=x$
Sol:
Separate the variables.
Integrate both sides.
Question 22Solve the initial value problem: $\frac{dy}{dx}-x=xy^2\,;\ y(0)=1$
Sol:
Separate the variables.
Integrate both sides.
Apply the condition $y(0)=1$: put $x=0$ and $y=1$ in (i).
Put $c=\dfrac\pi4$ in (i).
Question 23Solve the initial value problem: $\frac{ds}{dt}+2st=0\,;\ s=4e$ when $t=0$
Sol:
Separate the variables.
Integrate both sides.
Put $\pm e^{c_1}=c$.
Put $t=0$ and $s=4e$ in (i).
Put $c=4e$ in (i).
Question 24Solve the initial value problem: $\left(y+\sqrt{x^2+y^2}\right)dx-x\,dy=0\,;\ y=0$ when $x=1$
Sol:
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$.
Separate the variables.
Integrate both sides.
Use the logarithmic form of $\sinh^{-1}v$.
Put $v=\dfrac yx$.
Put $x=1$ and $y=0$ in (i).
Put $c=1$ in (i).
Question 25Solve the initial value problem: $\frac{dy}{dx}=\frac{x+y}x\,;\ y(1)=1$
Sol:
This is a homogeneous differential equation. Put $y=vx$, so $v=\dfrac yx$ and $\dfrac{dy}{dx}=v+x\dfrac{dv}{dx}$.
Separate the variables.
Integrate both sides.
Put $v=\dfrac yx$.
Put $x=1$ and $y=1$ in (i).
Here $\ln1=0$.
Put $c=1$ in (i).
Quick check: MCQs on Exercise 4.2
- 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 solutionsShow answer
Answer: (c) Initial value condition. It specifies the value at a starting point and fixes the integration constant. - 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$. - 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$.