Chapter 9 Differential Equations
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) $
An equation of the form (1) is known as a differential equation. A formal definition will be given later.
Henri Poincare $(1854-1912)$
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{matrix} x^{2}-3 x+3=0 \\ \sin x+\cos x=0 \\ x+y=7 \end{matrix} $
Let us consider the equation:
$ x \frac{d y}{d x}+y=0 $
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:
$$ \frac{d y}{d x}=e^{x} $$
$$ \begin{aligned} \frac{d^{2} y}{d x^{2}}+y & =0 \\ (\frac{d^{3} y}{d x^{3}})+x^{2}(\frac{d^{2} y}{d x^{2}})^{3} & =0 \end{aligned} $$
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.
9.3 General and Particular Solutions of a Differential Equation
In earlier Classes, we have solved the equations of the type:
$ \begin{matrix} x^{2}+1=0 \\ \quad\quad \sin ^{2} x-\cos x=0 \end{matrix} $
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
$ y=\phi(x)=a \sin (x+b), $
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 $\quad y=\phi_1(x)=2 \sin (x+\frac{\pi}{4})$
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.
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
$ \frac{d y}{d x}=F(x, y) $
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
$ \frac{d y}{d x}=h(y) \cdot g(x) $
If $h(y) \neq 0$, separating the variables, (2) can be rewritten as
$ \frac{1}{h(y)} d y=g(x) d x $
Integrating both sides of (3), we get
$ \int \frac{1}{h(y)} d y=\int g(x) d x $
Thus, (4) provides the solutions of given differential equation in the form
$ H(y)=G(x)+C $
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.
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
or
$ \begin{aligned} & F_1(x, y)=x^{2}(\frac{y^{2}}{x^{2}}+\frac{2 y}{x})=x^{2} h_1(\frac{y}{x}) \\ & F_1(x, y)=y^{2}(1+\frac{2 x}{y})=y^{2} h_2(\frac{x}{y}) \\ & F_2(x, y)=x^{1}(2-\frac{3 y}{x})=x^{1} h_3(\frac{y}{x}) \\ & F_2(x, y)=y^{1}(2 \frac{x}{y}-3)=y^{1} h_4(\frac{x}{y}) \\ & F_3(x, y)=x^{0} \cos (\frac{y}{x})=x^{0} h_5(\frac{y}{x}) \\ & F_4(x, y) \neq x^{n} h_6(\frac{y}{x}), \text{ for any } n \in \mathbf{N} \\ & F_4(x, y) \neq y^{n} h_7(\frac{x}{y}), \text{ for any } n \in \mathbf{N} \end{aligned} $
Therefore, a function $F(x, y)$ is a homogeneous function of degree $n$ if
$ F(x, y)=x^{n} g(\frac{y}{x}) \quad \text{ or } \quad y^{n} h(\frac{x}{y}) $
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
$ \frac{d y}{d x}=F(x, y)=g(\frac{y}{x}) $
We make the substitution
$ y=v \cdot x $
Differentiating equation (2) with respect to $x$, we get
$ \frac{d y}{d x}=v+x \frac{d v}{d x} $
Substituting the value of $\frac{d y}{d x}$ from equation (3) in equation (1), we get or
$ \begin{aligned} v+x \frac{d v}{d x} & =g(v) \\ x \frac{d v}{d x} & =g(v)-v \end{aligned} $
Separating the variables in equation (4), we get
$ \frac{d v}{g(v)-v}=\frac{d x}{x} $
Integrating both sides of equation (5), we get
$ \int \frac{d v}{g(v)-v}=\int \frac{1}{x} d x+C $
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})$.
9.4.3 Linear differential equations
A differential equation of the from
$ \frac{d y}{d x}+P y=Q $
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}+P_1 x=Q_1 $
where, $P_1$ and $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
$ \frac{d y}{d x}+P y=Q $
Multiply both sides of the equation by a function of $x$ say $g(x)$ to get
$ g(x) \frac{d y}{d x}+P \cdot(g(x)) y=Q \cdot g(x) $
Choose $g(x)$ in such a way that R.H.S. becomes a derivative of $y . g(x)$.
i.e.
$ g(x) \frac{d y}{d x}+P \cdot g(x) y=\frac{d}{d x}[y \cdot g(x)] $
or
$ g(x) \frac{d y}{d x}+P . g(x) y=g(x) \frac{d y}{d x}+y g^{\prime}(x) $
$\Rightarrow$ P. $g(x)=g^{\prime}(x)$
or
$ P=\frac{g^{\prime}(x)}{g(x)} $
Integrating both sides with respect to $x$, we get
$ or \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 $
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.