






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Variable Coefficient Nonhomogeneous Case
David Levermore Department of Mathematics University of Maryland
15 March 2009
Because the presentation of this material in class will differ from that in the book, I felt that notes that closely follow the class presentation might be appreciated.
7.1: Introduction. We now return to study nonhomogeneous linear equations for the general case of with variable coefficients that was begun in Section 4.1. An nth^ order nonhomogeneous linear ODE has the normal form
L(t)y = f (t) , (7.1)
where the differential operator L(t) has the normal form
L(t) =
dn dtn^
dn−^1 dtn−^1
d dt
We will assume throughout this section that the coefficients a 1 , a 2 , · · · , an and the forcing f are continuous over an interval (tL, tR), so that Therorem 1.1 can be applied.
Recall the following strategy for constructing general solutions of the nonhomogeneous equation (7.1) that we developed in Section 4.1.
(1) Find a general solution YH (t) of the associated homogeneous equation L(t)y = 0. (2) Find a particular solution YP (t) of equation (7.1). (3) Then YH (t) + YP (t) is a general solution of (7.1).
If you can find a fundamental set Y 1 (t), Y 2 (t), · · · , Yn(t) of solutions to the associated homogeneous equation L(t)y = 0 then a general solution of that equation is given by
YH (t) = c 1 Y 1 (t) + c 2 Y 2 (t) + · · · + cnYn(t).
In the ensuing sections we will explore two methods to construct a particular solution YP (t) of equation (7.1) from f (t) and the fundamental set Y 1 (t), Y 2 (t), · · · , Yn(t). One method is called variation of parameters, while the other is called the general Green function method, which is an extension of the Green function method presented in Section 4.3 for constant coefficient equations to the case of variable coefficient equations. We will see that these methods are essentially equivalent. What lies behind them is the following.
Important Fact: If you know a general solution of the associated homogeneous equation L(t)y = 0 then you can always reduce the construction of a general solution of (7.1) to the problem of finding n primitives.
Because at this point you only know how to find general solutions of homogeneous equations with constant coefficients, problems you will be given will generally fall into one of two categories. Either (1) the operator L(t) will have variable coefficients and you will be given a fundamental set of solutions for the associated homogeneous equation, or (2) the operator L(t) will have constant coefficients (i.e. L(t) = L) and you will be expected to find a fundamental set of solutions for the associated homogeneous equation. In the later case the general Green function method reduces to the method presented in Section 4.3.
The resulting system that governs u 1 (t) and u 2 (t) is thereby given by (7.7) and (7.10):
u′ 1 (t)Y 1 (t) + u′ 2 (t)Y 2 (t) = 0 , u′ 1 (t)Y 1 ′ (t) + u′ 2 (t)Y 2 ′ (t) = f (t).
This is a linear system of two algebraic equations for u′ 1 (t) and u′ 2 (t). Because
( Y 1 (t)Y 2 ′ (t) − Y 2 (t)Y 1 ′ (t)
= W Y 1 , Y 2 6 = 0 ,
one can always solve this system to find
u′ 1 (t) = −
Y 2 (t)f (t) W Y 1 , Y 2
, u′ 2 (t) =
Y 1 (t)f (t) W Y 1 , Y 2
or equivalently
u 1 (t) = −
Y 2 (t)f (t) W Y 1 , Y 2
dt , u 2 (t) =
Y 1 (t)f (t) W Y 1 , Y 2
dt. (7.12)
Letting u 1 P (t) and u 2 P (t) be any primitives of the respective right-hand sides above, one sees that u 1 (t) = c 1 + u 1 P (t) , u 2 (t) = c 2 + u 2 P (t) ,
whereby (7.5) yields the general solution
y = c 1 Y 1 (t) + u 1 P (t)Y 1 (t) + c 2 Y 2 (t) + u 2 P (t)Y 2 (t).
Notice that this decomposes as y = YH (t) + YP (t) where
YH (t) = c 1 Y 1 (t) + c 2 Y 2 (t) , YP (t) = u 1 P (t)Y 1 (t) + u 2 P (t)Y 2 (t). (7.13)
There are two approaches to applying variation of parameters. One mentioned in the book is to memorize the formulas (7.12). I am not a fan of this approach for a couple of reasons. First, students often confuse which of the two formulas gets the minus sign. Second, and more importantly, these formulas do not cleanly generalize to the higher order case. The other approach is to construct the linear system (7.11), which can then be rather easily solved for u′ 1 (t) and u′ 2 (t). The work it takes to solve this system is about the same work as it takes to generate the integrands in (7.12). The linear system (7.11) is symmetric in u′ 1 (t) and u′ 2 (t), so is less subject to sign errors. Moreover, it also has a clean generalization to the higher order case. Whichever approach you take, you will be led to the same two integrals.
Given Y 1 (t) and Y 2 (t), a fundamental set of solutions to the associated homogeneous equation, you proceed as follows.
y = u 1 (t)Y 1 (t) + u 2 (t)Y 2 (t).
u′ 1 (t)Y 1 (t) + u′ 2 (t)Y 2 (t) = 0 , u′ 1 (t)Y 1 ′ (t) + u′ 2 (t)Y 2 ′ (t) = f (t).
The form of the left-hand sides of this system mimics the form of the solution you seek. The first equation simply replaces u 1 (t) and u 2 (t) with u′ 1 (t) and u′ 2 (t), while the second also replaces Y 1 (t) and Y 2 (t) with Y 1 ′ (t) and Y 2 ′ (t). The f (t) on the right-hand side will be correct only if you have written the equation L(t)y = f (t) in normal form!
u 1 (t) = c 1 + u 1 P (t) , u 2 (t) = c 2 + u 2 P (t) ,
where c 1 and c 2 are the arbitrary constants of integration.
YH (t) = c 1 Y 1 (t) + c 2 Y 2 (t) , YP (t) = u 1 P (t)Y 1 (t) + u 2 P (t)Y 2 (t).
For initial-value problems you must determine c 1 and c 2 from the initial conditions.
Example: Find a general solution of
d^2 y dt^2
Before presenting the solution, notice that while this equation has constant coefficients, the forcing is not of the form that would allow you to use the method of undetermined coefficients. You should be able to recognize this right away. While you can use the Green function method to solve this problem, here we will solve it using variation of parameters.
Solution: Because this problem has constant coefficients, it is easily found that
YH (t) = c 1 cos(t) + c 2 sin(t).
Hence, we will seek a solution of the form
y = u 1 (t) cos(t) + u 2 (t) sin(t) ,
where u′ 1 (t)t + u′ 2 (t)(t^2 − 1) = 0 , u′ 1 (t)1 + u′ 2 (t)2t = (1 + t^2 )et^.
Solving this system by any means you choose yields
u′ 1 (t) = −(t^2 − 1)et^ , u′ 2 (t) = tet^.
These can be integrated analytically “by parts” to obtain
u 1 (t) = c 1 − (t − 1)^2 et^ , u 2 (t) = c 2 + (t − 1)et^.
Therefore a general solution is
y = c 1 t + c 2 (t^2 − 1) − (t − 1)^2 ett + (t − 1)et(t^2 − 1) = c 1 t + c 2 (t^2 − 1) + (t − 1)^2 et^.
7.3: Variation of Parameters: Higher Order Case. The method of variation of parameters extends to higher order linear equations in the normal form
L(t)y =
dny dtn^
dn−^1 y dtn−^1
dy dt
While this material was not covered in class and you will not be tested on it, a summary is given here for the sake of completeness.
Suppose you know that Y 1 (t), Y 2 (t), · · · , Yn(t) are linearly independent solutions of the associated homogeneous equation L(t)y = 0. A general solution of the associated homogeneous equation is therefore given by
YH (t) = c 1 Y 1 (t) + c 2 Y 2 (t) + · · · + cnYn(t).
The idea of the method of variation of parameters is to seek solutions of (7.14) in the form
y = u 1 (t)Y 1 (t) + u 2 (t)Y 2 (t) + · · · + un(t)Yn(t) , (7.15)
where u′ 1 (t), u′ 2 (t), · · · , u′ n(t) satisfy the linear algebraic system
u′ 1 (t)Y 1 (t) + u′ 2 (t)Y 2 (t) + · · · + u′ n(t)Yn(t) = 0 , u′ 1 (t)Y 1 ′ (t) + u′ 2 (t)Y 2 ′ (t) + · · · + u′ n(t)Y (^) n′(t) = 0 , .. .
u′ 1 (t)Y (n−2) 1 (t) +^ u
′ 2 (t)Y^
(n−2) 2 (t) +^ · · ·^ +^ u
′ n(t)Y^
(n−2) n (t) = 0^ , u′ 1 (t)Y 1 ( n−1)(t) + u′ 2 (t)Y 2 ( n−1)(t) + · · · + u′ n(t)Y (^) n(n −1)(t) = f (t).
Because
det
Y 1 (t) Y 2 (t) · · · Yn(t) Y 1 ′ (t) Y 2 ′ (t) · · · Y (^) n′(t) .. .
Y 1 ( n−1)(t) Y 2 ( n−1)(t) · · · Y (^) n(n −1)(t)
=^ W^ Y^1 , Y^2 ,^ · · ·^ , Yn^6 = 0^ ,
the linear algebraic system (7.16) may be solved (by any method you choose) to find explicit expressions for u′ 1 (t), u′ 2 (t), · · · , u′ n(t). For example, when n = 3 you find
u′ 1 (t) =
W Y 2 , Y 3 f (t) W Y 1 , Y 2 , Y 3
, u′ 2 (t) =
W Y 3 , Y 1 f (t) W Y 1 , Y 2 , Y 3
, u′ 3 (t) =
W Y 1 , Y 2 f (t) W Y 1 , Y 2 , Y 3
Find primitives u 1 P (t), u 2 P (t), · · · , unP (t) of these expressions. If you cannot find a primitive analytically then express that primitive in terms of a definite integral. One then has u 1 (t) = c 1 + u 1 P (t) , u 2 (t) = c 2 + u 2 P (t) , · · · un(t) = cn + unP (t) ,
where c 1 , c 2 , · · · , cn are the arbitrary constants of integration. The general solution given by (7.15) is therefore y = YH (t) + YP (t), where
YH (t) = c 1 Y 1 (t) + c 2 Y 2 (t) + · · · + cnYn(t) , YP (t) = u 1 P (t)Y 1 (t) + u 2 P (t)Y 2 (t) + · · · + unP (t)Yn(t).
For initial-value problems you must determine c 1 , c 2 , · · · , cn from the initial conditions.
7.4: General Green Functions: Second Order Case. We now derive a Green function for second order equations that are in the normal form
L(t)y =
d^2 y dt^2
dy dt
Suppose you know that Y 1 (t) and Y 2 (t) are linearly independent solutions of the associated homogeneous equation L(t)y = 0. The starting point of our derivation will be the particular solution YP (t) given in (7.13) — namely,
YP (t) = u 1 P (t)Y 1 (t) + u 2 P (t)Y 2 (t) ,
where u 1 P (t) and u 2 P (t) are primitives that satisfy
u′ 1 P (t) = −
Y 2 (s)f (s) W Y 1 , Y 2
, u′ 2 P (t) =
Y 1 (s)f (s) W Y 1 , Y 2
If we express u 1 P (t) and u 2 P (t) as the definite integrals
u 1 P (t) = −
∫ (^) t
tI
Y 2 (s)f (s) W Y 1 , Y 2
ds , u 2 P (t) =
∫ (^) t
tI
Y 1 (s)f (s) W Y 1 , Y 2
ds , (7.18)
Then formula (7.19) with tI = 1 and f (s) = (1 + s^2 )es^ yields
YP (t) = (t^2 − 1)
∫ (^) t
1
ses^ ds − t
∫ (^) t
1
(s^2 − 1)es^ ds.
Notice that the same two integrals that arose when we treated this equation by variation of parameters on page 7. As was done there, a little integration-by-parts shows that
∫ (^) t
1
ses^ ds = (t − 1)et^ ,
∫ (^) t
1
(s^2 − 1)es^ ds = (t − 1)^2 et^.
The particular solution is therefore
YP (t) = (t^2 − 1)(t − 1)et^ − t(t − 1)^2 et^ = (t − 1)^2 et^.
It is clear that this solution satisfies YP (1) = Y (^) P′ (1) = 0. Had we chosen a different value for the initial time tI we would have obtained a different particular solution YP (t).
Next we show that formula (7.19) generates the unique particular solution YP (t) of (7.17) that satifies the initial conditions (7.21). It is clear from (7.19) that YP (tI ) = 0. To show that Y (^) P′ (tI ) = 0 we will use the fact from multivariable calculus that for any continuously differentiable K(t, s) one has
d dt
∫ (^) t
tI
K(t, s) ds = K(t, t) +
∫ (^) t
tI
∂tK(t, s) ds.
We see from (7.20) that G(t, t) = 0. Upon differentiating (7.19) with respect to t and using the above calculus fact, we see that
Y (^) P′ (t) = G(t, t)f (t) +
∫ (^) t
tI
∂tG(t, s)f (s) ds =
∫ (^) t
tI
∂tG(t, s)f (s) ds.
It follows that Y (^) P′ (tI ) = 0, thereby showing that YP (t) satifies the initial conditions (7.21).
The Green function G(t, s) is defined by (7.20) whenever t and s are both in the interval (tL, tR) overwhich Y 1 and Y 2 exist. At first it might seem that G(t, s) must depend upon the fundamental set of solutions that is used to construct it. We now show that this is not the case. Let us fix s and consider G(t, s) as a function of t. It is clear from (7.20) that G(t, s) is a linear combination of Y 1 (t) and Y 2 (t). Because Y 1 (t) and Y 2 (t) are solutions of the associated homogeneous equation L(t)y = 0, it follows that G(t, s) is too — namely, that L(t)G(t, s) = 0. It is also clear from (7.20) that G(t, s)
t=s = 0.^ By differentiating (7.20) with respect to t we obtain
∂tG(t, s) =
Y 1 (s)Y 2 ′ (t) − Y 1 ′ (t)Y 2 (s) W Y 1 , Y 2
det
Y 1 (s) Y 2 (s) Y 1 ′ (t) Y 2 ′ (t)
det
Y 1 (s) Y 2 (s) Y 1 ′ (s) Y 2 ′ (s)
It is clear from this that ∂tG(t, s)
t=s = 1. Collecting these facts we see for every^ s^ that G(t, s) as a function of t satisfies the initial-value problem
L(t)G(t, s) = 0 , G(t, s)
t=s = 0^ ,^ ∂tG(t, s)
t=s = 1^.^ (7.23)
This is really a family of initial-value problems — one for each s in which s plays the role of the initial time. The uniqueness theorem implies that G(t, s) is uniquely determined by this family of initial-value problems. Thus, G(t, s) depends only upon the operator L(t). In particular, it does not depend upon which fundamental set of solutions, Y 1 and Y 2 , was used to construct it.
When L(t) has constant coefficients then it is easy to check that the family of initial- value problems (7.23) is satisfied by G(t, s) = g(t − s), where g(t) is the Green function that was defined by the initial-value problem (4.13) in Section 4.3. Formula (7.19) thereby extends the Green function formula (4.12) from Section 4.3 to second order equations with variable coefficients.
When L(t) has constant coefficients the fastest way to compute the Green function is to solve the single initial-value problem (4.13) from Section 4.3. When L(t) has variable coefficients you first have to find a fundamental set of solutions, Y 1 (t) and Y 2 (t), to the associated homogeneous equation. You can then construct the Green function either by formula (7.20) or by solving the family of initial-value problems (7.23). The later approach goes as follows. Because L(t)G(t, s) = 0 for every s we know that there exist C 1 (s) and C 2 (s) such that G(t, s) = Y 1 (t)C 1 (s) + Y 2 (t)C 2 (s). (7.24)
The initial conditions of (7.23) then imply that
0 = G(t, s)
t=s =^ Y^1 (s)C^1 (s) +^ Y^2 (s)C^2 (s)^ , 1 = ∂tG(t, s)
t=s =^ Y^
′ 1 (s)C^1 (s) +^ Y^
′ 2 (s)C^2 (s)^.
The solution of this linear algebraic system is
C 1 (s) = −
Y 2 (s) Y 1 (s)Y 2 ′ (s) − Y 1 ′ (s)Y 2 (s)
, C 2 (s) =
Y 1 (s) Y 1 (s)Y 2 ′ (s) − Y 1 ′ (s)Y 2 (s)
which when plugged into (7.24) yields (7.20).
Example: Given that t and t^2 − 1 are a fundamental set of solutions of the associated homogeneous equation, find a particular solution of
(1 + t^2 )
d^2 y dt^2
− 2 t
dy dt
Solution: You should first bring this equation into its normal form
L(t)y =
d^2 y dt^2
2 t 1 + t^2
dy dt
1 + t^2
y = (1 + t^2 )et^.