Docsity

Solution to a Second Order Homogeneous Linear Differential Equation, Lecture notes of Economics

Toggle sidebar
bg1
© 2008, 2016 Zachary S Tseng
B-1 - 1
Second Order Linear Differential Equations
Second order linear equations with constant coefficients; Fundamental
solutions; Wronskian; Existence and Uniqueness of solutions; the
characteristic equation; solutions of homogeneous linear equations;
reduction of order; Euler equations
In this chapter we will study ordinary differential equations of the standard
form below, known as the second order linear equations:
y″ + p(t)
y′ + q(t)
y = g(t).
Homogeneous Equations: If g(t) = 0, then the equation above becomes
y″ + p(t)
y′ + q(t)
y = 0.
It is called a homogeneous equation. Otherwise, the equation is
nonhomogeneous (or inhomogeneous).
Trivial Solution: For the homogeneous equation above, note that the
function y(t) = 0 always satisfies the given equation, regardless what p(t) and
q(t) are. This constant zero solution is called the trivial solution of such an
equation.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Partial preview of the text

Download Solution to a Second Order Homogeneous Linear Differential Equation and more Lecture notes Economics in PDF only on Docsity!

Second Order Linear Differential Equations

Second order linear equations with constant coefficients; Fundamental solutions; Wronskian; Existence and Uniqueness of solutions; the characteristic equation; solutions of homogeneous linear equations; reduction of order; Euler equations

In this chapter we will study ordinary differential equations of the standard form below, known as the second order linear equations :

y ″ + p ( t ) y ′ + q ( t ) y = g ( t ).

Homogeneous Equations : If g ( t ) = 0, then the equation above becomes

y ″ + p ( t ) y ′ + q ( t ) y = 0.

It is called a homogeneous equation. Otherwise, the equation is nonhomogeneous (or inhomogeneous ).

Trivial Solution : For the homogeneous equation above, note that the function y ( t ) = 0 always satisfies the given equation, regardless what p ( t ) and q ( t ) are. This constant zero solution is called the trivial solution of such an equation.

Second Order Linear Homogeneous Differential Equations

with Constant Coefficients

For the most part, we will only learn how to solve second order linear equation with constant coefficients (that is, when p ( t ) and q ( t ) are constants). Since a homogeneous equation is easier to solve compares to its nonhomogeneous counterpart, we start with second order linear homogeneous equations that contain constant coefficients only:

a y ″ + b y ′ + c y = 0.

Where a , b , and c are constants, a ≠ 0.

A very simple instance of such type of equations is

y ″ − y = 0.

The equation’s solution is any function satisfying the equality y ″ = y. Obviously y 1 = e t^ is a solution, and so is any constant multiple of it, C 1 e t. Not as obvious, but still easy to see, is that y 2 = e −t^ is another solution (and so is any function of the form C 2 e −t^ ).

It can be easily verified that any function of the form

y = C 1 e

t

+ C 2 e

−t

will satisfy the equation. In fact, this is the general solution of the above differential equation.

Comment : Unlike first order equations we have seen previously, the general solution of a second order equation has two arbitrary coefficients.

Example : Find the general solution of

y ″ − 5 y ′ = 0.

There is no need to “guess” an answer here. We actually know a way

to solve the equation already. Observe that if we let u = y ′, then

u ′ = y ″. Substitute them into the equation and we get a new equation:

u ′ − 5 u = 0.

This is a first order linear equation with p ( t ) = −5 and g ( t ) = 0. (!)

The integrating factor is μ = e

−5 t

( (^) t g t dt ) (^) et^ ( (^) dt ) (^) et ( C ) (^) Ce t

t

u t ( ) ( )^5

( )= (^) ∫ μ = ∫ = =

The actual solution y is given by the relation u = y ′, and can be found by integration:

2

5 2 1

5 5

( ) ( ) e C C e C

C

y t = (^) ∫ ut dt =∫ Ce t^ dt = t + = t +.

The method used in the above example can be used to solve any second

order linear equation of the form y ″ + p ( t ) y ′ = g ( t ), regardless whether its

coefficients are constant or nonconstant, or it is a homogeneous equation or nonhomogeneous.

Equations of nonconstant coefficients with missing y -term

If the y -term (that is, the dependent variable term) is missing in a second order linear equation, then the equation can be readily converted into a first order linear equation and solved using the integrating factor method.

Example : t y ″ + 4 y ′ = t

2

The standard form is y t

t

y ′′^ + ′=

Substitute: u t

t

u ′^ + =

t

p t

4 ( )= (^) , g ( t ) = t

Integrating factor is μ = t

4 .

5 4 6 2 4

− −

= ∫ t dt = t t + C t Ct

t

u t

Finally,

2

3 1

3 2

3 3

( ) ( ) t C t C t C

C

y t = ∫ u t dt = t − − + = + − +

Comment : Notice the above solution is not in the form of y = C 1 y 1 + C 2 y 2. There is nothing wrong with this, because this equation is not homogeneous. The general solution of a nonhomogeneous linear equation has a slightly different form. We will learn about the solutions of nonhomogeneous linear equations a bit later.

The Characteristic Polynomial

Back to the subject of the second order linear homogeneous equations with constant coefficients (note that it is not in the standard form below):

a y ″ + b y ′ + c y = 0, a ≠ 0. (*)

We have seen a few examples of such an equation. In all cases the solutions consist of exponential functions, or terms that could be rewritten into exponential functions†. With this fact in mind, let us derive a (very simple, as it turns out) method to solve equations of this type. We will start with the assumption that there are indeed some exponential functions of unknown exponents that would satisfy any equation of the above form. We will then devise a way to find the specific exponents that would give us the solution.

Let y = e rt^ be a solution of (), for some as-yet-unknown constant r. Substitute y , y ′ = r e rt , and y ″ = r^2 e rt^ into (), we get

a r

2

e

rt

+ b r e

rt

+ c e

rt

= 0, or

e

rt

( a r

2

+ b r + c ) = 0.

Since e rt^ is never zero, the above equation is satisfied (and therefore y = e rt is a solution of ()) if and only if a r^2 + b r + c = 0. Notice that the expression a r^2 + b r + c is a quadratic polynomial with r as the unknown. It is always solvable, with roots given by the quadratic formula. Hence, we can always solve a second order linear homogeneous equation with constant coefficients ().

† (^) Sine and cosine are related to exponential functions by the identities

i

e i e i 2

sin

θ θ θ

−^ −

= (^) and 2

cos

θ θ θ ei + e −^ i = (^).

This polynomial, a r^2 + b r + c , is called the characteristic polynomial of the differential equation (*). The equation

a r

2

+ b r + c = 0

is called the characteristic equation of (*). Each and every root, sometimes called a characteristic root , r , of the characteristic polynomial gives rise to a

solution y = e

rt of (*).

We will take a more detailed look of the 3 possible cases of the solutions thusly found:

  1. (When b^2 − 4 ac > 0) There are two distinct real roots r 1 , r 2.
  2. (When b^2 − 4 ac < 0) There are two complex conjugate roots r = λ ± μi.
  3. (When b^2 − 4 ac = 0) There is one repeated real root r.

Note : There is no need to put the equation in its standard form when solving it using the characteristic equation method. The roots of the characteristic equation remain the same regardless whether the leading coefficient is 1 or not.

Question : Suppose the initial conditions are instead y (10000) = 1, y ′(10000) = −7. How would the new t 0 change the particular solution?

Apply the initial conditions as before, and we see there is a little complication. Namely, the simultaneous system of 2 equations that we have to solve in order to find C 1 and C 2 now comes with rather inconvenient irrational coefficients:

1 = y (10000) = C 1 e −10000^ + C 2 e −

−7 = y ′(10000) = − C 1 e −10000^ − 4 C 2 e −

With some good bookkeeping, systems like this can be solved the usual way. However, there is an easier method to simplify the inconvenient coefficients. The idea is translation (or time-shift ). What we will do is to first construct a new coordinate axis, say Ť -axis. The two coordinate-axes are related by the equation Ť = t − t 0. (Therefore, when t = t 0 , Ť = 0; that is, the initial t -value t 0 becomes the new origin.) In other words, we translate (or time-shift) t - axis by t 0 units to make it Ť -axis. In this example, we will accordingly set Ť = t − 10000. The immediate effect is that it makes the initial conditions to be back at 0: y (0) = 1, y ′(0) = −7, with respect to the new Ť -coordinate. We then solve the translated system of 2 equations to find C 1 and C 2. What we get is the (simpler) system

1 = y (0) = C 1 e^0 + C 2 e^0 = C 1 + C 2

−7 = y ′(0) = − C 1 e^0 − 4 C 2 e^0 = − C 1 − 4 C 2

As we have seen on the previous page, the solution is C 1 = −1, and C 2 = 2. Hence, the solution, in the new Ť -coordinate system, is y ( Ť ) = − e − Ť^ + 2 e −4 Ť.

Lastly, since this solution is in terms of Ť , but the original problem was in terms of t , we should convert it back to the original context. This conversion is easily achieved using the translation formula used earlier, Ť = t − t 0 = t −

  1. By replacing every occurrence of Ť by t − 1000 in the solution, we obtain the solution, in its proper independent variable t.

y ( t ) = − e −( t^ − 10000)^ + 2 e −4( t^ − 10000).

Example : Consider the solution y ( t ) of the initial value problem

y ″ − 2 y ′ − 8 y = 0, y (0) = α , y ′(0) = 2 π.

Depending on the value of α , as t → ∞ , there are 3 possible behaviors of y ( t ).

Explicitly determine the possible behaviors and the respective initial value α

associated with each behavior.

The characteristic equation is r^2 − 2 r − 8 = ( r + 2)( r − 4) = 0. Its roots are r = −2 and 4. The general solution is then

y = C 1 e −2 t^ + C 2 e^4 t.

Notice that the long-term behavior of the solution is dependent on the coefficient C 2 only, since the C 1 e −2 t^ term tends to 0 as t → ∞ , regardless of the value of C 1.

Solving for C 2 in terms of α , we get

y (0) = α = C 1 + C 2

y ′(0) = 2 π = −2 C 1 + 4 C 2

2 α + 2 π = 6 C 2 →

2

α + π

C =.

Now, if C 2 > 0 then y tends to ∞ as t → ∞. This would happen when α > − π. If C 2 = 0 then y tends to 0 as t → ∞. This would happen when α = − π. Lastly, if C 2 < 0 then y tends to − ∞ as t → ∞. This would happen when α < − π. In summary:

When α > − π , C 2 > 0, lim t → ∞^ y ( t )=∞.

When α = − π , C 2 = 0, lim t → ∞^ y ( t )=^0.

When α < − π , C 2 < 0, lim t → ∞^ y ( t )=−∞.

(b) 16 ln(^1 ) cos( )^0

− t^2 y ′′+ t + y ′+ t y =

, y (0) = 2, y′ (0) = 0.

The standard form is 0 16

cos( ) 16

ln( 1 ) 2 + − 2 =

′′ (^) + y t

t y t

t y (^) , p ( t ) is only

defined (and is continuous) on the interval (−1, 4), and similarly q ( t ) is only continuously defined on the interval (−4, 4); g ( t ) is continuous everywhere. Combining them we see that p , q , and g have discontinuities at any t such that t ≤ −1 or t ≥ 4. That is, they are all continuous only on the interval (−1, 4). Since that interval contains t 0 = 0, it must be the largest interval on which the solution is guaranteed to exist uniquely. Therefore, the answer is (−1, 4)

Similar to the previous instance (first order linear equation version) of the Existence and Uniqueness Theorem, the only time that a unique solution is not guaranteed to exist anywhere is whenever the initial time t 0 occurs at a discontinuity of either p ( t ), q ( t ), or g ( t ).

Initial Value Problem vs. Boundary Value Problem

It might seem that there are more than one ways to present the initial conditions of a second order equation. Instead of locating both initial conditions y ( t 0 ) = y 0 and y′ ( t 0 ) = y′ 0 at the same point t 0 , couldn’t we take them at different points, for examples y ( t 0 ) = y 0 and y ( t 1 ) = y 1 ; or y′ ( t 0 ) = y′ 0 and y′ ( t 1 ) = y′ 1? The answer is NO. All the initial conditions in an initial value problem must be taken at the same point t 0. The sets of conditions above where the values are taken at different points are known as boundary conditions. A boundary value problem where a differential equation is bundled with (two or more) boundary conditions does not have the existence and uniqueness guarantee.

Example : Every function of the form y = C sin( t ), where C is a real number satisfies the boundary value problem y ″ + y = 0, y (0) = 0 and y ( π ) = 0. Therefore, the problem has infinitely many solutions, even though p ( t ) = 0, q ( t ) = 1, and g ( t ) = 0 are all continuous everywhere.

Exercises B.1-1 :

1 – 4 Find the general solution of each equation.

  1. y ″ + 10 y ′ = t^2
  2. y ″ − 9 y = 0
  3. y ″ + 4 y ′ − 5 y = 0
  4. 6 y ″ + y ′ − y = 0

5 – 9 Solve each initial value problem. For each problem, state the largest interval in which the solution is guaranteed to uniquely exist.

  1. y ″ + y ′ = 3 e t^ /^2 , y (0) = 4, y′ (0) = 3
  2. y ″ + 2 y ′ = t e −^ t^ , y (0) = 6, y′ (0) = −
  3. t y ″ − y ′ = t^2 + t , y (1) = 1, y ′(1) = 5
  4. y ″ − y ′ − 2 y = 0, y (0) = 2, y′ (0) = 7
  5. ( t^2 + 9) y ″ + 2 ty ′ = 0, y (3) = 2 π , y′ (3) = 2/

10 – 15 Solve each initial value problem.

  1. y ″ + y ′ − 12 y = 0, y (0) = −2, y′ (0) = −
  2. y ″ + y ′ − 12 y = 0, y ( π ) = −2, y′ ( π ) = −
  3. y ″ + 2 y ′ − 3 y = 0, y (0) = 1, y′ (0) = 13
  4. y ″ + 2 y ′ − 3 y = 0, y (2 π ) = 1, y′ (2 π ) = 13
  5. y ″ + 2 y ′ − 4 y = 0, y (0) = 6, y′ (0) = −
  6. y ″ + 2 y ′ − 4 y = 0, y (18) = 6, y′ (18) = −

Answers B-1.1 :

  1. (^2) 10 1

3 2

30 100 500

Ce C t t t y = − + + − t^ +

  1. y = C 1 e^3 t^ + C 2 e −3 t

  2. y = C 1 e t^ + C 2 e −5 t

  3. y = C 1 e t^ /3^ + C 2 e – t^ /

  4. y = − e − t^ + 1 + 4 e t^ /^2 , (− ∞ , ∞ )

  5. y = − t e −^ t^ + 6, (− ∞ , ∞ )

12

ln 4 2

3 2 2 = + + t − t t t y (^) , (0, ∞ )

  1. y = 3 e^2 t^ − e − t , (− ∞ , ∞ )
  2. +^ π 

4 tan^1

t y (^) , (− ∞ , ∞ )

  1. y = −4 e^3 t^ + 2 e −4 t
  2. y = −4 e 3( t^ −^ π )^ + 2 e −4( t^ −^ π )
  3. y = 4 e t^ − 3 e −3 t
  4. y = 4 e t^ − 2 π^ − 3 e −3( t^ − 2 π )
  5. y = 3 e (^ −^1 +^5 ) t^ + 3 e (−^1 −^5 ) t
  6. y = 3 e (^ −^1 +^5 )( t^ −^18 )+ 3 e (−^1 −^5 )( t −^18 )
  7. (a) (0, ∞ ), (b) (−10, 0), (c) (− ∞ , −10)

Fundamental Solutions

We have seen that the general solution of a second order homogeneous linear equation is in the form of y = C 1 y 1 + C 2 y 2 §, where y 1 and y 2 are two “distinct” functions both satisfying the given equation (as a result, y 1 and y 2 are themselves particular solutions of the equation). Now we will examine the circumstance under which two arbitrary solutions y 1 and y 2 could give us a general solution.

Suppose y 1 and y 2 are two solutions of some second order homogeneous linear equation such that their linear combinations y = C 1 y 1 + C 2 y 2 give a general solution of the equation. Then, according to the Existence and Uniqueness Theorem, for any pair of initial conditions y ( t 0 ) = y 0 and y′ ( t 0 ) = y′ 0 there must exist uniquely a corresponding pair of coefficients C 1 and C 2 that satisfies the system of (algebraic) equations

( ) ( )

( ) ( ) 0 1 1 0 2 2 0

0 1 1 0 2 2 0 y C y t C y t

y C y t C y t ′ = ′ + ′

= +

From linear algebra, we know that for the above system to always have a unique solution ( C 1 , C 2 ) for any initial values y 0 and y′ 0 , the coefficient matrix of the system must be invertible, or, equivalently, the determinant of the coefficient matrix must be nonzero**. That is

det 10201020

1 0 2 0

1 0 2 0

y t y t y t y t

y t y t

y t y t

This determinant above is called the Wronskian or the Wronskian determinant. It is a function of t as well, denoted W ( y 1 , y 2 )( t ), and is given by the expression

W ( y 1 , y 2 )( t ) = y 1 y ′ 2 − y ′ 1 y 2.

§ (^) The expression y = C 1 y 1 +^ C 2 y 2 is called a^ linear combination^ of the functions y 1 and y 2. ** (^) By nonzero it means that the Wronskian is not the constant zero function.

essentially the basic building blocks of all particular solutions of the equation.

To summarize, suppose y 1 and y 2 are two solutions of a second order homogeneous linear equation, then:

W ( y 1 , y 2 )( t ) is not the constant zero function

↕ y 1 , y 2 are linearly independent ↕ y 1 , y 2 are fundamental solutions ↕ y = C 1 y 1 + C 2 y 2 is a general solution of the equation

Example : Let

rt y 1 (^) = e^1 and

r t y (^) 2 = e^2 , r 1 ≠ r 2 , be any two different

exponential function. Then

rt rt rt r t rt rt

rt rt

re e re e

re re

e e

W y y 1 2 1 2 1 2

1 2 2 1 1 2

( 1 , 2 ) det = −

= ( 2 − 1 )^12 ≠ 0

r t rt

r r e e , for all t.

Therefore, any two different exponential-function solutions of a second order homogeneous linear equation (as those found using its characteristic equation) are always linearly independent, thus they will always give a general solution. Better yet, in this case since the Wronskian is never zero for all real numbers, a unique solution can always be found.

Lastly, here is an interesting (and, as we shall see shortly, useful) relationship between the Wronskian of any two solutions of a second order linear equation with its coefficient function p ( t ).

Abel’s Theorem : If y 1 and y 2 are any two solutions of the equation

y ″ + p ( t ) y ′ + q ( t ) y = 0,

where p and q are continuous on an open interval I. Then the Wronskian W ( y 1 , y 2 )( t ) is given by

W y y t = C e −^ ∫ p ( t ) dt ( 1 , 2 )( ) ,

where C is a constant that depends on y 1 and y 2 , but not on t. Further, W ( y 1 , y 2 )( t ) is either zero for all t in I (if C = 0) or else is never zero in I (if C ≠ 0).