Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Solving Homogeneous Diff. Equations: 2nd Order Linear Eqns & Solutions, Schemes and Mind Maps of Differential Equations

An introduction to homogeneous differential equations, linear differential equations, and their solutions. It covers the general form of linear homogeneous differential equations, the concept of a solution, and the existence and uniqueness of solutions. The document also includes examples of solving specific differential equations using the method of integrating factors and the method of undetermined coefficients.

Typology: Schemes and Mind Maps

2021/2022

Uploaded on 09/12/2022

tarquin
tarquin 🇺🇸

4.3

(15)

260 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CHAPTER 12
Second Order Linear Differential Equations
12.1. Homogeneous Equations
Adifferential equation is a relation involving variables x
y
y

y

. A solution is a function f
x
such
that the substitution y
f
x

y

f

x

y

f

x

gives an identity. The differential equation is
said to be linear if it is linear in the variables y
y

y

. We have already seen (in section 6.4) how to
solve first order linear equations; in this chapter we turn to second order linear equations with constant
coefficients. The general form of such an equation is
(12.1) y

ay

by
g
x

where aand bare constants, and g
x
is a differentiable function of x. In chapter 6.4, we saw that a first
order equation has a one-parameter family of solutions, and that the specification of an initial condition
y
x0

y0uniquely determines a solution. In the case of second order equations, the basic theorem is
this:
Theorem 12.1 Given x0in the domain of the differentiable function g, and numbers y0
y
0, there is
a unique function f
x
which solves the differential equation (12.1) and satisfies the initial conditions
f
x0

y0
f

x0

y
0.
In this section we shall see how to completely solve equation (12.1) when the function on the right
hand side is zero:
(12.2) y

ay

by
0
This is called the homogeneous equation. An important first step is to notice that if f
x
and g
x
are
two solutions, then so is the sum; in fact, so is any linear combination A f
x
Bg
x
. Thus, once we
know two solutions (they must be independent in the sense that one isn’t a constant multiple of the other)
we can solve the initial value problem in theorem 12.1 by solving for Aand B.
Example 12.1 Solve y

y
0
y
0

4
y
0

1
Now, we knowthat cos xand sinxare solutions of the equation, so we try a solution of the form y
x

Acosx
Bsinx. Evaluating at x
0, we find that A
4. Differentiate, getting y

x

Asinx
Bcosx,
and evaluating at x
0, we find B

1. Thus the solution is y
x

4cosx
sinx.
175
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Solving Homogeneous Diff. Equations: 2nd Order Linear Eqns & Solutions and more Schemes and Mind Maps Differential Equations in PDF only on Docsity!

CHAPTER 12

Second Order Linear Differential Equations

12.1. Homogeneous Equations

A differential equation is a relation involving variables x  y  y  y  . A solution is a function f  x  such that the substitution y f  x  y  f  x   y  f  x   gives an identity. The differential equation is said to be linear if it is linear in the variables y  y   y  . We have already seen (in section 6.4) how to solve first order linear equations; in this chapter we turn to second order linear equations with constant coefficients. The general form of such an equation is

(12.1) y  ay  ^ by g  x  

where a and b are constants, and g  x  is a differentiable function of x. In chapter 6.4, we saw that a first order equation has a one-parameter family of solutions, and that the specification of an initial condition y  x 0  y 0 uniquely determines a solution. In the case of second order equations, the basic theorem is this:

Theorem 12.1 Given x 0 in the domain of the differentiable function g, and numbers y 0  y 0  , there is a unique function f  x  which solves the differential equation (12.1) and satisfies the initial conditions f  x 0  y 0  f  x 0  y 0 . In this section we shall see how to completely solve equation (12.1) when the function on the right hand side is zero:

(12.2) y   ay  ^ by 0 

This is called the homogeneous equation. An important first step is to notice that if f  x  and g  x  are two solutions, then so is the sum; in fact, so is any linear combination A f  x   Bg  x . Thus, once we know two solutions (they must be independent in the sense that one isn’t a constant multiple of the other) we can solve the initial value problem in theorem 12.1 by solving for A and B.

Example 12.1 Solve y  y 0  y  0   4  y  0    1  Now, we know that cos x and sin x are solutions of the equation, so we try a solution of the form y  x  A cos x  B sin x. Evaluating at x 0, we find that A 4. Differentiate, getting y   x    A sin x  B cos x , and evaluating at x 0, we find B  1. Thus the solution is y  x   4 cos x  sin x.

Chapter 12 Second Order Linear Differential Equations 176

The reason the answer worked out so easily is that y 1 cos x is the solution with the particular initial values y 1  0  1  y  1  0   0 and y 1 sin x is the solution with y 1  0   0  y  1  0   1. Then the solution with initial values y  0  and y  0  is

(12.3) y  x   y  0  cos x  y   0  sin x

Example 12.2 Solve y  y 0 with given initial values y  0   y   0   Now ex^ and e x^ are solutions of this differential equation, so the general solution is a linear combi- nation of these. But we won’t have as easy a time finding a solution like (12.3), since these functions do not have the initial values 1 0; 0 1 respectively. However if we introduce the functions

(12.4) cosh x

 ex^^  e x^  sinh x

 ex^^  e x^ 

these do have the right initial values:

(12.5) cosh0 1  sinh 0 0

d dx

 cosh x   sinh x 

d dx

 sinh x   cosh x

so cosh  0   0  sinh  0   1. Thus, the solution to our problem is

(12.7) y  x   y  0 cosh x  y   0 sinh x 

This particular differential equation comes up so often that it is important to remember these functions, cosh x  sinh x , called the hyperbolic functions and their basic properties: equation (12.6) and

(12.8) cosh^2 x  sinh^2 x 1 

Because of (12.8) these functions parametrize the standard hyperbola (and it is for this reason that they are called hyperbolic functions).

We now return to the general second order equation.

Proposition 12.1 Let r be a root of the equation

(12.9) r^2  ar  b 0 

Then erx^ is a solution to the homogeneous equation:

(12.10) y   ay  ^ by 0 

Equation (12.9) is called the auxiliary equation of the differential equation (12.10). To verify the propo- sition, let y erx^ so that y  rerx^^  y   r^2 erx. Substituting into equation (12.10):

(12.11) r^2 erx^^  arerx^^  berx^ erx^^  r^2  ar  b  0

if and only if r is a root of the auxiliary equation.

Chapter 12 Second Order Linear Differential Equations 178

In fact, defining the complex exponential by (12.17) is consistent with all the rules for exponentials. In particular, if we substitute the Maclaurin series for all the functions in (12.17) we get an identity:

(12.20)

∞ ∑ n 0

 ix  n n!

∞ ∑ n 0

  1  n^

x^2 n  2 n !

 i

∞ ∑ n 0

  1  n^

x^2 n

 1

 2 n  1 ! 

Proposition 12.2 For a complex number α  i β if we define the exponential function as

(12.21) e

 α  i β  x e^ α x^^ cos β x   i sin β x  

then all the usual laws of exponents carry through.

Now, of course, we are interested only in real-valued functions. What we have shown is that if^ α^  i^ β are the roots of the equation r^2  ar  b 0, then the functions e

 α  i β  x (^) solve the differential equation

y  ay  b 0. But then the real and imaginary parts of this function satisfy the equation as well, which gives us the desired two real-valued solutions.

Proposition 12.3 If the auxiliary equation for the differential equation

(12.22) y  ay   b 0

has the complex roots α  i β , then every solution of the differential equation is of the form

(12.23) Ae^ α x^ cos β x  Be^ α x^ sin β x   e^ α x^^  A cos β x   B sin β x  

In solving initial value problems, we can work with the complex solutions or solutions of the form (12.23); usually the latter is more convenient.

Example 12.5 Find the general solution x x  t  of x  α^2 x 0  Since the roots of the auxiliary equation r^2  α^2 0 are  i α, the general solution is

(12.24) x  t  A cos α t  B sin α t

It is easy to see what this function looks like by defining

(12.25) C

 A^2  B^2  γ arctan  B  A 

Then (12.24) becomes

(12.26) x  t  C cos γ cos α t  sin γ sin α t C cos α x  γ  C cos α  x  γ α  

Thus the graph of x x  t  is a simple cosine curve of amplitude C , and period 2 π α, shifted to the right by the phase γ. (See figure 12.1).

Figure 12.

PSfrag replacements a a b b

 2

 1  5

 1

 (^1)  0  5

 0  (^5 )

0

0  5

0  5

1

1

1  5

1  5

2

2

12.2 Behavior of the Solutions 179

Example 12.6 Find the solution y y  x  of y   2 y   5 y 0, with the initial values y  0   2  y   0   1.

The auxiliary equation r^2  2 r  5 0 has the solutions r  1  2 i. Thus the general solution is

y e x^^  A cos  2 x   B sin  2 x  . To solve for A and B using the initial values we must first differentiate y :

(12.27) y  e x^^  A cos  2 x  B sin  2 x    e x^^  2 A sin 2 x   2 B cos  2 x   

Substituting the initial values gives the equations A 2   A  2 B  1, which has the solutions A

2  B 1 2. The answer thus is

(12.28) y e x^^ 2 cos  2 x 

sin  2 x  

Case of a double root. If the discriminant a^2  4 b 0, then the auxiliary equation has one root r , which gives us only one solution erx^ of the differential equation. We find another solution by the technique of variation of parameters. We try y uerx , where u is a new unknown function. Now, the differential equation is

(12.29) y   2 ry  ^ r^2 y 0 

Substituting this y in the equation we get to

(12.30) y  2 ry  ^ r^2 y erx^^ ^ u  ^2 u  r  ur^2   2 r  u ^ ur   r^2 u  erxu  0

Thus u Ax  B.

Proposition 12.4 If the auxiliary equation for the differential equation

(12.31) y  ay   b 0

has only the root r, then every solution is of the form

(12.32)  Ax  B  erx

Example 12.7 Find the solution of y   4 y   4 y 0, with initial values y  0  2  y   0   1. The auxiliary equation has just the root r 2. The general solution is y  Ax  B  e^2 x , with derivative y  2  Ax  B  e^2 x^^  Ae 2 x. Substituting the initial conditions gives the equations

(12.33) 2 B  1 2 B  A 

Thus A  5  B 2 and the answer is

(12.34) y  5 x  2  e^2 x^ 

12.3 Applications 181

Thus if α  0, this gives an oscillation with exponentially increasing amplitude, and if α  0, this gives an exponentially damped oscillation.

12.3. Applications

Springs Suppose that we place a mass m on the end of a vertically hanging spring, and then set it in motion; how can we describe the subsequent motion? As we have seen in section 5.4, the spring is subject to a restoring force proportional to its displacement from equilibrium. By Newton’s second law of motion, this force is ma , where a is the acceleration of the mass m. Letting x represent the downward displacement from equilibrium, we have a x  , and if the spring constant is k , this gives us the equation

(12.38) mx  kx  or x  

k m

x 0

Letting ω

 k  m , this has the solution (see example 12.5)

(12.39) x  t  C cos ω t  γ 

where C and γ are to be determined by the initial data. We have to be a little careful about units. In the metric system, when m is measured in kilograms and x in meters, then force is measured in newtons, and the units for the spring constant k are newtons/meter. On a smaller scale, m is in grams, x in centimeters, force in dynes, and k in dynes/meter. However, in the British system it is customary to refer to the weight w of the object (in pounds), rather than its mass. Then m w  g , where g 32 ft/sec 2 is the acceleration due to gravity. Finally, in the British system, the spring constant is given in lbs/foot.

Example 12.8 Suppose a mass of 10 g hangs from a spring with spring constant k 0 4 dynes/cm. If the spring is extended an additional 8 cm. and then released, give the equation of subsequent motion. The initial conditions are that when t 0  x  0  8  x   0  0. We also have ω

 ^0 ^4 ^10 0  04 0 2. Thus the solution has the form

(12.40) x  t ^ C cos  0  2 t  γ 

We get, from the initial conditions

(12.41) 8 C cos  γ   0  0  2 C sin  γ 

so γ 0 and C 8, and the equation of motion is

(12.42) x  t  8 cos  0  2 t 

We could have concluded this more quickly, by observing that the initial conditions tell us that x 8 when the velocity is 0, so the maximum extension (the amplitude) has to be 8.

Example 12.9 Suppose that we come upon the above configuration already in motion, and when we make our observation (at time t 0), the mass is displaced 12 cm downward and is traveling downward at a velocity of 1 cm/sec. Find the equation of motion.

Chapter 12 Second Order Linear Differential Equations 182

Again, the equation has the general form

(12.43) x  t  C cos  0  2 t  γ 

and the initial conditions give

(12.44) 12 C cos  γ   1  0  2 C sin  γ 

We solve for C and γ as follows. The equations are

(12.45) C cos  γ  12  C sin  γ   5 

Adding the squares of both equations gives us C^2 122  52 169, so C 13, and dividing one equation by the other gives

(12.46) tan  γ   5  12  so that γ 0  126 π

and the equation of motion is

(12.47) x  t  13 cos  0  2 t  0  126 π 

Example 12.10 If a 10 lb. object is hung from a spring with spring constant k =9 lbs/foot and then is given an initial velocity of 24 ft/sec, what is the maximum extent of the spring? Here m 16 32 and k 9, so we have the spring equation

x   9 x 0

so x A cos  3

2 t   B sin  3

2 t . The initial conditions x  0  0  x  0   24 lead to A 0  B 8

The solution thus is

(12.49) x  t  8

2sin  2

2 t 

whose maximum value is 8

2 feet. Now, let us return to our spring with spring constant k and mass m , and suppose that it is inserted in a viscous fluid which imparts a retarding force proportional to the velocity of the mass. Letting q  0 be the constant in this proportion, we see that equation (12.38) is replaced by

(12.50) mx   kx  qx  or x   ν x  ω^2 x

where ω

 k  m and ν q  m. The roots of this equation are

(12.51) r

 ν 

ν^2  4 ω^2 2



If ν  2 ω, then the roots are both real and negative, and there is exponential decay with no oscillation. if ν  2 ω, then we have complex roots, so there are oscillations. But the real part of the roots is  ν  2  0, so the oscillations are exponentially damped. Thus, if we want to have a good damping effect (as for

Chapter 12 Second Order Linear Differential Equations 184

We know the solution has the form y   1  3  cos  2 x  A cos x  B sin x. Putting in the initial values gives us 1 1  3  B  3  A , so the solution is y   1  3 cos 2 x   3 cos x   2  3  sin x.

In general, we may neither be given a particular solution, nor can we see one by inspection. In general it is very difficult to find that first particular solution. However, here is one technique (basically trial and error) which leads to a particular solution when the inhomogeneous function is an elementary function. Undetermined coefficients. To solve y   ay   by g  x  , try a function of the same form as g  x . More precisely: If g is a polynomial of degree n , try the general polynomial of degree n. If g is an exponential times a polynomial of degree n , try the general exponential times a polynomial of degree n. If g is a cosine or a sine times a polynomial of degree n , try the general cosine and sine times a polynomial of degree n. The reason this works is that successive differentiation keeps us in the same form, so we end up equating coefficients and solving for them. There is one caution: if g is a solution of the homogeneous equation, this will fail In this case we replace the phrase “polynomial of degree n ” by “polynomial of degree n or more”. Let us illustrate

Example 12.14 Find a particular solution of y   5 y   y x^2  3 x  4. We try y ax^2  bx  c. First we calculate the first and second derivative: y  2 ax  b  y   2 a. Substituting these in the given equation we obtain

(12.57) 2 a  5  2 ax  b    ax^2  bx  c  x^2  3 x  4

This simplifies to

(12.58)  ax^2   10 a  b  x  2 a  5 b  c x^2  3 x  4

We now equate coefficients:

(12.59)  a 1  10 a  b  3  2 a  5 b  c 4

giving the solutions a  1  b  7  c  41, so the answer is

(12.60) y  x^2  7 x  41 

Example 12.15 Find a particular solution of y   y   y xex. Try y  ax  b  ex. Differentiating, y   ax  a  b  ex^^  y    ax  2 a  b  ex. Substituting in the given equation leads to

(12.61)  ax  2 a  b  ex^^   ax  a  b  ex^^   ax  b  ex^ xex^ 

reducing to the equations a 1  3 a  b 0. Thus the answer is

(12.62) y  x  3  ex

Example 12.16 Find a particular solution of y   y cos x.

12.4 The Inhomogeneous Equation 185

Since cos x satisfies the homogeneous equation, we must try y ax sin x  bx cos x. Then y  2 a cos x  2 b sin x  ax sin x  bx cos x , and we obtain the equation

(12.63) 2 a cos x  2 b sin x cos x

so a 1 2, and the solution is y  1  2  x sin x.