Case III. Complex conjugate roots are of minor practical importance, and we discuss the derivation of real solutions from complex ones just in terms of a typical example
Case 2. Damped Forced Oscillations
3.3 Nonhomogeneous Linear ODEs
An initial value problemfor (1) consists of (1) and ninitial conditions (4)
with in I. Under those continuity assumptions it has a unique solution. The ideas of proof are the same as those for in Sec. 2.7.
Method of Undetermined Coefficients
Equation (2) shows that for solving (1) we have to determine a particular solution of (1).
For a constant-coefficient equation (5)
( constant) and special as in Sec. 2.7, such a can be determined by the method of undetermined coefficients,as in Sec. 2.7, using the following rules.
(A) Basic Ruleas in Sec. 2.7.
(B) Modification Rule. If a term in your choice for is a solution of the homogeneous equation (3), then multiply this term by where k is the smallest positive integer such that this term times is not a solution of (3).
(C) Sum Ruleas in Sec. 2.7.
The practical application of the method is the same as that in Sec. 2.7. It suffices to illustrate the typical steps of solving an initial value problem and, in particular, the new Modification Rule, which includes the old Modification Rule as a particular case (with or 2). We shall see that the technicalities are the same as for except perhaps for the more involved determination of the constants.
E X A M P L E 1 Initial Value Problem. Modification Rule Solve the initial value problem
(6)
Solution. Step 1. The characteristic equation is It has the triple root Hence a general solution of the homogeneous ODE is
Step 2. If we try we get which has no solution. Try and
The Modification Rule calls for
Then
ypt⫽C(6⫺18x⫹9x2⫺x3)eⴚx. yps⫽C(6x⫺6x2⫹x3)eⴚx,
ypr⫽C(3x2⫺x3)eⴚx, yp⫽Cx3eⴚx. Cx2eⴚx.
Cxeⴚx
⫺C⫹3C⫺3C⫹C⫽30, yp⫽Ceⴚx,
⫽(c1⫹c2x⫹c3x2)eⴚx. yh⫽c1eⴚx⫹c2xeⴚx⫹c3x2eⴚx l⫽ ⫺1.
l3⫹3l2⫹3l⫹1⫽(l⫹1)3⫽0.
yt⫹3ys⫹3yr⫹y⫽30eⴚx, y(0)⫽3, yr(0)⫽ ⫺3, ys(0)⫽ ⫺47.
n⫽2, k⫽1
xk
xk, yp(x)
yp(x) r(x)
a0,Á, anⴚ1
y(n)⫹anⴚ1y(nⴚ1)⫹ Á ⫹a1y
r
⫹a0y⫽r(x)n⫽2 x0
y(x0)⫽K0, y
r
(x0)⫽K1, Á, y(nⴚ1)(x0)⫽Knⴚ1SEC. 3.3 Nonhomogeneous Linear ODEs 117
Substitution of these expressions into (6) and omission of the common factor gives
The linear, quadratic, and cubic terms drop out, and Hence This gives
Step 3.We now write down the general solution of the given ODE. From it we find by the first initial condition. We insert the value, differentiate, and determine from the second initial condition, insert the value, and finally determine from and the third initial condition:
Hence the answerto our problem is (Fig. 73)
The curve of ybegins at (0, 3) with a negative slope, as expected from the initial values, and approaches zero
as x:⬁.The dashed curve in Fig. 74 is yp. 䊏
y⫽(3⫺25x2)eⴚx⫹5x3eⴚx.
ys⫽[3⫹2c3⫹(30⫺4c3)x⫹(⫺30⫹c3)x2⫹5x3]eⴚx, ys(0)⫽3⫹2c3⫽ ⫺47, c3⫽ ⫺25.
yr⫽[⫺3⫹c2⫹(⫺c2⫹2c3)x⫹(15⫺c3)x2⫺5x3]eⴚx, yr(0)⫽ ⫺3⫹c2⫽ ⫺3, c2⫽0 y⫽yh⫹yp⫽(c1⫹c2x⫹c3x2)eⴚx⫹5x3eⴚx, y(0)⫽c1⫽3
ys(0) c3
c2
c1 y⫽yh⫹yp,
yp⫽5x3eⴚx. C⫽5.
6C⫽30.
C(6⫺18x⫹9x2⫺x3)⫹3C(6x⫺6x2⫹x3)⫹3C(3x2⫺x3)⫹Cx3⫽30.
eⴚx
– 5 5
0 5 x
y
10
Fig. 74. yand yp(dashed) in Example 1
Method of Variation of Parameters
The method of variation of parameters (see Sec. 2.10) also extends to arbitrary order n.
It gives a particular solution for the nonhomogeneous equation (1) (in standard form with as the first term!) by the formula
(7)
on an open interval Ion which the coefficients of (1) and are continuous. In (7) the functions form a basis of the homogeneous ODE (3), with Wronskian W, and is obtained from W by replacing the jth column of W by the column
Thus, when this becomes identical with (2) in Sec. 2.10, W⫽ `y1 y2
y1
r
y2
r
`, W1⫽ `0 y2
1 y2
r
` ⫽ ⫺y2, W2⫽ `y1 0 y1
r
1` ⫽y1.n⫽2, [0 0 Á 0 1]T.
Wj ( j⫽1,Á, n) y1,Á, yn
r(x)
⫽y1(x)
冮
WW(x)1(x) r(x) dx⫹ Á ⫹yn(x)冮
WW(x)n(x) r(x) dxyp(x)⫽ a
n
k⫽1 yk(x)
冮
WW(x)k(x) r(x) dxy(n)
yp
The proof of (7) uses an extension of the idea of the proof of (2) in Sec. 2.10 and can be found in Ref [A11] listed in App. 1.
E X A M P L E 2 Variation of Parameters. Nonhomogeneous Euler–Cauchy Equation Solve the nonhomogeneous Euler–Cauchy equation
Solution. Step 1. General solution of the homogeneous ODE.Substitution of and the derivatives into the homogeneous ODE and deletion of the factor gives
The roots are 1, 2, 3 and give as a basis
Hence the corresponding general solution of the homogeneous ODE is
Step 2. Determinants needed in(7).These are
Step 3. Integration.In (7) we also need the right side of our ODE in standard form, obtained by division of the given equation by the coefficient of thus, In (7) we have the simple
quotients Hence (7) becomes
Simplification gives Hence the answer is
Figure 75 shows Can you explain the shape of this curve? Its behavior near The occurrence of a minimum?
Its rapid increase? Why would the method of undetermined coefficients not have given the solution?yp. x⫽0? 䊏
y⫽yh⫹yp⫽c1x⫹c2x2⫹c3x3⫹16 x4 (ln x⫺116).
yp⫽16 x4 (ln x⫺116).
⫽x 2ax3
3 ln x⫺x3
9b⫺x2 ax2 2 ln x⫺x2
4b⫹x3
2 (x ln x⫺x).
yp⫽x
冮
x2 x ln x dx⫺x2冮
x ln x dx⫹x3冮
2x1 x ln x dx W1>W⫽x>2, W2>W⫽ ⫺1, W3>W⫽1>(2x).r(x)⫽(x4 ln x)>x3⫽x ln x.
yt; x3
r(x) W3⫽4
x x2 0
1 2x 0
0 2 1
4⫽x2.
W2⫽4
x 0 x3 1 0 3x2
0 1 6x
4⫽ ⫺2x3
W1⫽4
0 x2 x3 0 2x 3x2
1 2 6x
4⫽x4
W⫽3
x x2 x3 1 2x 3x2
0 2 6x
3⫽2x3
yh⫽c1x⫹c2x2⫹c3x3. y1⫽x, y2⫽x2, y3⫽x3. m(m⫺1)(m⫺2)⫺3m(m⫺1)⫹6m⫺6⫽0.
xm
y⫽xm
(x⬎0).
x3yt⫺3x2ys⫹6xyr⫺6y⫽x4 ln x
SEC. 3.3 Nonhomogeneous Linear ODEs 119
Application: Elastic Beams
Whereas second-order ODEs have various applications, of which we have discussed some of the more important ones, higher order ODEs have much fewer engineering applications.
An important fourth-order ODE governs the bending of elastic beams, such as wooden or iron girders in a building or a bridge.
A related application of vibration of beams does not fit in here since it leads to PDEs and will therefore be discussed in Sec. 12.3.
E X A M P L E 3 Bending of an Elastic Beam under a Load
We consider a beam Bof length Land constant (e.g., rectangular) cross section and homogeneous elastic material (e.g., steel); see Fig. 76. We assume that under its own weight the beam is bent so little that it is practically straight. If we apply a load to Bin a vertical plane through the axis of symmetry (the x-axis in Fig. 76), Bis bent. Its axis is curved into the so-called elastic curveC(or deflection curve). It is shown in elasticity theory that the bending moment is proportional to the curvature of C. We assume the bending to be small, so that the deflection and its derivative (determining the tangent direction of C) are small.
Then, by calculus, Hence
EIis the constant of proportionality. Eis Young’s modulus of elasticityof the material of the beam. Iis the moment of inertia of the cross section about the (horizontal) z-axis in Fig. 76.
Elasticity theory shows further that where is the load per unit length. Together,
(8) EIyiv⫽f(x).
f(x) Ms(x)⫽f(x),
M(x)⫽EIys(x).
k⫽ys>(1⫹yr2)3>2⬇ys.
yr(x) y(x)
k(x) M(x)
– 20 20
5 x
y 30
10 –10
10 0
Fig. 75. Particular solution of the nonhomogeneous Euler–Cauchy equation in Example 2
yp
L Undeformed beam
Deformed beam under uniform load (simply supported) x
y z
x
y z
Fig. 76. Elastic beam
In applications the most important supports and corresponding boundary conditions are as follows and shown in Fig. 77.
(A) Simply supported at and L
(B) Clamped at both ends at and L
(C) Clamped at , free at
The boundary condition means no displacement at that point, means a horizontal tangent, means no bending moment, and means no shear force.
Let us apply this to the uniformly loaded simply supported beam in Fig. 76. The load is Then (8) is
(9)
This can be solved simply by calculus. Two integrations give
gives Then (since ). Hence
Integrating this twice, we obtain
with from Then
Inserting the expression for k, we obtain as our solution
Since the boundary conditions at both ends are the same, we expect the deflection to be “symmetric” with respect to that is, Verify this directly or set and show that ybecomes an even function of u,
From this we can see that the maximum deflection in the middle at is Recall
that the positive direction points downward. 5f0L 䊏
4>(16#24EI).
u⫽0(x⫽L>2) y⫽ f0
24EIau2⫺1
4 L2bau2⫺5 4 L2b. x⫽u⫹L>2 y(x)⫽y(L⫺x).
L>2,
y(x) y⫽ f0
24EI (x4⫺2Lx3⫹L3x).
y(L)⫽kL 2 aL3
12⫺L3
6 ⫹c3b⫽0, c3⫽L3 12. y(0)⫽0.
c4⫽0
y⫽k 2a1
12 x4⫺L
6 x3⫹c3x⫹c4b ys⫽k
2 (x2⫺Lx).
L⫽0 ys(L)⫽L(12kL⫹c1)⫽0, c1⫽ ⫺kL>2
c2⫽0.
ys(0)⫽0
ys⫽k
2 x2⫹c1x⫹c2. yiv⫽k, k⫽ f0
EI.
f(x)⬅f0⫽const.
yt⫽0
ys⫽0 yr⫽0
y⫽0
y(0)⫽yr(0)⫽0, ys(L)⫽yt(L)⫽0.
x⫽L x⫽0
x⫽0 y⫽yr⫽0
x⫽0 y⫽ys⫽0
SEC. 3.3 Nonhomogeneous Linear ODEs 121
x
x = 0 x = L
x = 0 x = L
x = 0 x = L
(A) Simply supported
(B) Clamped at both ends
(C) Clamped at the left end, free at the right end
Fig. 77. Supports of a beam
1–7 GENERAL SOLUTION
Solve the following ODEs, showing the details of your work.
1.
2.
3.
4.
5.
6.
7.
8–13 INITIAL VALUE PROBLEM
Solve the given IVP, showing the details of your work.
8.
9.
10.
11.
12.
ys(0)⫽17.2
yr(0)⫽8.8,
y(0)⫽4.5, (D3⫺2D2⫺9D⫹18I)y⫽e2x,
ys(0)⫽ ⫺5.2
yr(0)⫽3.2,
y(0)⫽ ⫺1.4, (D3⫺2D2⫺3D)y⫽74eⴚ3x sin x,
ys(1)⫽14
yr(1)⫽3,
y(1)⫽1, x3yt⫹xyr⫺y⫽x2,
yt(0)⫽ ⫺32
ys(0)⫽ ⫺1,
yr(0)⫽2,
y(0)⫽1, yiv⫹5ys⫹4y⫽90 sin 4x,
yt(0)⫽0
ys(0)⫽0,
yr(0)⫽0,
y(0)⫽1, yiv⫺5ys⫹4y⫽10eⴚ3x,
(D3⫺9D2⫹27D⫺27I)y⫽27 sin 3x (D3⫹4D)y⫽sin x
(x3D3⫹x2D2⫺2xD⫹2I)y⫽xⴚ2 (D3⫹3D2⫺5D⫺39I)y⫽ ⫺300 cos x (D4⫹10D2⫹9I)y⫽6.5 sinh 2x yt⫹2ys⫺yr⫺2y⫽1⫺4x3
yt⫹3ys⫹3yr⫹y⫽ex⫺x⫺1
P R O B L E M S E T 3 . 3
13.
14. CAS EXPERIMENT. Undetermined Coefficients.
Since variation of parameters is generally complicated, it seems worthwhile to try to extend the other method.
Find out experimentally for what ODEs this is possible and for what not. Hint:Work backward, solving ODEs with a CAS and then looking whether the solution could be obtained by undetermined coefficients. For example, consider
and
15. WRITING REPORT. Comparison of Methods. Write a report on the method of undetermined coefficients and the method of variation of parameters, discussing and comparing the advantages and disadvantages of each method. Illustrate your findings with typical examples.
Try to show that the method of undetermined coefficients, say, for a third-order ODE with constant coefficients and an exponential function on the right, can be derived from the method of variation of parameters.
x3yt⫹x2ys⫺2xyr⫹2y⫽x3 ln x.
yt⫺3ys⫹3yr⫺y⫽x1>2ex
ys(0)⫽ ⫺1
yr(0)⫽ ⫺2,
y(0)⫽3, (D3⫺4D)y⫽10 cos x⫹5 sin x,
1. What is the superposition or linearity principle? For what nth-order ODEs does it hold?
2. List some other basic theorems that extend from second-order to nth-order ODEs.
3. If you know a general solution of a homogeneous linear ODE, what do you need to obtain from it a general solution of a corresponding nonhomogeneous linear ODE?
4. What form does an initial value problem for an nth- order linear ODE have?
5. What is the Wronskian? What is it used for?
6–15 GENERAL SOLUTION
Solve the given ODE. Show the details of your work.
6.
7.
8.
9.
10. x2yt⫹3xys⫺2yr⫽0
(D4⫺16I)y⫽ ⫺15 cosh x yt⫺4ys⫺yr⫹4y⫽30e2x
yt⫹4ys⫹13yr⫽0
yiv⫺3ys⫺4y⫽0
C H A P T E R 3 R E V I E W Q U E S T I O N S A N D P R O B L E M S
11.
12.
13.
14.
15.
16–20 INITIAL VALUE PROBLEM Solve the IVP. Show the details of your work.
16.
17.
18.
19.
20.
ys(0)⫽5
yr(0)⫽ ⫺3,
y(0)⫽ ⫺1, (D3⫹3D2⫹3D⫹I)y⫽8 sin x,
D2y(0)⫽189 Dy(0)⫽ ⫺41,
y(0)⫽9,
(D3⫹9D2⫹23D⫹15I)y⫽12exp(⫺4x), D3y(0)⫽ ⫺130 D2y(0)⫽34,
Dy(0)⫽ ⫺6,
y(0)⫽12.16, (D4⫺26D2⫹25I)y⫽50(x⫹1)2,
ys⫽ ⫺24
yr(0)⫽ ⫺3.95,
y(0)⫽1.94, yt⫹5ys⫹24yr⫹20y⫽x,
D2y(0)⫽0
Dy(0)⫽1, y(0)⫽0,
(D3⫺D2⫺D⫹I)y⫽0, 4x3yt⫹3xyr⫺3y⫽10
(D4⫺13D2⫹36I)y⫽12ex (D3⫹6D2⫹12D⫹8I)y⫽8x2 (D3⫺D)y⫽sinh 0.8x
yt⫹4.5ys⫹6.75yr⫹3.375y⫽0
Summary of Chapter 3 123
Compare with the similar Summary of Chap. 2 (the case ).
Chapter 3 extends Chap. 2 from order to arbitrary order n. An nth-order linear ODEis an ODE that can be written
(1)
with as the first term; we again call this the standard form. Equation (1) is called homogeneous if on a given open interval I considered, nonhomogeneousif on I. For the homogeneous ODE
(2)
the superposition principle (Sec. 3.1) holds, just as in the case A basisor fundamental system of solutions of (2) on I consists of n linearly independent solutions of (2) on I. A general solutionof (2) on Iis a linear combination of these,
(3) ( arbitrary constants).
A general solutionof the nonhomogeneous ODE (1) on Iis of the form
(4) (Sec. 3.3).
Here, is a particular solution of (1) and is obtained by two methods (undetermined coefficientsor variation of parameters) explained in Sec. 3.3.
An initial value problem for (1) or (2) consists of one of these ODEs and n initial conditions (Secs. 3.1, 3.3)
(5)
with given in Iand given If are continuous on I,
then general solutions of (1) and (2) on Iexist, and initial value problems (1), (5) or (2), (5) have a unique solution.
p0,Á, pnⴚ1, r K0,Á, Knⴚ1.
x0
y(x0)⫽K0, y
r
(x0)⫽K1, Á, y(nⴚ1)(x0)⫽Knⴚ1yp
y⫽yh⫹yp
c1,Á, cn y⫽c1y1⫹ Á ⫹cnyn
y1,Á, yn
n⫽2.
y(n)⫹pnⴚ1(x)y(nⴚ1)⫹ Á ⫹p1(x)y
r
⫹p0(x)y⫽0r(x) [ 0
r(x)⬅0 y(n)⫽dny>dxn
y(n)⫹pnⴚ1(x)y(nⴚ1)⫹ Á ⫹p1(x)y
r
⫹p0(x)y⫽r(x)n⫽2
nⴝ2
S U M M A R Y O F C H A P T E R 3
Higher Order Linear ODEs
124
C H A P T E R 4
Systems of ODEs. Phase Plane.
Qualitative Methods
Tying in with Chap. 3, we present another method of solving higher order ODEs in Sec. 4.1. This converts any nth-order ODE into a system of nfirst-order ODEs. We also show some applications. Moreover, in the same section we solve systems of first-order ODEs that occur directly in applications, that is, not derived from an nth-order ODE but dictated by the application such as two tanks in mixing problems and two circuits in electrical networks. (The elementary aspects of vectors and matrices needed in this chapter are reviewed in Sec. 4.0 and are probably familiar to most students.)
In Sec. 4.3 we introduce a totally different way of looking at systems of ODEs. The method consists of examining the general behavior of whole families of solutions of ODEs in the phase plane, and aptly is called the phase plane method. It gives information on the stability of solutions. (Stability of a physical systemis desirable and means roughly that a small change at some instant causes only a small change in the behavior of the system at later times.) This approach to systems of ODEs is a qualitative methodbecause it depends only on the nature of the ODEs and does not require the actual solutions. This can be very useful because it is often difficult or even impossible to solve systems of ODEs. In contrast, the approach of actually solving a system is known as a quantitative method.
The phase plane method has many applications in control theory, circuit theory, population dynamics and so on. Its use in linear systems is discussed in Secs. 4.3, 4.4, and 4.6 and its even more important use in nonlinear systems is discussed in Sec. 4.5 with applications to the pendulum equation and the Lokta–Volterra population model. The chapter closes with a discussion of nonhomogeneous linear systems of ODEs.
N O T A T I O N . We continue to denote unknown functions by y; thus, — analogous to Chaps. 1–3. (Note that some authors use xfor functions, when dealing with systems of ODEs.)
Prerequisite: Chap. 2.
References and Answers to Problems: App. 1 Part A, and App. 2.