Showing posts with label Differential Equations. Show all posts
Showing posts with label Differential Equations. Show all posts

Differential Equations

Solve the differential equation: $\;$ $\sin x \dfrac{dy}{dx} - y = \cos^2 x \times \sin x \times \tan \left(\dfrac{x}{2}\right)$


Given differential equation is: $\;$ $\sin x \dfrac{dy}{dx} - y = \cos^2 x \times \sin x \times \tan \left(\dfrac{x}{2}\right)$

i.e. $\;$ $\dfrac{dy}{dx} - \dfrac{1}{\sin x} \times y = \cos^2 x \times \tan \left(\dfrac{x}{2}\right)$ $\;\;\; \cdots \; (1)$

Equation $(1)$ is a linear differential equation of the form $\;$ $\dfrac{dy}{dx} + P y = Q$ $\;\;\; \cdots \; (2)$

Comparing equation $(1)$ with the standard differential equation gives

$P = \dfrac{-1}{\sin x} = - \text{cosec }x$, $\;$ $Q = \cos^2 x \times \tan \left(\dfrac{x}{2}\right)$

Integrating factor I.F $= e^{\int P dx}$

$\begin{aligned} \therefore \; I.F & = e^{\int - \text{cosec }x \; dx} \\\\ & = e^{- \log \left|\tan \left(x/2\right)\right|} \\\\ & = e^{\log \left|\tan \left(x / 2\right)\right|^{-1}} \\\\ & = \left[\tan \left(\dfrac{x}{2}\right)\right]^{-1} \\\\ & = \cot \left(\dfrac{x}{2}\right) \end{aligned}$

The general solution of equation $(2)$ is

$y \; e^{\int P \; dx} = \displaystyle \int Q \; e^{\int P \; dx} \; dx$

$\therefore \;$ The solution of equation $(1)$ is

$y \; \cot \left(\dfrac{x}{2}\right) = \displaystyle \int \cos^2 x \times \tan \left(\dfrac{x}{2}\right) \times \cot \left(\dfrac{x}{2}\right) \; dx$

i.e. $\;$ $y \cot \left(\dfrac{x}{2}\right) = \displaystyle \int cos^2 x \; dx$

i.e. $\;$ $y \cot \left(\dfrac{x}{2}\right) = \displaystyle \int \left(\dfrac{1 + \cos 2x}{2}\right) \; dx$

i.e. $\;$ $y \cot \left(\dfrac{x}{2}\right) = \dfrac{1}{2} \left[\displaystyle \int dx + \displaystyle \int \cos 2x \; dx\right]$

i.e. $\;$ $y \cot \left(\dfrac{x}{2}\right) = \dfrac{x}{2} + \dfrac{\sin 2x}{4} + C$

where $\;$ $C$ is the constant of integration.

Differential Equations

If the length of subnormal of a curve is constant and the curve passes through the origin, then find the equation of the curve.


Length of subnormal of a curve at any point $P \left(x,y\right)$ is $= y \; \dfrac{dy}{dx}$

Given: Length of subnormal $=$ constant

i.e. $y \; \dfrac{dy}{dx} = k$ $\;\;\;$ [k is a constant]

i.e. $y \; dy = k \; dx$

i.e. $\displaystyle \int y \; dy = k \int dx$

i.e. $\dfrac{y^2}{2} = k \; x + c$ $\;\;\; \cdots \; (1)$ $\;\;\;$ [c is the constant of integration]

Given: The required curve passes through the origin

$\therefore$ $\;$ Putting $x = 0$, $y = 0$ in equation $(1)$ gives

$c = 0$ $\;\;\; \cdots \; (2)$

$\therefore$ $\;$ In view of equation $(2)$, equation $(1)$ becomes

$\dfrac{y^2}{2} = k \; x$ $\implies$ $y^2 = 2 \; k \; x$ $\;\;\; \cdots \; (3)$

Equation $(3)$ is the required equation of the curve.

Differential Equations

The increase in the principal amount kept at compound interest in a bank is proportional to the product of the principal amount and annual rate of interest.

  1. Annual rate of interest in a bank is 5%. How many years will it take to double the principal amount?

  2. At what annual rate of interest, the principal amount will double in 10 years?


Let the principal amount at any instant of time t be $= P$

Let the annual rate of interest $= R\% = \dfrac{R}{100} = r$

Increase in principal amount with time $= \dfrac{dP}{dt}$

$\therefore$ $\;$ As per question, $\;\;$ $\dfrac{dP}{dt} \propto Pr$

i.e. $\dfrac{dP}{dt} = k P r$ $\;\;\;$ [k is the constant of proportionality]

i.e. $\dfrac{dP}{P} = k \; r \; dt$

i.e. $\displaystyle \int \dfrac{dP}{p} = k \; r \int dt$

i.e. $\ln P = k \; r \; t + c$ $\;\;\;$ [c is the constant of integration] $\;\;\; \cdots \; (1)$

At time $t = 0$, initial amount $= P = P_0$

Substituting these values of $t$ and $P$ in equation $(1)$ give

$c = \ln P_0$ $\;\;\; \cdots \; (2)$

Substituting the value of $c$ from equation $(2)$ in equation $(1)$ gives

$\ln P = k \; r \; t + \ln P_0$

i.e. $\ln P - \ln P_0 = k \; r \; t$

i.e. $\ln \left(\dfrac{P}{P_0}\right) = k \; r \; t$

i.e. $\dfrac{P}{P_0} = e^{k\;r \; t}$ $\implies$ $P = P_0 \; e^{k \; r \; t}$ $\;\;\; \cdots \; (3)$

After 1 year, $t = 1$, $P = P_0 + P_0 \; r = P_0 \left(1 + r\right)$

Substituting these values of $t$ and $P$ in equation $(3)$ give

$P_0 \left(1 + r\right) = P_0 \; e^{k \; r}$

i.e. $e^{k \; r} = 1 + r$ $\implies$ $k \; r = \ln \left(1 + r\right)$ $\;\;\; \cdots \; (4)$

$\therefore$ $\;$ In view of equation $(4)$, equation $(3)$ becomes

$P = P_0 \; e^{t \; \ln \left(1 + r\right)}$

i.e. $P = P_0 \; e^{\ln \left(1 + r\right)^t}$

i.e. $P = P_0 \left(1 + r\right)^t$ $\implies$ $P = P_0 \left(1 + \dfrac{R}{100}\right)^t$ $\;\;\; \cdots \; (5)$ $\;\;$ $\left[\because \; r = \dfrac{R}{100}\right]$

  1. Given: Rate of interest $= R = 5\% = \dfrac{5}{100}$, $P = 2 P_0$

    Substituting these values in equation $(5)$ give

    $2 P_0 = P_0 \left(1 + \dfrac{5}{100}\right)^t$

    i.e. $2 = \left(1.05\right)^t$

    i.e. $\log \left(2\right) = t \; \log \left(1.05\right)$ $\implies$ $t = \dfrac{\log \left(2\right)}{\log \left(1.05\right)} = 14.2$

    $\therefore$ $\;$ It takes 14.2 years to double the principal when the rate of interest is 5%


  2. Given: Time $= t = 10$ years, Principal amount $= P = 2 P_0$

    Substituting these values in equation $(5)$ give

    $2 P_0 = P_0 \left(1 + \dfrac{R}{100}\right)^{10}$

    i.e. $2 = \left(1 + \dfrac{R}{100}\right)^{10}$

    i.e. $\log \left(2\right) = 10 \; \log \left(1 + \dfrac{R}{100}\right)$

    i.e. $\dfrac{1}{10} \times \log \left(2\right) = \log \left(1 + \dfrac{R}{100}\right)$

    i.e. $\log \left(2^{0.1}\right) = \log \left(1 + \dfrac{R}{100}\right)$

    i.e. $2^{0.1} = 1 + \dfrac{R}{100}$ $\implies$ $R = 100 \times \left(2^{0.1} - 1\right) = 7.2$

    $\therefore$ $\;$ Annual rate of interest $= 7.2\%$

Differential Equations

In an experiment of culture of bacteria in a laboratory, the rate of increase of bacteria is proportional to the number of bacteria present at that time.

(i) If in one hour the number of bacteria gets doubled, then what is the number of bacteria at the end of 4 hours?

(ii) If the number of bacteria is 24,000 at the end of 3 hours, find the number of bacteria in the beginning.


Let the original number of bacteria at time $t = 0$ be $= N_0$

Let the number of bacteria at any instant of time $t$ be $= N$

Given: $\text{Rate of increase of bacteria} \propto \text{ Number present at that time}$

i.e. $\dfrac{dN}{dt} \propto N$

i.e. $\dfrac{dN}{dt} = k N$ $\hspace{2em}$ where $k$ is the constant of proportionality

i.e. $\dfrac{dN}{N} = k \; dt$

i.e. $\displaystyle \int \dfrac{dN}{N} = k \int dt$

i.e. $\log \left|N\right| = k \; t + c$ $\;\;\; \cdots \; (1)$ $\hspace{2em}$ where $c$ is the constant of integration

Applying the initial condition, when $t = 0$, $N = N_0$, equation $(1)$ becomes

$c = \log \left|N_0\right|$ $\;\;\; \cdots \; (2)$

$\therefore$ $\;$ In view of equation $(2)$, equation $(1)$ can be written as

$\log \left|N\right| = k \; t + \log \left|N_0\right|$

i.e. $\log \left|N\right| - \log \left|N_0\right| = k \; t$

i.e. $\log \left|\dfrac{N}{N_0}\right| = k \; t$

i.e. $\dfrac{N}{N_0} = e^{k t}$

i.e. $N = N_0 \; e^{kt}$ $\;\;\; \cdots \; (3)$

Now, in time $t = 1$ $\;$ hour, the number of bacteria gets doubled.

i.e. when $t = 1$, $N = 2 \; N_0$

$\therefore$ $\;$ In view of this condition equation $(3)$ becomes

$2 \; N_0 = N_0 \; e^k$

i.e. $e^{k} = 2$ $\implies$ $k = \log_e 2$ $\;\;\; \cdots \; (4)$

$\therefore$ $\;$ In view of equation $(4)$, equation $(3)$ becomes

$N = N_0 \; e^{t \; \log_e 2}$ $\;\;\; \cdots \; (5)$

Given: $t = 4$ hours

$\therefore$ $\;$ We have from equation $(5)$

$\begin{aligned} N & = N_0 \; e^{4 \; \log_e 2} \\\\ & = N_0 \; e^{\log_e \left(2^4\right)} \\\\ & = N_0 \; e^{\log_e 16} \\\\ & = 16 N_0 \end{aligned}$

i.e. Number of bacteria at the end of 4 hours $=$ 16 times the original number

Given: In time $t = 3$ hours, number of bacteria $= N = 24,000$

$\therefore$ $\;$ We have from equation $(5)$

$\begin{aligned} 24000 & = N_0 \; e^{\log_e 2} \\\\ & = N_0 \; e^{\log_e \left(2^3\right)} \\\\ & = N_0 \; e^{\log_e 8} \\\\ & = 8 N_0 \end{aligned}$

$\therefore$ $N_0 = \dfrac{24000}{8} = 3000$

$\therefore$ $\;$ Original number of bacteria $= 3000$ \end{enumerate}

Differential Equations

If the X intercept of the tangent to a curve at any point is four times its Y coordinate, then find the equation of the curve.


Let the slope of the tangent at any point $P \left(x,y\right)$ be $= \dfrac{dy}{dx}$

Let the equation of the tangent be $y = x \; \dfrac{dy}{dx} + k$ $\;\;\; \cdots \; (1)$ where k is the intercept.

Given: X intercept of tangent $= 4 y$

$y = 0$ gives the X intercept made by the tangent.

$\therefore$ We have

$0 = 4y \; \dfrac{dy}{dx} + k$

i.e. $k = - 4 \; y \; \dfrac{dy}{dx}$ $\;\;\; \cdots \; (2)$

$\therefore$ $\;$ In view of equation $(2)$, equation $(1)$ can be written as

$y = x \; \dfrac{dy}{dx} - 4 \; y \; \dfrac{dy}{dx}$

i.e. $y = \left(x - 4y\right) \dfrac{dy}{dx}$

i.e. $\dfrac{dx}{dy} = \dfrac{x - 4y}{y}$

i.e. $\dfrac{dx}{dy} = \dfrac{x}{y} - 4$ $\;\;\; \cdots \; (3)$

Let $\dfrac{x}{y} = u$ $\;\;\; \cdots \; (4a)$

$\implies$ $x = u \; y$ $\;\;\; \cdots \; (4b)$

Differentiating equation $(4b)$ w.r.t $y$ gives

$\dfrac{dx}{dy} = u + y \; \dfrac{du}{dy}$ $\;\;\; \cdots \; (4c)$

$\therefore$ $\;$ In view of equations $(4a)$ and $(4c)$, equation $(3)$ becomes

$u + y \; \dfrac{du}{dy} = u - 4$

i.e. $y \; \dfrac{du}{dy} = -4$

i.e. $\dfrac{du}{4} = - \dfrac{dy}{y}$ $\;\;\; \cdots \; (5)$

Integrating equation $(5)$ gives

$\dfrac{1}{4} \displaystyle \int du = - \int \dfrac{dy}{y}$

i.e. $\dfrac{u}{4} = - \log \left|y\right| + \log \left|c\right|$ $\;$ $c \;$ is the constant of integration

i.e. $\dfrac{u}{4} = \log \left|\dfrac{c}{y}\right|$

i.e. $\dfrac{x}{4y} = \log \left|\dfrac{c}{y}\right|$ $\;\;\;$ [from equation $(4a)$]

i.e. $e^{\frac{x}{4y}} = \dfrac{c}{y}$

i.e. $y = c \; e^{\frac{-x}{4y}}$ $\;\;\; \cdots \; (6)$

Equation $(6)$ is the required equation of the curve.

Differential Equations

Solve the differential equation $\;$ $y \; dx - \left(x + 2 y^2\right) \; dy = 0$


The given differential equation is $\;$ $y \; dx - \left(x + 2 y^2\right) \; dy = 0$

i.e. $y \; \dfrac{dx}{dy} - \left(x + 2y^2\right) = 0$

i.e. $\dfrac{dx}{dy} - \dfrac{x}{y} - 2y = 0$

i.e. $\dfrac{dx}{dy} - \dfrac{x}{y} = 2 y$ $\;\;\; \cdots \; (1)$

Equation $(1)$ is a linear differential equation in the form $\;$ $\dfrac{dx}{dy} + P \left(y\right)x = Q \left(y\right)$

Here $P \left(y\right) = -\dfrac{1}{y}$ $\;\;\; \cdots \; (2a)$; $\;$ $Q \left(y\right) = 2y$ $\;\;\; \cdots \; (2b)$

Integrating Factor (I.F) $= e^{\int P \left(y\right) \; dy}$

i.e. $I.F = e^{\int -\frac{1}{y} \; dy} = e^{- \log \left|y\right|} = e^{\log \left|\frac{1}{y}\right|} = \dfrac{1}{y}$ $\;\;\; \cdots \; (3)$

According to the general solution,

$x \; e^{\int P \left(y\right) \; dy} = \displaystyle \int Q \left(y\right) \; e^{\int P \left(y\right) \; dy} \; dy$

$\therefore$ $\;$ In view of equations $(2a)$, $(2b)$ and $(3)$, the general solution of equation $(1)$ is

$\dfrac{x}{y} = \displaystyle \int 2 y \times \dfrac{1}{y} \; dy$

i.e. $\dfrac{x}{y} = 2 \displaystyle \int dy$

i.e. $\dfrac{x}{y} = 2y + c$ $\;\;\; \cdots \; (4)$

Equation $(4)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation $\;$ $\left(1 + y^2\right) \; dx = \left(\tan^{-1}\left(y\right) - x\right) \; dy$


The given differential equation is $\;$ $\left(1 + y^2\right) \; dx = \left(\tan^{-1}\left(y\right) - x\right) \; dy$

i.e. $\dfrac{dx}{dy} = \dfrac{\tan^{-1}\left(y\right) - x}{1 + y^2}$

i.e. $\dfrac{dx}{dy} + \dfrac{x}{1 + y^2} = \dfrac{\tan^{-1} \left(y\right)}{1 + y^2}$ $\;\;\; \cdots \; (1)$

Equation $(1)$ is a linear differential equation in the form $\;$ $\dfrac{dx}{dy} + P \left(y\right)x = Q \left(y\right)$

Here $P \left(y\right) = \dfrac{1}{1 + y^2}$ $\;\;\; \cdots \; (2a)$; $\;$ $Q \left(y\right) = \dfrac{\tan^{-1} \left(y\right)}{1 + y^2}$ $\;\;\; \cdots \; (2b)$

Integrating Factor (I.F) $= e^{\int P \left(y\right) \; dy}$

i.e. $I.F = e^{\int \frac{dy}{1 + y^2}} = e^{\tan^{-1}\left(y\right)}$ $\;\;\; \cdots \; (3)$

According to the general solution,

$x \; e^{\int P \left(y\right) \; dy} = \displaystyle \int Q \left(y\right) \; e^{\int P \left(y\right) \; dy} \; dy$

$\therefore$ $\;$ In view of equations $(2a)$, $(2b)$ and $(3)$, the general solution of equation $(1)$ is

$x \; e^{\tan^{-1} \left(y\right)} = \displaystyle \int \dfrac{\tan^{-1} \left(y\right)}{1 + y^2} \times e^{\tan^{-1}\left(y\right)} \; dy$ $\;\;\; \cdots \; (4)$

Consider $\displaystyle \int \dfrac{\tan^{-1} \left(y\right)}{1 + y^2} \times e^{\tan^{-1}\left(y\right)} \; dy$ $\;\;\; \cdots \; (5)$

Let $\tan^{-1} \left(y\right) = p$ $\;\;\; \cdots \; (6a)$

Differentiating equation $(6a)$ gives

$\dfrac{dy}{1 + y^2} = dp$ $\;\;\; \cdots \; (6b)$

$\therefore$ $\;$ In view of equations $(6a)$ and $(6b)$, equation $(5)$ becomes

$\begin{aligned} \int \dfrac{\tan^{-1} \left(y\right)}{1 + y^2} \times e^{\tan^{-1}\left(y\right)} \; dy & = \int p \; e^{p} \; dp \\\\ & = p \int e^{p} \; dp - \int \left\{\int e^{p} \; dp \times \dfrac{d}{dp} \left(p\right) \right\} \; dp \\\\ & = p \; e^{p} - \int e^{p}\; dp \\\\ & = p \; e^{p} - e^{p} + c \\\\ & = e^{p} \left(p - 1\right) + c \\\\ & = e^{\tan{-1} \left(y\right)} \left(\tan^{-1} \left(y\right) - 1\right) + c \;\;\; \cdots \; (7) \\ & \hspace{8em} \left[\text{In view of equation } (6a)\right] \end{aligned}$

$\therefore$ $\;$ We have from equations $(4)$ and $(7)$,

$x \; e^{\tan^{-1} \left(y\right)} = e^{\tan^{-1} \left(y\right)} \left(\tan^{-1} \left(y\right) - 1\right) + c$ $\;\;\; \cdots \; (8)$

Equation $(8)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation $\;$ $\dfrac{dy}{dx} + \dfrac{2y}{x} = e^x$


The given differential equation is $\;$ $\dfrac{dy}{dx} + \dfrac{2y}{x} = e^x$ $\;\;\; \cdots \; (1)$

Equation $(1)$ is a linear differential equation in the form $\;$ $\dfrac{dy}{dx} + P \left(x\right)y = Q \left(x\right)$

Here $P \left(x\right) = \dfrac{2}{x}$ $\;\;\; \cdots \; (2a)$; $\;\;$ $Q \left(x\right) = e^{x}$ $\;\;\; \cdots \; (2b)$

Integrating Factor (I.F) $= e^{\int P \left(x\right) \; dx}$

$\begin{aligned} \text{i.e. I.F} = e^{\int \frac{2}{x} \; dx} & = e^{2 \log \left|x\right|} \\\\ & = e^{\log \left|x^2\right|} \\\\ & = x^2 \;\;\; \cdots \; (3) \end{aligned}$

According to the general solution,

$y \; e^{\int P \left(x\right) \; dx} = \displaystyle \int Q \left(x\right) \; e^{\int P \left(x\right) \; dx} \; dx$

$\therefore$ $\;$ In view of equations $(2a)$, $(2b)$ and $(3)$, the general solution of equation $(1)$ is

$y \; x^2 = \displaystyle \int e^x \; x^2 \; dx$ $\;\;\; \cdots \; (4)$

$\begin{aligned} \text{Now, } \int x^2 \; e^x \; dx & = x^2 \int e^x \; dx - \int \left\{\int e^x \; dx \times \dfrac{d}{dx} \left(x^2\right) \right\} \; dx \\\\ & = x^2 \; e^x - \int 2 \; x \; e^x \; dx \\\\ & = x^2 \; e^x - 2 \left[x \int e^x \; dx - \int \left\{\int e^x \; dx \times \dfrac{d}{dx} \left(x\right) \right\} \; dx\right] \\\\ & = x^2 \; e^x - 2 \left[x \; e^x - \int e^x \; dx\right] \\\\ & = x^2 \; e^x - 2 \; x \; e^x + 2 \; e^x + c \;\;\; \cdots \; (5) \end{aligned}$

$\therefore$ $\;$ In view of equation $(5)$, equation $(4)$ becomes

$y \; x^2 = x^2 \; e^x - 2 \; x \; e^x + 2 \; e^x + c$

i.e. $y \; x^2 = e^x \left(x^2 - 2 \; x + 2\right) + c$ $\;\;\; \cdots \; (6)$

Equation $(6)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation $\;$ $x \; \dfrac{dy}{dx} - y = \left(1 + x\right) e^{-x}$


The given differential equation is $\;$ $x \; \dfrac{dy}{dx} - y = \left(1 + x\right) e^{-x}$

i.e. $\dfrac{dy}{dx} - \dfrac{y}{x} = \dfrac{\left(1 + x\right) e^{-x}}{x}$ $\;\;\; \cdots \; (1)$

Equation $(1)$ is a linear differential equation in the form $\;$ $\dfrac{dy}{dx} + P \left(x\right)y = Q \left(x\right)$

Here $P \left(x\right) = - \dfrac{1}{x}$ $\;\;\; \cdots \; (2a)$; $\;\;$ $Q \left(x\right) = \dfrac{\left(1 + x\right) e^{-x}}{x}$ $\;\;\; \cdots \; (2b)$

Integrating Factor (I.F) $= e^{\int P \left(x\right) \; dx}$

$\begin{aligned} \text{i.e. I.F} = e^{\int \frac{-1}{x} \; dx} & = e^{- \log \left|x\right|} \\\\ & = e^{\log \left|\frac{1}{x}\right|} \\\\ & = \dfrac{1}{x} \;\;\; \cdots \; (3) \end{aligned}$

According to the general solution,

$y \; e^{\int P \left(x\right) \; dx} = \displaystyle \int Q \left(x\right) \; e^{\int P \left(x\right) \; dx} \; dx$

$\therefore$ $\;$ In view of equations $(2a)$, $(2b)$ and $(3)$, the general solution of equation $(1)$ is

$\dfrac{y}{x} = \displaystyle \int \dfrac{\left(1 + x\right) e^{-x}}{x} \times \dfrac{1}{x} \; dx$

i.e. $\dfrac{y}{x} = \displaystyle \int \dfrac{\left(1 + x\right) e^{-x}}{x^2} \; dx$ $\;\;\; \cdots \; (4)$

$\begin{aligned} \text{Now, } \int \dfrac{\left(1 + x\right) e^{-x}}{x^2} \; dx & = \left(1 + x\right) e^{-x} \int \dfrac{1}{x^2} \; dx \\ & \hspace{4em} - \int \left\{\int \dfrac{1}{x^2} \; dx \times \dfrac{d}{dx} \left[\left(1 + x\right) e^{-x}\right] \right\} \; dx \\\\ & = \dfrac{- \left(1 + x\right) e^{-x}}{x} + \int \dfrac{1}{x} \left(- e^{-x} + e ^{-x} - x e^{-x}\right) \; dx \\\\ & = \dfrac{- \left(1 + x\right) e^{-x}}{x} - \int e^{-x} \; dx \\\\ & = \dfrac{- \left(1 + x\right) e^{-x}}{x} + e^{-x} + c \;\;\; \cdots \; (5) \end{aligned}$

$\therefore$ $\;$ In view of equation $(5)$, equation $(4)$ becomes

$\dfrac{y}{x} = \dfrac{- \left(1 + x\right) e^{-x}}{x} + e^{-x} + c$

i.e. $y = - \left(1 + x\right) e^{-x} + x e^{-x} + c x$

i.e. $y = - e^{-x} + cx$ $\;\;\; \cdots \; (6)$

Equation $(6)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation $\;\;$ $\dfrac{dy}{dx} + 2\; y = \sin x$


The given differential equation is $\;\;$ $\dfrac{dy}{dx} + 2\; y = \sin x$ $\;\;\; \cdots \; (1)$

This is a linear differential equation in the form $\;$ $\dfrac{dy}{dx} + P\left(x\right)y = Q \left(x\right)$

Here $P \left(x\right) = 2$; $Q \left(x\right) = \sin x$ $\;\;\; \cdots \; (2)$

Integrating Factor (I.F) $= e^{\int P \left(x\right) \; dx}$

i.e. $\text{I.F} = e^{\int 2 \; dx} = e^{2x}$ $\;\;\; \cdots \; (3)$

According to the general solution,

$y \; e^{\int P \left(x\right) \; dx} = \displaystyle \int Q \left(x\right) \; e^{\int P \left(x\right) \; dx} \; dx$

$\therefore$ $\;$ In view of equations $(2)$ and $(3)$, the general solution of equation $(1)$ is

$y \; e^{2x} = \displaystyle \int \sin x \; e^{2x} \; dx$ $\;\;\; \cdots \; (4)$

$\begin{aligned} \text{Now } \int \sin x \; e^{2x} \; dx & = \sin x \int e^{2x} \; dx - \int \left\{\int e^{2x} \times \dfrac{d}{dx} \left(\sin x\right) \right\} \; dx \\\\ & = \dfrac{e^{2x} \; \sin x}{2} - \dfrac{1}{2} \int e^{2x} \; \cos x \; dx \\\\ & = \dfrac{e^{2x} \; \sin x}{2} - \dfrac{1}{2} \left[\cos x \int e^{2x} \; dx \right. \\ & \left. \hspace{4em} - \int \left\{\int e^{2x} \times \dfrac{d}{dx} \left(\cos x\right) \right\} \; dx\right] \\\\ & = \dfrac{e^{2x} \; \sin x}{2} - \dfrac{1}{2} \left[\dfrac{e^{2x} \; \cos x}{2} + \dfrac{1}{2} \int e^{2x} \; \sin x \; dx\right] \\\\ & = \dfrac{e^{2x} \; \sin x}{2} - \dfrac{e^{2x} \; \cos x}{4} - \dfrac{1}{4} \int e^{2x} \; \sin x \; dx + c \end{aligned}$

i.e. $\left(1 + \dfrac{1}{4}\right) \displaystyle \int \sin x \; e^{2x} \; dx = \dfrac{e^{2x}}{2} \left(\sin x - \dfrac{\cos x}{2}\right) + c$

i.e. $\displaystyle \int \sin x \; e^{2x} \; dx = \dfrac{2}{5} \; e^{2x} \left(\sin x - \dfrac{\cos x}{2}\right) + c$

i.e. $\displaystyle \int \sin x \; e^{2x} \; dx = \dfrac{e^{2x} \left(2 \sin x - \cos x\right)}{5} + c$ $\;\;\; \cdots \; (5)$

$\therefore$ $\;$ In view of equation $(5)$, equation $(4)$ becomes

$y \; e^{2x} = \dfrac{e^{2x} \left(2 \sin x - \cos x\right)}{5} + c$

i.e. $y = \dfrac{1}{5} \left(2 \sin x - \cos x\right) + c e^{-2x}$ $\;\;\; \cdots \; (6)$

Equation $(6)$ is the general solution of the given differential equation.

Differential Equations

Find the particular solution of the differential equation $\;\;$ $\left(x^2 - 2y^2\right) \; dx + 2 \; x \; y \; dy = 0$ under the initial condition $y \left(1\right) = 1$


The given differential equation is $\;\;$ $\left(x^2 - 2y^2\right) \; dx + 2 \; x \; y \; dy = 0$

i.e. $2 \; x \; y \; dy = \left(2 y^2 - x^2\right) \; dx$

i.e. $\dfrac{dy}{dx} = \dfrac{2 y^2 - x^2}{2 \; x \; y}$

i.e. $\dfrac{dy}{dx} = \dfrac{y}{x} - \dfrac{x}{2y}$ $\;\;\; \cdots \; (1)$

Let $\dfrac{y}{x} = v$ $\;\;\; \cdots \; (2a)$

i.e. $y = v \; x$ $\;\;\; \cdots \; (2b)$

Differentiating equation $(2b)$ w.r.t $x$ gives

$\dfrac{dy}{dx} = v + x \; \dfrac{dv}{dx}$ $\;\;\; \cdots \; (2c)$

$\therefore$ $\;$ In view of equations $(2a)$ and $(2c)$, equation $(1)$ can be written as

$v + x \; \dfrac{dv}{dx} = v - \dfrac{1}{2 \; v}$

i.e. $x \; \dfrac{dv}{dx} = - \dfrac{1}{2 \; v}$

i.e. $2 \; v \; dv = - \dfrac{dx}{x}$ $\;\;\; \cdots \; (3)$

Integrating equation $(3)$ gives

$2 \displaystyle \int v \; dv = - \int \dfrac{dx}{x}$

i.e. $2 \times \dfrac{v^2}{2} = - \log \left|x\right| + c$

i.e. $v^2 = - \log \left|x\right| + c$ $\;\;\; \cdots \; (4)$

Substituting the value of $v$ from equation $(2a)$ in equation $(4)$ gives

$\left(\dfrac{y}{x}\right)^2 = - \log \left|x\right| + c$ $\;\;\; \cdots \; (5)$

Equation $(5)$ is the general solution of the given differential equation.

The initial condition is: when $x = 1$, $y = 1$

Substituting the initial condition in equation $(5)$ gives

$1 = - \log \left|1\right| + c$ $\implies$ $c = 1$

Substituting the value of $c$ in equation $(5)$ gives

$\left(\dfrac{y}{x}\right)^2 = - \log \left|x\right| + 1$

i.e. $\log \left|x\right| = 1 - \dfrac{y^2}{x^2}$

i.e. $x = e^{\left(1 - \frac{y^2}{x^2}\right)}$

i.e. $x = \dfrac{e}{e^{\left(\frac{y^2}{x^2}\right)}}$

i.e. $x \; e^{\left(\frac{y^2}{x^2}\right)} = e$ $\;\;\; \cdots \; (6)$

Equation $(6)$ is the particular solution of the given differential equation.

Differential Equations

Find the particular solution of the differential equation $\;\;$ $\left(x^2 + y^2\right) \; dx + x \; y \; dy = 0$ under the initial condition $y \left(1\right) = 1$


The given differential equation is $\;\;$ $\left(x^2 + y^2\right) \; dx + x \; y \; dy = 0$

i.e. $\dfrac{dy}{dx} = - \dfrac{\left(x^2 + y^2\right)}{x \; y}$

i.e. $\dfrac{dy}{dx} = - \left(\dfrac{x}{y} + \dfrac{y}{x}\right)$ $\;\;\; \cdots \; (1)$

Let $\dfrac{y}{x} = v$ $\;\;\; \cdots \; (2a)$

i.e. $y = v \; x$ $\;\;\; \cdots \; (2b)$

Differentiating equation $(2b)$ w.r.t $x$ gives

$\dfrac{dy}{dx} = v + x \; \dfrac{dv}{dx}$ $\;\;\; \cdots \; (2c)$

$\therefore$ $\;$ In view of equations $(2a)$ and $(2c)$, equation $(1)$ can be written as

$v + x \; \dfrac{dv}{dx} = - \dfrac{1}{v} - v$

i.e. $x \; \dfrac{dv}{dx} = - \left(\dfrac{1}{v} + 2v\right)$

i.e. $x \; \dfrac{dv}{dx} = \dfrac{- \left(1 + 2 v^2\right)}{v}$

i.e. $\dfrac{v \; dv}{1 + 2 v^2} = - \dfrac{dx}{x}$ $\;\;\; \cdots \; (3)$

Integrating equation $(3)$ gives

$\displaystyle \int \dfrac{v}{1 + 2 v^2} \; dv = - \int \dfrac{dx}{x}$ $\;\;\; \cdots \; (4)$

Consider $\displaystyle \int \dfrac{v \; dv}{1 + 2 v^2}$ $\;\;\; \cdots \; (5)$

Let $1 + 2 v^2 = p$ $\;\;\; \cdots \; (5a)$

Differentiating equation $(5a)$ gives

$4 \; v \; dv = dp$ $\implies$ $v \; dv = \dfrac{dp}{4}$ $\;\;\; \cdots \; (5b)$

$\therefore$ $\;$ In view of equations $(5a)$ and $(5b)$, equation $(5)$ becomes

$\displaystyle \int \dfrac{v \; dv}{1 + 2 v^2} = \dfrac{1}{} \int \dfrac{dp}{p}$ $\;\;\; \cdots \; (6)$

$\therefore$ $\;$ We have from equations $(4)$ and $(6)$

$\dfrac{1}{4} \displaystyle \int \dfrac{dp}{p} = - \int \dfrac{dx}{x}$

i.e. $\dfrac{1}{4} \; \log \left|p\right| = - \log \left|x\right| + \log \left|c_1\right|$ $\;\;\; \cdots \; (7)$

$\therefore$ $\;$ In view of equation $(5a)$, equation $(7)$ can be written as

$\dfrac{1}{4} \log \left|1 + 2v^2\right| + \log \left|x\right| = \log \left|c_1\right|$

i.e. $\log \left|x \left(1 + 2v^2\right)^{1/4}\right| = \log \left|c_1\right|$

i.e. $x \left(1 + 2 v^2\right)^{1/4} = c_1$ $\;\;\; \cdots \; (8)$

Substituting the value of $v$ from equation $(2a)$ in equation $(8)$ gives

$x \left(1 + \dfrac{2 \; y^2}{x^2}\right)^{1/4} = c_1$

i.e. $x^4 \left(1 + \dfrac{2 \; y^2}{x^2}\right) = \left(c_1\right)^4$

i.e. $x^4 \left(\dfrac{x^2 + 2\; y^2}{x^2}\right) = c$ $\;$ where $\left(c_1\right)^4 = c$

i.e. $x^2 \left(x^2 + 2 \; y^2\right) = c$ $\;\;\; \cdots \; (9)$

Equation $(9)$ is the general solution of the given differential equation.

The initial condition is: when $x = 1$, $y = 1$

Substituting the initial condition in equation $(9)$ gives

$1^2 \left(1^2 + 2 \times 1^2\right) = c$ $\implies$ $c = 3$

Substituting the value of $c$ in equation $(9)$ gives

$x^2 \left(x^2 + 2 \; y^2\right) = 3$ $\;\;\; \cdots \; (10)$

Equation $(10)$ is the particular solution of the given differential equation.

Differential Equations

Solve the differential equation $\;\;$ $\dfrac{dy}{dx} + \dfrac{y \left(x + y\right)}{x^2} = 0$


The given differential equation is $\;\;$ $\dfrac{dy}{dx} + \dfrac{y \left(x + y\right)}{x^2} = 0$

i.e. $\dfrac{dy}{dx} + \dfrac{y \; x + y^2}{x^2} = 0$

i.e. $\dfrac{dy}{dx} + \dfrac{y}{x} + \dfrac{y^2}{x^2} = 0$ $\;\;\; \cdots \; (1)$

Let $\dfrac{y}{x} = v$ $\;\;\; \cdots \; (2a)$

i.e. $y = v \; x$ $\;\;\; \cdots \; (2b)$

Differentiating equation $(2b)$ w.r.t $x$ gives

$\dfrac{dy}{dx} = v + x \; \dfrac{dv}{dx}$ $\;\;\; \cdots \; (2c)$

$\therefore$ $\;$ In view of equations $(2a)$ and $(2c)$, equation $(1)$ can be written as

$v + x \; \dfrac{dv}{dx} + v + v^2 = 0$

i.e. $x \; \dfrac{dv}{dx} = - 2 v - v^2$

i.e. $\dfrac{dv}{2 \; v + v^2} = - \dfrac{dx}{x}$ $\;\;\; \cdots \; (3)$

Integrating equation $(3)$ gives

$\displaystyle \int \dfrac{dv}{2 \; v + v^2} = - \int \dfrac{dx}{x}$

i.e. $\displaystyle \int \dfrac{dv}{v \left(2 + v\right)} = - \int \dfrac{dx}{x}$ $\;\;\; \cdots \; (4)$

Let $\dfrac{1}{v \left(2 + v\right)} = \dfrac{A}{v} + \dfrac{B}{2 + v}$ $\;\;\; \cdots \; (5)$

i.e. $1 = A \left(2 + v\right) + B \; v$ $\;\;\; \cdots \; (5a)$

In equation $(5a)$

$\begin{aligned} \text{When } & v = 0, & \implies 1 = 2 \; A & \implies A = \dfrac{1}{2} \;\;\; \cdots \; (5b) \\\\ \text{When } & v = -2, & \implies 1 = -2 \; B & \implies B = \dfrac{-1}{2} \;\;\; \cdots \; (5c) \end{aligned}$

$\therefore$ $\;$ In view of equations $(5b)$ and $(5c)$, equation $(5)$ becomes

$\dfrac{1}{v \left(2 + v\right)} = \dfrac{1 / 2}{v} - \dfrac{1 / 2}{2 + v}$ $\;\;\; \cdots \; (6)$

Integrating equation $(6)$ gives

$\displaystyle \int \dfrac{dv}{v \left(2 + v\right)} = \dfrac{1}{2} \int \dfrac{dv}{v} - \dfrac{1}{2} \int \dfrac{dv}{v + 2}$ $\;\;\; \cdots \; (6a)$

$\therefore$ $\;$ In view of equation $(6a)$, equation $(4)$ can be written as

$\displaystyle \dfrac{1}{2} \int \dfrac{dv}{v} - \dfrac{1}{2} \int \dfrac{dv}{v + 2} = - \int \dfrac{dx}{x}$

i.e. $\dfrac{1}{2} \log \left|v\right| - \dfrac{1}{2} \log \left|v + 2\right| = - \log \left|x\right| + \log \left|c_1\right|$

i.e. $\dfrac{1}{2} \log \left|\dfrac{v}{v + 2}\right| = \log \left|\dfrac{c_1}{x}\right|$

i.e. $\log \left|\dfrac{v}{v + 2}\right| = 2 \log \left|\dfrac{c_1}{x}\right|$

i.e. $\log \left|\dfrac{v}{v + 2}\right| = \log \left|\left(\dfrac{c_1}{x}\right)^2\right|$

i.e. $\dfrac{v}{v + 2} = \dfrac{c}{x^2}$ $\;\;\; \cdots \; (7)$ $\;$ where $\left(c_1\right)^2 = c$

Substituting the value of $v$ from equation $(2a)$ in equation $(7)$ gives

$\dfrac{\dfrac{y}{x}}{\dfrac{y}{x} + 2} = \dfrac{c}{x^2}$

i.e. $\dfrac{y}{y + 2x} = \dfrac{c}{x^2}$

i.e. $x^2 y = c \left(y + 2x\right)$ $\;\;\; \cdots \; (8)$

Equation $(8)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation $\;\;$ $y \; dx + x \; \log \left(\dfrac{y}{x}\right) \; dy = 2 \; x \; dy$


The given differential equation is $\;\;$ $y \; dx + x \; \log \left(\dfrac{y}{x}\right) \; dy = 2 \; x \; dy$

i.e. $\dfrac{y}{x} \; dx + \log \left(\dfrac{y}{x}\right) \; dy = 2 \; dy$

i.e. $\left[2 - \log \left(\dfrac{y}{x}\right)\right] \; dy = \dfrac{y}{x} \; dx$

i.e. $\dfrac{dy}{dx} = \dfrac{\dfrac{y}{x}}{2 - \log \left(\dfrac{y}{x}\right)}$ $\;\;\; \cdots \; (1)$

Let $\dfrac{y}{x} = v$ $\;\;\; \cdots \; (2a)$

i.e. $y = v \; x$ $\;\;\; \cdots \; (2b)$

Differentiating equation $(2b)$ w.r.t $x$ gives

$\dfrac{dy}{dx} = v + x \; \dfrac{dv}{dx}$ $\;\;\; \cdots \; (2c)$

$\therefore$ $\;$ In view of equations $(2a)$ and $(2c)$, equation $(1)$ can be written as

$v + x \; \dfrac{dv}{dx} = \dfrac{v}{2 - \log \left(v\right)}$

i.e. $x \; \dfrac{dv}{dx} = \dfrac{v}{2 - \log \left(v\right)} - v$

i.e. $x \; \dfrac{dv}{dx} = \dfrac{v - 2 \; v + v \; \log \left(v\right)}{2 - \log \left(v\right)}$

i.e. $x \; \dfrac{dv}{dx} = \dfrac{v \; \log \left(v\right) - v}{2 - \log \left(v\right)}$

i.e. $\left[\dfrac{2 - \log \left(v\right)}{v \; \log \left(v\right) - v}\right] \; dv = \dfrac{dx}{x}$ $\;\;\; \cdots \; (3)$

Integrating equation $(3)$ gives

$\displaystyle \int \left[\dfrac{2 - \log \left(v\right)}{v \; \log \left(v\right) - v}\right] \; dv = \int \dfrac{dx}{x}$

i.e. $2 \displaystyle \int \dfrac{dv}{v \; \log \left(v\right) - v} - \int \dfrac{\log \left(v\right)}{v \; \log \left(v\right) - v} \; dv = \int \dfrac{dx}{x}$ $\;\;\; \cdots \; (4)$

Consider $\displaystyle \int \dfrac{dv}{v \; \log \left(v\right) - v} = \int \dfrac{dv}{v \left[\log \left(v\right) - 1\right]}$ $\;\;\; \cdots \; (5)$

Let $\log \left(v\right) - 1 = p$ $\;\;\; \cdots \; (5a)$

Differentiating equation $(5a)$ gives

$\dfrac{dv}{v} = dp$ $\;\;\; \cdots \; (5b)$

$\therefore$ $\;$ In view of equations $(5a)$ and $(5b)$, equation $(5)$ becomes

$\displaystyle \int \dfrac{dv}{v \; \log \left(v\right) - v} = \int \dfrac{dp}{p}$ $\;\;\; \cdots \; (5c)$

Consider $\displaystyle \int \dfrac{\log \left(v\right)}{v \; \log \left(v\right) - v} \; dv$ $\;\;\; \cdots \; (6)$

Let $v \; \log \left(v\right) - v = u$ $\;\;\; \cdots \; (6a)$

Differentiating equation $(6a)$ gives

$\left[v \times \dfrac{1}{v} + \log \left(v\right) - 1\right] \; dv = du$

i.e. $\log \left(v\right) \; dv = du$ $\;\;\; \cdots \; (6b)$

$\therefore$ $\;$ In view of equations $(6a)$ and $(6b)$, equation $(6)$ becomes

$\displaystyle \int \dfrac{\log \left(v\right)}{v \; \log \left(v\right) - v} \; dv = \int \dfrac{du}{u}$ $\;\;\; \cdots \; (6c)$

$\therefore$ $\;$ In view of equations $(5c)$ and $(6c)$, equation $(4)$ becomes

$2 \displaystyle \int \dfrac{dp}{p} - \int \dfrac{du}{u} = \int \dfrac{dx}{x}$

i.e. $2 \log \left|p\right| - \log \left|u\right| = \log \left|x\right| + \log \left|c\right|$

i.e. $\log \left|\dfrac{p^2}{u}\right| = \log \left|c \; x\right|$

i.e. $\dfrac{p^2}{u} = c \; x$ $\;\;\; \cdots \; (7)$

Substituting the values of $p$ and $u$ from equations $(5a)$ and $(6a)$, respectively, in equation $(7)$, we have

$\dfrac{\left[\log \left|v\right| - 1\right]^2}{v \; \log \left|v\right| - v} = c \; x$

i.e. $\dfrac{\left[\log \left|v\right| - 1\right]^2}{v \left[\log \left|v\right| - 1\right]} = c \; x$

i.e. $\dfrac{\log \left|v\right| - 1}{v} = c \; x$

i.e. $\log \left|v\right| - 1 = c \; x \; v$ $\;\;\; \cdots \; (8)$

In view of equation $(2a)$, equation $(8)$ becomes

$\log \left|\dfrac{y}{x}\right| - 1 = c \times x \times \dfrac{y}{x}$

i.e. $\log \left|\dfrac{y}{x}\right| - 1 = c \; y$ $\;\;\; \cdots \; (9)$

Equation $(9)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation $\;\;$ $y + 2 \; y \; e^{x/y} \; \dfrac{dx}{dy} = 2 \; x \; e^{x/y}$


The given differential equation is $\;\;$ $y + 2 \; y \; e^{x/y} \; \dfrac{dx}{dy} = 2 \; x \; e^{x/y}$

i.e. $1 + 2 \; e^{x/y} \; \dfrac{dx}{dy} = 2 \; \dfrac{x}{y} \; e^{x/y}$

i.e. $2 \; e^{x/y} \; \dfrac{dx}{dy} = 2 \; \dfrac{x}{y} \; e^{x/y} - 1$ $\;\;\; \cdots \; (1)$

Let $\dfrac{x}{y} = v$ $\;\;\; \cdots \; (2a)$

i.e. $x = v \; y$ $\;\;\; \cdots \; (2b)$

Differentiating equation $(2b)$ w.r.t $y$ gives

$\dfrac{dx}{dy} = v + y \; \dfrac{dv}{dy}$ $\;\;\; \cdots \; (2c)$

$\therefore$ $\;$ In view of equations $(2a)$ and $(2c)$, equation $(1)$ becomes

$2 \; e^v \left(v + y \; \dfrac{dv}{dy}\right) = 2 \; v \; e^v - 1$

i.e. $v + y \; \dfrac{dv}{dy} = \dfrac{2 \; v \; e^v - 1}{2 \; e^v}$

i.e. $v + y \; \dfrac{dv}{dy} = v - \dfrac{1}{2 \; e^v}$

i.e. $y \; \dfrac{dv}{dy} = \dfrac{-1}{2 \; e^v}$

i.e. $2 \; e^v \; dv = - \dfrac{dy}{y}$ $\;\;\; \cdots \; (3)$

Integrating equation $(3)$ gives

$2 \displaystyle \int e^v \; dv = - \int \dfrac{dy}{y}$

i.e. $2 \; e^v = - \log \left|y\right| + \log \left|c\right|$ $\;\;\; \cdots \; (4)$

Substituting the value of $v$ from equation $(2a)$ in equation $(4)$ gives

$2 \; e^{x/y} = \log \left|\dfrac{c}{y}\right|$ $\;\;\; \cdots \; (5)$

Equation $(5)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation
$\;$ $\left[x \cos \left(\dfrac{y}{x}\right) + y \sin \left(\dfrac{y}{x}\right)\right] y = \left[y \sin \left(\dfrac{y}{x}\right) - x \cos \left(\dfrac{y}{x}\right)\right] x \; \dfrac{dy}{dx}$


The given differential equation is

$\left[x \cos \left(\dfrac{y}{x}\right) + y \sin \left(\dfrac{y}{x}\right)\right] y = \left[y \sin \left(\dfrac{y}{x}\right) - x \cos \left(\dfrac{y}{x}\right)\right] x \; \dfrac{dy}{dx}$

i.e. $\dfrac{dy}{dx} = \left[\dfrac{x \cos \left(\dfrac{y}{x}\right) + y \sin \left(\dfrac{y}{x}\right)}{y \sin \left(\dfrac{y}{x}\right) - x \cos \left(\dfrac{y}{x}\right)}\right] \times \dfrac{y}{x}$

i.e. $\dfrac{dy}{dx} = \left[\dfrac{\cos \left(\dfrac{y}{x}\right) + \dfrac{y}{x} \sin \left(\dfrac{y}{x}\right)}{\dfrac{y}{x} \sin \left(\dfrac{y}{x}\right) - \cos \left(\dfrac{y}{x}\right)}\right] \times \dfrac{y}{x}$ $\;\;\; \cdots \; (1)$

Let $\dfrac{y}{x} = v$ $\;\;\; \cdots \; (2a)$

$\implies$ $y = v \; x$ $\;\;\; \cdots \; (2b)$

Differentiating equation $(2b)$ w.r.t x gives

$\dfrac{dy}{dx} = v + x \; \dfrac{dv}{dx}$ $\;\;\; \cdots \; (2c)$

$\therefore$ $\;$ In view of equations $(2a)$ and $(2c)$, equation $(1)$ becomes

$v + x \; \dfrac{dv}{dx} = \left[\dfrac{\cos \left(v\right) + v \; \sin \left(v\right)}{v \; \sin \left(v\right) - \cos \left(v\right)}\right] \times v$

i.e. $x \; \dfrac{dv}{dx} = \left[\dfrac{\cos \left(v\right) + v \; \sin \left(v\right)}{v \; \sin \left(v\right) - \cos \left(v\right)} - 1\right] \times v$

i.e. $x \; \dfrac{dv}{dx} = \left[\dfrac{\cos \left(v\right) + v \; \sin \left(v\right) - v \; \sin \left(v\right) + \cos \left(v\right)}{v \; \sin \left(v\right) - \cos \left(v\right)}\right] \times v$

i.e. $x \; \dfrac{dv}{dx} = \dfrac{2 \; v \; \cos \left(v\right)}{v \; \sin \left(v\right) - \cos \left(v\right)}$

i.e. $\left[\dfrac{v \; \sin \left(v\right) - \cos \left(v\right)}{v \; \cos \left(v\right)}\right] \; dv = 2 \; \dfrac{dx}{x}$

i.e. $\left[\tan \left(v\right) - \dfrac{1}{v}\right] \; dv = 2 \; \dfrac{dx}{x}$ $\;\;\; \cdots \; (3)$

Integrating equation $(3)$ gives

$\displaystyle \int \left[\tan \left(v\right) - \dfrac{1}{v}\right] \; dv = 2 \int \dfrac{dx}{x}$

i.e. $\log \left|\sec \left(v\right)\right| - \log \left|v\right| = 2 \; \log \left|x\right| + \log \left|c\right|$ $\;\;\; \cdots \; (4)$

Substituting the value of $v$ from equation $(2a)$ in equation $(4)$ gives

$\log \left|\sec \left(\dfrac{y}{x}\right)\right| - \log \left|\dfrac{y}{x}\right| - 2 \log \left|x\right| = \log \left|c\right|$

i.e. $\log \left|\dfrac{\sec \left(\dfrac{y}{x}\right)}{\dfrac{y}{x} \times x^2}\right| = \log \left|c\right|$

i.e. $\dfrac{\sec \left(\dfrac{y}{x}\right)}{x \; y} = c$

i.e. $\sec \left(\dfrac{y}{x}\right) = c \; x \; y$ $\;\;\; \cdots \; (5)$

Equation $(5)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation $\left(x + y\right)^2 \; \dfrac{dy}{dx} = a^2$


The given differential equation is $\;\;$ $\left(x + y\right)^2 \; \dfrac{dy}{dx} = a^2$ $\;\;\; \cdots \; (1)$

Let $x + y =u$ $\;\;\; \cdots \; (2a)$

Differentiating equation $(2a)$ w.r.t x gives

$1 + \dfrac{dy}{dx} = \dfrac{du}{dx}$

i.e. $\dfrac{dy}{dx} = \dfrac{du}{dx} - 1$ $\;\;\; \cdots \; (2b)$

$\therefore$ $\;$ In view of equations $(2a)$ and $(2b)$, equation $(1)$ becomes

$u^2 \left(\dfrac{du}{dx} -1\right) = a^2$

i.e. $\dfrac{du}{dx} - 1 = \dfrac{a^2}{u^2}$

i.e. $\dfrac{du}{dx} = \dfrac{a^2}{u^2} + 1$

i.e. $\dfrac{du}{dx} = \dfrac{a^2 + u^2}{u^2}$

i.e. $\left(\dfrac{u^2}{u^2 + a^2}\right) du = dx$ $\;\;\; \cdots \; (3)$

Integrating equation $(3)$ gives

$\displaystyle \int \dfrac{u^2}{u^2 + a^2} \; du = \int dx$

i.e. $\displaystyle \int \dfrac{u^2 + a^2}{u^2 + a^2} \; du - \int \dfrac{a^2}{u^2 + a^2} \; du = \int dx$

i.e. $\displaystyle \int du - a^2 \int \dfrac{du}{u^2 + a^2} = \int dx$

i.e. $u - a^2 \times \dfrac{1}{a} \tan^{-1}\left(\dfrac{u}{a}\right) = x + c$ $\;\;\; \cdots \; (4)$

Substituting the value of $u$ from equation $(2a)$ gives

i.e. $x + y - a \tan^{-1} \left(\dfrac{x + y}{a}\right) = x + c$

i.e. $y - a \tan^{-1} \left(\dfrac{x + y}{a}\right) = c$ $\;\;\; \cdots \; (5)$

Equation $(5)$ is the general solution of the given differential equation.

Differential Equations

Solve the differential equation $\dfrac{dy}{dx} = e^{x + y}$


The given differential equation is $\;$ $\dfrac{dy}{dx} = e^{x + y}$ $\;\;\; \cdots \; (1)$

Let $x + y = u$ $\;\;\; \cdots \; (2a)$

Differentiating equation $(2a)$ gives

$1 + \dfrac{dy}{dx} = \dfrac{du}{dx}$

i.e. $\dfrac{dy}{dx} = \dfrac{du}{dx} -1$ $\;\;\; \cdots \; (2b)$

$\therefore$ $\;$ In view of equations $(2a)$ and $(2b)$, equation $(1)$ becomes

$\dfrac{du}{dx} - 1 = e^u$

i.e. $\dfrac{du}{dx} = e^u + 1$

i.e. $\dfrac{du}{e^u + 1} = dx$ $\;\;\; \cdots \; (3)$

Integrating equation $(3)$ gives

$\displaystyle \int \dfrac{du}{e^u + 1} = \int dx$ $\;\;\; \cdots \; (4)$

Consider $\displaystyle \int \dfrac{du}{e^u + 1}$ $\;\;\; \cdots \; (5)$

Let $e^u + 1 = t$ $\;\;\; \cdots \; (5a)$

Differentiating equation $(5a)$ gives

$e^u \; du = dt$

i.e. $du = \dfrac{dt}{e^u} = \dfrac{dt}{t - 1}$ $\;\;\; \cdots \; (5b)$ $\;\;$ [by equation $(5a)$]

$\therefore$ $\;$ In view of equations $(5a)$ and $(5b)$, equation $(4)$ becomes

$\displaystyle \int \dfrac{dt / t - 1}{t} = \int dx$

i.e. $\displaystyle \int \dfrac{dt}{t \left(t - 1\right)} = \int dx$ $\;\;\; \cdots \; (6)$

Let $\dfrac{1}{t \left(t - 1\right)} = \dfrac{A}{t} + \dfrac{B}{t - 1}$ $\;\;\; \cdots \; (7)$

i.e. $1 = A \left(t - 1\right) + B \; t$ $\;\;\; \cdots \; (7a)$

Putting $t = 0$ in equation $(7a)$ gives

$1 = - A$ $\implies$ $A = -1$ $\;\;\; \cdots \; (7b)$

Putting $t = 1$ in equation $(7a)$ gives

$B = 1$ $\;\;\; \cdots \; (7c)$

$\therefore$ $\;$ In view of equations $(7b)$ and $(7c)$, equation $(7)$ becomes

$\dfrac{1}{t \left(t - 1\right)} = \dfrac{-1}{t} + \dfrac{1}{t - 1}$ $\;\;\; \cdots \; (8)$

Integrating equation $(8)$ gives

$\displaystyle \int \dfrac{dt}{t \left(t - 1\right)} = \int \dfrac{-dt}{t} + \int \dfrac{dt}{t - 1}$ $\;\;\; \cdots \; (8a)$

$\therefore$ $\;$ In view of equation $(8a)$, equation $(6)$ can be written as

$\displaystyle \int \dfrac{-dt}{t} + \int \dfrac{dt}{t - 1} = \int dx$

i.e. $- \log \left|t\right| + \log \left|t - 1\right| + \log \left|c\right| = x$

i.e. $\log \left|\dfrac{c \left(t - 1\right)}{t}\right| = x$

i.e. $\dfrac{c \left(t - 1\right)}{t} = e^x$ $\;\;\; \cdots \; (9)$

Substituting the value of $t$ from equation $(5a)$ in equation $(9)$ gives

$\dfrac{c \left(e^u + 1 - 1\right)}{e^u + 1} = e^x$

i.e. $\dfrac{c \; e^u}{e^u + 1} = e^x$ $\;\;\; \cdots \; (10)$

In view of equation $(2a)$, equation $(10)$ becomes

$\dfrac{c \; e^{x+y}}{e^{x+y} + 1} = e^x$

i.e. $\dfrac{c \; e^y}{e^{x+y} + 1} = 1$

i.e. $c \; e^y = e^{x+y} + 1$ $\;\;\; \cdots \; (11)$

Equation $(11)$ is the general solution of the given differential equation.

Differential Equations


Solve the differential equation $e^{dy/dx} = x + 1$.

Also find the particular solution when the initial conditions are $y \left(0\right) = 3$, $x > -1$.


Given: $e^{dy/dx} = x + 1$

i.e. $\log \left|e^{dy/dx}\right| = \log \left|x + 1\right|$

i.e. $\dfrac{dy}{dx} = \log \left|x + 1\right|$

i.e. $dy = \log \left|x + 1\right| \; dx$ $\;\;\; \cdots \; (1)$

Integrating equation $(1)$ gives

$\displaystyle \int dy = \int \log \left|x + 1\right| \; dx$ $\;\;\; \cdots \; (2)$

$\begin{aligned} \text{Now, } \int \log \left|x + 1\right| \; dx & = \log \left|x + 1\right| \int dx - \int \left\{\int dx \times \dfrac{d}{dx} \left(\log \left|x + 1\right|\right) \right\} \; dx \\\\ & = x \log \left|x + 1\right| - \int x \times \dfrac{1}{x +1} \; dx \\\\ & = x \log \left|x + 1\right| - \left[\int \dfrac{x + 1}{x + 1} \; dx - \int \dfrac{dx}{x + 1}\right] \\\\ & = x \log \left|x + 1\right| - \int dx + \int \dfrac{dx}{x + 1} \\\\ & = x \log \left|x + 1\right| - x + \log \left|x + 1\right| + c_1 \\\\ & = \left(x + 1\right) \log \left|x + 1\right| - x + c_1 \;\;\; \cdots \; (3) \end{aligned}$

and $\displaystyle \int dy = y + c_2$ $\;\;\; \cdots \; (4)$

$\therefore$ $\;$ In view of equations $(3)$ and $(4)$, equation $(2)$ becomes

$y + c_2 = \left(x + 1\right) \log \left|x + 1\right| - x + c_1$

i.e. $y = \left(x + 1\right) \log \left|x + 1\right| - x + c$ $\;\;\; \cdots \; (5)$ $\;$ where $c = c_1 - c_2$

Equation $(5)$ is the general solution of the given differential equation.

The initial condition is $y \left(0\right) = 3$

i.e. when $x = 0$, $y = 3$

Substituting the values of x and y in equation $(5)$ gives

$3 = \left(0 + 1\right) \log \left|0 + 1\right| - 0 + c$

i.e. $3 = \log \left|1\right| + c$ $\implies$ $c = 3$ $\;\;\; \cdots \; (6)$

Substituting the value of c from equation $(6)$ in equation $(5)$ gives

$y = \left(x + 1\right) \log \left|x + 1\right| - x + 3$ $\;\;\; \cdots \; (7)$

Equation $(7)$ is the particular solution of the given differential equation when $y \left(0\right) = 3$.

Differential Equations

Solve the differential equation $x \; y \; \dfrac{dy}{dx} = y + 2$.
Also find the particular solution when the initial conditions are $y \left(2\right) = 0$.


The given differential equation is $\;\;$ $x \; y \; \dfrac{dy}{dx} = y + 2$

i.e. $\dfrac{y \; dy}{y + 2} = \dfrac{dx}{x}$ $\;\;\; \cdots \; (1)$

Integrating equation $(1)$ gives

$\displaystyle \int \dfrac{y \; dy}{y + 2} = \int \dfrac{dx}{x}$ $\;\;\; \cdots \; (2)$

$\begin{aligned} \text{Now, } \int \dfrac{y}{y + 2} dy & = \int \dfrac{y + 2}{y + 2} \; dy - 2 \int \dfrac{dy}{y + 2} \\\\ & = \int dy - 2 \int \dfrac{dy}{y + 2} \\\\ & = y - 2 \log \left|y + 2\right| + \log \left|c_1\right| \;\;\; \cdots \; (3a) \end{aligned}$

and $\displaystyle \int \dfrac{dx}{x} = \log \left|x\right| + \log \left|c_2\right|$ $\;\;\; \cdots \; (3b)$

$\therefore$ $\;$ In view of equations $(3a)$ and $(3b)$, equation $(2)$ becomes

$y - 2 \log \left|y + 2\right| + \log \left|c_1\right| = \log \left|x\right| + \log \left|c_2\right|$

i.e. $y - 2 \log \left|y + 2\right| = \log \left|x\right| + \log \left|c_2\right| - \log \left|c_1\right|$

i.e. $y - 2 \log \left|y + 2\right| = \log \left|x\right| + \log \left|\dfrac{c_2}{c_1}\right|$

i.e. $y - 2 \log \left|y + 2\right| = \log \left|x\right| + \log \left|c\right|$ $\;$ where $c = \dfrac{c_2}{c_1}$

i.e. $y = \log \left|x\right| + \log \left|\left(y + 2\right)^2\right| + \log \left|c\right|$

i.e. $y = \log \left|c \; x \; \left(y + 2\right)^2\right|$

i.e. $e^y = c \; x \; \left(y + 2\right)^2$ $\;\;\; \cdots \; (4)$

Equation $(4)$ is the general solution of the given differential equation.

Given: when $x = 2$, $y = 0$

Substituting the values of x and y in equation $(4)$ gives

$e^0 = c \times 2 \times \left(0 + 2\right)^2$

i.e. $1 = 8 c$ $\implies$ $c = \dfrac{1}{8}$ $\;\;\; \cdots \; (5)$

Substituting the value of c from equation $(5)$ in equation $(4)$ gives

$e^y = \dfrac{1}{8} \times x \times \left(y + 2\right)^2$

i.e. $8 e^y = x \left(y + 2\right)^2$ $\;\;\; \cdots \; (6)$

Equation $(6)$ is the particular solution of the given differential equation when $y \left(2\right) = 0$.