In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, an integrating factor is a
function that is chosen to facilitate the solving of a given equation involving
differentials. It is commonly used to solve non-exact
ordinary differential equation
In mathematics, an ordinary differential equation (ODE) is a differential equation (DE) dependent on only a single independent variable (mathematics), variable. As with any other DE, its unknown(s) consists of one (or more) Function (mathematic ...
s, but is also used within
multivariable calculus
Multivariable calculus (also known as multivariate calculus) is the extension of calculus in one variable to calculus with functions of several variables: the differentiation and integration of functions involving multiple variables ('' mult ...
when multiplying through by an integrating factor allows an
inexact differential to be made into an
exact differential
In multivariate calculus, a differential (infinitesimal), differential or differential form is said to be exact or perfect (''exact differential''), as contrasted with an inexact differential, if it is equal to the general differential dQ for som ...
(which can then be integrated to give a
scalar field
In mathematics and physics, a scalar field is a function associating a single number to each point in a region of space – possibly physical space. The scalar may either be a pure mathematical number ( dimensionless) or a scalar physical ...
). This is especially useful in
thermodynamics
Thermodynamics is a branch of physics that deals with heat, Work (thermodynamics), work, and temperature, and their relation to energy, entropy, and the physical properties of matter and radiation. The behavior of these quantities is governed b ...
where
temperature
Temperature is a physical quantity that quantitatively expresses the attribute of hotness or coldness. Temperature is measurement, measured with a thermometer. It reflects the average kinetic energy of the vibrating and colliding atoms making ...
becomes the integrating factor that makes
entropy
Entropy is a scientific concept, most commonly associated with states of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynamics, where it was first recognized, to the micros ...
an exact differential.
Use
An integrating factor is any expression that a differential equation is multiplied by to facilitate integration. For example, the nonlinear second order equation
:
admits
as an integrating factor:
:
To integrate, note that both sides of the equation may be expressed as derivatives by going backwards with the
chain rule
In calculus, the chain rule is a formula that expresses the derivative of the Function composition, composition of two differentiable functions and in terms of the derivatives of and . More precisely, if h=f\circ g is the function such that h ...
:
:
Therefore,
:
where
is a constant.
This form may be more useful, depending on application. Performing a
separation of variables
In mathematics, separation of variables (also known as the Fourier method) is any of several methods for solving ordinary differential equation, ordinary and partial differential equations, in which algebra allows one to rewrite an equation so tha ...
will give
:
This is an
implicit solution which involves a
nonelementary integral. This same method is used to solve the period of a simple
pendulum
A pendulum is a device made of a weight suspended from a pivot so that it can swing freely. When a pendulum is displaced sideways from its resting, equilibrium position, it is subject to a restoring force due to gravity that will accelerate i ...
.
Solving first order linear ordinary differential equations
Integrating factors are useful for solving
ordinary differential equation
In mathematics, an ordinary differential equation (ODE) is a differential equation (DE) dependent on only a single independent variable (mathematics), variable. As with any other DE, its unknown(s) consists of one (or more) Function (mathematic ...
s that can be expressed in the form
:
The basic idea is to find some function, say
, called the "integrating factor", which we can multiply through our differential equation in order to bring the left-hand side under a common derivative. For the canonical first-order
linear differential equation
In mathematics, a linear differential equation is a differential equation that is linear equation, linear in the unknown function and its derivatives, so it can be written in the form
a_0(x)y + a_1(x)y' + a_2(x)y'' \cdots + a_n(x)y^ = b(x)
wher ...
shown above, the integrating factor is
.
Note that it is not necessary to include the arbitrary constant in the integral, or absolute values in case the integral of
involves a logarithm. Firstly, we only need one integrating factor to solve the equation, not all possible ones; secondly, such constants and absolute values will cancel out even if included. For absolute values, this can be seen by writing
, where
refers to the
sign function
In mathematics, the sign function or signum function (from '' signum'', Latin for "sign") is a function that has the value , or according to whether the sign of a given real number is positive or negative, or the given number is itself zer ...
, which will be constant on an interval if
is continuous. As
is undefined when
, and a logarithm in the antiderivative only appears when the original function involved a logarithm or a reciprocal (neither of which are defined for 0), such an interval will be the interval of validity of our solution.
To derive this, let
be the integrating factor of a first order linear differential equation such that multiplication by
transforms a non-integrable expression into an integrable derivative, then:
#
#
#
Going from step 2 to step 3 requires that
, which is a
separable differential equation, whose solution yields
in terms of
:
#
#
#
#
To verify, multiplying by
gives
:
By applying the
product rule
In calculus, the product rule (or Leibniz rule or Leibniz product rule) is a formula used to find the derivatives of products of two or more functions. For two functions, it may be stated in Lagrange's notation as (u \cdot v)' = u ' \cdot v ...
in reverse, we see that the left-hand side can be expressed as a single derivative in
:
We use this fact to simplify our expression to
:
Integrating both sides with respect to
:
:
where
is a constant.
Moving the exponential to the right-hand side, the general solution to
Ordinary Differential Equation
In mathematics, an ordinary differential equation (ODE) is a differential equation (DE) dependent on only a single independent variable (mathematics), variable. As with any other DE, its unknown(s) consists of one (or more) Function (mathematic ...
is:
:
In the case of a
homogeneous differential equation,
and the general solution to Ordinary Differential Equation is:
:
.
for example, consider the differential equation
:
We can see that in this case
:
:
:
Multiplying both sides by
we obtain
:
The above equation can be rewritten as
:
By integrating both sides with respect to x we obtain
:
or
:
The same result may be achieved using the following approach
:
:
:
:
Reversing the
quotient rule
In calculus, the quotient rule is a method of finding the derivative of a function (mathematics), function that is the ratio of two differentiable functions. Let h(x)=\frac, where both and are differentiable and g(x)\neq 0. The quotient rule sta ...
gives
:
or
:
or
:
where
is a constant.
Solving second order linear ordinary differential equations
The method of integrating factors for first order equations can be naturally extended to second order equations as well. The main goal in solving first order equations was to find an integrating factor
such that multiplying
by it would yield
, after which subsequent integration and division by
would yield
. For second order linear differential equations, if we want
to work as an integrating factor, then
:
This implies that a second order equation must be exactly in the form
for the integrating factor to be usable.
Example 1
For example, the differential equation
:
can be solved exactly with integrating factors. The appropriate
can be deduced by examining the
term. In this case,
, so
. After examining the
term, we see that we do in fact have
, so we will multiply all terms by the integrating factor
. This gives us
:
which can be rearranged to give
:
Integrating twice yields
:
Dividing by the integrating factor gives:
:
Example 2
A slightly less obvious application of second order integrating factors involves the following differential equation:
:
At first glance, this is clearly not in the form needed for second order integrating factors. We have a
term in front of
but no
in front of
. However,
:
and from the Pythagorean identity relating cotangent and cosecant,
:
so we actually do have the required term in front of
and can use integrating factors.
:
Multiplying each term by
gives
:
which rearranged is
:
Integrating twice gives
:
Finally, dividing by the integrating factor gives
:
Solving nth order linear differential equations
Integrating factors can be extended to any order, though the form of the equation needed to apply them gets more and more specific as order increases, making them less useful for orders 3 and above. The general idea is to differentiate the function
times for an
th order differential equation and combine like terms. This will yield an equation in the form
:
If an
th order equation matches the form
that is gotten after differentiating
times, one can multiply all terms by the integrating factor and integrate
times, dividing by the integrating factor on both sides to achieve the final result.
Example
A third order usage of integrating factors gives
:
thus requiring our equation to be in the form
:
For example in the differential equation
:
we have
, so our integrating factor is
. Rearranging gives
:
Integrating thrice and dividing by the integrating factor yields
:
See also
*
Variation of parameters
*
Differential equations
*
Product rule
In calculus, the product rule (or Leibniz rule or Leibniz product rule) is a formula used to find the derivatives of products of two or more functions. For two functions, it may be stated in Lagrange's notation as (u \cdot v)' = u ' \cdot v ...
*
Quotient rule
In calculus, the quotient rule is a method of finding the derivative of a function (mathematics), function that is the ratio of two differentiable functions. Let h(x)=\frac, where both and are differentiable and g(x)\neq 0. The quotient rule sta ...
*
Exact differential
In multivariate calculus, a differential (infinitesimal), differential or differential form is said to be exact or perfect (''exact differential''), as contrasted with an inexact differential, if it is equal to the general differential dQ for som ...
*
Matrix exponential
In mathematics, the matrix exponential is a matrix function on square matrix, square matrices analogous to the ordinary exponential function. It is used to solve systems of linear differential equations. In the theory of Lie groups, the matrix exp ...
References
* {{Citation , last1=Munkhammar , first1=Joakim , title=Integrating Factor , url=http://mathworld.wolfram.com/IntegratingFactor.html , journal=
MathWorld
''MathWorld'' is an online mathematics reference work, created and largely written by Eric W. Weisstein. It is sponsored by and licensed to Wolfram Research, Inc. and was partially funded by the National Science Foundation's National Science ...
.
Ordinary differential equations
de:Exakte Differentialgleichung