Ordinary Differential Equations/Homogenous 1: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>Thenub314
 
(No difference)

Latest revision as of 19:34, 25 November 2010

Homogeneous Equations of Constant Coefficients

Consider a DE of the form

p0(x)dnydxn++pn1(x)dydx+pn(x)y=f(x)

Constant coefficients refers to the left hand side of a differential equation - the coefficients of all terms of y,(i.e. p1(x), etc) are constants. While this may seem unrealistic, this actually happens frequently in electric circuits and harmonic motion.

"Homogeneous" refers to the right hand side of the equation. If f(x)=0, the equation is homogeneous, if it isn't, it is nonhomogenous. Again, it seems useless but it isn't. And it makes for a much easier to solve problem. We'll deal with nonhomogenous equations later.

So a homogenous equation of constant coefficients is an equation of the form

dnydxn+c1dn1ydxn1+c2dn2ydxn2++cny=0

where c1, c2, etc are all constants.

Second order equations

In order to show how these equations are solved, lets start with the most basic case - a second order equation

Ad2ydx2+Bdydx+Cy=0

where A, B, and C are constants.

The Auxiliary Quadratic

For a DE

ad2ydx2+bdydx+cy=0,

Make the following substitution:

y=emx

This gives also

dydx=memx
d2ydx2=m2emx

The DE is now

am2emx+bmemx+cemx=0

Dividing by emx gives (note:emx can never equal zero)

am2+bm+c=0

This is the auxiliary quadratic (AQ) of the DE. There are four classes of outcomes to the auxiliary quadratic:

  1. b24ac>0,, giving two distinct, real, roots.
  2. b24ac=0,, giving two coincident real, roots.
  3. b24ac<0,, giving complex roots.
a: Purely imaginary roots.
b: Complex-conjugate pair.

The method of solution of the DE depends on the class of AQ.

Class 1: Distinct, Real Roots

Consider the DE

d2ydx2+dydx6y=0

The AQ is

m2+m6=0
(m+3)(m2)=0

This gives us the following roots:

m=2, m=3

Going back to the substitution we made to obtain the AQ, we have

y=e2x, y=e3x

as two distinct solutions to the DE. According to the [[../Higher 1#Superposition_principle|superposition principle]], the general solution is therefore

y=Ae2x+Be3x

General Solution to Class 1 DEs

Generalizing, for the Second Order DE
ad2ydx2+bdydx+cy=0
with the auxiliary quadratic given by
am2+bm+c=0
with roots α and β, the general solution is
y=Aeαx+Beβx

Class 2: Coincident, Real Roots

Consider the DE

d2ydx24dydx+4y=0

The AQ is

m24m+4=0
(m2)(m2)=0

so, e2x is a solution. However, we cannot have it as both solutions as the factor of two produced will be absorbed into the constant, leaving us with only one constant, and therefore a DE without a full solution.

For the other solution we will use the Method of Reduction of Order. To do so we assume that it is in the form of:

y2=u(x)y1=u(x)e2x

At the end we will check if our assumption is correct. We will now substitute this equation and solve for u(x)

y24y2+4y2=0
u(x)e2x+2u(x)e2x+2u(x)e2x+4u(x)e2x4(u(x)e2x+2u(x)e2x)+4u(x)e2x=0
u(x)e2x=0
e2x is always non-zero so the only way the product can equal zero is if:
u(x)=0

Integrating twice offers

u(x)=a1x+a2

Therefore

y2=(a1x+a2)y1
y2=(a1x+a2)e2x

Our general solution is:

y=C1y1+C2y2
y=C1e2x+C2(a1x+a2)e2x
y=(C1+a2)e2x+C2a1xe2x

Because each constant is arbitrary we can simply write

y=C1e2x+C2xe2x

The Method of Reduction of Order can be used on different equations and u(x) does not always equal x. You can see below that y=xex is a valid solution.

y=xe2x
dydx=2xe2x+e2x=e2x(2x+1)
d2ydx2=2e2x+2e2x(2x+1)=e2x(4x+4)

To check substitute these into the original DE:

e2x(4x+4)4e2x(2x+1)+4xe2x=0
4xe2x+4e2x8xe2x4e2x+4xe2x=0
0=0

Therefore, y=xe2x is a solution as well.

General Solution to Class 2 DEs

Generalizing, for the Second Order DE
ad2ydx2+bdydx+cy=0
with the coincident root α of the AQ, the general solution is
y=(A+Bx)eαx

Class 3a: Purely Imaginary Roots

To have complex roots, the AQ must have a discriminant less than zero, so

b24ac<0

Also, for the solution to be purely imaginary, the value of b must be exactly zero.

Therefore,

4ac>0

This means that a and c have to have the same signs: either a and c are both positive or they are both negative. If we consider our general second-order DE:

ad2ydx2+bdydx+cy=0

Setting b to zero gives

ad2ydx2+cy=0

Dividing through by a gives

d2ydx2+cay=0.

Therefore, the y term is always positive, and this can be represented by

d2ydx2+ω2y=0.

(I'm using ω here as it is used for simple harmonic motion, which is the primary use of this DE). There are now two paths to the solution of the DE. The first relies on us spotting that we can use the cyclical nature of trig. functions when derived. Substitute the following

y=cosωx
dydx=ωsinωx
d2ydx2=ω2cosωx

And check in our DE:

d2ydx2+ω2y=ω2cosωx+ω2cosωx=0

This checks out, so cosωx is a solution. A similar result holds true for the substitution using y=sinωx.

Our solutions are therefore

y=cosωx
y=sinωx

So the general solution is

y=Acosωx+Bsinωx.


The other method of solving this equation is to use Euler's Formula:

eωix=cosωx+isinx
and
eωix=cosωxisinx

From our original DE, we have an AQ of

m2+ω2=0

giving us roots of

m=±iω

so the general solution, similar to the Class 1 DEs, is

y=Aeωix+Beωix
y=A(cosωx+isinωx)+B(cosωxisinωx)
y=(A+B)cosωx+i(AB)sinωx

Since A and B are arbitrary, we can set new constants for convenience, letting our new A equal A+B and our new B equal i(A-B).

Thus we have as our general solution

y=Acosωx+Bsinωx

General Solution to Class 3a DEs

Generalizing, for the Second Order DE
d2ydx2+ω2y=0
the general solution is
y=Acosωx+Bsinωx

Class 3b: Complex Conjugate Roots

Since it is a proven theorem that complex roots of polynomials always occur in conjugate pairs, the only remaining class of AQ is the one with complex conjugates for solutions.

Given that the solutions are complex, we know that in the AQ

am2+bm+c=0
b24ac,<0, b0 (see Class 3a).

The roots of this are in the form

(p±iq)

The general solution is then

y=Ae(p+iq)x+Be(piq)x
y=epx(Aeiqx+Beiqx)

From Euler's Formulas, we can now get

y=epx(A(cosqx+isinqx)+B(cosqxisinqx))
y=epx((A+B)cosqx+i(AB)sinqx)

As A and B are arbitrary, we can collapse them as in Class 3a, so that we have the general solution

y=epx(Acosqx+Bsinqx)

General Solution to Class 3b DEs

Generalizing, for the Second Order DE
ad2ydx2+bdydx+cy=0
with an AQ with roots
m=p±iq,
The general solution is
y=epx(Acosqx+Bsinqx)


We have now covered all possible types of homogeneous second-order differential equation, and we didn't even have to integrate anything! We will now have a look at higher order equivalents.

nth-Order Equations

How do we expand the above to the nth order? Well, the nth order has the same requirements of orders of x as second order equations do. So we still need functions involving emx. There's just 2 major differences. Firstly, we'll have more terms - we won't just be able to plug into the auxiliary quadratic equation to get the roots. Secondly, there are more roots. We'll end up with n roots, so y will be the sum of n equations.

An Example of a Third-Order Equation

Consider the third-order DE

d3ydx34d2ydx27dydx+6y=0.

Find the roots of the auxiliary cubic equation of the form

m34m27m+6=0
m=1,2,3

Our distinct solutions are therefore

y=ex, e2x, e3x

This gives us a general solution

y=Aex+Be2x+Ce3x

Template:BookCat