# Differential Equations

Last Updated : 09 May, 2024

Differential Equations come into play in a variety of applications such as Physics, Chemistry, Biology, Economics, etc. A differential equation is a mathematical equation that relates some function with its derivatives. In applications, the functions usually represent physical quantities, the derivatives represent their rates of change, and the equation defines a relationship between the two. Let’s formally define what is a differential equation.

## What is a Differential Equation?

A differential equation is an equation involving the derivatives of the dependent variable concerning the independent variable. For example

[Tex]\frac{d^{2}y}{dx} + x = 0[/Tex]

Here, x is the independent variable, and y is the dependent variable.

A differential equation that includes derivatives concerning only one independent variable is called an ordinary differential equation. There also exist some differential equations which have derivatives for more than one independent variable, they are called partial differential equations.

Example: [Tex]2\frac{d^{2}y}{dx} + 3\frac{dy}{dx} + 1 = 0  [/Tex]an ordinary differential Equation.

Note: Following notations are also used for denoting higher order derivatives.

• [Tex]y’ = \frac{dy}{dx} = y_{1}[/Tex]
• [Tex]y”’ = \frac{d^{3}y}{dx} = y_{3}[/Tex]

## Order of a Differential Equation

The order of differential equations is the highest order of the derivative present in the equations.

For example:

• [Tex]x + \frac{dy}{dx} = 3  [/Tex]. It has an order of 1.
• [Tex]\frac{d^{2}y}{dx} + sinxcosx = 10  [/Tex]. It has an order of 2.
• [Tex]\frac{d^{3}y}{dx} + \frac{d^{2}y}{dx} + x^{3} + 5 = 0  [/Tex]. It has an order of 3.

## Degree of Differential Equation

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

Example: [Tex](\frac{dy}{dx})^{2}  +\frac{d^{2}y}{dx} + 5 = 0  [/Tex]. In this equation highest degree derivative has power of 1. So, the order of differential equation is 1.

Note: It is not always necessary that degree and order of a differential equation are equal, but both of them must be positive.

## General And Particular Solution of Differential Equation

Consider a differential equation,

[Tex]\frac{d^{2}y}{dx^{2}} + y = 0[/Tex]

The solution of this differential equation is a function [Tex]\phi  [/Tex] that will satisfy it, i.e when a function \phi is substituted for the unknown “y”. L.H.S becomes equal to R.H.S.

The curve[Tex] y = \phi(x)  [/Tex] is called the solution of the differential equation. Let’s say, this function is,

[Tex]y = \phi(x) = a cos(x + b)    [/Tex]

When this function and its derivatives are substituted in the differential equation, the equation is satisfied.

Let’s assume that we gave some values to “a” and “b”, where a = 2 and b = -1. Then the equation becomes,

[Tex]y = \phi_{1}(x) = 2 cos(x -1 )[/Tex]

This is called a particular solution and the solution which consisted of arbitrary values of a and b is called General Solution.

### Formation of a Differential Equation whose General Solution is Given

Let’s look at the steps/procedure to form a differential equation from a general solution:

1. If a family of curves depends only on one parameter, then it is represented by an equation that can be written in the form, F(x, y, a) = 0. Differentiating this equation with x gives us an equation in y’, y, x and a which can be represented as g(x, a, y, y’) = 0. Now, the differential equation can be formed by eliminating the parameter “a” from both of the equations.
2. If a family of curves depends on two parameters “a” and “b”, then it is represented by an equation that can be written in a form, F(x, y, a, b) = 0. Differentiating this equation with x gives us an equation in y’, y, x, a and b which can be represented as g(x, a, b, y, y’) = 0. We cannot eliminate “a” and “b” from those two equations. So, we will differentiate the equation again to get g(x, a, b, y, y’, y”) = 0. Now, the differential equation can be formed by eliminating the parameter “a” and “b” from all three of these equations.

Let’s see these steps through examples,

Question 1: Form the differential equation representing the family of curves y = mx, where, m is an arbitrary constant.

Solution:

We have y = mx,

Differentiating it both sides,

[Tex]\\ \frac{dy}{dx} = m, [/Tex]

Substituting the value of m in the original equation,

[Tex]y = \frac{dy}{dx}x \\ y – \frac{dy}{dx}x = 0[/Tex]

Question 2: Form the differential equation representing the family of ellipses having foci on the x-axis and centre at the origin.

Solution:

Equation of ellipses with foci on x-axis and centre at origin,

[Tex]\\ \frac{x^2}{a^2} + \frac{y^2}{b^2} = 1 [/Tex]

Differentiating equations w.r.t x,

[Tex]\\ \frac{2x}{a^2} + \frac{2ydy}{b^2dx } = 0 \\ \frac{y}{x}(\frac{dy}{dx}) = \frac{-b^{2}}{a^{2}}[/Tex]

Differentiating both sides again we get,

[Tex]\\ xy\frac{d^2y}{dx^2} + x(\frac{dy}{dx})^2 -y\frac{dy}{dx} = 0  [/Tex]

This is the required differential equation.

## Homogeneous Differential Equations

A function f(x, y) is called a homogeneous function of degree n if,

F(ax, ay) = anF(x, y)

for any constant “a”.

A differential equation of the form [Tex]\frac{dy}{dx} = F(x,y)  [/Tex] is called homogeneous if F(x, y) is a homogeneous function of degree zero.

Question: Check whether the differential equation, [Tex](x-y)\frac{dy}{dx} = x + 2y  [/Tex] is homogeneous.

Solution:

[Tex]\frac{dy}{dx} = \frac{x + 2y}{x – y}[/Tex]

Let,

[Tex]\\ F(x,y) = \frac{x + 2y}{x-y} [/Tex]

Let a be a constant,

[Tex]\\ F(ax,ay) = \frac{ax + 2ay}{ax – ay}\\         = \frac{x + 2y}{x – y}a^{0}\\         = a^{0}F(x,y)[/Tex]

Since this function is homogeneous, the differential equation is also homogeneous.

## Variable Separable Differential Equation

Consider a first-order differential equation of the form,

[Tex]\frac{dy}{dx} = F(x,y)[/Tex]

If F(x, y) can be expressed as h(x)g(y) where h(x) is a function of x and g(x) is a function of y. Then the equation is called a differential equation of variable separable type. The differential equation has the form,

[Tex]\frac{dy}{dx} = h(x)g(x) [/Tex]

Question: Find the general solution of the differential equation,

[Tex]\frac{dy}{dx} = \frac{x+1}{2-y} (y \ne 2)[/Tex]

Solution:

[Tex]\frac{dy}{dx} = \frac{x+1}{2-y} \\ (2 – y)dy = (x +1)dx \\ \int (2 – y)dy = \int (x + 1)dx \\ 2y – \frac{y^2}{2} = \frac{x^2}{2} + x + C \\ 4y – y^2 -x^2 -4x = C[/Tex]

### Solution to a Linear Differential Equation

A linear differential equation is a differential equation that can be made to look like in this form:

[Tex]\frac{dy}{dx} + P(x)y = Q(x)[/Tex]

where P(x) and Q(x) are the functions of x. It is solved using a special approach:

• Make two new functions of x, call them u and v, and say that y = uv.
• Then solve to find u, and then v.

Step-by-step procedure:

Step 1: Substitute y = uv, and

[Tex]\frac{dy}{dx}  = u\frac{dv}{dx} + v\frac{du}{dx}[/Tex]

into,

[Tex]\frac{dy}{dx} + P(x)y = Q(x)[/Tex]

Step 2: Now, one should factor the parts that have “v”.

Step 3: Put the v term equal to zero (this gives a differential equation in u and x which can be solved in the next step)Put the v term equal to zero (this gives a differential equation in u and x which can be solved in the next step)

Step 4: Solve “u” and then put it back in the equation to find “v”.

Step 5: Finally y = uv is the solution.

Let’s look at an example to understand it better,

Question: Solve [Tex]\frac{dy}{dx} – \frac{y}{x} = 1[/Tex]

Solution:

This is a linear equation. Let’s bring it in the form specified above.

[Tex]\frac{dy}{dx} + P(x)y = Q(x)[/Tex]

Here, P(x) = -1/x and Q(x) = 1.

So, let’s follow the steps given above. Substitute y = uv in the equation. Then the equation becomes,

[Tex]u\frac{dv}{dx} + v\frac{du}{dx} – \frac{uv}{x} = 1 \\ = u\frac{dv}{dx}  + v(\frac{du}{dx} – \frac{u}{x}) = 1[/Tex]

Put the parts involving “v” equal to zero.

[Tex]\frac{du}{dx} – \frac{u}{x} = 0\\ = \frac{du}{u} = \frac{dx}{x} \\ = \int \frac{du}{u} = \int \frac{dx}{x} \\ = ln(u) = ln(x) + C \\ = ln(u) = ln(x)  + ln(k) \\ = ln(u) = ln(xk) \\ = u = xk[/Tex]

Substituting “u” back into the equation.

[Tex]kx\frac{dv}{dx} = 1[/Tex]

Now, let’s solve this to find “v”.

[Tex]kx\frac{dv}{dx} = 1 \\ = dv = \frac{1}{k}\frac{dx}{x}\\ = \int dv = \int \frac{1}{k}\frac{dx}{x} \\ = v = \frac{ln(x)}{k}  + ln(c) \\ = v= \frac{ln(xc)}{k}[/Tex]

Substitute both “u” and “v” into the equations y = uv.

[Tex]y = uv \\ = kx \frac{1}{k}ln(cx)\\ = xln(cx) [/Tex]

So, this is the solution for this differential equation.

### Writing a Differential Equation

Now let’s move on to modelling a differential equation. Modelling is the process of writing a differential equation that describes a physical situation. We will see how to model first-order differential equations, modelling more complex orders is out of scope at this level of study.

Example: Savings Account Model

Write x(t) for the number of dollars in the account at time t. It accrues interest at an interest rate r. The interest rate has units of percent/year. The more money in the account the more interest you earn. At the end of an interest period of Î”t years (e.g. Î”t = 1/12, or Î”t = 1/365) the bank adds “r.x(t)Â·Î”t” dollars to your account. This means the change Î”x in your account is

Î”x = r.x(t).Î”t

r has units of (years)âˆ’1. Mathematicians and some bankers like to take things to the limit. Rewrite our equation as [Tex] \frac{Î”x}{\Delta t} = rx(t)  [/Tex], and suppose that the interest period is made to get smaller and smaller. In the limit as Î”t â†’ 0, we get the differential equation

[Tex]\dot{x} = rx[/Tex]

Now suppose we make contributions to this savings account. Weâ€™ll record this by giving the rate of savings, q. This rate has units dollars per year, so if you contribute every month then the monthly payments will be q Î”t with Î”t = 1/12. This payment also adds to your account, so, when we divide by Î”t and take the limit, we get

[Tex]\dot{x} = rx + q. [/Tex]

This is a linear differential equation.

## Differential Equations Class 12

Below are the links to differential equations notes and ncert solutions for class 12:

## FAQs on Differential Equations

### What is a differential equation?

A differential equation is an equation that relates a function with one or more of its derivatives. It describes how a function changes in relation to its input variables. In essence, it expresses a relationship between a function and its rate of change. These equations are fundamental in describing various physical phenomena and processes in fields like physics, engineering, and economics.

### How do you solve a first-order differential equation?

First-order differential equations can be solved using various techniques depending on their form. Common methods include separation of variables, integrating factors, exact equations, and using linear or Bernoulli differential equation forms. Each method involves transforming the equation into a simpler form that can be integrated to find the solution.

### What are the applications of differential equations?

Differential equations find numerous applications in diverse fields. They are used to model population growth and decay, radioactive decay, chemical reactions, heat transfer, fluid dynamics, electrical circuits, and mechanical systems, among others.

### What is the difference between ordinary and partial differential equations?

Ordinary differential equations (ODEs) involve functions of a single independent variable and their derivatives with respect to that variable. They are used to model phenomena involving one-dimensional systems. In contrast, partial differential equations (PDEs) involve functions of multiple variables and their partial derivatives with respect to those variables.

### How do you solve a second-order linear differential equation with constant coefficients?

Second-order linear differential equations with constant coefficients are solved using characteristic equations or auxiliary equations. By finding the roots of the characteristic equation, one can determine the form of the solution, which may involve exponential functions, sine and cosine functions, or linear combinations of these.

Previous
Next