Chapter 9 Differential Equations

He who seeks for methods without having a definite problem in mind seeks for the most part in vain. - D. HILBERT

9.1 Introduction

In Class XI and in Chapter 5 of the present book, we discussed how to differentiate a given function $f$ with respect to an independent variable, i.e., how to find $f^{\prime}(x)$ for a given function $f$ at each $x$ in its domain of definition. Further, in the chapter on Integral Calculus, we discussed how to find a function $f$ whose derivative is the function $g$, which may also be formulated as follows:

For a given function $g$, find a function $f$ such that

$$ \frac{d y}{d x}=g(x) \text { where } y=f(x) $$

Henri Poincare $(1854-1912)$

An equation of the form (1) is known as a differential equation. A formal definition will be given later.

These equations arise in a variety of applications, may it be in Physics, Chemistry, Biology, Anthropology, Geology, Economics etc. Hence, an indepth study of differential equations has assumed prime importance in all modern scientific investigations.

In this chapter, we will study some basic concepts related to differential equation, general and particular solutions of a differential equation, formation of differential equations, some methods to solve a first order - first degree differential equation and some applications of differential equations in different areas.

9.2 Basic Concepts

We are already familiar with the equations of the type:

$$ \begin{align*} x^{2}-3 x+3=0 \tag{1} \\ \sin x+\cos x=0 \tag{2} \\ x+y=7 \tag{3} \end{align*} $$

Let us consider the equation:

$$ \begin{equation*} x \frac{d y}{d x}+y=0 \tag{4} \end{equation*} $$

We see that equations (1), (2) and (3) involve independent and/or dependent variable (variables) only but equation (4) involves variables as well as derivative of the dependent variable $y$ with respect to the independent variable $x$. Such an equation is called a differential equation.

In general, an equation involving derivative (derivatives) of the dependent variable with respect to independent variable (variables) is called a differential equation.

A differential equation involving derivatives of the dependent variable with respect to only one independent variable is called an ordinary differential equation, e.g.,

$ 2 \frac{d^{2} y}{d x^{2}}+(\frac{d y}{d x})^{3}=0 \text{ is an ordinary differential equation } $

Of course, there are differential equations involving derivatives with respect to more than one independent variables, called partial differential equations but at this stage we shall confine ourselves to the study of ordinary differential equations only. Now onward, we will use the term ‘differential equation’ for ‘ordinary differential equation’.

Note

1. We shall prefer to use the following notations for derivatives:

$$ \frac{d y}{d x}=y^{\prime}, \frac{d^{2} y}{d x^{2}}=y^{\prime \prime}, \frac{d^{3} y}{d x^{3}}=y^{\prime \prime \prime} $$

2. For derivatives of higher order, it will be inconvenient to use so many dashes as supersuffix therefore, we use the notation $y_n$ for $n$th order derivative $\frac{d^{n} y}{d x^{n}}$.

9.2.1 Order of a differential equation

Order of a differential equation is defined as the order of the highest order derivative of the dependent variable with respect to the independent variable involved in the given differential equation.

Consider the following differential equations:

$$ \begin{align*} & \frac{d y}{d x}=e^{x} \tag{6}\\ & \frac{d^{2} y}{d x^{2}}+y=0 \tag{7}\\ & \frac{d^{3} y}{d x^{3}}+x^{2}\left(\frac{d^{2} y}{d x^{2}}\right)^{3}=0 \tag{8} \end{align*} $$

The equations (6), (7) and (8) involve the highest derivative of first, second and third order respectively. Therefore, the order of these equations are 1,2 and 3 respectively.

9.2.2 Degree of a differential equation

To study the degree of a differential equation, the key point is that the differential equation must be a polynomial equation in derivatives, i.e., $y^{\prime}, y^{\prime \prime}, y^{\prime \prime \prime}$ etc. Consider the following differential equations:

$ \begin{aligned} \frac{d^{3} y}{d x^{3}}+2(\frac{d^{2} y}{d x^{2}})^{2}-\frac{d y}{d x}+y & =0 \\ (\frac{d y}{d x})^{2}+(\frac{d y}{d x})-\sin ^{2} y & =0 \\ \frac{d y}{d x}+\sin (\frac{d y}{d x}) & =0 \end{aligned} $

We observe that equation (9) is a polynomial equation in $y^{\prime \prime \prime}, y^{\prime \prime}$ and $y^{\prime}$, equation (10) is a polynomial equation in $y^{\prime}$ (not a polynomial in $y$ though). Degree of such differential equations can be defined. But equation (11) is not a polynomial equation in $y^{\prime}$ and degree of such a differential equation can not be defined.

By the degree of a differential equation, when it is a polynomial equation in derivatives, we mean the highest power (positive integral index) of the highest order derivative involved in the given differential equation.

In view of the above definition, one may observe that differential equations (6), (7), (8) and (9) each are of degree one, equation (10) is of degree two while the degree of differential equation (11) is not defined.

Note Order and degree (if defined) of a differential equation are always positive integers.

Example 1 Find the order and degree, if defined, of each of the following differential equations:

(i) $\frac{d y}{d x}-\cos x=0$

(ii) $x y \frac{d^{2} y}{d x^{2}}+x(\frac{d y}{d x})^{2}-y \frac{d y}{d x}=0$

(iii) $y^{\prime \prime \prime}+y^{2}+e^{y^{\prime}}=0$

Solution

(i) The highest order derivative present in the differential equation is $\frac{d y}{d x}$, so its order is one. It is a polynomial equation in $y^{\prime}$ and the highest power raised to $\frac{d y}{d x}$ is one, so its degree is one.

(ii) The highest order derivative present in the given differential equation is $\frac{d^{2} y}{d x^{2}}$, so its order is two. It is a polynomial equation in $\frac{d^{2} y}{d x^{2}}$ and $\frac{d y}{d x}$ and the highest power raised to $\frac{d^{2} y}{d x^{2}}$ is one, so its degree is one.

(iii) The highest order derivative present in the differential equation is $y^{\prime \prime \prime}$, so its order is three. The given differential equation is not a polynomial equation in its derivatives and so its degree is not defined.

9.3 General and Particular Solutions of a Differential Equation

In earlier Classes, we have solved the equations of the type:

$$ \begin{align*} x^{2}+1=0 \tag{1} \\ \sin ^{2} x-\cos x=0 \tag{2} \end{align*} $$

Solution of equations (1) and (2) are numbers, real or complex, that will satisfy the given equation i.e., when that number is substituted for the unknown $x$ in the given equation, L.H.S. becomes equal to the R.H.S..

Now consider the differential equation

$\frac{d^{2} y}{d x^{2}}+y=0$

In contrast to the first two equations, the solution of this differential equation is a function $\phi$ that will satisfy it i.e., when the function $\phi$ is substituted for the unknown $y$ (dependent variable) in the given differential equation, L.H.S. becomes equal to R.H.S..

The curve $y=\phi(x)$ is called the solution curve (integral curve) of the given differential equation. Consider the function given by

$$ \begin{equation*} y=\phi(x)=a \sin (x+b) \tag{4} \end{equation*} $$

where $a, b \in \mathbf{R}$. When this function and its derivative are substituted in equation (3), L.H.S. = R.H.S.. So it is a solution of the differential equation (3).

Let $a$ and $b$ be given some particular values say $a=2$ and $b=\frac{\pi}{4}$, then we get a function

$$ \begin{equation*} y=\phi _{1}(x)=2 \sin \left(x+\frac{\pi}{4}\right) \tag{5} \end{equation*} $$

When this function and its derivative are substituted in equation (3) again L.H.S. = R.H.S.. Therefore $\phi_1$ is also a solution of equation (3).

Function $\phi$ consists of two arbitrary constants (parameters) $a, b$ and it is called general solution of the given differential equation. Whereas function $\phi_1$ contains no arbitrary constants but only the particular values of the parameters $a$ and $b$ and hence is called a particular solution of the given differential equation. The solution which contains arbitrary constants is called the general solution (primitive) of the differential equation.

The solution free from arbitrary constants i.e., the solution obtained from the general solution by giving particular values to the arbitrary constants is called a particular solution of the differential equation.

Example 2 Verify that the function $y=e^{-3 x}$ is a solution of the differential equation $\frac{d^{2} y}{d x^{2}}+\frac{d y}{d x}-6 y=0$

Solution Given function is $y=e^{-3 x}$. Differentiating both sides of equation with respect to $x$, we get

$$ \begin{equation*} \frac{d y}{d x}=3 e^{-3 x} \tag{1} \end{equation*} $$

Now, differentiating (1) with respect to $x$, we have

$$ \frac{d^{2} y}{d x^{2}}=9 e^{-3 x} $$

Substituting the values of $\frac{d^{2} y}{d x^{2}}, \frac{d y}{d x}$ and $y$ in the given differential equation, we get

L.H.S. $=9 e^{-3 x}+(-3 e^{-3 x})-6 . e^{-3 x}=9 e^{-3 x}-9 e^{-3 x}=0=$ R.H.S..

Therefore, the given function is a solution of the given differential equation.

Example 3 Verify that the function $y=a \cos x+b \sin x$, where, $a, b \in \mathbf{R}$ is a solution of the differential equation $\frac{d^{2} y}{d x^{2}}+y=0$

Solution The given function is

$$ \begin{equation*} y=a \cos x+b \sin x \tag{1} \end{equation*} $$

Differentiating both sides of equation (1) with respect to $x$, successively, we get

$$ \begin{aligned} \frac{d y}{d x} & =-a \sin x+b \cos x \\ \frac{d^{2} y}{d x^{2}} & =-a \cos x-b \sin x \end{aligned} $$

Substituting the values of $\frac{d^{2} y}{d x^{2}}$ and $y$ in the given differential equation, we get

L.H.S. $=(-a \cos x-b \sin x)+(a \cos x+b \sin x)=0=$ R.H.S.

Therefore, the given function is a solution of the given differential equation.

9.4 Methods of Solving First Order, First Degree Differential Equations

In this section we shall discuss three methods of solving first order first degree differential equations.

9.4.1 Differential equations with variables separable

A first order-first degree differential equation is of the form

$$ \begin{equation*} \frac{d y}{d x}=\mathrm{F}(x, y) \tag{1} \end{equation*} $$

If $F(x, y)$ can be expressed as a product $g(x) h(y)$, where, $g(x)$ is a function of $x$ and $h(y)$ is a function of $y$, then the differential equation (1) is said to be of variable separable type. The differential equation (1) then has the form

$$ \begin{equation*} \frac{d y}{d x}=h(y) \cdot g(x) \tag{2} \end{equation*} $$

If $h(y) \neq 0$, separating the variables, (2) can be rewritten as

$$ \begin{equation*} \frac{1}{h(y)} d y=g(x) d x \tag{3} \end{equation*} $$

Integrating both sides of (3), we get

$$ \begin{equation*} \int \frac{1}{h(y)} d y=\int g(x) d x \tag{4} \end{equation*} $$

Thus, (4) provides the solutions of given differential equation in the form

$$ \begin{equation*} \mathrm{H}(y)=\mathrm{G}(x)+\mathrm{C} \tag{5} \end{equation*} $$

Here, $H(y)$ and $G(x)$ are the anti derivatives of $\frac{1}{h(y)}$ and $g(x)$ respectively and $C$ is the arbitrary constant.

Example 4 Find the general solution of the differential equation $\frac{d y}{d x}=\frac{x+1}{2-y},(y \neq 2)$

Solution We have

$$ \begin{equation*} \frac{d y}{d x}=\frac{x+1}{2-y}(y \neq 2) \tag{1} \end{equation*} $$

Separating the variables in equation (1), we get

$$ \begin{equation*} (2-y) d y=(x+1) d x \tag{2} \end{equation*} $$

Integrating both sides of equation (2), we get

$$ \int(2-y) d y=\int(x+1) d x $$

$$ \text{ or } \qquad 2 y-\frac{y^{2}}{2}=\frac{x^{2}}{2}+x+\mathrm{C} _{1} $$

$$ \text{ or } \qquad x^{2}+y^{2}+2 x-4 y+2 \mathrm{C} _{1}=0 $$

$\text{ or } \qquad x^{2}+y^{2}+2 x-4 y+\mathrm{C}=0 \text { where } \mathrm{C}=2 \mathrm{C} _{1}$

which is the general solution of equation (1).

Example 5 Find the general solution of the differential equation $\frac{d y}{d x}=\frac{1+y^{2}}{1+x^{2}}$.

Solution Since $1+y^{2} \neq 0$, therefore separating the variables, the given differential equation can be written as

$$ \begin{equation*} \frac{d y}{1+y^{2}}=\frac{d x}{1+x^{2}} \tag{1} \end{equation*} $$

Integrating both sides of equation (1), we get

$$ \int \frac{d y}{1+y^{2}}=\int \frac{d x}{1+x^{2}} $$

$$\text{ or }\qquad \tan ^{-1} y=\tan ^{-1} x+\mathrm{C} $$

which is the general solution of equation (1).

Example 6 Find the particular solution of the differential equation $\frac{d y}{d x}=-4 x y^{2}$ given that $y=1$, when $x=0$.

Solution If $y \neq 0$, the given differential equation can be written as

$$ \begin{equation*} \frac{d y}{y^{2}}=-4 x d x \tag{1} \end{equation*} $$

Integrating both sides of equation (1), we get

$ \begin{aligned} \int \frac{d y}{y^{2}} & =-4 \int x d x \\ \frac{1}{y} & =-2 x^{2}+C \\ \text{ or } \quad y & =\frac{1}{2 x^{2}-C} \end{aligned} $

Substituting $y=1$ and $x=0$ in equation (2), we get, $C=-1$.

Now substituting the value of $C$ in equation (2), we get the particular solution of the given differential equation as $y=\frac{1}{2 x^{2}+1}$.

Example 7 Find the equation of the curve passing through the point $(1,1)$ whose differential equation is $x d y=(2 x^{2}+1) d x(x \neq 0)$.

Solution The given differential equation can be expressed as

$\text{ or } \qquad dy $ $ =(\frac{2x^2+1}{x}) dx \\ dy =(2 x+\frac{1}{x}) d x $

Integrating both sides of equation (1), we get

$$ \int d y=\int\left(2 x+\frac{1}{x}\right) d x $$

$ \begin{equation*} \text{ or }\qquad y=x^{2}+\log |x|+\mathrm{C} \tag{2} \end{equation*} $

Equation (2) represents the family of solution curves of the given differential equation but we are interested in finding the equation of a particular member of the family which passes through the point $(1,1)$. Therefore substituting $x=1, y=1$ in equation (2), we get $C=0$.

Now substituting the value of $C$ in equation (2) we get the equation of the required curve as $y=x^{2}+\log |x|$.

Example 8 Find the equation of a curve passing through the point $(-2,3)$, given that the slope of the tangent to the curve at any point $(x, y)$ is $\frac{2 x}{y^{2}}$.

Solution We know that the slope of the tangent to a curve is given by $\frac{d y}{d x}$.

$$ \begin{equation*} \frac{d y}{d x}=\frac{2 x}{y^{2}} \tag{1} \end{equation*} $$

Separating the variables, equation (1) can be written as

$$ \begin{equation*} y^{2} d y=2 x d x \tag{2} \end{equation*} $$

Integrating both sides of equation (2), we get

$$ \int y^{2} d y=\int 2 x d x $$

$$ \begin{equation*} \text{ or } \qquad \frac{y^{3}}{3}=x^{2}+\mathrm{C} \tag{3} \end{equation*} $$

Substituting $x=-2, y=3$ in equation (3), we get $C=5$.

Substituting the value of $C$ in equation (3), we get the equation of the required curve as

$$ \frac{y^{3}}{3}=x^{2}+5 \quad \text{ or } \quad y=(3 x^{2}+15)^{\frac{1}{3}} $$

Example 9 In a bank, principal increases continuously at the rate of 5% per year. In how many years Rs 1000 double itself?

Solution Let $P$ be the principal at any time $t$. According to the given problem,

$$ \begin{align*} & \frac{d \mathrm{P}}{d t}=\left(\frac{5}{100}\right) \times \mathrm{P} \\ & \frac{d \mathrm{P}}{d t}=\frac{\mathrm{P}}{20} \tag{1} \end{align*} $$

separating the variables in equation (1), we get

$$ \begin{equation*} \frac{d \mathrm{P}}{\mathrm{P}}=\frac{d t}{20} \tag{2} \end{equation*} $$

Integrating both sides of equation (2), we get

$$ \begin{aligned} \text{ or } \qquad \log P & =\frac{t}{20}+C_1 \\ P & =e^{\frac{t}{20}} \cdot e^{C_1} \end{aligned} $$

$$ \begin{equation*} \text{ or } \qquad \mathrm{P}=\mathrm{C} e^{\frac{t}{20}} \quad\left(\text { where } e^{\mathrm{C} _{1}}=\mathrm{C}\right) \tag{3} \end{equation*} $$

Now $\qquad \mathrm{P}=1000, \quad \text { when } t=0$

Substituting the values of $P$ and $t$ in (3), we get $C=1000$.

Therefore, equation (3), gives

$$ P=1000 e^{\frac{t}{20}} $$

Let $t$ years be the time required to double the principal. Then

$$ 2000=1000 e^{\frac{t}{20}} \Rightarrow t=20 \log _{e} 2 $$

9.4.2 Homogeneous differential equations

Consider the following functions in $x$ and $y$

$$ \begin{matrix} F_1(x, y)=y^{2}+2 x y, & F_2(x, y)=2 x-3 y, \\ F_3(x, y)=\cos (\frac{y}{x}), & F_4(x, y)=\sin x+\cos y \end{matrix} $$

If we replace $x$ and $y$ by $\lambda x$ and $\lambda y$ respectively in the above functions, for any nonzero constant $\lambda$, we get

$ \begin{aligned} & F_1(\lambda x, \lambda y)=\lambda^{2}(y^{2}+2 x y)=\lambda^{2} F_1(x, y) \\ & F_2(\lambda x, \lambda y)=\lambda(2 x-3 y)=\lambda F_2(x, y) \\ & F_3(\lambda x, \lambda y)=\cos (\frac{\lambda y}{\lambda x})=\cos (\frac{y}{x})=\lambda^{0} \quad F_3(x, y) \\ & F_4(\lambda x, \lambda y)=\sin \lambda x+\cos \lambda y \neq \lambda^{n} F_4(x, y), \text{ for any } n \in \mathbf{N} \end{aligned} $

Here, we observe that the functions $F_1, F_2, F_3$ can be written in the form $F(\lambda x, \lambda y)=\lambda^{n} F(x, y)$ but $F_4$ can not be written in this form. This leads to the following definition:

A function $F(x, y)$ is said to be homogeneous function of degree $n$ if $F(\lambda x, \lambda y)=\lambda^{n} F(x, y)$ for any nonzero constant $\lambda$.

We note that in the above examples, $F_1, F_2, F_3$ are homogeneous functions of degree 2, 1, 0 respectively but $F_4$ is not a homogeneous function.

We also observe that

$ \begin{aligned} & \qquad F_1(x, y)=x^{2}(\frac{y^{2}}{x^{2}}+\frac{2 y}{x})=x^{2} h_1(\frac{y}{x}) \\ & \qquad F_1(x, y)=y^{2}(1+\frac{2 x}{y})=y^{2} h_2(\frac{x}{y}) \\ & \text{or}\qquad F_2(x, y)=x^{1}(2-\frac{3 y}{x})=x^{1} h_3(\frac{y}{x}) \\ & \qquad F_2(x, y)=y^{1}(2 \frac{x}{y}-3)=y^{1} h_4(\frac{x}{y}) \\ & \qquad F_3(x, y)=x^{0} \cos (\frac{y}{x})=x^{0} h_5(\frac{y}{x}) \\ & \qquad F_4(x, y) \neq x^{n} h_6(\frac{y}{x}), \text{ for any } n \in \mathbf{N} \\ & \qquad F_4(x, y) \neq y^{n} h_7(\frac{x}{y}), \text{ for any } n \in \mathbf{N} \end{aligned} $

$$ \begin{aligned} & \text{or}\qquad\mathrm{F} _{4}(x, y) \neq x^{n} h _{6}\left(\frac{y}{x}\right), n \in \mathbf{N} \text { के किसी भी मान के लिए } \\ & \qquad \mathrm{F} _{4}(x, y) \neq y^{n} h _{7}\left(\frac{x}{y}\right), n \in \mathbf{N} \end{aligned} $$

Therefore, a function $F(x, y)$ is a homogeneous function of degree $n$ if A differential equation of the form $\frac{d y}{d x}=F(x, y)$ is said to be homogenous if $F(x, y)$ is a homogenous function of degree zero.

To solve a homogeneous differential equation of the type

$$ \mathrm{F}(x, y)=x^{n} g\left(\frac{y}{x}\right) \quad \text { or } \quad y^{n} h\left(\frac{x}{y}\right) $$

$$ \begin{equation*} \frac{d y}{d x}=\mathrm{F}(x, y)=g\left(\frac{y}{x}\right) \tag{1} \end{equation*} $$

We make the substitution $\qquad y=v \cdot x \tag{2}$

Differentiating equation (2) with respect to $x$, we get

$$ \frac{d y}{d x}=v+x \frac{d v}{d x} \tag{3} $$

Substituting the value of $\frac{d y}{d x}$ from equation (3) in equation (1), we get or

$$ v+x \frac{d v}{d x}=g(v) $$

$$ \begin{equation*} x \frac{d v}{d x}=g(v)-v \tag{4} \end{equation*} $$

Separating the variables in equation (4), we get

$$ \frac{d v}{g(v)-v}=\frac{d x}{x} \tag{5} $$

Integrating both sides of equation (5), we get

$$ \int \frac{d v}{g(v)-v}=\int \frac{1}{x} d x+C \tag{6} $$

Equation (6) gives general solution (primitive) of the differential equation (1) when we replace $v$ by $\frac{y}{x}$.

Note If the homogeneous differential equation is in the form $\frac{d x}{d y}=F(x, y)$ where, $F(x, y)$ is homogenous function of degree zero, then we make substitution $\frac{x}{y}=v$ i.e., $x=v y$ and we proceed further to find the general solution as discussed above by writing $\frac{d x}{d y}=F(x, y)=h(\frac{x}{y})$.

Example 10 Show that the differential equation $(x-y) \frac{d y}{d x}=x+2 y$ is homogeneous and solve it.

Solution The given differential equation can be expressed as

$$ \begin{equation*} \frac{d y}{d x}=\frac{x+2 y}{x-y} \tag{1} \end{equation*} $$

Let $$ \mathrm{F}(x, y)=\frac{x+2 y}{x-y} $$

Now $$ F(\lambda x, \lambda y)=\frac{\lambda(x+2 y)}{\lambda(x-y)}=\lambda^{0} \cdot f(x, y) $$

Therefore, $F(x, y)$ is a homogenous function of degree zero. So, the given differential equation is a homogenous differential equation.

Alternatively,

$$ \frac{d y}{d x}=(\frac{1+\frac{2 y}{x}}{1-\frac{y}{x}})=g(\frac{y}{x}) \tag{2} $$

R.H.S. of differential equation (2) is of the form $g(\frac{y}{x})$ and so it is a homogeneous function of degree zero. Therefore, equation (1) is a homogeneous differential equation. To solve it we make the substitution

$$ y=v x \tag{3} $$

Differentiating equation (3) with respect to, $x$ we get

$$ \frac{d y}{d x}=v+x \frac{d v}{d x} \tag{4} $$

Substituting the value of $y$ and $\frac{d y}{d x}$ in equation (1) we get

$$ v+x \frac{d v}{d x}=\frac{1+2 v}{1-v} $$

$\text{ or }\qquad x \frac{d v}{d x}=\frac{1+2 v}{1-v}-v $

$\text{ or }\qquad x \frac{d v}{d x}=\frac{v^{2}+v+1}{1-v} $

$\text{ or }\qquad \frac{v-1}{v^{2}+v+1} d v=\frac{-d x}{x} $

Integrating both sides of equation (5), we get

$$ \int \frac{v-1}{v^{2}+v+1} d v=-\int \frac{d x}{x} $$

$$\text{ or }\qquad \frac{1}{2} \int \frac{2 v+1-3}{v^{2}+v+1} d v=-\log |x|+C_1 $$

$$\text{ or }\qquad \frac{1}{2} \int \frac{2 v+1}{v^{2}+v+1} d v-\frac{3}{2} \int \frac{1}{v^{2}+v+1} d v=-\log |x|+C_1 $$

$$ \frac{1}{2} \log |v^{2}+v+1|-\frac{3}{2} \int \frac{1}{(v+\frac{1}{2})^{2}+(\frac{\sqrt{3}}{2})^{2}} d v=-\log |x|+C_1 $$

or $ \begin{aligned} & \frac{1}{2} \log |v^{2}+v+1|-\frac{3}{2} \cdot \frac{2}{\sqrt{3}} \tan ^{-1}(\frac{2 v+1}{\sqrt{3}})=-\log |x|+C_1 \\ & \frac{1}{2} \log |v^{2}+v+1|+\frac{1}{2} \log x^{2}=\sqrt{3} \tan ^{-1}(\frac{2 v+1}{\sqrt{3}})+C_1 \end{aligned} $

Replacing $v$ by $\frac{y}{x}$, we get

or $$ \frac{1}{2} \log |\frac{y^{2}}{x^{2}}+\frac{y}{x}+1|+\frac{1}{2} \log x^{2}=\sqrt{3} \tan ^{-1}(\frac{2 y+x}{\sqrt{3} x})+C_1 $$

$$ \frac{1}{2} \log |(\frac{y^{2}}{x^{2}}+\frac{y}{x}+1) x^{2}|=\sqrt{3} \tan ^{-1}(\frac{2 y+x}{\sqrt{3} x})+C_1 $$

or $$ \log |(y^{2}+x y+x^{2})|=2 \sqrt{3} \tan ^{-1}(\frac{2 y+x}{\sqrt{3} x})+2 C_1 $$

$$ \log |(x^{2}+x y+y^{2})|=2 \sqrt{3} \tan ^{-1}(\frac{x+2 y}{\sqrt{3} x})+C $$

which is the general solution of the differential equation (1)

Example 11 Show that the differential equation $x \cos (\frac{y}{x}) \frac{d y}{d x}=y \cos (\frac{y}{x})+x$ is homogeneous and solve it.

Solution The given differential equation can be written as

$$ \frac{d y}{d x}=\frac{y \cos (\frac{y}{x})+x}{x \cos (\frac{y}{x})} \tag{1} $$

It is a differential equation of the form $\frac{d y}{d x}=F(x, y)$.

Here $ F(x, y)=\frac{y \cos (\frac{y}{x})+x}{x \cos (\frac{y}{x})} $

Replacing $x$ by $\lambda x$ and $y$ by $\lambda y$, we get

$ F(\lambda x, \lambda y)=\frac{\lambda[y \cos (\frac{y}{x})+x]}{\lambda(x \cos \frac{y}{x})}=\lambda^{0}[F(x, y)] $

Thus, $F(x, y)$ is a homogeneous function of degree zero.Therefore, the given differential equation is a homogeneous differential equation.To solve it we make the substitution

$$ y=v x \tag{2} $$

Differentiating equation (2) with respect to $x$, we get

$$ \frac{d y}{d x}=v+x \frac{d v}{d x} \tag{3} $$

Substituting the value of $y$ and $\frac{d y}{d x}$ in equation (1), we get

$$ v+x \frac{d v}{d x}=\frac{v \cos v+1}{\cos v} $$

$$\text{ or }\qquad x \frac{d v}{d x}=\frac{v \cos v+1}{\cos v}-v $$

$$\text{ or }\qquad x \frac{d v}{d x}=\frac{1}{\cos v} $$

$$\text{ or }\qquad \cos v d v=\frac{d x}{x} $$

$$\text{ Therefore }\qquad \int \cos v d v=\int \frac{1}{x} d x $$

$\text{ or }\qquad \sin v=\log |x|+\log |\mathrm{C}| $ $ \sin v=\log |\mathrm{C} x| $

Replacing $v$ by $\frac{y}{x}$, we get

$$ \sin (\frac{y}{x})=\log |C x| $$

which is the general solution of the differential equation (1).

Example 12 Show that the differential equation $2 y e^{\frac{x}{y}} d x+(y-2 x e^{\frac{x}{y}}) d y=0$ is homogeneous and find its particular solution, given that, $x=0$ when $y=1$.

Solution The given differential equation can be written as

$$\text{ Let }\qquad \begin{equation*} \frac{d x}{d y}=\frac{2 x e^{\frac{x}{y}}-y}{2 y e^{\frac{x}{y}}} \tag{1} \end{equation*} $$

$$ \mathrm{F}(x, y)=\frac{2 x e^{\frac{x}{y}}-y}{2 y e^{\frac{x}{y}}} \text { तब } \mathrm{F}(\lambda x, \lambda y)=\frac{\lambda\left(2 x e^{\frac{x}{y}}-y\right)}{\lambda\left(2 y e^{\frac{x}{y}}\right)}=\lambda^{\circ}[\mathrm{F}(x, y)] $$

Thus, $F(x, y)$ is a homogeneous function of degree zero.

Therefore, the given differential equation is a homogeneous differential equation.

To solve it, we make the substitution $ x=v y $

Differentiating equation (2) with respect to $y$, we get

$$ \frac{d x}{d y}=v+y \frac{d v}{d y} \tag{2} $$

Substituting the value of $x$ and $\frac{d x}{d y}$ in equation (1), we get

or $ \begin{aligned} v+y \frac{d v}{d y} & =\frac{2 v e^{v}-1}{2 e^{v}} \\ y \frac{d v}{d y} & =\frac{2 v e^{v}-1}{2 e^{v}}-v \\ y \frac{d v}{d y} & =-\frac{1}{2 e^{v}} \\ 2 e^{v} d v & =\frac{-d y}{y} \\ \int 2 e^{v} \cdot d v & =-\int \frac{d y}{y} \\ 2 e^{v} & =-\log |y|+C \end{aligned} $

or and replacing $v$ by $\frac{x}{y}$, we get

$$ 2 e^{\frac{x}{y}}+\log |y|=C \tag{3} $$

Substituting $x=0$ and $y=1$ in equation (3), we get

$$ 2 e^{0}+\log |1|=C \Rightarrow C=2 $$

Substituting the value of $C$ in equation (3), we get

$$ 2 e^{\frac{x}{y}}+\log |y|=2 $$

which is the particular solution of the given differential equation.

Example 13 Show that the family of curves for which the slope of the tangent at any point $(x, y)$ on it is $\frac{x^{2}+y^{2}}{2 x y}$, is given by $x^{2}-y^{2}=c x$.

Solution We know that the slope of the tangent at any point on a curve is $\frac{d y}{d x}$.

$$ \begin{equation*} \text{ Therefore, } \frac{d y}{d x}=\frac{x^{2}+y^{2}}{2 x y} \text { or } \frac{d y}{d x}=\frac{1+\frac{y^{2}}{x^{2}}}{\frac{2 y}{x}} \tag{1} \end{equation*} $$

Clearly, (1) is a homogenous differential equation. To solve it we make substitution $ y=v x $ Differentiating $y=v x$ with respect to $x$,

we get $$ \begin{aligned} & \frac{d y}{d x}=v+x \frac{d v}{d x} \text { or } v+x \frac{d v}{d x}=\frac{1+v^{2}}{2 v} \\ & x \frac{d v}{d x}=\frac{1-v^{2}}{2 v} \text { or } \frac{2 v}{1-v^{2}} d v=\frac{d x}{x} \text { or } \frac{2 v}{v^{2}-1} d v=-\frac{d x}{x} \end{aligned} $$

$$ \text{ Therefore } \qquad \int \frac{2 v}{v^{2}-1} d v=-\int \frac{1}{x} d x $$

$$ \text{ or } \qquad \log |v^{2}-1|=-\log |x|+\log |C_1| $$

$$ \text{ or } \qquad \log |(v^{2}-1)(x)|=\log |C_1| $$

$$ \text{ or } \qquad (v^{2}-1) x= \pm C_1 $$

Replacing $v$ by $\frac{y}{x}$, we get

$$ (\frac{y^{2}}{x^{2}}-1) x= \pm C_1 $$

$$ \text{ or } \qquad (y^{2}-x^{2})= \pm C_1 x \text{ or } x^{2}-y^{2}=C x $$

9.4.3 Linear differential equations

$$ \frac{d y}{d x}+\mathrm{P} y=\mathrm{Q} $$

A differential equation of the from where, $P$ and $Q$ are constants or functions of $x$ only, is known as a first order linear differential equation. Some examples of the first order linear differential equation are

$ \begin{aligned} \frac{d y}{d x}+y & =\sin x \\ \frac{d y}{d x}+(\frac{1}{x}) y & =e^{x} \\ \frac{d y}{d x}+(\frac{y}{x \log x}) & =\frac{1}{x} \end{aligned} $

Another form of first order linear differential equation is

$\frac{d x}{d y}+\mathrm{P} _{1} x=\mathrm{Q} _{1}$

where, $\mathrm{P} _{1}$ and $\mathrm{Q} _{1}$ are constants or functions of $y$ only. Some examples of this type of differential equation are

$ \begin{matrix} \frac{d x}{d y}+x=\cos y \\ \frac{d x}{d y}+\frac{-2 x}{y}=y^{2} e^{-y} \end{matrix} $

To solve the first order linear differential equation of the type

$$ \begin{equation*} \frac{d y}{d x}+\mathrm{P} y=\mathrm{Q} \tag{1} \end{equation*} $$

Multiply both sides of the equation by a function of $x$ say $g(x)$ to get

$$ \begin{equation*} g(x) \frac{d y}{d x}+\mathrm{P} \cdot g(x) y=\mathrm{Q} \cdot g(x) \tag{2} \end{equation*} $$

Choose $g(x)$ in such a way that R.H.S. becomes a derivative of $y . g(x)$.

$$ \text{ i.e. } \qquad g(x) \frac{d y}{d x}+\mathrm{P} \cdot g(x) y=\frac{d}{d x}[y \cdot g(x)] $$

$$ \text{ or } \qquad g(x) \frac{d y}{d x}+\mathrm{P} \cdot g(x) y=g(x) \frac{d y}{d x}+y g^{\prime}(x) $$

$\Rightarrow \quad$ P. $g(x)=g^{\prime}(x)$

$$ \text{ or } \qquad \mathrm{P}=\frac{g^{\prime}(x)}{g(x)} $$

Integrating both sides with respect to $x$, we get

$ \text{ or } \qquad \begin{aligned} or \quad\quad\quad\quad\int P d x & =\int \frac{g^{\prime}(x)}{g(x)} d x \\ \quad\quad\quad\quad\int P \cdot d x & =\log (g(x)) \\ g(x) & =e^{\int P d x} \end{aligned} $

On multiplying the equation (1) by $g(x)=e^{\int P d x}$, the L.H.S. becomes the derivative of some function of $x$ and $y$. This function $g(x)=e^{\int P d x}$ is called Integrating Factor (I.F.) of the given differential equation.

Substituting the value of $g(x)$ in equation (2), we get

$ e^{\int P d x} \frac{d y}{d x}+P e^{\int P d x} y=Q \cdot e^{\int P d x} $

or $ \frac{d}{d x}(y e^{\int P d x})=Q e^{\int P d x} $

Integrating both sides with respect to $x$, we get

or $ \begin{aligned} y \cdot e^{\int P d x} & =\int(Q \cdot e^{\int P d x}) d x \\ y & =e^{-\int P d x} \cdot \int(Q \cdot e^{\int P d x}) d x+C \end{aligned} $

which is the general solution of the differential equation.

Steps involved to solve first order linear differential equation:

(i) Write the given differential equation in the form $\frac{d y}{d x}+P y=Q$ where $P, Q$ are constants or functions of $x$ only.

(ii) Find the Integrating Factor (I.F) $=e^{\int P d x}$.

(iii) Write the solution of the given differential equation as

$$ y(I . F)=\int(Q \times I . F) d x+C $$

In case, the first order linear differential equation is in the form $\frac{d x}{d y}+P_1 x=Q_1$, where, $P_1$ and $Q_1$ are constants or functions of $y$ only. Then I.F $=e^{P_1 d y}$ and the solution of the differential equation is given by

$$ x \cdot(I \cdot F)=\int(Q_1 \times I \cdot F) d y+C $$

Example 14 Find the general solution of the differential equation $\frac{d y}{d x}-y=\cos x$.

Solution Given differential equation is of the form

$$ \frac{d y}{d x}+P y=Q \text{, where } P=-1 \text{ and } Q=\cos x $$

Therefore $\text{ I. } F=e^{\int-1 d x}=e^{-x}$

Multiplying both sides of equation by I.F, we get

$$ \begin{aligned} e^{-x} \frac{d y}{d x}-e^{-x} y & =e^{-x} \cos x \\ \frac{d y}{d x}(y e^{-x}) & =e^{-x} \cos x \end{aligned} $$

On integrating both sides with respect to $x$, we get

$$ \begin{equation*} y e^{-x}=\int e^{-x} \cos x d x+\mathrm{C} \tag{1} \end{equation*} $$

$$ \begin{aligned} \text{ Let }\qquad & =-\cos x e^{-x}-\int \sin x e^{-x} d x \\ & =-\cos x e^{-x}-[\sin x(-e^{-x})-\int \cos x(-e^{-x}) d x] \\ & =-\cos x e^{-x}+\sin x e^{-x}-\int \cos x e^{-x} d x \\ I & =-e^{-x} \cos x+\sin x e^{-x}-I \\ 2 I & =(\sin x-\cos x) e^{-x} \\ I & =\frac{(\sin x-\cos x) e^{-x}}{2} \end{aligned} $$

Substituting the value of I in equation (1), we get

$ \begin{aligned} \text{ or }\qquad y e^{-x} & =(\frac{\sin x-\cos x}{2}) e^{-x}+C \\ y & =(\frac{\sin x-\cos x}{2})+C e^{x} \end{aligned} $

which is the general solution of the given differential equation.

Example 15 Find the general solution of the differential equation $x \frac{d y}{d x}+2 y=x^{2}(x \neq 0)$.

Solution The given differential equation is

$ x \frac{d y}{d x}+2 y=x^{2} $

Dividing both sides of equation (1) by $x$, we get

$$ \frac{d y}{d x}+\frac{2}{x} y=x $$

which is a linear differential equation of the type $\frac{d y}{d x}+P y=Q$, where $P=\frac{2}{x}$ and $Q=x$.

$\text{ So } \text{ I.F }=e^{\int \frac{2}{x} d x}=e^{2 \log x}=e^{\log x^{2}}=x^{2}[\text{ as } e^{\log f(x)}=f(x)] $

Therefore, solution of the given equation is given by

$ \begin{matrix} y \cdot x^{2}=\int(x)(x^{2}) d x+C=\int x^{3} d x+C \\ y=\frac{x^{2}}{4}+C x^{-2} \end{matrix} $

which is the general solution of the given differential equation.

Example 16 Find the general solution of the differential equation $y d x-(x+2 y^{2}) d y=0$.

Solution The given differential equation can be written as

$$ \frac{d x}{d y}-\frac{x}{y}=2 y $$

This is a linear differential equation of the type $\frac{d x}{d y}+P_1 x=Q_1$, where $P_1=-\frac{1}{y}$ and $Q_1=2 y$. Therefore I.F $=e^{\int-\frac{1}{y} d y}=e^{-\log y}=e^{\log (y)^{-1}}=\frac{1}{y}$

Hence, the solution of the given differential equation is

$ \begin{aligned} \text{ or }\qquad x \frac{1}{y} & =\int(2 y)(\frac{1}{y}) d y+C \\ \frac{x}{y} & =\int(2 d y)+C \\ \frac{x}{y} & =2 y+C \\ x & =2 y^{2}+C y \end{aligned} $

which is a general solution of the given differential equation.

Example 17 Find the particular solution of the differential equation given that $y=0$ when $x=\frac{\pi}{2}$.

$$ \frac{d y}{d x}+y \cot x=2 x+x^{2} \cot x(x \neq 0) $$

Solution The given equation is a linear differential equation of the type $\frac{d y}{d x}+P y=Q$, where $P=\cot x$ and $Q=2 x+x^{2} \cot x$. Therefore

$ \text{ I.F }=e^{\int \cot x d x}=e^{\log \sin x}=\sin x $

Hence, the solution of the differential equation is given by

$ y \cdot \sin x=\int(2 x+x^{2} \cot x) \sin x d x+C $

$ \begin{aligned} & \text{ or } \quad y \sin x=\int 2 x \sin x d x+\int x^{2} \cos x d x+C \\ & \text{ or } \quad y \sin x=\sin x(\frac{2 x^{2}}{2})-\int \cos x(\frac{2 x^{2}}{2}) d x+\int x^{2} \cos x d x+C \\ & \text{ or } \quad y \sin x=x^{2} \sin x-\int x^{2} \cos x d x+\int x^{2} \cos x d x+C \\ & \text{ or } \quad y \sin x=x^{2} \sin x+C \end{aligned} $

Substituting $y=0$ and $x=\frac{\pi}{2}$ in equation (1), we get

$$ 0=\left(\frac{\pi}{2}\right)^{2} \sin \left(\frac{\pi}{2}\right)+C $$

$$ \text{ or }\qquad \mathrm{C}=\frac{-\pi^{2}}{4} $$ Substituting the value of $C$ in equation (1), we get

$ \begin{aligned} \text{ or }\qquad y \sin x & =x^{2} \sin x-\frac{\pi^{2}}{4} \\ y & =x^{2}-\frac{\pi^{2}}{4 \sin x}(\sin x \neq 0) \end{aligned} $

which is the particular solution of the given differential equation.

Example 18 Find the equation of a curve passing through the point $(0,1)$. If the slope of the tangent to the curve at any point $(x, y)$ is equal to the sum of the $x$ coordinate (abscissa) and the product of the $x$ coordinate and $y$ coordinate (ordinate) of that point.

Solution We know that the slope of the tangent to the curve is $\frac{d y}{d x}$.

$$ \begin{align*} \text{ Therefore, }\qquad & \frac{d y}{d x}=x+x y \\ & \frac{d y}{d x}-x y=x \tag{1} \end{align*} $$

This is a linear differential equation of the type $\frac{d y}{d x}+P y=Q$, where $P=-x$ and $Q=x$.

$ \text{ Therefore, }\qquad \text{ I. } F=e^{\int-x d x}=e^{\frac{-x^{2}}{2}} $

Hence, the solution of equation is given by

$$ \begin{equation*} \text{ Let }\qquad y \cdot e^{\frac{-x^{2}}{2}}=\int(x)\left(e^{\frac{-x^{2}}{2}}\right) d x+\mathrm{C} \tag{2} \end{equation*} $$

$$ \mathrm{I}=\int(x) e^{\frac{-x^{2}}{2}} d x $$

Let $\frac{-x^{2}}{2}=t$, then $-x d x=d t$ or $x d x=-d t$.

Therefore, $\quad I=-\int e^{t} d t=-e^{t}=-e^{\frac{-x^{2}}{2}}$

Substituting the value of I in equation (2), we get

$$ \begin{align*} \text{ or } & y e^{\frac{-x^{2}}{2}}=-e^{\frac{-x^{2}}{2}}+\mathrm{C} \\ & y=-1+\mathrm{C} e^{\frac{x^{2}}{2}} \tag{3} \end{align*} $$

Now (3) represents the equation of family of curves. But we are interested in finding a particular member of the family passing through $(0,1)$. Substituting $x=0$ and $y=1$ in equation (3) we get

$$ 1=-1+C \cdot e^{0} \text{ or } C=2 $$

Substituting the value of $C$ in equation (3), we get

$$ y=-1+2 e^{\frac{x^{2}}{2}} $$

which is the equation of the required curve.

Miscellaneous Examples

Example 19 Verify that the function $y=c_1 e^{a x} \cos b x+c_2 e^{a x} \sin b x$, where $c_1, c_2$ are arbitrary constants is a solution of the differential equation

$$ \frac{d^{2} y}{d x^{2}}-2 a \frac{d y}{d x}+(a^{2}+b^{2}) y=0 $$

Solution The given function is

$$ \begin{equation*} y=e^{a x}\left[c _{1} \cos b x+c _{2} \sin b x\right] \tag{1} \end{equation*} $$

Differentiating both sides of equation (1) with respect to $x$, we get

$$ \begin{align*} & \frac{d y}{d x}=e^{a x}\left[-b c _{1} \sin b x+b c _{2} \cos b x\right]+\left[c _{1} \cos b x+c _{2} \sin b x\right] e^{a x} \cdot a \\ & \frac{d y}{d x}=e^{a x}\left[\left(b c _{2}+a c _{1}\right) \cos b x+\left(a c _{2}-b c _{1}\right) \sin b x\right] \tag{2} \end{align*} $$

Differentiating both sides of equation (2) with respect to $x$, we get

$ \begin{aligned} \frac{d^{2} y}{d x^{2}}= & e^{a x}[(b c_2+a c_1)(-b \sin b x)+(a c_2-b c_1)(b \cos b x)] \\ & +[(b c_2+a c_1) \cos b x+(a c_2-b c_1) \sin b x] e^{a x} \cdot a \\ = & e^{a x}[(a^{2} c_2-2 a b c_1-b^{2} c_2) \sin b x+(a^{2} c_1+2 a b c_2-b^{2} c_1) \cos b x] \end{aligned} $

Substituting the values of $\frac{d^{2} y}{d x^{2}}, \frac{d y}{d x}$ and $y$ in the given differential equation, we get

$ \begin{aligned} \text{ L.H.S. }= & .e^{a x}[a^{2} c_2-2 a b c_1-b^{2} c_2) \sin b x+(a^{2} c_1+2 a b c_2-b^{2} c_1) \cos b x] \\ & -2 a e^{a x}[(b c_2+a c_1) \cos b x+(a c_2-b c_1) \sin b x] \\ & +(a^{2}+b^{2}) e^{a x}[c_1 \cos b x+c_2 \sin b x] \\ = & e^{a x} \begin{bmatrix} (a^{2} c_2-2 a b c_1-b^{2} c_2-2 a^{2} c_2+2 a b c_1+a^{2} c_2+b^{2} c_2) \sin b x \\ +(a^{2} c_1+2 a b c_2-b^{2} c_1-2 a b c_2-2 a^{2} c_1+a^{2} c_1+b^{2} c_1) \cos b x \end{bmatrix} \\ = & e^{a x}[0 \times \sin b x+0 \cos b x]=e^{a x} \times 0=0=\text{ R.H.S. } \end{aligned} $

Hence, the given function is a solution of the given differential equation.

Example 20 Find the particular solution of the differential equation $\log (\frac{d y}{d x})=3 x+4 y$ given that $y=0$ when $x=0$.

Solution The given differential equation can be written as

$ \frac{d y}{d x}=e^{(3 x+4 y)} $

$ \frac{d y}{d x}=e^{3 x} \cdot e^{4 y} $

Separating the variables, we get

$$ \frac{d y}{e^{4 y}}=e^{3 x} d x $$

$$\text{ Therefore } \int e^{-4 y} d y=\int e^{3 x} d x $$

$$\text{ or } \frac{e^{-4 y}}{-4}=\frac{e^{3 x}}{3}+C $$

$$\text{ or } 4 e^{3 x}+3 e^{-4 y}+12 C=0 \qquad\text{(2)} $$

Substituting $x=0$ and $y=0$ in (2), we get

$$ 4+3+12 C=0 \text{ or } C=\frac{-7}{12} $$

Substituting the value of $C$ in equation (2), we get

$$ 4 e^{3 x}+3 e^{-4 y}-7=0 $$

which is a particular solution of the given differential equation.

Example 21 Solve the differential equation

$$ (x d y-y d x) y \sin (\frac{y}{x})=(y d x+x d y) x \cos (\frac{y}{x}) . $$

Solution The given differential equation can be written as

$$ [x y \sin (\frac{y}{x})-x^{2} \cos (\frac{y}{x})] d y=[x y \cos (\frac{y}{x})+y^{2} \sin (\frac{y}{x})] d x $$

$$\text{ or } \frac{d y}{d x}=\frac{x y \cos (\frac{y}{x})+y^{2} \sin (\frac{y}{x})}{x y \sin (\frac{y}{x})-x^{2} \cos (\frac{y}{x})} $$

Dividing numerator and denominator on RHS by $x^{2}$, we get

$$ \frac{d y}{d x}=\frac{\frac{y}{x} \cos (\frac{y}{x})+(\frac{y^{2}}{x^{2}}) \sin (\frac{y}{x})}{\frac{y}{x} \sin (\frac{y}{x})-\cos (\frac{y}{x})} \tag{1} $$

Clearly, equation (1) is a homogeneous differential equation of the form $\frac{d y}{d x}=g(\frac{y}{x})$. To solve it,

we make the substitution

$$ \begin{aligned} & y=v x \\ & \text{ or } \\ & \frac{d y}{d x}=v+x \frac{d v}{d x} \\ & v+x \frac{d v}{d x}=\frac{v \cos v+v^{2} \sin v}{v \sin v-\cos v} \\ & x \frac{d v}{d x}=\frac{2 v \cos v}{v \sin v-\cos v} \\ & (\frac{v \sin v-\cos v}{v \cos v}) d v=\frac{2 d x}{x} \\ & \text{ Therefore } \quad \int(\frac{v \sin v-\cos v}{v \cos v}) d v=2 \int \frac{1}{x} d x \\ & \text{ or } \\ & \int \tan v d v-\int \frac{1}{v} d v=2 \int \frac{1}{x} d x \\ & \text{ or } \\ & \text{ or } \\ & \log |\sec v|-\log |v|=2 \log |x|+\log |C_1| \\ & \log |\frac{\sec v}{v x^{2}}|=\log |C_1| \\ & \text{ or } \\ & \frac{\sec v}{v x^{2}}= \pm C_1 \end{aligned} $$

Replacing $v$ by $\frac{y}{x}$ in equation (3), we get

$ \begin{aligned} & \frac{\sec (\frac{y}{x})}{(\frac{y}{x})(x^{2})}=C \text{ where, } C= \pm C_1 \\ & \sec (\frac{y}{x})=C x y \end{aligned} $

which is the general solution of the given differential equation.

Example 22 Solve the differential equation

$$ (\tan ^{-1} y-x) d y=(1+y^{2}) d x \text{. } $$

Solution The given differential equation can be written as

$ \frac{d x}{d y}+\frac{x}{1+y^{2}}=\frac{\tan ^{-1} y}{1+y^{2}} $

Now (1) is a linear differential equation of the form $\frac{d x}{d y}+P_1 x=Q_1$,

where, $\quad P_1=\frac{1}{1+y^{2}}$ and $Q_1=\frac{\tan ^{-1} y}{1+y^{2}}$. Therefore, $\quad I . F=e^{\int \frac{1}{1+y^{2}} d y}=e^{\tan ^{-1} y}$

Thus, the solution of the given differential equation is

$$ \begin{equation*} x e^{\tan ^{-1} y}=\int\left(\frac{\tan ^{-1} y}{1+y^{2}}\right) e^{\tan ^{-1} y} d y+\mathrm{C} \tag{2} \end{equation*} $$

$ \text{ Let } \quad I=\int(\frac{\tan ^{-1} y}{1+y^{2}}) e^{\tan ^{-1} y} d y $

Substituting $\tan ^{-1} y=t$ so that $(\frac{1}{1+y^{2}}) d y=d t$, we get

$ I=\int t e^{t} d t=t e^{t}-\int 1 \cdot e^{t} d t=t e^{t}-e^{t}=e^{t}(t-1) $

$$\text{ or }\qquad I=e^{\tan ^{-1} y}(\tan ^{-1} y-1) $$

Substituting the value of $I$ in equation (2), we get

$$ \begin{aligned} \text{ or }\qquad & x \cdot e^{\tan ^{-1} y}=e^{\tan ^{-1} y}(\tan ^{-1} y-1)+C \\ x= & (\tan ^{-1} y-1)+C e^{-\tan ^{-1} y} \end{aligned} $$

which is the general solution of the given differential equation.

Summary

  • An equation involving derivatives of the dependent variable with respect to independent variable (variables) is known as a differential equation.

  • Order of a differential equation is the order of the highest order derivative occurring in the differential equation.

  • Degree of a differential equation is defined if it is a polynomial equation in its derivatives.

  • Degree (when defined) of a differential equation is the highest power (positive integer only) of the highest order derivative in it.

  • A function which satisfies the given differential equation is called its solution. The solution which contains as many arbitrary constants as the order of the differential equation is called a general solution and the solution free from arbitrary constants is called particular solution.

  • Variable separable method is used to solve such an equation in which variables can be separated completely i.e. terms containing $y$ should remain with $d y$ and terms containing $x$ should remain with $d x$.

  • A differential equation which can be expressed in the form $\frac{d y}{d x}=f(x, y)$ or $\frac{d x}{d y}=g(x, y)$ where, $f(x, y)$ and $g(x, y)$ are homogenous functions of degree zero is called a homogeneous differential equation.

A differential equation of the form $\frac{d y}{d x}+P y=Q$, where $P$ and $Q$ are constants or functions of $x$ only is called a first order linear differential equation.

Historical Note

One of the principal languages of Science is that of differential equations. Interestingly, the date of birth of differential equations is taken to be November, 11,1675, when Gottfried Wilthelm Freiherr Leibnitz (1646 - 1716) first put in black and white the identity $\int y d y=\frac{1}{2} y^{2}$, thereby introducing both the symbols $\int$ and $d y$. Leibnitz was actually interested in the problem of finding a curve whose tangents were prescribed. This led him to discover the ‘method of separation of variables’ 1691. A year later he formulated the ‘method of solving the homogeneous differential equations of the first order’. He went further in a very short time to the discovery of the ‘method of solving a linear differential equation of the first-order’. How surprising is it that all these methods came from a single man and that too within 25 years of the birth of differential equations!

In the old days, what we now call the ‘solution’ of a differential equation, was used to be referred to as ‘integral’ of the differential equation, the word being coined by James Bernoulli (1654 - 1705) in 1690. The word ‘solution was first used by Joseph Louis Lagrange (1736 - 1813) in 1774, which was almost hundred years since the birth of differential equations. It was Jules Henri Poincare (1854 - 1912) who strongly advocated the use of the word ‘solution’ and thus the word ‘solution’ has found its deserved place in modern terminology. The name of the ‘method of separation of variables’ is due to John Bernoulli (1667 - 1748), a younger brother of James Bernoulli. Application to geometric problems were also considered. It was again John Bernoulli who first brought into light the intricate nature of differential equations. In a letter to Leibnitz, dated May 20, 1715, he revealed the solutions of the differential equation

$$ x^{2} y^{\prime \prime}=2 y $$

which led to three types of curves, viz., parabolas, hyperbolas and a class of cubic curves. This shows how varied the solutions of such innocent looking differential equation can be. From the second half of the twentieth century attention has been drawn to the investigation of this complicated nature of the solutions of differential equations, under the heading ‘qualitative analysis of differential equations’. Now-a-days, this has acquired prime importance being absolutely necessary in almost all investigations.

ICAR AIEEA (UG) Exam