# Integrating Factor

In Maths, an integrating factor is a function used to solve differential equations. It is usually applied to solve ordinary differential equations. Also, we can use this factor within multivariable calculus. When multiplied by an integrating factor, an inaccurate differential is made into an accurate differential (which can be later integrated to give a scalar field). It has a major application in thermodynamics where the temperature becomes the integrating factor that makes entropy an exact differential.

## What are Differential Equations?

Differential equations play a vital role in Mathematics. These are the equations that necessarily involve derivatives. There are various types of differential equations; such as – homogeneous and non-homogeneous, linear and nonlinear, ordinary and partial. The differential equation may be of the first order, second order and ever more than that. The nth order differential equation is an equation involving nth derivative. The most common differential equations that we often come across are first-order linear differential equations.

These equations are represented in the following general form:

y’ + P y=Q

or

dy/dx + P(x) y = Q(x)

Where y’ or dy/dx is the first derivative. Also, the functions P and Q are the functions of x only.

There are mainly two methods which are utilized in order to solve the linear first-order differential equations:

1) Separable Method

2) Integrating Factor Method

We are going to learn about the second method to solve the first order and second-order differential equation.

## Integrating Factor Method

Integrating factor is defined as the function which is selected in order to solve the given differential equation. It is most commonly used in ordinary linear differential equations of the first order.

When the given differential equation is of the form;

dy/dx + P(x) y = Q(x)

then the integrating factor is defined as;

Where P(x) (the function of x) is a multiple of y and μ denotes integrating factor.

## Solving First-Order Differential Equation

• Compare the given equation with differential equation form and find the value of P(x).
• Calculate the integrating factor μ.
• Multiply the differential equation with integrating factor on both sides in such a way;
• μ dy/dx + μP(x)y = μQ(x)

• In this way, on the left-hand side, we obtain a particular differential form. I.e.
• d/dx(μ y) = μQ(x)

• At the end, we shall integrate this expression and get the required solution to the given equation.
• μ y = ∫μQ(x)dx+C

## Solving Second Order Differential Equation

The second-order differential equation can be solved using the integrating factor method.

Let the given differential equation be,

y” + P(x) y’ = Q(x)

The second-order equation of the above form can only be solved by using the integrating factor.

• Substitute y’ = u; so that the equation becomes similar to the first-order equation as shown below :
• u’ + P(x) u = Q(x)

• Now, this equation can be solved by integrating factor technique as described in the section above for first-order equations and we reach the equation:
• μ u=∫μQ(x)dx+C

• Find the value of u from this equation.

Since u = y’, hence to find the value of y, integrate the equation. In this way, we get the required solution.