Integrating factor
   HOME

TheInfoList



OR:

In mathematics, an integrating factor is a
function Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-oriente ...
that is chosen to facilitate the solving of a given equation involving differentials. It is commonly used to solve
ordinary differential equation In mathematics, an ordinary differential equation (ODE) is a differential equation whose unknown(s) consists of one (or more) function(s) of one variable and involves the derivatives of those functions. The term ''ordinary'' is used in contrast ...
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 several variables, rather ...
when multiplying through by an integrating factor allows an
inexact differential An inexact differential or imperfect differential is a differential whose integral is path dependent. It is most often used in thermodynamics to express changes in path dependent quantities such as heat and work, but is defined more generally with ...
to be made into an
exact differential In multivariate calculus, a 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 some differentiable function  ...
(which can then be integrated to give a scalar field). This is especially useful in
thermodynamics Thermodynamics is a branch of physics that deals with heat, work, and temperature, and their relation to energy, entropy, and the physical properties of matter and radiation. The behavior of these quantities is governed by the four laws of th ...
where
temperature Temperature is a physical quantity that expresses quantitatively the perceptions of hotness and coldness. Temperature is measurement, measured with a thermometer. Thermometers are calibrated in various Conversion of units of temperature, temp ...
becomes the integrating factor that makes
entropy Entropy is a scientific concept, as well as a measurable physical property, that is most commonly associated with a state of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynam ...
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 : \frac = A y^ admits \frac as an integrating factor: : \frac \frac = A y^ \frac. 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 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(x)=f(g(x)) for every , ...
: : \frac\left(\frac 1 2 \left(\frac\right)^2\right) = \frac\left(A \frac 3 5 y^\right). Therefore, : \left(\frac\right)^2 = \frac y^ + C_0. where C_0 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 and partial differential equations, in which algebra allows one to rewrite an equation so that each of two variables occurs ...
will give : \int_^ \frac = t 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 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 it back toward th ...
.


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 whose unknown(s) consists of one (or more) function(s) of one variable and involves the derivatives of those functions. The term ''ordinary'' is used in contrast ...
s that can be expressed in the form : y'+ P(x)y = Q(x) The basic idea is to find some function, say M(x), 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 defined by a linear polynomial in the unknown function and its derivatives, that is an equation of the form :a_0(x)y + a_1(x)y' + a_2(x)y'' \cdots + a_n(x)y^ = b ...
shown above, the integrating factor is e^. Note that it is not necessary to include the arbitrary constant in the integral, or absolute values in case the integral of P(x) 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 , f(x), = f(x) \sgn f(x), where \sgn refers to the sign function, which will be constant on an interval if f(x) is continuous. As \ln , f(x), is undefined when f(x) = 0, 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 M(x) be the integrating factor of a first order linear differential equation such that multiplication by M(x) transforms a partial derivative into a total derivative, then: #M(x)\underset #M(x)y'+M(x)P(x)y #\underbrace_ Going from step 2 to step 3 requires that M(x)P(x)=M'(x), which is a
separable differential equation In mathematics, separation of variables (also known as the Fourier method) is any of several methods for solving ordinary and partial differential equations, in which algebra allows one to rewrite an equation so that each of two variables occurs ...
, whose solution yields M(x) in terms of P(x): #
  • M(x)P(x) = M'(x)
  • #P(x) = \frac #\int P(x) \, dx = \ln M(x) + c #M(x)=Ce^ To verify, multiplying by M(x) gives : M(x)y' + P(x) M(x)y = Q(x)M(x) 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 x : M(x)y' + P(x) M(x)y = M(x)y' + M'(x)y = \frac( M(x)y) We use this fact to simplify our expression to :\frac\left( M(x)y\right) = Q(x) M(x) Integrating both sides with respect to x :Ce^y = \int Q(x) Ce^ dx : e^y = \left( \int Q(x) e^ \,dx \right)+ C where C 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 whose unknown(s) consists of one (or more) function(s) of one variable and involves the derivatives of those functions. The term ''ordinary'' is used in contrast ...
    is: :y = e^\left( \int Q(x) e^ \,dx \right)+ Ce^ In the case of a
    homogeneous differential equation A differential equation can be homogeneous in either of two respects. A first order differential equation is said to be homogeneous if it may be written :f(x,y) \, dy = g(x,y) \, dx, where and are homogeneous functions of the same degree of an ...
    , Q(x) = 0 and the general solution to Ordinary Differential Equation is: : y = Ce^. for example, consider the differential equation :y'-\frac = 0. We can see that in this case P(x) = \frac :M(x)=e^ :M(x)=e^ = e^ = ^ = x^ :M(x)=\frac. Multiplying both sides by M(x) we obtain :\frac - \frac = 0 The above equation can be rewritten as :\frac = 0 By integrating both sides with respect to x we obtain : x^y = C or : y = Cx^2 The same result may be achieved using the following approach :\frac - \frac = 0 :\frac = 0 :\frac = 0 :\frac = 0. Reversing the
    quotient rule In calculus, the quotient rule is a method of finding the derivative of a function that is the ratio of two differentiable functions. Let h(x)=f(x)/g(x), where both and are differentiable and g(x)\neq 0. The quotient rule states that the deriva ...
    gives :\left(\frac\right)' = 0 or :\frac = C, or :y = Cx^2. where C 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 M(x) such that multiplying y'+p(x)y=h(x) by it would yield (M(x)y)'=M(x)h(x), after which subsequent integration and division by M(x) would yield y. For second order linear differential equations, if we want M(x)=e^ to work as an integrating factor, then :(M(x)y)''=M(x)\left(y'' + 2p(x)y' + \left(p(x)^2+p'(x)\right) y \right)=M(x)h(x) This implies that a second order equation must be exactly in the form y'' + 2p(x)y' + \left(p(x)^2+p'(x)\right) y=h(x) for the integrating factor to be usable.


    Example 1

    For example, the differential equation :y''+2xy'+\left(x^2+1\right)y=0 can be solved exactly with integrating factors. The appropriate p(x)can be deduced by examining the y' term. In this case, 2p(x)=2x, so p(x)=x. After examining the y term, we see that we do in fact have p(x)^2+p'(x)=x^2+1, so we will multiply all terms by the integrating factor e^ = e^. This gives us :e^y''+2e^p(x)y'+e^\left(p(x)^2+p'(x)\right)y=0 which can be rearranged to give :\left(e^y\right)''=0 Integrating twice yields :e^y=c_1x+c_2 Dividing by the integrating factor gives: :y=\frac


    Example 2

    A slightly less obvious application of second order integrating factors involves the following differential equation: :y''+2\cot(x)y'-y=1 At first glance, this is clearly not in the form needed for second order integrating factors. We have a 2p(x) term in front of y' but no p(x)^2+p'(x) in front of y. However, :p(x)^2+p'(x)=\cot^2(x)-\csc^2(x) and from the Pythagorean identity relating cotangent and cosecant, :\cot^2(x)-\csc^2(x)=-1 so we actually do have the required term in front of y and can use integrating factors. :e^=e^=\sin(x) Multiplying each term by \sin(x) gives :\sin(x)y''+2\cot(x)\sin(x)y'-\sin(x)y=\sin(x) which rearranged is :(\sin(x)y)''=\sin(x) Integrating twice gives :\sin(x)y=-\sin(x)+c_1x+c_2 Finally, dividing by the integrating factor gives :y=c_1x\csc(x)+c_2\csc(x)-1


    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 M(x)y n times for an nth order differential equation and combine like terms. This will yield an equation in the form :M(x)F\!\left(y,y',y'',\ldots,y^\right) If an nth order equation matches the form F\!\left(y,y',y'',\ldots,y^\right) that is gotten after differentiating n times, one can multiply all terms by the integrating factor and integrate h(x)M(x) n times, dividing by the integrating factor on both sides to achieve the final result.


    Example

    A third order usage of integrating factors gives :(M(x)y)=M(x)\left(y + 3p(x)y'' + \left(3p(x)^2+3p'(x)\right)y' + \left(p(x)^3+3p(x)p'(x)+p''(x)\right)y\right) thus requiring our equation to be in the form :y + 3p(x)y'' + \left(3p(x)^2+3p'(x)\right)y' + \left(p(x)^3+3p(x)p'(x)+p''(x)\right)y = h(x) For example in the differential equation :y + 3x^2y'' + \left(3x^4+6x\right)y' + \left(x^6+6x^3+2\right)y = 0 we have p(x)=x^2, so our integrating factor is e^. Rearranging gives :\left(e^y\right)=0 Integrating thrice and dividing by the integrating factor yields :y=\frac


    See also

    *
    Variation of parameters In mathematics, variation of parameters, also known as variation of constants, is a general method to solve inhomogeneous linear ordinary differential equations. For first-order inhomogeneous linear differential equations it is usually possible t ...
    * 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 that is the ratio of two differentiable functions. Let h(x)=f(x)/g(x), where both and are differentiable and g(x)\neq 0. The quotient rule states that the deriva ...
    *
    Exact differential In multivariate calculus, a 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 some differentiable function  ...
    *
    Matrix exponential In mathematics, the matrix exponential is a matrix function on 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 exponential give ...


    External links

    * {{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 Di ...
    . Ordinary differential equations de:Exakte Differentialgleichung