cclogo.gif (38585 bytes)   Seminole State Homepage   |   Calculus I   |   Calculus II    |    Calculus III   |   Diff Eq    |    Calculus Homepage cclogo.gif (38585 bytes)

 

Chapter 4 Notes and Examples

These notes are just the sketchy highlights.  They do not include all the details, proofs, and examples done in class.  They are meant to give you an overview of what was covered in class.  

How can we solve a higher order, constant coefficient, homogeneous differential equation?  By this is meant an equation of the form

any(n) + an-1y(n-1) + . . . + a1y' + a0y = 0.      (A)

Some clever soul many years ago figured out that if we seek a solution of the form y = emx we will be able to find solutions to equation (A) by solving the following polynomial equation.

anmn + an-1mn-1 + . . . + a1m + a0 = 0.      (B)

 

 

Why this is true is indicated in the box above and was demonstrated in class along with specific examples.  Maple could be used (Maple worksheet example--multiply, factor polynomials) in doing the algebra involved in finding the zeroes of the auxiliary polynomial and solving the auxiliary equation (B).  In class we went into some detail concerning what it would take to find the general solution to (A).  Ultimately we found that if the auxiliary equation (B) had n distinct roots, m1, m2, . . ., mn then each function yi = emix for i = 1, 2, . . ., n would be a solution to (A).  We also discussed why any linear combination of solutions yi would also be a solution to (A) and in fact concluded that if equation (B) had n distinct roots we could form the general solution to (A) under the assumption that the n solutions of the form yi = emix for i = 1, 2, . . ., n are linearly independent.  This is summarized in the box below.

 

 

At this point we only informally discussed the meaning of linear independence.  Our conclusion was that we could easily solve the following equation.

y(4) + 4y(3) - 7y" - 22y' + 24y = 0        (C)

because the auxiliary equation, m4 + 4m3 - 7m2 - 22m + 24 = 0, is easily solved and has solutions m=-4, m=-3, m=1, and m=2.  The general solution to the equation is

y = c1e-4x + c2e-3x + c3ex + c4e2x.      (D)

We discussed the need to have n arbitrary constants in forming the general solution to an nth order, constant coefficient, homogeneous differential equation and that we would not actually have n arbitrary constants in (D) above if the solution functions being used were not linearly independent.

We then considered what we could do if (B) did not have n different solutions, i.e., if some of the zeroes of the related polynomial had multiplicity greater than 1.  At this point I introduced the notion of a constant coefficient differential operator, how one would apply such an operator,  and some of the properties of such an operator (such as the fact that it could be factored and the different factors (operators) could be applied in any order and still produce the same result).  For example, in operator form, equation (C) could be written as

(D4 + 4D3 - 7D2 - 22D + 24)y = 0    or      (D-2)(D-1)(D+3)(D+4)y = 0    

or equivalently as     (D-1)(D-2)(D+4)(D+3)y = 0

where D means differentiation with respect to the independent variable, D2 means DD (differentiate and then differentiate again, second derivative) etc.

We looked at applying the operator D-a to the function eaxf(x) where f(x) is a differentiable function and saw that

(D-a)(eaxf(x)) = eaxf '(x) +aeaxf(x) -aeaxf(x) = eaxf '(x)

and then were easily able to see that if the function f is n times differentiable then

(D-a)n(eaxf(x)) = eaxf (n)(x).

This implies, for example, that if we look at the third order differential equation (D-a)3y = 0 we could find as solutions any function of the form eaxf(x) where the third derivative of f(x) equals zero.  Thus solutions to (D-a)3y = 0 would include y = 1*eax, y = x*eax, and y = x2*eax.  It was noted that we would soon show that these three functions are linearly independent and that the general solution to (D-a)3y = 0 is

y = c1eax + c2xeax + c3x2eax.

We discussed the fact that if the roots of an auxiliary equation have multiplicities greater than one we will be able to find additional solutions (that will be linearly independent) to the corresponding differential equation by multiplying solutions associated with the roots of multiplicity greater than one by the appropriate powers of x.

We next looked at the complication that will arise if some of the roots of the auxiliary equation are not real.  In particular we looked at an equation of the form

ay" + by' + cy = 0      (E) 

where the solutions to am2 + bm + c = 0 take the form m = p - iq and m = p + iq where i is the imaginary number sqrt(-1).  In this case it was shown that Euler's formula (Zill, page 134) allows us to transform the general solution to (E) from

y = c1e(p-iq)x + c2e(p+iq)x     to     y = epx(c3cos(qx) + c4sin(qx))   and we could go back to calling the arbitrary constants c1 and c2.  Two (linearly independent) solutions will be y1 = epxcos(qx)   and   y2 = epxsin(qx).  This form will be much more useful when solving for the arbitrary constants when conditions are attached.

 

 

DE Example 1

y" + 2y' + 5y = 0      The roots of the auxiliary equation are -1-2i and -1+2i so with p=-1 and q=2 the general solution will be

y = e-x(c1cos(2x) + c2sin(2x))   and two (linearly independent) solutions will be   y1 = e-xcos(2x)   and   y2 = e-xsin(2x).

In operator form the equation in this example would be written as (D2 + 2D +5)y = 0.  

Could we solve the following equation?

(D2 + 2D +5)2y = 0

We can.  This equation will also have solutions y1 = e-xcos(2x)   and   y2 = e-xsin(2x),   and additionally, due to the multiplicities of the zeroes of the auxiliary equation, will have solutions y3 = xe-xcos(2x)   and   y4 = xe-xsin(2x).  Some of the details were presented in class and it was noted that in this type of case we could multiply solutions related to zeroes of the auxiliary equation with multiplicities greater than two by appropriate powers of x to produce additional (linearly independent) solutions.

For example, one solution to (D2 + 2D +5)4y = 0 would be y = x3e-xsin(2x).

 

 

Linear Dependence and Linear Independence

Functions y1, y2, . . ., yn are said to be linearly independent if   c1y1 + c2 y2 + . . .+ cnyn = 0 only if  c1 = c2  = . . .= cn= 0.  Otherwise the functions are said to be linearly dependent.  If the functions are linearly dependent then at least one of the constants ci above would not be zero (say c1) and we could solve for y1 in terms of the other functions yi (as shown in class).

Example

Use the definition above to prove that the following functions are linearly dependent.

y1 = 2 + x,     y2 = 3 - x2,     y3 = 7 + 2x - x2

Since 2*y1 + 1*y2 - 1*y3 = 0 the functions must be linearly dependent (not all ci = 0).  If you could not figure out in your head values for the constants (not all zero) that would cause the needed linear combination of the functions to be identically (for all x in this case) equal to zero you could form and solve a system of equations as shown below.  In this example that system would have an infinite number of solutions one of which would have been (2,1,-1).  It was also shown in class that if the only solution to this system was (0,0,0) then the functions would be linearly independent.

If the functions had been  y1 = 2 + x,     y2 = 2 - x2,     y3 = 7 + 2x - x2

then we would get the following result:

 

Suppose two functions, y1 and y2 are linearly dependent.  This means that y2 = cy1 for some constant c.  In this case the determinant 

det [[y1,y2],[y1',y2']] was shown in class to be zero.  This determinant is called the Wronskian (Zill, page 145) of the two functions.

After defining the Wronskian for n functions, it was shown in class using properties of determinants that the Wronskian of n linearly dependent functions would be zero.  This is logically equivalent to saying that if the Wronskian of n functions is not zero then the functions must be linearly independent. 

Example

Use the Wronskian to show that the functions ex, e2x, and e3x are linearly independent.  As shown in class and below, the determinant that would be the Wronskian of these three functions will evaluate to 2e6x, which is not zero, so the functions must be linearly independent.

Click here to see a Maple worksheet showing commands for computing the Wronskian of three functions.

Extra Credit

Use the Wronskian to show that the functions eax, ebx, and ecx are linearly independent if the constants a, b, and c are three different numbers.

 

It was shown in class that the Wronskian for the functions defined by y = 1, x, x2, . . ., xn would not equal zero and therefore these functions are linearly independent.  This was used to show that the functions defined by y = eax, xeax, . . ., xneax would be linearly independent. 

 

DE Example 2--Solving a Homogeneous Equation

Solve     D2(D+2)(D+1)y = 0     y(0) = 0, y'(0) = 4, y"(0) = -6, y'''(0) = 14

The general solution is    y = c1 + c2x + c3e-2x + c4e-x.

y' = c2 - 2c3e-2x - c4e-x,     y" = 4c3e-2x + c4e-x,     y''' = -8c3e-2x - c4e-x

Substituting in the initial conditions yields the following system of equations to be solved:

0 = c1 + c3 + c4     4 = c2 - 2c3 - c4,     -6 = 4c3 + c4,     14 = -8c3 - c4

The solution to this system is c1 = 0, c2 = 2, c3 = -2, c4 = 2

so the solution to the differential equation satisfying the initial conditions is

y = 2x - 2e-2x + 2e-xMaple Worksheet--substituting in initial conditions and solving the system.

The graph of the solution is shown on the right in red along with the graph of y = 2x in blue.

 

Nonhomogeneous equations

How can we solve a higher order, constant coefficient, linear, nonhomogeneous differential equation?  By this is meant an equation of the form

any(n) + an-1y(n-1) + . . . + a1y' + a0y = f(x).      or equivalently, in operator form,    

(1)     U(D)y = f(x)     where       U(D) = anDn + an-1Dn-1 + . . . + a1D + a0

U(D) takes the form of a polynomial in D.

You can find the general solution to equation (1) if you can find any solution to (1) and can solve U(D)y = 0.  This is because if yc (called the complementary function) is the general solution to U(D)y = 0 and yp is any (particular) solution to (1) then y = yc + yp will be the general solution to (1).  It will contain the required number of arbitrary constants and since U(D)(yc + yp) = U(D)yc + U(D)yp = 0 + f(x) = f(x) it will represent solutions to (1). 

Thus if I can find yc, the solution to the corresponding homogeneous equation, and find any yp, any particular solution, I will have the general solution.

DE Example 3

I want to solve    y" - 2y' - 8y = 2ex - e-x.      (12)

I solve m2 - 2m - 8 = 0 and find the solutions m = -2 and m = 4.  Thus yc = c1e-2x + c2e4x.  At this point I am going to take a guess at what yp will look like.  I am going to "guess" yp = Aex + Be-x.  It might seem like a good guess considering what the function f(x) (function on the right side of the equal sign above) is in this example.  Substituting this guess for yp and its first and second derivatives into (12) and combining like terms on the left yields

-9Aex - 5Be-x = 2ex - e-x.

Equating coefficients of like terms on each side of the equal sign in the equation above leads to -9A = 2 and -5B = -1 so we need A = -2/9 and B = 1/5 in order that yp = Aex + Be-x will be a solution to (12).  Thus yp = (-2/9)ex + (1/5)e-x and the general solution to (12) is

y = c1e-2x + c2e4x + (-2/9)ex + (1/5)e-x.

Here is the solution satisfying some initial conditions.

Maple worksheet solution with initial conditions

 

If the equation I wanted to solve was    y" - 2y' - 8y = 2e4x - e-2x    the form to use for yp would have been less obvious and if I wanted to solve

y" - 2y' - 8y = 2e4x + cos(2x) - (3x)sin(x)     the form to use for yp would have been much less obvious. 

If I wanted to solve    y" - 2y' - 8y = [2e4x + cos(2x)] / [(3x)sin(x)]    I might never figure out a form for yp and in fact might never be able to solve the equation analytically.

 

What Can I Solve?

It turns out that one type of equation of the form

(1)     U(D)y = f(x)

that we can solve is the type where we can find a constant coefficient, homogeneous differential equation for which f(x) is a solution.  If we can then we do the following:

To solve (1) first solve the corresponding homogeneous equation, U(D)y = 0, to find yc.  Next find the simplest (to make it easier) differential operator U*(D) such that f(x) is a solution to

U*(D)y = 0.      (2)

For example, if f(x) = 2ex - e-x then U*(D) = (D-1)(D+1) since to solve

(D-1)(D+1)y = 0         (3)

our auxiliary equation would be (m-1)(m+1) = 0 which has solutions m=1 and m=-1 so the general solution to (3) would be y = c1ex + c2e-x and 2ex - e-x is a member of this family of functions (the member where c1 = 2 and c2 = -1).

Back to the general procedure.  After finding the differential operator U*(D), you then form the homogeneous equation

U*(D)U(D)y = 0.         (4)

If yp is a solution to (1) it must be a solution to (4) since

U*(D)U(D)yp = U*(D)f(x) = 0.

Thus yp must take the form of a solution to (4).  We can represent the general solution to (4) as y = yc + yq where yq is the part of the general solution to (4) that is not included in yc.  Since U(D)yc = 0 we are left with yp being a member of the family of functions yq.  Hopefully an example will make this clearer.

DE Example 4

Solve     y" - 2y' - 8y = 3ex - e-2x.       (5)

yc = c1e-2x + c2e4x as seen in an earlier example and U(D) = (D+2)(D-4).

The simplest constant coefficient, homogeneous differential equation for which y = 3ex - e-2x would be a solution is 

(D-1)(D+2)y = 0. 

Thus U*(D) = (D-1)(D+2) and the equation in this example corresponding to (4) is

(D-1)(D+2)(D-4)(D+2)y = 0     or equivalently      (D-1)(D-4)(D+2)2y = 0     whose general solution is

y = c1ex + c2e4x + c3e-2x + c4xe-2x.

Since yc = c3e-2x + c2e4x    we are left with yq = c1ex + c4xe-2x  which means that our form for yp is yp = Aex + Bxe-2x.  We now substitute this yp for y in (5) to try to find A and B.  Doing so yields    -9Aex - 6Be-2x = 3ex - e-2x.       Equating coefficients of like terms leads to A = -1/3 and B = 1/6.

Thus yp = (-1/3)ex + (1/6)xe-2x    and the general solution to equation (5) is

y = c1e-2x + c2e4x + (-1/3)ex + (1/6)xe-2x.

 

Here is a PowerPoint presentation on finding the form for a particular solution (same presentation with audio using Flash). 

 

DE Example 5

Solve     D2(D-1)y = 3ex + sin(x)      (6)

yc = c1 + c2x + c3ex

In this case the form you would need for yp (as shown in class) would be

yp = Axex + Bsin(x) + Ccos(x)

Substituting yp above in for y in (6) leads to

Aex + (-B+C)cos(x) + (B+C)sin(x) = 3ex + sin(x).       (7)

To find A, B, and C for yp to be a particular solution to (6) we need to equate coefficients of like terms in (7) and solve the resulting system of equations shown below.

A = 3,     -B + C = 0,     B + C = 1

Solving this system yields    yp = 3xex + (1/2)sin(x) + (1/2)cos(x)    and the general solution to (6) is

y = c1 + c2x + c3ex + 3xex + (1/2)sin(x) + (1/2)cos(x).

 

Example

Solve    (D2-D)y = 2 - 2x

yc = c1 + c2ex      The form for yp is    yp = Ax + Bx2.

Note the multiplicity in the U(D) and U*(D) operators.  The common mistake is to try to use yp = A + Bx.  In this example it turns out that A = 0 and B = 1 so the general solution is

y = c1 + c2ex + x2

 

Examples for Practice

See if you could figure out the U*(D) operator for each of the following functions.

1.  x2 - 5sin(3x)       2.  2excos(3x)      3.  xe-xsin(2x) + 4cos(3x)     4.  2cosh(2x) - sinh(2x)     5.  x2sin(x)

6.  x2sin(x) + xcos(x)     7.  x2 + 3e-4x     8.  4 - 5x + x2 + 3e-4x     9.  3x - sin(x) + 4cos(x) - e-2x

Answers

1.  D3(D2+9)     2.  [(D-1)2+9]     3.  [(D+1)2+4]2[D2+9]     4.  D2-4  (Think about the definition of these hyperbolic functions.)

5.  (D2+1)3     6.  Same as 5     7.  D3(D+4)     8.  Same as 7     9.  D2(D2+1)(D+2)

Suppose the differential equation involving the function in number 9 above had been

(D3+D)y = 3x - sin(x) + 4cos(x) - e-2x.    

In this case, due to the multiplicities involved, the form for yp would have been

yp = Ax + Bx2 + Cxsin(x) + Excos(x) + Fe-2x

Make sure you could have figured this out yourself.

 

Extra Credit

In class I solved the following problem:

(D2+1)y = x3,     y(0) = 0,  y(pi) = 0

I showed that there is no solution to the differential equation satisfying the given conditions.

You solve the following problem and show that there are an infinite number of solutions.

(D2+1)y = 2cos(x),     y(0) = 0,  y(pi) = 0

Explain why the fact that each of these problems does not have one unique solution does not contradict the Existence of a Unique Solution Theorem 4.1.1 given on page 117 of your text (Zill, 10th edition).

 

Here is an example applying undetermined coefficients to a first order linear differential equation.

First Order Linear Approach

Using Undetermined Coefficients

 

Graph of the Analytical Solution to the Equation Above with Discrete Euler Solution Points

        Excel Graph with a Step Size of pi/8

 

 

DE Example 6

Graph of the Solution

 

Maple Worksheet for DE Examples 1 - 6

 

DE Example 7

 

Maple commands to find A, B, C

 

Example With Maple Worksheets, Powerpoint, Flash

Click here to see a Maple worksheet showing commands for some of the steps necessary in solving the differential equation below along with finding a solution satisfying some initial conditions.  same worksheet with audio using Flash   

Maple worksheet for solving for undetermined coefficients    Maple worksheet for entering initial conditions and solving the resulting system

PowerPoint presentation with initial conditions

 

A Damped Forced Vibration Example

In this example I will look at a spring mass system with damping and a forcing function that yields the initial value problem shown below.  The initial position and initial velocity are each zero.

Maple Worksheet

 

         Excel Version of the Graph

The solution is graphed above in orange.  The steady-state solution is graphed in green.  The transient solution is graphed in blueClick here (QT) to see an animated graph of y' versus y as t goes from zero to six pi.  y' is along the vertical axis.  Click here for an animation that includes the changing value of t.  Click here to link to a wonderful applet dealing with damped forced vibrations.  I will demo this in class and explain more.  Here is a short video of me using the applet.  Entering m = 1, b = 3, k = 2, F = 2, and W = 1 in the applet will duplicate the problem on the left.  Try entering m = 1, b = 0, k = 1, F = 1, and W = 1 and see what happens.  This relates to the spring mass Exam II practice problem.  Try setting m = 1, b = 0, k = 2, F = 2, and W = 1.  Try setting b and F equal to zero (and nothing else zero).  What is happening in this case?  Set F equal to zero (and nothing else zero).  What is happening in this case? 

EC1:  Give the parametric representation of the graph of y' versus y in my animation above.

EC2:  Run the applet for m = 1, b = 0.1, k = 1, F = 1, W = 1, x(0) = 0, and x'(0) = 0.  Find the solution, transient solution, and steady-state solution analytically.  The solution is graphed above in orange.  The steady-state solution is graphed in green.  The transient solution is graphed in blue.  After doing this, set b = 0, leave the other values alone, and run the applet.  What happens?

 

EC3:  Prove that the graph of y' versus y for the steady-state part of the solution shown on the left is a circle whose radius is the square root of 2/5.

 

Here is an Animation of solutions to 

     y'' + k2y = cos(t),  y(0) = 0,  y'(0) = 0

with m = 1, b = 0, k = 1 in red and k varying from 0 to 2 in blue, F = 1, W = 1.  The animation also works for 

     y'' + y = cos(Wt),  y(0) = 0,  y'(0) = 0

with W = 1 in red and W varying from 0 to 2 in blue.

Here is a similar animation QT over a larger t interval and in this animation W (or k) varies from 0 to 4 in blue.

Analytical Solutions

 

Top of the page

 

 

 

 

 


          This site contains links to other Internet sites.  These links are not endorsements of any products or services in such sites, and no information  

           in such site has been endorsed or approved by this site.

        Lane Vosbury, Mathematics, Seminole State College   email:  vosburyl@seminolestate.edu

        This page was last updated on 08/21/14          Copyright 2002          webstats