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

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.
Example 1Show that the relation $y=cx+2$ represents a solution of the differential equation $y-x\dfrac{dy}{dx}=2$.
Solution:
Differentiating equation (1) with respect to $x$:
Put the value of $y$ from equation (1) and of $\dfrac{dy}{dx}$ from equation (3) in the left-hand side of equation (2):
Relation (1) is the family of straight lines with $y$-intercept $2$. The arbitrary constant $c$ is the slope of each line.
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$.
Solution:
We have
Differentiating equation (1) with respect to $x$:
Multiplying both sides by $(e^x-1)$:
Using equation (1):
This is the given differential equation. Equation (1) has no arbitrary constant, so it represents a particular solution.
Example 3Find the general solution of the differential equation $x\,dx+y\,dy=0$.
Solution:
The given differential equation is separable. It can be written as
Integrating both sides:
The constant $c$ is arbitrary, so it can be replaced by $\dfrac c2$.
Example 4Solve the initial value problem: $\dfrac{dy}{dx}=\dfrac34x^2+x-3;\ y(2)=0$
Solution:
The given differential equation is separable. It can be written as
Integrating both sides:
Applying the initial condition $y(2)=0$, that is $y=0$ when $x=2$:
Put $c=2$ in equation (1).
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$.
Solution:
The given differential equation can be written as
This is a separable equation. Rewrite it in the form
Multiplying both sides by $\dfrac{\sec^2y}{\tan y}$ (here $\tan y\ne0$, because $y\ne0$):
Integrating both sides:
The logarithmic function is one-to-one, so
The constant $c$ is arbitrary, so the general solution can be written as
Since $y\in\left(-\dfrac\pi2,\dfrac\pi2\right)$, we can take the inverse tangent.
Example 6Find the general solution of the differential equation $\dfrac{dy}{dx}=\dfrac{x+y}{y-x}$.
Solution:
The given differential equation is
Every term of the numerator and of the denominator is of degree $1$. Thus equation (1) is homogeneous. Put $y=vx$.
Integrating both sides:
Put $v=\dfrac yx$:
Renaming the constant $\pm\dfrac1{c^2}$ as $c\ne0$:
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)$.
Solution:
The derivative $\dfrac{dy}{dx}$ is the slope of the tangent, so we have to solve the initial value problem
Each term of the numerator and of the denominator is of degree $2$. So equation (1) is homogeneous. Put $y=vx$.
Integrating both sides:
The arbitrary constant allows us to write this as
Put $v=\dfrac yx$:
Put $x=2$ and $y=6$ in equation (2):
Put $c=5$ in equation (2).