# Linear differential equation

Linear differential equation

In mathematics, a linear differential equation is a differential equation of the form

: $Ly = f ,$

where the differential operator "L" is a linear operator, "y" is the unknown function, and the right hand side &fnof; is a given function (called the source term). The linearity condition on "L" rules out operations such as taking the square of the derivative of "y"; but permits, for example, taking the second derivative of "y". Therefore a fairly general form of such an equation would be

: $a_n\left(x\right) D^n y\left(x\right) + a_\left\{n-1\right\}\left(x\right)D^\left\{n-1\right\} y\left(x\right) + cdots + a_1\left(x\right) D y\left(x\right) + a_0\left(x\right) y\left(x\right) =f\left(x\right)$

where "D" is the differential operator "d/dx" (i.e. "Dy = y' ", "D"2"y = y",... "), and the "ai" are given functions. Such an equation is said to have order "n", the index of the highest derivative of "y" that is involved. (Assuming a possibly existing coefficient "an" of this derivative to be non zero, it is eliminated by dividing through it. In case it can become zero, different cases must be considered separately for the analysis of the equation.)

If "y" is assumed to be a function of only one variable, one speaks about an ordinary differential equation, else the derivatives and their coefficients must be understood as (contracted) vectors, matrices or tensors of higher rank, and we have a (linear) partial differential equation.

The case where &fnof; = 0 is called a homogeneous equation and its solutions are called complementary functions. It is particularly important to the solution of the general case, since any complementary function can be added to a solution of the inhomogeneous equation to give another solution (by a method traditionally called "particular integral and complementary function"). When the "ai" are numbers, the equation is said to have "constant coefficients".

Homogeneous equations with constant coefficients

The first method of solving linear ordinary differential equations with constant coefficients is due to Euler, who realized that solutions have the form $e^\left\{z x\right\}$, for possibly-complex values of $z$. The exponential function is one of the few functions that keep its shape even after differentiation. In order for the sum of multiple derivatives of a function to sum up to zero, the derivatives must cancel each other out and the only way for them to do so is for the derivatives to have the same form as the initial function. Thus, to solve

:$frac \left\{d^\left\{n\right\}y\right\} \left\{dx^\left\{n + A_\left\{1\right\}frac \left\{d^\left\{n-1\right\}y\right\} \left\{dx^\left\{n-1 + cdots + A_\left\{n\right\}y = 0$

we set $y=e^\left\{z x\right\}$, leading to

:$z^n e^\left\{zx\right\} + A_1 z^\left\{n-1\right\} e^\left\{zx\right\} + cdots + A_n e^\left\{zx\right\} = 0.$

Division by "e" "zx" gives the "n"th-order polynomial

:$F\left(z\right) = z^\left\{n\right\} + A_\left\{1\right\}z^\left\{n-1\right\} + cdots + A_n = 0.,$

This equation "F"("z") = 0, is the "characteristic" equation considered later by Monge and Cauchy.

Formally, the terms

:$frac \left\{d^\left\{k\right\}y\right\} \left\{dx^\left\{kquadquad\left(k = 1, 2, dots, n\right).$

of the original differential equation are replaced by "z""k". Solving the polynomial gives "n" values of "z", "z"1, ..., "z""n". Substitution of any of those values for "z" into "e" "zx" gives a solution "e" "z""i""x". Since homogeneous linear differential equations obey the superposition principle, any linear combination of these functions also satisfies the differential equation.

When these roots are all distinct, we have "n" distinct solutions to the differential equation. It can be shown that these are linearly independent, by applying the Vandermonde determinant, and together they form a basis of the space of all solutions of the differential equation.

ExampleSidebar|35%
:$y$'-2y+2y"-2y'+y=0 , has the characteristic equation

: $z^4-2z^3+2z^2-2z+1=0. ,$

This has zeroes, "i", −"i", and 1 (multiplicity 2). The solution basis is then

: $e^\left\{ix\right\} ,, e^\left\{-ix\right\} ,, e^x ,, xe^x ,.$

This corresponds to the real-valued solution basis

: $cos x ,, sin x ,, e^x ,, xe^x ,.$

The preceding gave a solution for the case when all zeros are distinct, that is, each has multiplicity 1. For the general case, if "z" is a (possibly complex) zero (or root) of "F"("z") having multiplicity "m", then, for $kin\left\{0,1,dots,m-1\right\} ,$, $y=x^ke^\left\{zx\right\} ,$ is a solution of the ODE. Applying this to all roots gives a collection of "n" distinct and linearly independent functions, where "n" is the degree of "F"("z"). As before, these functions make up a basis of the solution space.

If the coefficients "Ai" of the differential equation are real, then real-valued solutions are generally preferable. Since non-real roots "z" then come in conjugate pairs, so do their corresponding basis functions nowrap|"x""k"exp"zx", and the desired result is obtained by replacing each pair with their real-valued linear combinations Re("y") and Im("y"), where "y" is one of the pair.

A case that involves complex roots can be solved with the aid of Euler's formula.

Examples

Given $y"-4y\text{'}+5y=0 ,$. The characteristic equation is $z^2-4z+5=0 ,$ which has zeroes 2+"i" and 2−"i". Thus the solution basis $\left\{y_1,y_2\right\}$ is $\left\{e^\left\{\left(2+i\right)x\right\},e^\left\{\left(2-i\right)x\right\}\right\} ,$. Now "y" is a solution iff $y=c_1y_1+c_2y_2 ,$ for $c_1,c_2inmathbb C$.

Because the coefficients are real,
*we are likely not interested in the complex solutions
*our basis elements are mutual conjugatesThe linear combinations

:$u_1=mbox\left\{Re\right\}\left(y_1\right)=frac\left\{y_1+y_2\right\}\left\{2\right\}=e^\left\{2x\right\}cos\left(x\right) ,$ and

:$u_2=mbox\left\{Im\right\}\left(y_1\right)=frac\left\{y_1-y_2\right\}\left\{2i\right\}=e^\left\{2x\right\}sin\left(x\right) ,$

will give us a real basis in $\left\{u_1,u_2\right\}$.

Simple harmonic oscillator

The second order differential equation

:$D^2 y = -k^2 y,$

which represents a simple harmonic oscillator, can be restated as

:$\left(D^2 + k^2\right) y = 0.$

The expression in parenthesis can be factored out, yielding

:$\left(D + i k\right) \left(D - i k\right) y = 0,$

which has a pair of linearly independent solutions, one for

:$\left(D - i k\right) y = 0$

and another for

:$\left(D + i k\right) y = 0.$

The solutions are, respectively,

:$y_0 = A_0 e^\left\{i k x\right\}$

and

:$y_1 = A_1 e^\left\{-i k x\right\}.$

These solutions provide a basis for the two-dimensional "solution space" of the second order differential equation: meaning that linear combinations of these solutions will also be solutions. In particular, the following solutions can be constructed

:$y_\left\{0\text{'}\right\} = \left\{A_0 e^\left\{i k x\right\} + A_0 e^\left\{-i k x\right\} over 2\right\} = A_0 cos \left(k x\right)$

and

:$y_\left\{1\text{'}\right\} = \left\{A_1 e^\left\{i k x\right\} - A_1 e^\left\{-i k x\right\} over 2 i\right\} = A_1 sin \left(k x\right).$

These last two trigonometric solutions are linearly independent, so they can serve as another basis for the solution space, yielding the following general solution:

:$y_H = A_0 cos \left(k x\right) + A_1 sin \left(k x\right).$

Damped harmonic oscillator

Given the equation for the damped harmonic oscillator:

:$left\left(D^2 + \left\{b over m\right\} D + omega_0^2 ight\right) y = 0,$

the expression in parentheses can be factored out: first obtain the characteristic equation by replacing "D" with &lambda;. This equation must be satisfied for all "y", thus:

:$lambda^2 + \left\{b over m\right\} lambda + omega_0^2 = 0.$

Solve using the quadratic formula:

:$lambda = \left\{-b/m pm sqrt\left\{b^2 / m^2 - 4 omega_0^2\right\} over 2\right\}.$

Use these data to factor out the original differential equation:

:$left\left(D + \left\{b over 2 m\right\} - sqrt$b^2 over 4 m^2} - omega_0^2} ight) left(D + {b over 2m} + sqrtb^2 over 4 m^2} - omega_0^2} ight) y = 0.

This implies a pair of solutions, one corresponding to

:$left\left(D + \left\{b over 2 m\right\} - sqrt$b^2 over 4 m^2} - omega_0^2} ight) y = 0

and another to

:$left\left(D + \left\{b over 2m\right\} + sqrt$b^2 over 4 m^2} - omega_0^2} ight) y = 0

The solutions are, respectively,

:$y_0 = A_0 e^\left\{-omega x + sqrt\left\{omega^2 - omega_0^2\right\} x\right\} = A_0 e^\left\{-omega x\right\} e^\left\{sqrt\left\{omega^2 - omega_0^2\right\} x\right\}$

and

:$y_1 = A_1 e^\left\{-omega x - sqrt\left\{omega^2 - omega_0^2\right\} x\right\} = A_1 e^\left\{-omega x\right\} e^\left\{-sqrt\left\{omega^2 - omega_0^2\right\} x\right\}$

where &omega; = "b" / 2"m". From this linearly independent pair of solutions can be constructed another linearly independent pair which thus serve as a basis for the two-dimensional solution space:

:$y_H \left(A_0, A_1\right) \left(x\right) = left\left(A_0 sinh sqrt\left\{omega^2 - omega_0^2\right\} x + A_1 cosh sqrt\left\{omega^2 - omega_0^2\right\} x ight\right) e^\left\{-omega x\right\}.$

However, if |&omega;| < |&omega;0| then it is preferable to get rid of the consequential imaginaries, expressing the general solution as

:$y_H \left(A_0, A_1\right) \left(x\right) = left\left(A_0 sin sqrt\left\{omega_0^2 - omega^2\right\} x + A_1 cos sqrt\left\{omega_0^2 - omega^2\right\} x ight\right) e^\left\{-omega x\right\}.$

This latter solution corresponds to the underdamped case, whereas the former one corresponds to the overdamped case: the solutions for the underdamped case oscillate whereas the solutions for the overdamped case do not.

Nonhomogeneous equation with constant coefficients

To obtain the solution to the non-homogeneous equation (sometimes called inhomogeneous equation), find a particular solution "y""P"("x") by either the method of undetermined coefficients or the method of variation of parameters; the general solution to the linear differential equation is the sum of the general solution of the related homogeneous equation and the particular solution.

Suppose we face

:$frac \left\{d^\left\{n\right\}y\right\} \left\{dx^\left\{n$ + A_{1}frac {d^{n-1}y} {dx^{n-1 + cdots + A_{n}y = f(x).

For later convenience, define the characteristic polynomial

:$P\left(v\right)=v^n+A_1v^\left\{n-1\right\}+cdots+A_n.$

We find the solution basis $\left\{y_1,y_2,ldots,y_n\right\}$ as in the homogeneous ("f"=0) case. We now seek a particular solution "yp" by the variation of parameters method. Let the coefficients of the linear combination be functions of "x":

:$y_p=u_1y_1+u_2y_2+cdots+u_ny_n.$

Using the "operator" notation $D=d/dx$ and a broad-minded use of notation, the ODE in question is $P\left(D\right)y=f$; so

:$f=P\left(D\right)y_p=P\left(D\right)\left(u_1y_1\right)+P\left(D\right)\left(u_2y_2\right)+cdots+P\left(D\right)\left(u_ny_n\right).$

With the constraints

:$0=u\text{'}_1y_1+u\text{'}_2y_2+cdots+u\text{'}_ny_n$:$0=u\text{'}_1y\text{'}_1+u\text{'}_2y\text{'}_2+cdots+u\text{'}_ny\text{'}_n$:$cdots$:$0=u\text{'}_1y^\left\{\left(n-2\right)\right\}_1+u\text{'}_2y^\left\{\left(n-2\right)\right\}_2+cdots+u\text{'}_ny^\left\{\left(n-2\right)\right\}_n$

the parameters commute out, with a little "dirt":

:$f=u_1P\left(D\right)y_1+u_2P\left(D\right)y_2+cdots+u_nP\left(D\right)y_n+u\text{'}_1y^\left\{\left(n-1\right)\right\}_1+u\text{'}_2y^\left\{\left(n-1\right)\right\}_2+cdots+u\text{'}_ny^\left\{\left(n-1\right)\right\}_n.$

But $P\left(D\right)y_j=0$, therefore

:$f=u\text{'}_1y^\left\{\left(n-1\right)\right\}_1+u\text{'}_2y^\left\{\left(n-1\right)\right\}_2+cdots+u\text{'}_ny^\left\{\left(n-1\right)\right\}_n.$

This, with the constraints, gives a linear system in the $u\text{'}_j$. This much can always be solved; in fact, combining Cramer's rule with the Wronskian,

:$u\text{'}_j=\left(-1\right)^\left\{n+j\right\}frac\left\{W\left(y_1,ldots,y_\left\{j-1\right\},y_\left\{j+1\right\}ldots,y_n\right)_\left\{0 choose f${W(y_1,y_2,ldots,y_n)}.

The rest is a matter of integrating $u\text{'}_j.$

The particular solution is not unique; $y_p+c_1y_1+cdots+c_ny_n$ also satisfies the ODE for any set of constants "cj".

Example

Suppose $y"-4y\text{'}+5y=sin\left(kx\right)$. We take the solution basis found above $\left\{e^\left\{\left(2+i\right)x\right\},e^\left\{\left(2-i\right)x\right\}\right\}$.:

Using the list of integrals of exponential functions

:(Notice that "u"1 and "u"2 had factors that canceled "y"1 and "y"2; that is typical.)

For interest's sake, this ODE has a physical interpretation as a driven damped harmonic oscillator; "yp" represents the steady state, and $c_1y_1+c_2y_2$ is the transient.

Equation with variable coefficients

A linear ODE of order "n" with variable coefficients has the general form:$p_\left\{n\right\}\left(x\right)y^\left\{\left(n\right)\right\}\left(x\right) + p_\left\{n-1\right\}\left(x\right) y^\left\{\left(n-1\right)\right\}\left(x\right) + cdots + p_0\left(x\right) y\left(x\right) = r\left(x\right).$

Examples

A particular simple example is the Cauchy-Euler equation often used in engineering

:$x^n y^\left\{\left(n\right)\right\}\left(x\right) + a_\left\{n-1\right\} x^\left\{n-1\right\} y^\left\{\left(n-1\right)\right\}\left(x\right) + cdots + a_0 y\left(x\right) = 0.$

First order equation

ExampleSidebar|35%|$-3y"+4y\text{'}=5 ,$ with the initial condition

: $fleft\left(0 ight\right)=2. ,$

Using the general solution method:

: $f=e^\left\{-3x\right\}left\left(int 2 e^\left\{3x\right\}, dx + kappa ight\right). ,$

The integration is done from 0 to x, giving:

: $f=e^\left\{-3x\right\}left\left(2/3left\left( e^\left\{3x\right\}-e^0 ight\right) + kappa ight\right). ,$

Then we can reduce to:

: $f=2/3left\left(1-e^\left\{-3x\right\} ight\right) + e^\left\{-3x\right\}kappa. ,$

where "&kappa;" is 2 from the initial condition.A linear ODE of order 1 with variable coefficients has the general form

:$Dy\left(x\right) + f\left(x\right) y\left(x\right) = g\left(x\right).$

Equations of this form can be solved by multiplying the integrating factor

:$e^\left\{int f\left(x\right),dx\right\}$

throughout to obtain

:$Dy\left(x\right)e^\left\{int f\left(x\right),dx\right\}+f\left(x\right)y\left(x\right)e^\left\{int f\left(x\right),dx\right\}=g\left(x\right)e^\left\{int f\left(x\right) , dx\right\},$

which simplifies due to the product rule to

: $D \left(y\left(x\right)e^\left\{int f\left(x\right),dx\right\}\right)=g\left(x\right)e^\left\{int f\left(x\right),dx\right\}$

which, on integrating both sides, yields

: $y\left(x\right)e^\left\{int f\left(x\right),dx\right\}=int g\left(x\right)e^\left\{int f\left(x\right),dx\right\} ,dx+c ~,$

: $y\left(x\right) = \left\{int g\left(x\right)e^\left\{int f\left(x\right),dx\right\} ,dx+c over e^\left\{int f\left(x\right),dx ~.$

In other words: The solution of a first-order linear ODE

: $y\text{'}\left(x\right) + f\left(x\right) y\left(x\right) = g\left(x\right),$

with coefficients that may or may not vary with "x", is:

:$y=e^\left\{-a\left(x\right)\right\}left\left(int g\left(x\right) e^\left\{a\left(x\right)\right\}, dx + kappa ight\right)$

where "$kappa$" is the constant of integration, and

: $a\left(x\right)=int\left\{f\left(x\right),dx\right\}.$

Examples

Consider a first order differential equation with constant coefficients:

:$frac\left\{dy\right\}\left\{dx\right\} + b y = 1.$

This equation is particularly relevant to first order systems such as RC circuits and mass-damper systems.

In this case, "p"("x") = b, "r"("x") = 1.

Hence its solution is

:$y\left(x\right) = e^\left\{-bx\right\} left\left( e^\left\{bx\right\}/b+ C ight\right) = 1/b + C e^\left\{-bx\right\} .$

ee also

* Laplace transform
* Fourier transform

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Linear differential equation — Linear Lin e*ar (l[i^]n [ e]*[ e]r), a. [L. linearis, linearius, fr. linea line: cf. F. lin[ e]aire. See 3d {Line}.] 1. Of or pertaining to a line; consisting of lines; in a straight direction; lineal. [1913 Webster] 2. (Bot.) Like a line;… …   The Collaborative International Dictionary of English

• linear differential equation — noun : an equation of the first degree only in respect to the dependent variable or variables and their derivatives * * * Math. an equation involving derivatives in which the dependent variables and all derivatives appearing in the equation are… …   Useful english dictionary

• linear differential equation — Math. an equation involving derivatives in which the dependent variables and all derivatives appearing in the equation are raised to the first power. [1885 90] * * * …   Universalium

• Differential equation — Not to be confused with Difference equation. Visualization of heat transfer in a pump casing, created by solving the heat equation. Heat is being generated internally in the casing and being cooled at the boundary, providing a steady state… …   Wikipedia

• Ordinary differential equation — In mathematics, an ordinary differential equation (or ODE) is a relation that contains functions of only one independent variable, and one or more of their derivatives with respect to that variable. A simple example is Newton s second law of… …   Wikipedia

• Matrix differential equation — A differential equation is a mathematical equation for an unknown function of one or several variables that relates the values of the function itself and of its derivatives of various orders. A matrix differential equation is one containing more… …   Wikipedia

• differential equation — Math. an equation involving differentials or derivatives. [1755 65] * * * Mathematical statement that contains one or more derivatives. It states a relationship involving the rates of change of continuously changing quantities modeled by… …   Universalium

• Partial differential equation — A visualisation of a solution to the heat equation on a two dimensional plane In mathematics, partial differential equations (PDE) are a type of differential equation, i.e., a relation involving an unknown function (or functions) of several… …   Wikipedia

• Hypergeometric differential equation — In mathematics, the hypergeometric differential equation is a second order linear ordinary differential equation (ODE) whose solutions are given by the classical hypergeometric series. Every second order linear ODE with three regular singular… …   Wikipedia

• Delay differential equation — In mathematics, delay differential equations (DDEs) are a type of differential equation in which the derivative of the unknown function at a certain time is given in terms of the values of the function at previous times. A general form of the… …   Wikipedia