First-order linear differential equation

From Calculus
Revision as of 23:42, 5 July 2012 by Vipul (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Definition

Format of the differential equation

A first-order linear differential equation is a differential equation of the form:

dydx+p(x)y=q(x)

where p,q are known functions.

Solution method and formula: indefinite integral version

Let H(x) be an antiderivative for p(x), so that H′(x)=p(x). Then, we multiply both sides by eH(x). Simplifying, we get:

ddx[eH(x)y]=q(x)eH(x)

Integrating, we get:

eH(x)y=∫q(x)eH(x)dx

Rearranging, we get:

y=e−H(x)∫q(x)eH(x)dx

where

H

is an antiderivative of

p

.

In particular, we obtain that:

General solution=Particular solution+Ce−H(x),C∈R

The function eH(x) is termed the integrating factor for the differential equation because multiplying by this turns the differential equation into an exact differential equation, i.e., a differential equation to which we can apply integration on both sides.

Solution method and formula: definite integral version

Suppose we are given the initial value condition that at x=x0,y=y0.

Let H(x) be an antiderivative for p(x), so that H′(x)=p(x). Then, we multiply both sides by eH(x). Simplifying, we get:

ddx[eH(x)y]=q(x)eH(x)

Integrating from x0 to (arbitrary) x, we get:

eH(x)y−eH(x0)y0=∫x0xq(t)eH(t)dt

Thus, the general expression is:

y=e−H(x)(eH(x0)y0+∫x0xq(t)eH(t)dt)

Examples

Simple example

Consider the differential equation:

y′+y=eex

Here, p(x)=1,q(x)=eex. Take H(x)=x and get:

y=e−x∫eexexdx

This gives:

y=e−x(eex+C),C∈R

Example that is better solved by subtitution

Consider:

xy′+y=sinx

Divide both sides by x to get:

y′+yx=sinxx

This is linear, with p(x)=1/x, q(x)=(sinx)/x. Take H(x)=lnx and eH(x)=x (see note):

y=1x∫sinxxxdx

This gives:

y=C−cosxx,C∈R

The linear method is unnecessary -- we divided and multiplied by x. A better solution would be to substitute u=xy and get a separable differential equation.

Example where a particular solution is obtained by inspection

Consider:

y′+y=tanx+tan2x

The linear method gives:

y=e−x∫ex(tanx+tan2x)dx

The integration is not easy. So, instead of trying to do the integration directly, we note that the answer is:

y=Particular solution+Ce−x

It thus suffices to find a particular solution. Inspection and guesswork gives a solution y=tanx−1. The general solution is thus:

y=tanx−1+Ce−x