Upload
others
View
3
Download
0
Embed Size (px)
Citation preview
ORDINARY DIFFERENTIAL EQUATIONS
GABRIEL NAGY
Mathematics Department
Michigan State UniversityEast Lansing MI 48824
NOVEMBER 29 2017
Summary This is an introduction to ordinary differential equations We describe the
main ideas to solve certain differential equations like first order scalar equations second
order linear equations and systems of linear equations We use power series methodsto solve variable coefficients second order linear equations We introduce Laplace trans-
form methods to find solutions to constant coefficients equations with generalized source
functions We provide a brief introduction to boundary value problems eigenvalue-eigenfunction problems and Fourier series expansions We end these notes solving our
first partial differential equation the heat equation We use the method of separation
of variables where solutions to the partial differential equation are obtained by solvinginfinitely many ordinary differential equations
x2
x1
x1
x2
ab
0
1
G NAGY ndash ODE November 29 2017 I
Contents
Chapter 1 First Order Equations 111 Linear Constant Coefficient Equations 2111 Overview of Differential Equations 2112 Linear Differential Equations 3113 Solving Linear Differential Equations 4114 The Integrating Factor Method 6115 The Initial Value Problem 8116 Exercises 1012 Linear Variable Coefficient Equations 11121 Review Constant Coefficient Equations 11122 Solving Variable Coefficient Equations 12123 The Initial Value Problem 14124 The Bernoulli Equation 16125 Exercises 2013 Separable Equations 21131 Separable Equations 21132 Euler Homogeneous Equations 26133 Solving Euler Homogeneous Equations 29134 Exercises 3214 Exact Differential Equations 33141 Exact Equations 33142 Solving Exact Equations 34143 Semi-Exact Equations 38144 The Equation for the Inverse Function 43145 Exercises 4715 Applications of Linear Equations 48151 Exponential Decay 48152 Newtonrsquos Cooling Law 50153 Mixing Problems 51154 Exercises 5616 Nonlinear Equations 57161 The Picard-Lindelof Theorem 57162 Comparison of Linear and Nonlinear Equations 65163 Direction Fields 68164 Exercises 71
Chapter 2 Second Order Linear Equations 7221 Variable Coefficients 73211 Definitions and Examples 73212 Solutions to the Initial Value Problem 75213 Properties of Homogeneous Equations 76214 The Wronskian Function 80215 Abelrsquos Theorem 81216 Exercises 8422 Reduction of Order Methods 85221 Special Second Order Equations 85222 Conservation of the Energy 88223 The Reduction of Order Method 93
II G NAGY ndash ODE november 29 2017
224 Exercises 9623 Homogenous Constant Coefficients Equations 97231 The Roots of the Characteristic Polynomial 97232 Real Solutions for Complex Roots 101233 Constructive Proof of Theorem 232 103234 Exercises 10624 Euler Equidimensional Equation 107241 The Roots of the Indicial Polynomial 107242 Real Solutions for Complex Roots 110243 Transformation to Constant Coefficients 112244 Exercises 11325 Nonhomogeneous Equations 114251 The General Solution Formula 114252 The Undetermined Coefficients Method 115253 The Variation of Parameters Method 119254 Exercises 12326 Applications 124261 Review of Constant Coefficient Equations 124262 Undamped Mechanical Oscillations 125263 Damped Mechanical Oscillations 127264 Electrical Oscillations 129265 Exercises 132
Chapter 3 Power Series Solutions 13331 Solutions Near Regular Points 134311 Regular Points 134312 The Power Series Method 135313 The Legendre Equation 142314 Exercises 14632 Solutions Near Regular Singular Points 147321 Regular Singular Points 147322 The Frobenius Method 150323 The Bessel Equation 154324 Exercises 159Notes on Chapter 3 160
Chapter 4 The Laplace Transform Method 16441 Introduction to the Laplace Transform 165411 Oveview of the Method 165412 The Laplace Transform 166413 Main Properties 169414 Solving Differential Equations 173415 Exercises 17542 The Initial Value Problem 176421 Solving Differential Equations 176422 One-to-One Property 177423 Partial Fractions 179424 Higher Order IVP 184425 Exercises 18643 Discontinuous Sources 187
G NAGY ndash ODE November 29 2017 III
431 Step Functions 187432 The Laplace Transform of Steps 188433 Translation Identities 189434 Solving Differential Equations 193435 Exercises 19844 Generalized Sources 199441 Sequence of Functions and the Dirac Delta 199442 Computations with the Dirac Delta 201443 Applications of the Dirac Delta 203444 The Impulse Response Function 204445 Comments on Generalized Sources 207446 Exercises 21045 Convolutions and Solutions 211451 Definition and Properties 211452 The Laplace Transform 213453 Solution Decomposition 215454 Exercises 219
Chapter 5 Systems of Linear Differential Equations 22051 General Properties 221511 First Order Linear Systems 221512 Existence of Solutions 223513 Order Transformations 224514 Homogeneous Systems 227515 The Wronskian and Abelrsquos Theorem 231516 Exercises 23452 Solution Formulas 235521 Homogeneous Systems 235522 Homogeneous Diagonalizable Systems 237523 Nonhomogeneous Systems 244524 Exercises 24753 Two-Dimensional Homogeneous Systems 248531 Diagonalizable Systems 248532 Non-Diagonalizable Systems 251533 Exercises 25454 Two-Dimensional Phase Portraits 255541 Real Distinct Eigenvalues 256542 Complex Eigenvalues 259543 Repeated Eigenvalues 261544 Exercises 263
Chapter 6 Autonomous Systems and Stability 26461 Flows on the Line 265611 Autonomous Equations 265612 Geometrical Characterization of Stability 267613 Critical Points and Linearization 269614 Population Growth Models 272615 Exercises 27562 Flows on the Plane 276621 Two-Dimensional Nonlinear Systems 276
IV G NAGY ndash ODE november 29 2017
622 Review The Stability of Linear Systems 277623 Critical Points and Linearization 279624 The Stability of Nonlinear Systems 282625 Competing Species 284626 Exercises 287
Chapter 7 Boundary Value Problems 28871 Eigenfunction Problems 289711 Two-Point Boundary Value Problems 289712 Comparison IVP and BVP 290713 Eigenfunction Problems 293714 Exercises 29772 Overview of Fourier series 298721 Fourier Expansion of Vectors 298722 Fourier Expansion of Functions 300723 Even or Odd Functions 304724 Sine and Cosine Series 306725 Applications 308726 Exercises 31073 The Heat Equation 311731 The Heat Equation (in One-Space Dim) 311732 The IBVP Dirichlet Conditions 313733 The IBVP Neumann Conditions 316734 Exercises 323
Chapter 8 Review of Linear Algebra 32481 Linear Algebraic Systems 325811 Systems of Linear Equations 325812 Gauss Elimination Operations 329813 Linearly Dependence 332814 Exercises 33382 Matrix Algebra 334821 A Matrix is a Function 334822 Matrix Operations 335823 The Inverse Matrix 339824 Computing the Inverse Matrix 341825 Overview of Determinants 342826 Exercises 34583 Eigenvalues and Eigenvectors 346831 Eigenvalues and Eigenvectors 346832 Diagonalizable Matrices 352833 Exercises 35784 The Matrix Exponential 358841 The Exponential Function 358842 Diagonalizable Matrices Formula 360843 Properties of the Exponential 361844 Exercises 365
Chapter 9 Appendices 366Appendix A Review Complex Numbers 366
G NAGY ndash ODE November 29 2017 V
Appendix B Review of Power Series 367Appendix C Review Exercises 371Appendix D Practice Exams 371Appendix E Answers to exercises 372References 382
G NAGY ndash ODE November 29 2017 1
Chapter 1 First Order Equations
We start our study of differential equations in the same way the pioneers in this field didWe show particular techniques to solve particular types of first order differential equa-tions The techniques were developed in the eighteenth and nineteenth centuries and theequations include linear equations separable equations Euler homogeneous equations andexact equations Soon this way of studying differential equations reached a dead end Mostof the differential equations cannot be solved by any of the techniques presented in the firstsections of this chapter People then tried something different Instead of solving the equa-tions they tried to show whether an equation has solutions or not and what properties suchsolution may have This is less information than obtaining the solution but it is still valu-able information The results of these efforts are shown in the last sections of this chapterWe present theorems describing the existence and uniqueness of solutions to a wide class offirst order differential equations
t
y
π
2
0
minusπ2
yprime = 2 cos(t) cos(y)
2 G NAGY ndash ODE november 29 2017
11 Linear Constant Coefficient Equations
111 Overview of Differential Equations A differential equation is an equation wherethe unknown is a function and both the function and its derivatives may appear in theequation Differential equations are essential for a mathematical description of naturemdashthey lie at the core of many physical theories For example let us just mention Newtonrsquosand Lagrangersquos equations for classical mechanics Maxwellrsquos equations for classical electro-magnetism Schrodingerrsquos equation for quantum mechanics and Einsteinrsquos equation for thegeneral theory of gravitation We now show what differential equations look like
Example 111
(a) Newtonrsquos law Mass times acceleration equals force ma = f where m is the particlemass a = d2xdt2 is the particle acceleration and f is the force acting on the particleHence Newtonrsquos law is the differential equation
md2x
dt2(t) = f
(tx(t)
dx
dt(t))
where the unknown is x(t)mdashthe position of the particle in space at the time t As wesee above the force may depend on time on the particle position in space and on theparticle velocity
Remark This is a second order Ordinary Differential Equation (ODE)
(b) Radioactive Decay The amount u of a radioactive material changes in time as follows
du
dt(t) = minusk u(t) k gt 0
where k is a positive constant representing radioactive properties of the material
Remark This is a first order ODE
(c) The Heat Equation The temperature T in a solid material changes in time and inthree space dimensionsmdashlabeled by x = (x y z)mdashaccording to the equation
partT
partt(tx) = k
(part2T
partx2(tx) +
part2T
party2(tx) +
part2T
partz2(tx)
) k gt 0
where k is a positive constant representing thermal properties of the material
Remark This is a first order in time and second order in space PDE
(d) The Wave Equation A wave perturbation u propagating in time t and in three spacedimensionsmdashlabeled by x = (x y z)mdashthrough the media with wave speed v gt 0 is
part2u
partt2(tx) = v2
(part2u
partx2(tx) +
part2u
party2(tx) +
part2u
partz2(tx)
)
Remark This is a second order in time and space Partial Differential Equation (PDE)C
The equations in examples (a) and (b) are called ordinary differential equations (ODE)mdash theunknown function depends on a single independent variable t The equations in examples(d) and (c) are called partial differential equations (PDE)mdashthe unknown function dependson two or more independent variables t x y and z and their partial derivatives appear inthe equations
The order of a differential equation is the highest derivative order that appears in theequation Newtonrsquos equation in example (a) is second order the time decay equation inexample (b) is first order the wave equation in example (d) is second order is time and
G NAGY ndash ODE November 29 2017 3
space variables and the heat equation in example (c) is first order in time and second orderin space variables
112 Linear Differential Equations We start with a precise definition of a first orderordinary differential equation Then we introduce a particular type of first order equationsmdashlinear equations
Definition 111 A first order ODE on the unknown y is
yprime(t) = f(t y(t)) (111)
where f is given and yprime =dy
dt The equation is linear iff the source function f is linear on
its second argumentyprime = a(t) y + b(t) (112)
The linear equation has constant coefficients iff both a and b above are constants Oth-erwise the equation has variable coefficients
There are different sign conventions for Eq (112) in the literature For example Boyce-DiPrima [3] writes it as yprime = minusa y + b The sign choice in front of function a is matter oftaste Some people like the negative sign because later on when they write the equationas yprime + a y = b they get a plus sign on the left-hand side In any case we stick here to theconvention yprime = ay + b
Example 112
(a) An example of a first order linear ODE is the equation
yprime = 2 y + 3
On the right-hand side we have the function f(t y) = 2y + 3 where we can see thata(t) = 2 and b(t) = 3 Since these coefficients do not depend on t this is a constantcoefficient equation
(b) Another example of a first order linear ODE is the equation
yprime = minus2
ty + 4t
In this case the right-hand side is given by the function f(t y) = minus2yt + 4t wherea(t) = minus2t and b(t) = 4t Since the coefficients are nonconstant functions of t this isa variable coefficients equation
(c) The equation yprime = minus 2
ty+ 4t is nonlinear
C
We denote by y D sub R rarr R a real-valued function y defined on a domain D Sucha function is solution of the differential equation (111) iff the equation is satisfied for allvalues of the independent variable t on the domain D
Example 113 Show that y(t) = e2t minus 3
2is solution of the equation
yprime = 2 y + 3
Solution We need to compute the left and right-hand sides of the equation and verifythey agree On the one hand we compute yprime(t) = 2e2t On the other hand we compute
2 y(t) + 3 = 2(e2t minus 3
2
)+ 3 = 2e2t
We conclude that yprime(t) = 2 y(t) + 3 for all t isin R C
4 G NAGY ndash ODE november 29 2017
Example 114 Find the differential equation yprime = f(y) satisfied by y(t) = 4 e2t + 3
Solution (Solution Video) We compute the derivative of y
yprime = 8 e2t
We now write the right-hand side above in terms of the original function y that is
y = 4 e2t + 3 rArr y minus 3 = 4 e2t rArr 2(y minus 3) = 8 e2t
So we got a differential equation satisfied by y namely
yprime = 2y minus 6
C
113 Solving Linear Differential Equations Linear equations with constant coeffi-cient are simpler to solve than variable coefficient ones But integrating each side of theequation does not work For example take the equation
yprime = 2 y + 3
and integrate with respect to t on both sidesintyprime(t) dt = 2
inty(t) dt+ 3t+ c c isin R
The Fundamental Theorem of Calculus implies y(t) =intyprime(t) dt so we get
y(t) = 2
inty(t) dt+ 3t+ c
Integrating both sides of the differential equation is not enough to find a solution y Westill need to find a primitive of y We have only rewritten the original differential equationas an integral equation Simply integrating both sides of a linear equation does not solvethe equation
We now state a precise formula for the solutions of constant coefficient linear equationsThe proof relies on a new ideamdasha clever use of the chain rule for derivatives
Theorem 112 (Constant Coefficients) The linear differential equation
yprime = a y + b (113)
with a 6= 0 b constants has infinitely many solutions
y(t) = c eat minus b
a c isin R (114)
Remarks
(a) Equation (114) is called the general solution of the differential equation in (113)
(b) Theorem 112 says that Eq (113) has infinitely many solutions one solution for eachvalue of the constant c which is not determined by the equation
(c) It makes sense that we have a free constant c in the solution of the differential equa-tion The differential equation contains a first derivative of the unknown function yso finding a solution of the differential equation requires one integration Every indefi-nite integration introduces an integration constant This is the origin of the constant cabove
G NAGY ndash ODE November 29 2017 5
Proof of Theorem 112 First consider the case b = 0 so yprime = a y with a isin R Then
yprime = a y rArr yprime
y= a rArr ln(|y|)prime = a rArr ln(|y|) = at+ c0
where c0 isin R is an arbitrary integration constant and we used the Fundamental Theoremof Calculus on the last step
intln(|y|)prime dt = ln(|y|) Compute the exponential on both sides
y(t) = plusmneat+c0 = plusmnec0 eat denote c = plusmnec0 rArr y(t) = c eat c isin RThis is the solution of the differential equation in the case that b = 0 The case b 6= 0 canbe converted into the case above Indeed
yprime = a y + b rArr yprime = a(y +
b
a
)rArr
(y +
b
a
)prime= a
(y +
b
a
)
since (ba)prime = 0 Denoting y = y + (ba) the equation above is yprime = a y We know all thesolutions to that equation
y(t) = c eat c isin R rArr y(t) +b
a= c eat rArr y(t) = c eat minus b
a
This establishes the Theorem
Remark We solved the differential equation above yprime = a y by transforming it into atotal derivative Let us highlight this fact in the calculation we did
ln(|y|)prime = a rArr (ln(|y|)minus at)prime
= 0 hArr ψ(t y(t))prime = 0 with ψ = ln(|y(t)|)minus atThe function ψ is called a potential function This is how the original differential equationgets transformed into a total derivative
yprime = a y rarr ψprime = 0
Total derivatives are simple to integrate
ψprime = 0 rArr ψ = c0 c0 isin RSo the solution is
ln(|y|)minus at = c0 rArr ln(|y|) = c0 + at rArr y(t) = plusmnec0+at = plusmnec0 eatand denoting c = plusmnec0 we reobtain the formula
y(t) = c eat
In the case b 6= 0 a potential function is ψ(t y(t)) = ln(∣∣y(t) +
b
a
∣∣)minus atExample 115 Find all solutions to the constant coefficient equation yprime = 2y + 3
Solution (Solution Video) Letrsquos pull a common factor 2 on the right-hand side of theequation
yprime = 2(y +
3
2
)rArr
(y +
3
2
)prime= 2
(y +
3
2
)
Denoting y = y + (32) we get
yprime = 2 y rArr yprime
y= 2 rArr ln(|y|)prime = 2 rArr ln(|y|) = 2t+ c0
We now compute exponentials on both sides to get
y(t) = plusmne2t+c0 = plusmne2t ec0 denote c = plusmnec0 then y(t) = c e2t c isin R
Since y = y +3
2 we get y(t) = c e2t minus 3
2 where c isin R C
6 G NAGY ndash ODE november 29 2017
Remark We converted the original differential equation yprime = 2 y+ 3 into a total derivativeof a potential function ψprime = 0 The potential function can be computed from the step
ln(|y|)prime = 2 rArr(ln(|y|)minus 2t
)prime= 0
then a potential function is ψ(t y(t)) = ln(∣∣y(t) +
3
2
∣∣) minus 2t Since the equation is now
ψprime = 0 all solutions are ψ = c0 with c0 isin R That is
ln(∣∣y(t) +
3
2
∣∣)minus 2t = c0 rArr ln(∣∣y(t) +
3
2
∣∣) = 2t+ c0 rArr y(t) +3
2= plusmne2t+c0
If we denote c = plusmnec0 then we get the solution we found above y(t) = c e2t minus 3
2
114 The Integrating Factor Method The argument we used to prove Theorem 112cannot be generalized in a simple way to all linear equations with variable coefficients How-ever there is a way to solve linear equations with both constant and variable coefficientsmdashtheintegrating factor method Now we give a second proof of Theorem 112 using this method
Second Proof of Theorem 112 Write the equation with y on one side only
yprime minus a y = b
and then multiply the differential equation by a function micro called an integrating factor
micro yprime minus amicro y = micro b (115)
Now comes the critical step We choose a positive function micro such that
minus amicro = microprime (116)
For any function micro solution of Eq (116) the differential equation in (115) has the form
micro yprime + microprime y = micro b
But the left-hand side is a total derivative of a product of two functions(micro y)prime
= micro b (117)
This is the property we want in an integrating factor micro We want to find a function micro suchthat the left-hand side of the differential equation for y can be written as a total derivativejust as in Eq (117) We only need to find one of such functions micro So we go back toEq (116) the differential equation for micro which is simple to solve
microprime = minusamicro rArr microprime
micro= minusa rArr
(ln(|micro|)
)prime= minusa rArr ln(|micro|) = minusat+ c0
Computing the exponential of both sides in the equation above we get
micro = plusmnec0minusat = plusmnec0 eminusat rArr micro = c1 eminusat c1 = plusmnec0
Since c1 is a constant which will cancel out from Eq (115) anyway we choose the integrationconstant c0 = 0 hence c1 = 1 The integrating function is then
micro(t) = eminusat
This function is an integrating factor because if we start again at Eq (115) we get
eminusat yprime minus a eminusat y = b eminusat rArr eminusat yprime +(eminusat
)primey = b eminusat
where we used the main property of the integrating factor minusa eminusat =(eminusat
)prime Now the
product rule for derivatives implies that the left-hand side above is a total derivative(eminusat y
)prime= b eminusat
G NAGY ndash ODE November 29 2017 7
The right-hand side above can be rewritten as a derivative b eminusat =(minus baeminusat
)prime hence(
eminusat y +b
aeminusat
)prime= 0 hArr
[(y +
b
a
)eminusat
]prime= 0
We have succeeded in writing the whole differential equation as a total derivative Thedifferential equation is the total derivative of a potential function which in this case is
ψ(t y) =(y +
b
a
)eminusat
Notice that this potential function is the exponential of the potential function found in thefirst proof of this Theorem The differential equation for y is a total derivative
dψ
dt(t y(t)) = 0
so it is simple to integrate
ψ(t y(t)) = c rArr(y(t) +
b
a
)eminusat = c rArr y(t) = c eat minus b
a
This establishes the Theorem We solve the example below following the second proof of Theorem 112
Example 116 Find all solutions to the constant coefficient equation
yprime = 2y + 3 (118)
Solution (Solution Video) Write the equation in (118) as follows
yprime minus 2y = 3
Multiply this equation by the integrating factor micro(t) = eminus2t
eminus2typrime minus 2 eminus2t y = 3 eminus2t hArr eminus2typrime +(eminus2t
)primey = 3 eminus2t
The equation on the far right above is
(eminus2t y)prime = 3 eminus2t
Rewrite the right-hand side above
(eminus2t y)prime =(minus3
2eminus2t
)prime
Moving terms and reordering factors we get[(y +
3
2
)eminus2t
]prime= 0
The equation is a total derivative ψprime = 0 ofthe potential function
ψ(t y) =(y +
3
2
)eminus2t
Now the equation is easy to integrate(y +
3
2
)eminus2t = c
So we get the solutions
y(t) = c e2t minus 3
2 c isin R C
y
tminus 3
2
c gt 0
c = 0
c lt 0
Figure 1 A few solutionsto Eq (118) for different c(Interactive Graph)
We now solve the same problem above but now using the formulas in Theorem 112
8 G NAGY ndash ODE november 29 2017
Example 117 Find all solutions to the constant coefficient equation
yprime = 2y + 3 (119)
Solution The equation above is the case of a = 2 and b = 3 in Eq (113) Thereforeusing these values in the expression for the solution given in Eq (114) we obtain
y(t) = c e2t minus 3
2
C
115 The Initial Value Problem Sometimes in physics one is not interested in allsolutions to a differential equation but only in those solutions satisfying extra conditionsFor example in the case of Newtonrsquos second law of motion for a point particle one couldbe interested only in solutions such that the particle is at a specific position at the initialtime Such condition is called an initial condition and it selects a subset of solutions of thedifferential equation An initial value problem means to find a solution to both a differentialequation and an initial condition
Definition 113 The initial value problem (IVP) is to find all solutions y to
yprime = a y + b (1110)
that satisfy the initial condition
y(t0) = y0 (1111)
where a b t0 and y0 are given constants
Remark The equation (1111) is called the initial condition of the problem
Although the differential equation in (1110) has infinitely many solutions the associatedinitial value problem has a unique solution
Theorem 114 (Constant Coefficients IVP) Given the constants a b t0 y0 isin R witha 6= 0 the initial value problem
yprime = a y + b y(t0) = y0
has the unique solution
y(t) =(y0 +
b
a
)ea(tminust0) minus b
a (1112)
Remark In case t0 = 0 the initial condition is y(0) = y0 and the solution is
y(t) =(y0 +
b
a
)eat minus b
a
The proof of Theorem 114 is just to write the general solution of the differential equationgiven in Theorem 112 and fix the integration constant c with the initial condition
Proof of Theorem 114 The general solution of the differential equation in (1110) isgiven in Eq (114) for any choice of the integration constant c
y(t) = c eat minus b
a
The initial condition determines the value of the constant c as follows
y0 = y(t0) = c eat0 minus b
ahArr c =
(y0 +
b
a
)eminusat0
G NAGY ndash ODE November 29 2017 9
Introduce this expression for the constant c into the differential equation in Eq (1110)
y(t) =(y0 +
b
a
)ea(tminust0) minus b
a
This establishes the Theorem
Example 118 Find the unique solution of the initial value problem
yprime = 2y + 3 y(0) = 1 (1113)
Solution (Solution Video) All solutions of the differential equation are given by
y(t) = ce2t minus 3
2
where c is an arbitrary constant The initial condition in Eq (1113) determines c
1 = y(0) = cminus 3
2rArr c =
5
2
Then the unique solution to the initial value problem above is y(t) =5
2e2t minus 3
2 C
Example 119 Find the solution y to the initial value problem
yprime = minus3y + 1 y(0) = 1
Solution (Solution Video) Write the differential equation as yprime + 3 y = 1 and multiplythe equation by the integrating factor micro = e3t which will convert the left-hand side aboveinto a total derivative
e3typrime + 3 e3t y = e3t hArr e3typrime +(e3t)primey = e3t
This is the key idea because the derivative of a product implies(e3t y
)prime= e3t
The exponential e3t is an integrating factor Integrate on both sides of the equation
e3t y =1
3e3t + c
So every solution of the differential equation above is given by
y(t) = c eminus3t +1
3 c isin R
The initial condition y(0) = 2 selects only one solution
1 = y(0) = c+1
3rArr c =
2
3
We get the solution y(t) =2
3eminus3t +
1
3 C
Notes This section corresponds to Boyce-DiPrima [3] Section 21 where both constantand variable coefficient equations are studied Zill and Wright give a more concise expositionin [17] Section 23 and a one page description is given by Simmons in [10] in Section 210The integrating factor method is shown in most of these books but unlike them here weemphasize that the integrating factor changes the linear differential equation into a totalderivative which is trivial to integrate We also show here how to compute the potentialfunctions for the linear differential equations In sect 14 we solve (nonlinear) exact equationsand nonexact equations with integrating factors We solve these equations by transformingthem into a total derivative just as we did in this section with the linear equations
10 G NAGY ndash ODE november 29 2017
116 Exercises
111- Find the differential equation of theform yprime = f(y) satisfied by the function
y(t) = 8e5t minus 2
5
112- Find constants a b so that
y(t) = (t+ 3) e2t
is solution of the IVP
yprime = ay + e2t y(0) = b
113- Find all solutions y of
yprime = 3y
114- Follow the steps below to find all so-lutions of
yprime = minus4y + 2
(a) Find the integrating factor micro(b) Write the equations as a total de-
rivative of a function ψ that is
yprime = minus4y + 2 hArr ψprime = 0
(c) Integrate the equation for ψ(d) Compute y using part (c)
115- Find all solutions of
yprime = 2y + 5
116- Find the solution of the IVP
yprime = minus4y + 2 y(0) = 5
117- Find the solution of the IVPdy
dt(t) = 3 y(t)minus 2 y(1) = 1
118- Express the differential equation
yprime = 6 y + 1 (1114)
as a total derivative of a potential func-tion ψ(t y) that is find ψ satisfying
yprime = 6 y + 1 hArr ψprime = 0
Integrate the equation for the poten-tial function ψ to find all solutions y ofEq (1114)
119- Find the solution of the IVP
yprime = 6 y + 1 y(0) = 1
1110- Follow the steps below to solve
yprime = minus3y + 5 y(0) = 1
(a) Find any integrating factor micro forthe differential equation
(b) Write the differential equation as atotal derivative of a potential func-tion ψ
(c) Use the potential function to findthe general solution of the differen-tial equation
(d) Find the solution of the initial valueproblem above
G NAGY ndash ODE November 29 2017 11
12 Linear Variable Coefficient Equations
In this section we obtain a formula for the solutions of variable coefficient linear equationswhich generalizes Equation (114) in Theorem 112 To get this formula we use the integrat-ing factor methodmdashalready used for constant coefficient equations in sect 11 We also showthat the initial value problem for variable coefficient equations has a unique solutionmdashjustas happens for constant coefficient equations
In the last part of this section we turn our attention to a particular nonlinear differentialequationmdashthe Bernoulli equation This nonlinear equation has a particular property it canbe transformed into a linear equation by an appropriate change in the unknown functionThen one solves the linear equation for the changed function using the integrating factormethod The last step is to transform the changed function back into the original function
121 Review Constant Coefficient Equations Let us recall how we solved the con-stant coefficient case We wrote the equation yprime = a y + b as follows
yprime = a(y +
b
a
)
The critical step was the following since ba is constant then (ba)prime = 0 hence(y +
b
a
)prime= a
(y +
b
a
)
At this point the equation was simple to solve
(y + ba )prime
(y + ab )
= a rArr ln(∣∣∣y +
b
a
∣∣∣)prime = a rArr ln(∣∣∣y +
b
a
∣∣∣) = c0 + at
We now computed the exponential on both sides to get∣∣∣y +b
a
∣∣∣ = ec0+at = ec0 eat rArr y +b
a= (plusmnec0) eat
and calling c = plusmnec0 we got the formula
y(t) = c eat minus b
a
This idea can be generalized to variable coefficient equations but only in the case whereba is constant For example consider the case b = 0 and a depending on t The equationis yprime = a(t) y and we can solve it as follows
yprime
y= a(t) rArr ln(|y|)prime = a(t) rArr ln(|y(t)|) = A(t) + c0
where A =inta dt is a primitive or antiderivative of a Therefore
y(t) = plusmneA(t)+c0 = plusmneA(t) ec0
so we get the solution y(t) = c eA(t) where c = plusmnec0
Example 121 The solutions of yprime = 2t y are y(t) = c et2
where c isin R
However the case where ba is not constant is not so simple to solvemdashwe cannot addzero to the equation in the form of 0 = (ba)prime We need a new idea We now show an ideathat works with all first order linear equations with variable coefficientsmdashthe integratingfactor method
12 G NAGY ndash ODE november 29 2017
122 Solving Variable Coefficient Equations We now state our main resultmdashtheformula for the solutions of linear differential equations with variable coefficiets
Theorem 121 (Variable Coefficients) If the functions a b are continuous then
yprime = a(t) y + b(t) (121)
has infinitely many solutions given by
y(t) = c eA(t) + eA(t)
inteminusA(t) b(t) dt (122)
where A(t) =inta(t) dt and c isin R
Remarks
(a) The expression in Eq (122) is called the general solution of the differential equation(b) The function micro(t) = eminusA(t) is called the integrating factor of the equation
Example 122 Show that for constant coefficient equations the solution formula given inEq (122) reduces to Eq (114)
Solution In the particular case of constant coefficient equations a primitive or antideriv-ative for the constant function a is A(t) = at so
y(t) = c eat + eatinteminusat b dt
Since b is constant the integral in the second term above can be computed explicitly
eatintb eminusat dt = eat
(minus baeminusat
)= minus b
a
Therefore in the case of a b constants we obtain y(t) = c eat minus b
agiven in Eq (114) C
Proof of Theorem 121 Write the differential equation with y on one side only
yprime minus a y = b
and then multiply the differential equation by a function micro called an integrating factor
micro yprime minus amicro y = micro b (123)
The critical step is to choose a function micro such that
minus amicro = microprime (124)
For any function micro solution of Eq (124) the differential equation in (123) has the form
micro yprime + microprime y = micro b
But the left-hand side is a total derivative of a product of two functions(micro y)prime
= micro b (125)
This is the property we want in an integrating factor micro We want to find a function micro suchthat the left-hand side of the differential equation for y can be written as a total derivativejust as in Eq (125) We need to find just one of such functions micro So we go back toEq (124) the differential equation for micro which is simple to solve
microprime = minusamicro rArr microprime
micro= minusa rArr ln(|micro|)prime = minusa rArr ln(|micro|) = minusA+ c0
G NAGY ndash ODE November 29 2017 13
where A =inta dt a primitive or antiderivative of a and c0 is an arbitrary constant Com-
puting the exponential of both sides we get
micro = plusmnec0 eminusA rArr micro = c1 eminusA c1 = plusmnec0
Since c1 is a constant which will cancel out from Eq (123) anyway we choose the integrationconstant c0 = 0 hence c1 = 1 The integrating factor is then
micro(t) = eminusA(t)
This function is an integrating factor because if we start again at Eq (123) we get
eminusA yprime minus a eminusA y = eminusA b rArr eminusA yprime +(eminusA
)primey = eminusA b
where we used the main property of the integrating factor minusa eminusA =(eminusA
)prime Now the
product rule for derivatives implies that the left-hand side above is a total derivative(eminusA y
)prime= eminusA b
Integrating on both sides we get(eminusA y
)=
inteminusA b dt+ c rArr
(eminusA y
)minusinteminusA b dt = c
The function ψ(t y) =(eminusA y
)minusinteminusA b dt is called a potential function of the differen-
tial equation The solution of the differential equation can be computed form the secondequation above ψ = c and the result is
y(t) = c eA(t) + eA(t)
inteminusA(t) b(t) dt
This establishes the Theorem
Example 123 Find all solutions y to the differential equation
yprime =3
ty + t5 t gt 0
Solution Rewrite the equation with y on only one side
yprime minus 3
ty = t5
Multiply the differential equation by a function micro which we determine later
micro(t)(yprime minus 3
ty)
= t5 micro(t) rArr micro(t) yprime minus 3
tmicro(t) y = t5 micro(t)
We need to choose a positive function micro having the following property
minus3
tmicro(t) = microprime(t) rArr minus3
t=microprime(t)
micro(t)rArr minus3
t=(ln(|micro|)
)primeIntegrating
ln(|micro|) = minusint
3
tdt = minus3 ln(|t|) + c0 = ln(|t|minus3) + c0 rArr micro = (plusmnec0) eln(|t|minus3)
so we get micro = (plusmnec0) |t|minus3 We need only one integrating factor so we choose micro = tminus3 Wenow go back to the differential equation for y and we multiply it by this integrating factor
tminus3(yprime minus 3
ty)
= tminus3 t5 rArr tminus3 yprime minus 3 tminus4 y = t2
14 G NAGY ndash ODE november 29 2017
Using that minus3 tminus4 = (tminus3)prime and t2 =( t3
3
)prime we get
tminus3 yprime + (tminus3)prime y =( t3
3
)primerArr
(tminus3 y
)prime=( t3
3
)primerArr
(tminus3 y minus t3
3
)prime= 0
This last equation is a total derivative of a potential function ψ(t y) = tminus3 yminus t3
3 Since the
equation is a total derivative this confirms that we got a correct integrating factor Nowwe need to integrate the total derivative which is simple to do
tminus3 y minus t3
3= c rArr tminus3 y = c+
t3
3rArr y(t) = c t3 +
t6
3
where c is an arbitrary constant C
Example 124 Find all solutions of typrime = minus2y + 4t2 with t gt 0
Solution Rewrite the equation as
yprime = minus2
ty + 4t hArr a(t) = minus2
t b(t) = 4t (126)
Rewrite again
yprime +2
ty = 4t
Multiply by a function micro
micro yprime +2
tmicro y = micro 4t
Choose micro solution of
2
tmicro = microprime rArr ln(|micro|)prime =
2
trArr ln(|micro|) = 2 ln(|t|) = ln(t2) rArr micro(t) = plusmnt2
We choose micro = t2 Multiply the differential equation by this micro
t2 yprime + 2t y = 4t t2 rArr (t2 y)prime = 4t3
If we write the right-hand side also as a derivative(t2 y)prime
=(t4)prime rArr
(t2 y minus t4
)prime= 0
So a potential function is ψ(t y(t)) = t2 y(t)minus t4 Integrating on both sides we obtain
t2 y minus t4 = c rArr t2 y = c+ t4 rArr y(t) =c
t2+ t2
C
123 The Initial Value Problem We now generalize Theorem 114mdashinitial value prob-lems have unique solutionsmdashfrom constant coefficients to variable coefficients equations Westart introducing the initial value problem for a variable coefficients equationmdasha simple gen-eralization of Def 113
Definition 122 The initial value problem (IVP) is to find all solutions y of
yprime = a(t) y + b(t) (127)
that satisfy the initial condition
y(t0) = y0 (128)
where a b are given functions and t0 y0 are given constants
G NAGY ndash ODE November 29 2017 15
Remark The Equation (128) is the initial condition of the problem
Although the differential equation in (127) has infinitely many solutions the associatedinitial value problem has a unique solution
Theorem 123 (Variable coefficients IVP) Given continuous functions a b with domain(t1 t2) and constants t0 isin (t1 t2) and y0 isin R the initial value problem
yprime = a(t) y + b(t) y(t0) = y0 (129)
has the unique solution y on the domain (t1 t2) given by
y(t) = y0 eA(t) + eA(t)
int t
t0
eminusA(s) b(s) ds (1210)
where the function A(t) =
int t
t0
a(s) ds is a particular antiderivative of function a
Remark In the particular case of a constant coefficient equation where a b isin R thesolution given in Eq (1210) reduces to the one given in Eq (1112) Indeed
A(t) = minusint t
t0
a ds = minusa(tminus t0)int t
t0
eminusa(sminust0) b ds = minus baeminusa(tminust0) +
b
a
Therefore the solution y can be written as
y(t) = y0 ea(tminust0) + ea(tminust0)
(minus baeminusa(tminust0) +
b
a
)=(y0 +
b
a
)ea(tminust0) minus b
a
Proof Theorem 123 Theorem 121 gives us the general solution of Eq (129)
y(t) = c eA(t) + eA(t)
inteminusA(t) b(t) dt c isin R
Let us use the notation K(t) =
inteminusA(t) b(t) dt and then introduce the initial condition
in (129) which fixes the constant c
y0 = y(t0) = c eA(t0) + eA(t0)K(t0)
So we get the constant c
c = y0 eminusA(t0) minusK(t0)
Using this expression in the general solution above
y(t) =(y0 eminusA(t0) minusK(t0)
)eA(t) + eA(t)K(t) = y0 e
A(t)minusA(t0) + eA(t)(K(t)minusK(t0)
)
Let us introduce the particular primitives A(t) = A(t) minus A(t0) and K(t) = K(t) minus K(t0)which vanish at t0 that is
A(t) =
int t
t0
a(s) ds K(t) =
int t
t0
eminusA(s) b(s) ds
Then the solution y of the IVP has the form
y(t) = y0 eA(t) + eA(t)
int t
t0
eminusA(s) b(s) ds
which is equivalent to
y(t) = y0 eA(t) + eA(t)minusA(t0)
int t
t0
eminus(A(s)minusA(t0)) b(s) ds
16 G NAGY ndash ODE november 29 2017
so we conclude that
y(t) = y0 eA(t) + eA(t)
int t
t0
eminusA(s) b(s) ds
Once we rename the particular primitive A simply by A we establish the Theorem
We solve the next Example following the main steps in the proof of Theorem 123 above
Example 125 Find the function y solution of the initial value problem
typrime + 2y = 4t2 t gt 0 y(1) = 2
Solution In Example 124 we computed the general solution of the differential equation
y(t) =c
t2+ t2 c isin R
The initial condition implies that
2 = y(1) = c+ 1 rArr c = 1 rArr y(t) =1
t2+ t2
C
Example 126 Find the solution of the problem given in Example 125 but this timeusing the results of Theorem 123
Solution We find the solution simply by using Eq (1210) First find the integratingfactor function micro as follows
A(t) = minusint t
1
2
sds = minus2
[ln(t)minus ln(1)
]= minus2 ln(t) rArr A(t) = ln(tminus2)
The integrating factor is micro(t) = eminusA(t) that is
micro(t) = eminus ln(tminus2) = eln(t2) rArr micro(t) = t2
Note that Eq (1210) contains eA(t) = 1micro(t) Then compute the solution as follows
y(t) =1
t2
(2 +
int t
1
s2 4s ds)
=2
t2+
1
t2
int t
1
4s3ds
=2
t2+
1
t2(t4 minus 1)
=2
t2+ t2 minus 1
t2rArr y(t) =
1
t2+ t2
C
124 The Bernoulli Equation In 1696 Jacob Bernoulli solved what is now known asthe Bernoulli differential equation This is a first order nonlinear differential equation Thefollowing year Leibniz solved this equation by transforming it into a linear equation Wenow explain Leibnizrsquos idea in more detail
Definition 124 The Bernoulli equation is
yprime = p(t) y + q(t) yn (1211)
where p q are given functions and n isin R
G NAGY ndash ODE November 29 2017 17
Remarks
(a) For n 6= 0 1 the equation is nonlinear(b) If n = 2 we get the logistic equation (wersquoll study it in a later chapter)
yprime = ry(
1minus y
K
)
(c) This is not the Bernoulli equation from fluid dynamics
The Bernoulli equation is special in the following sense it is a nonlinear equation thatcan be transformed into a linear equation
Theorem 125 (Bernoulli) The function y is a solution of the Bernoulli equation
yprime = p(t) y + q(t) yn n 6= 1
iff the function v = 1y(nminus1) is solution of the linear differential equation
vprime = minus(nminus 1)p(t) v minus (nminus 1)q(t)
Remark This result summarizes Laplacersquos idea to solve the Bernoulli equation To trans-form the Bernoulli equation for y which is nonlinear into a linear equation for v = 1y(nminus1)One then solves the linear equation for v using the integrating factor method The last stepis to transform back to y = (1v)1(nminus1)
Proof of Theorem 125 Divide the Bernoulli equation by yn
yprime
yn=
p(t)
ynminus1+ q(t)
Introduce the new unknown v = yminus(nminus1) and compute its derivative
vprime =[yminus(nminus1)
]prime= minus(nminus 1)yminusn yprime rArr minus vprime(t)
(nminus 1)=
yprime(t)
yn(t)
If we substitute v and this last equation into the Bernoulli equation we get
minus vprime
(nminus 1)= p(t) v + q(t) rArr vprime = minus(nminus 1)p(t) v minus (nminus 1)q(t)
This establishes the Theorem
Example 127 Find every nonzero solution of the differential equation
yprime = y + 2 y5
Solution This is a Bernoulli equation for n = 5 Divide the equation by y5
yprime
y5=
1
y4+ 2
Introduce the function v = 1y4 and its derivative vprime = minus4(yprimey5) into the differentialequation above
minusvprime
4= v + 2 rArr vprime = minus4 v minus 8 rArr vprime + 4 v = minus8
The last equation is a linear differential equation for the function v This equation can besolved using the integrating factor method Multiply the equation by micro(t) = e4t then(
e4tv)prime
= minus8 e4t rArr e4tv = minus8
4e4t + c
18 G NAGY ndash ODE november 29 2017
We obtain that v = c eminus4t minus 2 Since v = 1y4
1
y4= c eminus4t minus 2 rArr y(t) = plusmn 1(
c eminus4t minus 2)14
C
Example 128 Given any constants a0 b0 find every solution of the differential equation
yprime = a0 y + b0 y3
Solution This is a Bernoulli equation with n = 3 Divide the equation by y3
yprime
y3=a0y2
+ b0
Introduce the function v = 1y2 and its derivative vprime = minus2(yprimey3) into the differentialequation above
minusvprime
2= a0v + b0 rArr vprime = minus2a0v minus 2b0 rArr vprime + 2a0v = minus2b0
The last equation is a linear differential equation for v This equation can be solved usingthe integrating factor method Multiply the equation by micro(t) = e2a0t(
e2a0tv)prime
= minus2b0 e2a0t rArr e2a0tv = minus b0
a0e2a0t + c
We obtain that v = c eminus2a0t minus b0a0
Since v = 1y2
1
y2= c eminus2a0t minus b0
a0rArr y(t) = plusmn 1(
c eminus2a0t minus b0a0
)12 C
Example 129 Find every solution of the equation t yprime = 3y + t5 y13
Solution Rewrite the differential equation as
yprime =3
ty + t4 y13
This is a Bernoulli equation for n = 13 Divide the equation by y13
yprime
y13=
3
ty23 + t4
Define the new unknown function v = 1y(nminus1) that is v = y23 compute is derivative
vprime =2
3
yprime
y13 and introduce them in the differential equation
3
2vprime =
3
tv + t4 rArr vprime minus 2
tv =
2
3t4
This is a linear equation for v Integrate this equation using the integrating factor methodTo compute the integrating factor we need to find
A(t) =
int2
tdt = 2 ln(t) = ln(t2)
G NAGY ndash ODE November 29 2017 19
Then the integrating factor is micro(t) = eminusA(t) In this case we get
micro(t) = eminus ln(t2) = eln(tminus2) rArr micro(t) =1
t2
Therefore the equation for v can be written as a total derivative
1
t2(vprime minus 2
tv)
=2
3t2 rArr
( vt2minus 2
9t3)prime
= 0
The potential function is ψ(t v) = vt2minus(29)t3 and the solution of the differential equationis ψ(t v(t)) = c that is
v
t2minus 2
9t3 = c rArr v(t) = t2
(c+
2
9t3)rArr v(t) = c t2 +
2
9t5
Once v is known we compute the original unknown y = plusmnv32 where the double sign isrelated to taking the square root We finally obtain
y(t) = plusmn(c t2 +
2
9t5)32
C
Notes This section corresponds to Boyce-DiPrima [3] Section 21 and Simmons [10]Section 210 The Bernoulli equation is solved in the exercises of section 24 in Boyce-Diprima and in the exercises of section 210 in Simmons
20 G NAGY ndash ODE november 29 2017
125 Exercises
121- Find all solutions of
yprime = 4t y
122- Find the general solution of
yprime = minusy + eminus2t
123- Find the solution y to the IVP
yprime = y + 2te2t y(0) = 0
124- Find the solution y to the IVP
t yprime + 2 y =sin(t)
t y
(π2
)=
2
π
for t gt 0
125- Find all solutions y to the ODE
yprime
(t2 + 1)y= 4t
126- Find all solutions y to the ODE
typrime + n y = t2
with n a positive integer
127- Find the solutions to the IVP
2ty minus yprime = 0 y(0) = 3
128- Find all solutions of the equation
yprime = y minus 2 sin(t)
129- Find the solution to the initial valueproblem
t yprime = 2 y + 4t3 cos(4t) y(π
8
)= 0
1210- Find all solutions of the equation
yprime + t y = t y2
1211- Find all solutions of the equation
yprime = minusx y + 6xradicy
1212- Find all solutions of the IVP
yprime = y +3
y2 y(0) = 1
1213- Find all solutions of
yprime = a y + b yn
where a 6= 0 b and n are real constantswith n 6= 0 1
G NAGY ndash ODE November 29 2017 21
13 Separable Equations
131 Separable Equations More often than not nonlinear differential equations areharder to solve than linear equations Separable equations are an exceptionmdashthey canbe solved just by integrating on both sides of the differential equation We tried this ideato solve linear equations but it did not work However it works for separable equations
Definition 131 A separable differential equation for the function y is
h(y) yprime = g(t)
where h g are given functions
Remark A separable differential equation is h(y) yprime = g(y) has the following properties
bull The left-hand side depends explicitly only on y so any t dependence is through ybull The right-hand side depends only on tbull And the left-hand side is of the form (something on y)times yprime
Example 131
(a) The differential equation yprime =t2
1minus y2is separable since it is equivalent to
(1minus y2
)yprime = t2 rArr
g(t) = t2
h(y) = 1minus y2
(b) The differential equation yprime + y2 cos(2t) = 0 is separable since it is equivalent to
1
y2yprime = minus cos(2t) rArr
g(t) = minus cos(2t)
h(y) =1
y2
The functions g and h are not uniquely defined another choice in this example is
g(t) = cos(2t) h(y) = minus 1
y2
(c) The linear differential equation yprime = a(t) y is separable since it is equivalent to
1
yyprime = a(t) rArr
g(t) = a(t)
h(y) =1
y
(d) The equation yprime = ey + cos(t) is not separable(e) The constant coefficient linear differential equation yprime = a0 y + b0 is separable since it
is equivalent to
1
(a0 y + b0)yprime = 1 rArr
g(t) = 1
h(y) =1
(a0 y + b0)
(f) The linear equation yprime = a(t) y+ b(t) with a 6= 0 and ba nonconstant is not separable
C
From the last two examples above we see that linear differential equations with a 6= 0are separable for ba constant and not separable otherwise Separable differential equationsare simple to solve We just integrate on both sides of the equation We show this idea inthe following example
22 G NAGY ndash ODE november 29 2017
Example 132 Find all solutions y to the differential equation
minus yprime
y2= cos(2t)
Solution The differential equation above is separable with
g(t) = cos(2t) h(y) = minus 1
y2
Therefore it can be integrated as follows
minus yprime
y2= cos(2t) hArr
intminus yprime(t)
y2(t)dt =
intcos(2t) dt+ c
The integral on the right-hand side can be computed explicitly The integral on the left-handside can be done by substitution The substitution is
u = y(t) du = yprime(t) dt rArrintminusduu2
dt =
intcos(2t) dt+ c
This notation makes clear that u is the new integation variable while y(t) are the unknownfunction values we look for However it is common in the literature to use the same namefor the variable and the unknown function We will follow that convention and we writethe substitution as
y = y(t) dy = yprime(t) dt rArrintminusdyy2dt =
intcos(2t) dt+ c
We hope this is not too confusing Integrating on both sides above we get
1
y=
1
2sin(2t) + c
So we get the implicit and explicit form of the solution
1
y(t)=
1
2sin(2t) + c hArr y(t) =
2
sin(2t) + 2c
C
Remark Notice the following about the equation and its implicit solution
minus 1
y2yprime = cos(2t) hArr h(y) yprime = g(t) h(y) = minus 1
y2 g(t) = cos(2t)
1
yyprime =
1
2sin(2t) hArr H(y) = G(t) H(y) =
1
y G(t) =
1
2sin(2t)
bull Here H is an antiderivative of h that is H(y) =inth(y) dy
bull Here G is an antiderivative of g that is G(t) =intg(t) dt
Theorem 132 (Separable Equations) If h g are continuous with h 6= 0 then
h(y) yprime = g(t) (131)
has infinitely many solutions y satisfying the algebraic equation
H(y(t)) = G(t) + c (132)
where c isin R is arbitrary H and G are antiderivatives of h and g
G NAGY ndash ODE November 29 2017 23
Remark An antiderivative of h is H(y) =inth(y) dy while an antiderivative of g is the
function G(t) =intg(t) dt
Proof of Theorem 132 Integrate with respect to t on both sides in Eq (131)
h(y) yprime = g(t) rArrinth(y(t)) yprime(t) dt =
intg(t) dt+ c
where c is an arbitrary constant Introduce on the left-hand side of the second equationabove the substitution
y = y(t) dy = yprime(t) dt
The result of the substitution isinth(y(t)) yprime(t) dt =
inth(y)dy rArr
inth(y) dy =
intg(t) dt+ c
To integrate on each side of this equation means to find a function H primitive of h anda function G primitive of g Using this notation we write
H(y) =
inth(y) dy G(t) =
intg(t) dt
Then the equation above can be written as follows
H(y) = G(t) + c
which implicitly defines a function y which depends on t This establishes the Theorem
Example 133 Find all solutions y to the differential equation
yprime =t2
1minus y2 (133)
Solution We write the differential equation in (133) in the form h(y) yprime = g(t)(1minus y2
)yprime = t2
In this example the functions h and g defined in Theorem 132 are given by
h(y) = (1minus y2) g(t) = t2
We now integrate with respect to t on both sides of the differential equationint (1minus y2(t)
)yprime(t) dt =
intt2 dt+ c
where c is any constant The integral on the right-hand side can be computed explicitlyThe integral on the left-hand side can be done by substitution The substitution is
y = y(t) dy = yprime(t) dt rArrint (
1minus y2(t))yprime(t) dt =
int(1minus y2) dy
This substitution on the left-hand side integral above givesint(1minus y2) dy =
intt2 dt+ c hArr y minus y3
3=t3
3+ c
The equation above defines a function y which depends on t We can write it as
y(t)minus y3(t)
3=t3
3+ c
We have solved the differential equation since there are no derivatives in the last equationWhen the solution is given in terms of an algebraic equation we say that the solution y isgiven in implicit form C
24 G NAGY ndash ODE november 29 2017
Definition 133 A function y is a solution in implicit form of the equation h(y) yprime = g(t)iff the function y is solution of the algebraic equation
H(y(t)
)= G(t) + c
where H and G are any antiderivatives of h and g In the case that function H is invertiblethe solution y above is given in explicit form iff is written as
y(t) = Hminus1(G(t) + c
)
In the case that H is not invertible or Hminus1 is difficult to compute we leave the solutiony in implicit form We now solve the same example as in Example 133 but now we justuse the result of Theorem 132
Example 134 Use the formula in Theorem 132 to find all solutions y to the equation
yprime =t2
1minus y2 (134)
Solution Theorem 132 tell us how to obtain the solution y Writing Eq (134) as(1minus y2
)yprime = t2
we see that the functions h g are given by
h(y) = 1minus y2 g(t) = t2
Their primitive functions H and G respectively are simple to compute
h(y) = 1minus y2 rArr H(y) = y minus y3
3
g(t) = t2 rArr G(t) =t3
3
Then Theorem 132 implies that the solution y satisfies the algebraic equation
y(t)minus y3(t)
3=t3
3+ c (135)
where c isin R is arbitrary C
Remark Sometimes it is simpler to remember ideas than formulas So one can solve aseparable equation as we did in Example 133 instead of using the solution formulas as inExample 134 (Although in the case of separable equations both methods are very close)
In the next Example we show that an initial value problem can be solved even when thesolutions of the differential equation are given in implicit form
Example 135 Find the solution of the initial value problem
yprime =t2
1minus y2 y(0) = 1 (136)
Solution From Example 133 we know that all solutions to the differential equationin (136) are given by
y(t)minus y3(t)
3=t3
3+ c
where c isin R is arbitrary This constant c is now fixed with the initial condition in Eq (136)
y(0)minus y3(0)
3=
0
3+ c rArr 1minus 1
3= c hArr c =
2
3rArr y(t)minus y3(t)
3=t3
3+
2
3
G NAGY ndash ODE November 29 2017 25
So we can rewrite the algebraic equation defining the solution functions y as the (timedependent) roots of a cubic (in y) polynomial
y3(t)minus 3y(t) + t3 + 2 = 0
C
Example 136 Find the solution of the initial value problem
yprime + y2 cos(2t) = 0 y(0) = 1 (137)
Solution The differential equation above can be written as
minus 1
y2yprime = cos(2t)
We know from Example 132 that the solutions of the differential equation are
y(t) =2
sin(2t) + 2c c isin R
The initial condition implies that
1 = y(0) =2
0 + 2chArr c = 1
So the solution to the IVP is given in explicit form by
y(t) =2
sin(2t) + 2
C
Example 137 Follow the proof in Theorem 132 to find all solutions y of the equation
yprime =4tminus t3
4 + y3
Solution The differential equation above is separable with
h(y) = 4 + y3 g(t) = 4tminus t3
Therefore it can be integrated as follows(4 + y3
)yprime = 4tminus t3 hArr
int (4 + y3(t)
)yprime(t) dt =
int(4tminus t3) dt+ c
Again the substitution
y = y(t) dy = yprime(t) dt
implies thatint(4 + y3) dy =
int(4tminus t3) dt+ c0 hArr 4y +
y4
4= 2t2 minus t4
4+ c0
Calling c1 = 4c0 we obtain the following implicit form for the solution
y4(t) + 16y(t)minus 8t2 + t4 = c1
C
26 G NAGY ndash ODE november 29 2017
Example 138 Find the solution of the initial value problem below in explicit form
yprime =2minus t1 + y
y(0) = 1 (138)
Solution The differential equation above is separable with
h(y) = 1 + y g(t) = 2minus t
Their primitives are respectively given by
h(y) = 1 + y rArr H(y) = y +y2
2
g(t) = 2minus t rArr G(t) = 2tminus t2
2
Therefore the implicit form of all solutions y to the ODE above are given by
y(t) +y2(t)
2= 2tminus t2
2+ c
with c isin R The initial condition in Eq (138) fixes the value of constant c as follows
y(0) +y2(0)
2= 0 + c rArr 1 +
1
2= c rArr c =
3
2
We conclude that the implicit form of the solution y is given by
y(t) +y2(t)
2= 2tminus t2
2+
3
2 hArr y2(t) + 2y(t) + (t2 minus 4tminus 3) = 0
The explicit form of the solution can be obtained realizing that y(t) is a root in the quadraticpolynomial above The two roots of that polynomial are given by
y+-(t) =1
2
[minus2plusmn
radic4minus 4(t2 minus 4tminus 3)
]hArr y+-(t) = minus1plusmn
radicminust2 + 4t+ 4
We have obtained two functions y+ and y- However we know that there is only one solutionto the initial value problem We can decide which one is the solution by evaluating them atthe value t = 0 given in the initial condition We obtain
y+(0) = minus1 +radic
4 = 1
y-(0) = minus1minusradic
4 = minus3
Therefore the solution is y+ that is the explicit form of the solution is
y(t) = minus1 +radicminust2 + 4t+ 4
C
132 Euler Homogeneous Equations Sometimes a differential equation is not separa-ble but it can be transformed into a separable equation changing the unknown functionThis is the case for differential equations known as Euler homogenous equations
Definition 134 An Euler homogeneous differential equation has the form
yprime(t) = F(y(t)
t
)
Remark
G NAGY ndash ODE November 29 2017 27
(a) Any function F of t y that depends only on the quotient yt is scale invariant Thismeans that F does not change when we do the transformation y rarr cy trarr ct
F( (cy)
(ct)
)= F
(yt
)
For this reason the differential equations above are also called scale invariant equations
(b) Scale invariant functions are a particular case of homogeneous functions of degree nwhich are functions f satisfying
f(ct cy) = cn f(y t)
Scale invariant functions are the case n = 0
(c) An example of an homogeneous function is the energy of a thermodynamical systemsuch as a gas in a bottle The energy E of a fixed amount of gas is a function of the gasentropy S and the gas volume V Such energy is an homogeneous function of degreeone
E(cS cV ) = cE(S V ) for all c isin R
Example 139 Show that the functions f1 and f2 are homogeneous and find their degree
f1(t y) = t4y2 + ty5 + t3y3 f2(t y) = t2y2 + ty3
Solution The function f1 is homogeneous of degree 6 since
f1(ct cy) = c4t4 c2y2 + ct c5y5 + c3t3 c3y3 = c6 (t4y2 + ty5 + t3y3) = c6 f(t y)
Notice that the sum of the powers of t and y on every term is 6 Analogously function f2
is homogeneous degree 4 since
f2(ct cy) = c2t2 c2y2 + ct c3y3 = c4 (t2y2 + ty3) = c4 f2(t y)
And the sum of the powers of t and y on every term is 4 C
Example 1310 Show that the functions below are scale invariant functions
f1(t y) =y
t f2(t y) =
t3 + t2 y + t y2 + y3
t3 + t y2
Solution Function f1 is scale invariant since
f(ct cy) =cy
ct=y
t= f(t y)
The function f2 is scale invariant as well since
f2(ct cy) =c3t3 + c2t2 cy + ct c2y2 + c3y3
c3t3 + ct c2y2=c3(t3 + t2 y + t y2 + y3)
c3(t3 + t y2)= f2(t y)
C
More often than not Euler homogeneous differential equations come from a differentialequation N yprime+M = 0 where both N and M are homogeneous functions of the same degree
Theorem 135 If the functions N M of t y are homogeneous of the same degree thenthe differential equation
N(t y) yprime(t) +M(t y) = 0
is Euler homogeneous
28 G NAGY ndash ODE november 29 2017
Proof of Theorem 135 Rewrite the equation as
yprime(t) = minusM(t y)
N(t y)
The function f(y y) = minusM(t y)
N(t y)is scale invariant because
f(ct cy) = minusM(ct cy)
N(ct cy)= minusc
nM(t y)
cnN(t y)= minusM(t y)
N(t y)= f(t y)
where we used that M and N are homogeneous of the same degree n We now find a functionF such that the differential equation can be written as
yprime = F(yt
)
Since M and N are homogeneous degree n we multiply the differential equation by ldquo1rdquo inthe form (1t)n(1t)n as follows
yprime(t) = minusM(t y)
N(t y)
(1tn)
(1tn)= minusM((tt) (yt))
N((tt) (yt))= minusM(1 (yt))
N(1 (yt))rArr yprime = F
(yt
)
where
F(yt
)= minusM(1 (yt))
N(1 (yt))
This establishes the Theorem
Example 1311 Show that (tminusy) yprimeminus2y+3t+y2
t= 0 is an Euler homogeneous equation
Solution Rewrite the equation in the standard form
(tminus y) yprime = 2y minus 3tminus y2
trArr yprime =
(2y minus 3tminus y2
t
)(tminus y)
So the function f in this case is given by
f(t y) =
(2y minus 3tminus y2
t
)(tminus y)
This function is scale invariant since numerator and denominator are homogeneous of thesame degree n = 1 in this case
f(ct cy) =
(2cy minus 3ctminus c2y2
ct
)(ctminus cy)
=c(
2y minus 3tminus y2
t
)c(tminus y)
= f(t y)
So the differential equation is Euler homogeneous We now write the equation in the formyprime = F (yt) Since the numerator and denominator are homogeneous of degree n = 1 wemultiply them by ldquo1rdquo in the form (1t)1(1t)1 that is
yprime =
(2y minus 3tminus y2
t
)(tminus y)
(1t)
(1t)
Distribute the factors (1t) in numerator and denominator and we get
yprime =
(2(yt)minus 3minus (yt)2
)(1minus (yt))
rArr yprime = F(yt
)
G NAGY ndash ODE November 29 2017 29
where
F(yt
)=
(2(yt)minus 3minus (yt)2
)(1minus (yt))
So the equation is Euler homogeneous and it is written in the standard form C
Example 1312 Determine whether the equation (1minus y3) yprime = t2 is Euler homogeneous
Solution If we write the differential equation in the standard form yprime = f(t y) then we
get f(t y) =t2
1minus y3 But
f(ct cy) =c2t2
1minus c3y36= f(t y)
hence the equation is not Euler homogeneous C
133 Solving Euler Homogeneous Equations In sect 12 we transformed a Bernoulliequation into an equation we knew how to solve a linear equation Theorem 136 transformsan Euler homogeneous equation into a separable equation which we know how to solve
Theorem 136 The Euler homogeneous equation
yprime = F(yt
)for the function y determines a separable equation for v = yt given by
vprime(F (v)minus v
) =1
t
Remark The original homogeneous equation for the function y is transformed into a sep-arable equation for the unknown function v = yt One solves for v in implicit or explicitform and then transforms back to y = t v
Proof of Theorem 136 Introduce the function v = yt into the differential equation
yprime = F (v)
We still need to replace yprime in terms of v This is done as follows
y(t) = t v(t) rArr yprime(t) = v(t) + t vprime(t)
Introducing these expressions into the differential equation for y we get
v + t vprime = F (v) rArr vprime =
(F (v)minus v
)t
rArr vprime(F (v)minus v
) =1
t
The equation on the far right is separable This establishes the Theorem
Example 1313 Find all solutions y of the differential equation yprime =t2 + 3y2
2ty
Solution The equation is Euler homogeneous since
f(ct cy) =c2t2 + 3c2y2
2(ct)(cy)=c2(t2 + 3y2)
c2(2ty)=t2 + 3y2
2ty= f(t y)
30 G NAGY ndash ODE november 29 2017
Next we compute the function F Since the numerator and denominator are homogeneousdegree ldquo2rdquo we multiply the right-hand side of the equation by ldquo1rdquo in the form (1t2)(1t2)
yprime =(t2 + 3y2)
2ty
( 1
t2
)( 1
t2
) rArr yprime =1 + 3
(yt
)2
2(yt
)
Now we introduce the change of functions v = yt
yprime =1 + 3v2
2v
Since y = t v then yprime = v + t vprime which implies
v + t vprime =1 + 3v2
2vrArr t vprime =
1 + 3v2
2vminus v =
1 + 3v2 minus 2v2
2v=
1 + v2
2v
We obtained the separable equation
vprime =1
t
(1 + v2
2v
)
We rewrite and integrate it
2v
1 + v2vprime =
1
trArr
int2v
1 + v2vprime dt =
int1
tdt+ c0
The substitution u = 1 + v2(t) implies du = 2v(t) vprime(t) dt sointdu
u=
intdt
t+ c0 rArr ln(u) = ln(t) + c0 rArr u = eln(t)+c0
But u = eln(t)ec0 so denoting c1 = ec0 then u = c1t So we get
1 + v2 = c1t rArr 1 +(yt
)2
= c1t rArr y(t) = plusmntradicc1tminus 1
C
Example 1314 Find all solutions y of the differential equation yprime =t(y + 1) + (y + 1)2
t2
Solution This equation is Euler homogeneous when written in terms of the unknownu(t) = y(t) + 1 and the variable t Indeed uprime = yprime thus we obtain
yprime =t(y + 1) + (y + 1)2
t2hArr uprime =
tu+ u2
t2hArr uprime =
u
t+(ut
)2
Therefore we introduce the new variable v = ut which satisfies u = t v and uprime = v + t vprimeThe differential equation for v is
v + t vprime = v + v2 hArr t vprime = v2 hArrint
vprime
v2dt =
int1
tdt+ c
with c isin R The substitution w = v(t) implies dw = vprime dt sointwminus2 dw =
int1
tdt+ c hArr minuswminus1 = ln(|t|) + c hArr w = minus 1
ln(|t|) + c
Substituting back v u and y we obtain w = v(t) = u(t)t = [y(t) + 1]t so
y + 1
t= minus 1
ln(|t|) + chArr y(t) = minus t
ln(|t|) + cminus 1
C
G NAGY ndash ODE November 29 2017 31
Notes This section corresponds to Boyce-DiPrima [3] Section 22 Zill and Wright studyseparable equations in [17] Section 22 and Euler homogeneous equations in Section 25Zill and Wright organize the material in a nice way they present first separable equationsthen linear equations and then they group Euler homogeneous and Bernoulli equations ina section called Solutions by Substitution Once again a one page description is given bySimmons in [10] in Chapter 2 Section 7
32 G NAGY ndash ODE november 29 2017
134 Exercises
131- Find all solutions y to the ODE
yprime =t2
y
Express the solutions in explicit form
132- Find every solution y of the ODE
3t2 + 4y3yprime minus 1 + yprime = 0
Leave the solution in implicit form
133- Find the solution y to the IVP
yprime = t2y2 y(0) = 1
134- Find every solution y of the ODE
ty +radic
1 + t2 yprime = 0
135- Find every solution y of the Eulerhomogeneous equation
yprime =y + t
t
136- Find all solutions y to the ODE
yprime =t2 + y2
ty
137- Find the explicit solution to the IVP
(t2 + 2ty) yprime = y2 y(1) = 1
138- Prove that if yprime = f(t y) is an Eulerhomogeneous equation and y1(t) is a so-lution then y(t) = (1k) y1(kt) is also asolution for every non-zero k isin R
139- Find the explicit solution of theinitial value problem
yprime =4tminus 6t2
y y(0) = minus3
G NAGY ndash ODE November 29 2017 33
14 Exact Differential Equations
A differential equation is exact when is a total derivative of a function called potentialfunction Exact equations are simple to integratemdashany potential function must be constantThe solutions of the differential equation define level surfaces of a potential function
A semi-exact differential equation is an equation that is not exact but it can be trans-formed into an exact equation after multiplication by a function called an integrating fac-tor An integrating factor converts a non-exact equation into an exact equation Linearequations studied in sect 11 and sect 12 are a particular case of semi-exact equations Theintegrating factor of a linear equation transforms it into a total derivativemdashhence an exactequation We now generalize this idea to a class of nonlinear equations
141 Exact Equations A differential equation is exact if certain parts of the differentialequation have matching partial derivatives We use this definition because it is simple tocheck in concrete examples
Definition 141 An exact differential equation for y is
N(t y) yprime +M(t y) = 0
where the functions N and M satisfy
parttN(t y) = partyM(t y)
Remark The functions N M depend on t y and we use the notation for partial derivatives
parttN =partN
partt partyM =
partM
party
In the definition above the letter y has been used both as the unknown function (in thefirst equation) and as an independent variable (in the second equation) We use this dualmeaning for the letter y throughout this section
Our first example shows that all separable equations studied in sect 13 are exact
Example 141 Show whether a separable equation h(y) yprime(t) = g(t) is exact or not
Solution If we write the equation as h(y) yprime minus g(t) = 0 then
N(t y) = h(y) rArr parttN(t y) = 0
M(t y) = g(t) rArr partyM(t y) = 0
rArr parttN(t y) = partyM(t y)
hence every separable equation is exact C
The next example shows that linear equations written as in sect 12 are not exact
Example 142 Show whether the linear differential equation below is exact or not
yprime(t) = a(t) y(t) + b(t) a(t) 6= 0
Solution We first find the functions N and M rewriting the equation as follows
yprime + a(t)y minus b(t) = 0 rArr N(t y) = 1 M(t y) = minusa(t) y minus b(t)Let us check whether the equation is exact or not
N(t y) = 1 rArr parttN(t y) = 0
M(t y) = minusa(t)y minus b(t) rArr partyM(t y) = minusa(t)
rArr parttN(t y) 6= partyM(t y)
So the differential equation is not exact C
34 G NAGY ndash ODE november 29 2017
The following examples show that there are exact equations which are not separable
Example 143 Show whether the differential equation below is exact or not
2ty yprime + 2t+ y2 = 0
Solution We first identify the functions N and M This is simple in this case since
(2ty) yprime + (2t+ y2) = 0 rArr N(t y) = 2ty M(t y) = 2t+ y2
The equation is indeed exact since
N(t y) = 2ty rArr parttN(t y) = 2y
M(t y) = 2t+ y2 rArr partyM(t y) = 2y
rArr parttN(t y) = partyM(t y)
Therefore the differential equation is exact C
Example 144 Show whether the differential equation below is exact or not
sin(t) yprime + t2ey yprime minus yprime = minusy cos(t)minus 2tey
Solution We first identify the functions N and M by rewriting the equation as follows(sin(t) + t2ey minus 1
)yprime +
(y cos(t) + 2tey
)= 0
we can see that
N(t y) = sin(t) + t2ey minus 1 rArr parttN(t y) = cos(t) + 2tey
M(t y) = y cos(t) + 2tey rArr partyM(t y) = cos(t) + 2tey
Therefore parttN(t y) = partyM(t y) and the equation is exact C
142 Solving Exact Equations Exact differential equations can be rewritten as a totalderivative of a function called a potential function Once they are written in such way theyare simple to solve
Theorem 142 (Exact Equations) If the differential equation
N(t y) yprime +M(t y) = 0 (141)
is exact then it can be written as
dψ
dt(t y(t)) = 0
where ψ is called a potential function and satisfies
N = partyψ M = parttψ (142)
Therefore the solutions of the exact equation are given in implicit form as
ψ(t y(t)) = c c isin R
Remark The condition parttN = partyM is equivalent to the existence of a potential functionmdashresult proven by Henri Poincare around 1880
Theorem 143 (Poincare) Continuously differentiable functions N M on t y satisfy
parttN(t y) = partyM(t y) (143)
iff there is a twice continuously differentiable function ψ depending on t y such that
partyψ(t y) = N(t y) parttψ(t y) = M(t y) (144)
G NAGY ndash ODE November 29 2017 35
Remarks
(a) A differential equation defines the functions N and M The exact condition in (143)is equivalent to the existence of ψ related to N and M through Eq (144)
(b) If we recall the definition of the gradient of a function of two variables nablaψ = 〈parttψ partyψ〉then the equations in (144) say that nablaψ = 〈MN〉
Proof of Lemma 143(rArr) It is not given See [9]
(lArr) We assume that the potential function ψ is given and satisfies
N = partyψ M = parttψ
Recalling that ψ is twice continuously differentiable hence parttpartyψ = partyparttψ then we have
parttN = parttpartyψ = partyparttψ = partyM
In our next example we verify that a given function ψ is a potential function for an exact
differential equation We also show that the differential equation can be rewritten as atotal derivative of this potential function (In Theorem 142 we show how to compute suchpotential function from the differential equation integrating the equations in (144))
Example 145 (Verification of a Potential) Show that the differential equation
2ty yprime + 2t+ y2 = 0
is the total derivative of the potential function ψ(t y) = t2 + ty2
Solution we use the chain rule to compute the t derivative of the potential function ψevaluated at the unknown function y
d
dtψ(t y(t)) =
(partyψ
) dydt
+(parttψ)
= (2ty) yprime + (2t+ y2)
So the differential equation is the total derivative of the potential function To get thisresult we used the partial derivatives
partyψ = 2ty = N parttψ = 2t+ y2 = M
C
Exact equations always have a potential function ψ and this function is not difficult tocomputemdashwe only need to integrate Eq (144) Having a potential function of an exactequation is essentially the same as solving the differential equation since the integral curvesof ψ define implicit solutions of the differential equationProof of Theorem 142 The differential equation in (141) is exact then PoincareTheorem implies that there is a potential function ψ such that
N = partyψ M = parttψ
Therefore the differential equation is given by
0 = N(t y) yprime(t) +M(t y)
=(partyψ(t y)
)yprime +
(parttψ(t y)
)=
d
dtψ(t y(t))
36 G NAGY ndash ODE november 29 2017
where in the last step we used the chain rule Recall that the chain rule says
d
dtψ(t y(t)
)= (partyψ)
dy
dt+ (parttψ)
So the differential equation has been rewritten as a total t-derivative of the potential func-tion which is simple to integrate
d
dtψ(t y(t)) = 0 rArr ψ(t y(t)) = c
where c is an arbitrary constant This establishes the Theorem
Example 146 (Calculation of a Potential) Find all solutions y to the differential equation
2ty yprime + 2t+ y2 = 0
Solution The first step is to verify whether the differential equation is exact We knowthe answer the equation is exact we did this calculation before in Example 143 but wereproduce it here anyway
N(t y) = 2ty rArr parttN(t y) = 2y
M(t y) = 2t+ y2 rArr partyM(t y) = 2y
rArr parttN(t y) = partyM(t y)
Since the equation is exact Lemma 143 implies that there exists a potential function ψsatisfying the equations
partyψ(t y) = N(t y) (145)
parttψ(t y) = M(t y) (146)
Let us compute ψ Integrate Eq (145) in the variable y keeping the variable t constant
partyψ(t y) = 2ty rArr ψ(t y) =
int2ty dy + g(t)
where g is a constant of integration on the variable y so g can only depend on t We obtain
ψ(t y) = ty2 + g(t) (147)
Introduce into Eq (146) the expression for the function ψ in Eq (147) above that is
y2 + gprime(t) = parttψ(t y) = M(t y) = 2t+ y2 rArr gprime(t) = 2t
Integrate in t the last equation above and choose the integration constant to be zero
g(t) = t2
We have found that a potential function is given by
ψ(t y) = ty2 + t2
Therefore Theorem 142 implies that all solutions y satisfy the implicit equation
ty2(t) + t2 = c
for any c isin R The choice g(t) = t2 + c0 only modifies the constant c C
Remark An exact equation and its solutions can be pictured on the graph of a potentialfunction This is called a geometrical interpretation of the exact equation We saw that anexact equation N yprime+M = 0 can be rewritten as dψdt = 0 The solutions of the differentialequation are functions y such that ψ(t y(t)) = c hence the solutions define level curves ofthe potential function Given a level curve the vector r(t) = 〈t y(t)〉 which belongs to the
G NAGY ndash ODE November 29 2017 37
ty-plane points to the level curve while its derivative rprime(t) = 〈1 yprime(t)〉 is tangent to thelevel curve Since the gradient vector nablaψ = 〈MN〉 is perpendicular to the level curve
rprime perp nablaψ hArr rprime middot nablaψ = 0 hArr M +N yprime = 0
We wanted to remark that the differential equation can be thought as the condition rprime perp nablaψ
As an example consider the differential equa-tion
2y yprime + 2t = 0
which is separable so it is exact A potentialfunction is
ψ = t2 + y2
a paraboloid shown in Fig 2 Solutions y aredefined by the equation t2 + y2 = c which arelevel curves of ψ for c gt 0 The graph of asolution is shown on the ty-plane given by
y(t) = plusmnradiccminus t2
As we said above the vector r(t) = 〈t y(t)〉points to the solutionrsquos graph while its deriv-ative rprime(t) = 〈1 yprime(t)〉 is tangent to the levelcuve We also know that the gradient vec-tor nablaψ = 〈2t 2y〉 is perpendicular to the levelcurve The condition
rprime perp nablaψ rArr rprime middot nablaψ = 0
is precisely the differential equation
2t+ 2y yprime = 0
c
y
t
z = ψ(t y)z
y(t) = plusmnradiccminus t2
Figure 2 Potential ψ withlevel curve ψ = c defines asolution y on the ty-plane
Example 147 (Calculation of a Potential) Find all solutions y to the equation
sin(t) yprime + t2ey yprime minus yprime + y cos(t) + 2tey minus 3t2 = 0
Solution The first step is to verify whether the differential equation is exact
N(t y) = sin(t) + t2ey minus 1 rArr parttN(t y) = cos(t) + 2tey
M(t y) = y cos(t) + 2tey minus 3t2 rArr partyM(t y) = cos(t) + 2tey
So the equation is exact Poincare Theorem says there is a potential function ψ satisfying
partyψ(t y) = N(t y) parttψ(t y) = M(t y) (148)
To compute ψ we integrate on y the equation partyψ = N keeping t constant
partyψ(t y) = sin(t) + t2ey minus 1 rArr ψ(t y) =
int (sin(t) + t2ey minus 1
)dy + g(t)
where g is a constant of integration on the variable y so g can only depend on t We obtain
ψ(t y) = y sin(t) + t2ey minus y + g(t)
Now introduce the expression above for ψ in the second equation in Eq (148)
y cos(t) + 2tey + gprime(t) = parttψ(t y) = M(t y) = y cos(t) + 2tey minus 3t2 rArr gprime(t) = minus3t2
38 G NAGY ndash ODE november 29 2017
The solution is g(t) = minust3 + c0 with c0 a constant We choose c0 = 0 so g(t) = minust3 Wefound g so we have the complete potential function
ψ(t y) = y sin(t) + t2ey minus y minus t3
Theorem 142 implies that any solution y satisfies the implicit equation
y(t) sin(t) + t2ey(t) minus y(t)minus t3 = c
The solution y above cannot be written in explicit form If we choose the constant c0 6= 0in g(t) = minust3 + c0 we only modify the constant c above C
Remark A potential function is also called a conserved quantity This is a reasonable namesince a potential function evaluated at any solution of the differential equation is constantalong the evolution This is yet another interpretation of the equation dψdt = 0 or itsintegral ψ(t y(t)) = c If we call c = ψ0 = ψ(0 y(0)) the value of the potential function atthe initial conditions then ψ(t y(t)) = ψ0
Conserved quantities are important in physics The energy of a moving particle is afamous conserved quantity In that case the differential equation is Newtonrsquos second law ofmotion mass times acceleration equals force One can prove that the energy E of a particlewith position function y moving under a conservative force is kept constant in time Thisstatement can be expressed by E(t y(t) yprime(t)) = E0 where E0 is the particlersquos energy at theinitial time
143 Semi-Exact Equations Sometimes a non-exact differential equation can be rewrit-ten as an exact equation One way this could happen is multiplying the differential equationby an appropriate function If the new equation is exact the multiplicative function is calledan integrating factor
Definition 144 A semi-exact differential equation is a non-exact equation that can betransformed into an exact equation after a multiplication by an integrating factor
Example 148 Show that linear differential equations yprime = a(t) y + b(t) are semi-exact
Solution We first show that linear equations yprime = a y + b with a 6= 0 are not exact If wewrite them as
yprime minus a y minus b = 0 rArr N yprime +M = 0 with N = 1 M = minusa y minus b
Therefore
parttN = 0 partyM = minusa rArr parttN 6= partyM
We now show that linear equations are semi-exact Let us multiply the linear equation bya function micro which depends only on t
micro(t) yprime minus a(t)micro(t) y minus micro(t) b(t) = 0
where we emphasized that micro a b depende only on t Let us look for a particular functionmicro that makes the equation above exact If we write this equation as N yprime + M = 0 then
N(t y) = micro M(t y) = minusamicro y minus micro b
We now check the condition for exactness
parttN = microprime partyM = minusamicro
G NAGY ndash ODE November 29 2017 39
and we get that
parttN = partyM
the equation is exact
hArr
microprime = minusamicro
micro is an integrating factor
Therefore the linear equation yprime = a y + b is semi-exact and the function that transformsit into an exact equation is micro(t) = eminusA(t) where A(t) =
inta(t) dt which in sect 12 we called
it an integrating factor C
Now we generalize this idea to nonlinear differential equations
Theorem 145 If the equation
N(t y) yprime +M(t y) = 0 (149)
is not exact with parttN 6= partyM the function N 6= 0 and where the function h defined as
h =partyM minus parttN
N(1410)
depends only on t not on y then the equation below is exact
(eHN) yprime + (eHM) = 0 (1411)
where H is an antiderivative of h
H(t) =
inth(t) dt
Remarks
(a) The function micro(t) = eH(t) is called an integrating factor(b) Any integrating factor micro is solution of the differential equation
microprime(t) = h(t)micro(t)
(c) Multiplication by an integrating factor transforms a non-exact equation
N yprime +M = 0
into an exact equation
(microN) yprime + (microM) = 0
This is exactly what happened with linear equations
Verification Proof of Theorem 145 We need to verify that the equation is exact
(eH N) yprime + (eHM) = 0 rArr N(t y) = eH(t)N(t y) M(t y) = eH(t)M(t y)
We now check for exactness and let us recall partt(eH) = (eH)prime = h eH then
parttN = h eH N + eH parttN partyM = eH partyM
Let us use the definition of h in the first equation above
parttN = eH( (partyM minus parttN)
NN + parttN
)= eH partyM = partyM
So the equation is exact This establishes the Theorem
Constructive Proof of Theorem 145 The original differential equation
N yprime +M = 0
40 G NAGY ndash ODE november 29 2017
is not exact because parttN 6= partyM Now multiply the differential equation by a nonzerofunction micro that depends only on t
(microN) yprime + (microM) = 0 (1412)
We look for a function micro such that this new equation is exact This means that micro mustsatisfy the equation
partt(microN) = party(microM)
Recalling that micro depends only on t and denoting parttmicro = microprime we get
microprimeN + microparttN = micropartyM rArr microprimeN = micro (partyM minus parttN)
So the differential equation in (1412) is exact iff holds
microprime =(partyM minus parttN
N
)micro
The solution micro will depend only on t iff the function
h(t) =partyM(t y)minus parttN(t y)
N(t y)
depends only on t If this happens as assumed in the hypotheses of the theorem then wecan solve for micro as follows
microprime(t) = h(t)micro(t) rArr micro(t) = eH(t) H(t) =
inth(t) dt
Therefore the equation below is exact
(eH N) yprime + (eHM) = 0
This establishes the Theorem
Example 149 Find all solutions y to the differential equation(t2 + t y
)yprime +
(3t y + y2
)= 0 (1413)
Solution We first verify whether this equation is exact
N(t y) = t2 + ty rArr parttN(t y) = 2t+ y
M(t y) = 3ty + y2 rArr partyM(t y) = 3t+ 2y
therefore the differential equation is not exact We now verify whether the extra conditionin Theorem 145 holds that is whether the function in (1410) is y independent
h =partyM(t y)minus parttN(t y)
N(t y)
=(3t+ 2y)minus (2t+ y)
(t2 + ty)
=(t+ y)
t(t+ y)
=1
trArr h(t) =
1
t
So the function h = (partyM minus parttN)N is y independent Therefore Theorem 145 impliesthat the non-exact differential equation can be transformed into an exact equation We needto multiply the differential equation by a function micro solution of the equation
microprime(t) = h(t)micro(t) rArr microprime
micro=
1
trArr ln(micro(t)) = ln(t) rArr micro(t) = t
G NAGY ndash ODE November 29 2017 41
where we have chosen in second equation the integration constant to be zero Then multi-plying the original differential equation in (1413) by the integrating factor micro we obtain(
3t2 y + t y2)
+(t3 + t2 y
)yprime = 0 (1414)
This latter equation is exact since
N(t y) = t3 + t2y rArr parttN(t y) = 3t2 + 2ty
M(t y) = 3t2y + ty2 rArr partyM(t y) = 3t2 + 2ty
so we get the exactness condition parttN = partyM The solution y can be found as we did in theprevious examples in this Section That is we find the potential function ψ by integratingthe equations
partyψ(t y) = N(t y) (1415)
parttψ(t y) = M(t y) (1416)
From the first equation above we obtain
partyψ = t3 + t2y rArr ψ(t y) =
int (t3 + t2y
)dy + g(t)
Integrating on the right hand side above we arrive to
ψ(t y) = t3y +1
2t2y2 + g(t)
Introduce the expression above for ψ in Eq (1416)
3t2y + ty2 + gprime(t) = parttψ(t y) = M(t y) = 3t2y + ty2
gprime(t) = 0
A solution to this last equation is g(t) = 0 So we get a potential function
ψ(t y) = t3 +1
2t2y2
All solutions y to the differential equation in (1413) satisfy the equation
t3 y(t) +1
2t2(y(t)
)2= c0
where c0 isin R is arbitrary C
We have seen in Example 142 that linear differential equations with a 6= 0 are not exactIn Section 12 we found solutions to linear equations using the integrating factor methodWe multiplied the linear equation by a function that transformed the equation into a totalderivative Those calculations are now a particular case of Theorem 145 as we can see itin the following Example
Example 1410 Use Theorem 145 to find all solutions to the linear differential equation
yprime = a(t) y + b(t) a(t) 6= 0 (1417)
Solution We first write the linear equation in a way we can identify functions N and M
yprime minus(a(t) y + b(t)
)= 0
We now verify whether the linear equation is exact or not Actually we have seen inExample 143 that this equation is not exact since
N(t y) = 1 rArr parttN(t y) = 0
M(t y) = minusa(t) y minus b(t) rArr partyM(t y) = minusa(t)
42 G NAGY ndash ODE november 29 2017
But now we can go further we can check wheteher the condtion in Theorem 145 holds ornot We compute the function
partyM(t y)minus parttN(t y)
N(t y)=minusa(t)minus 0
1= minusa(t)
and we see that it is independent of the variable y Theorem 145 says that we can transformthe linear equation into an exact equation We only need to multiply the linear equation bya function micro solution of the equation
microprime(t) = minusa(t)micro(t) rArr micro(t) = eminusA(t) A(t) =
inta(t) dt
This is the same integrating factor we discovered in Section 12 Therefore the equationbelow is exact
eminusA(t) yprime minus(a(t) eminusA(t) y minus b(t) eminusA(t)
)= 0 (1418)
This new version of the linear equation is exact since
N(t y) = eminusA(t) rArr parttN(t y) = minusa(t) eminusA(t)
M(t y) = minusa(t) eminusA(t) y minus b(t) eminusA(t) rArr partyM(t y) = minusa(t) eminusA(t)
Since the linear equation is now exact the solutions y can be found as we did in the previousexamples in this Section We find the potential function ψ integrating the equations
partyψ(t y) = N(t y) (1419)
parttψ(t y) = M(t y) (1420)
From the first equation above we obtain
partyψ = eminusA(t) rArr ψ(t y) =
inteminusA(t) dy + g(t)
The integral is simple since eminusA(t) is y independent We then get
ψ(t y) = eminusA(t) y + g(t)
We introduce the expression above for ψ in Eq (1416)
minusa(t) eminusA(t) y + gprime(t) = parttψ(t y) = M(t y) = minusa(t) eminusA(t) y minus b(t) eminusA(t)
gprime(t) = minusb(t) eminusA(t)
A solution for function g is then given by
g(t) = minusintb(t) eminusA(t) dt
Having that function g we get a potential function
ψ(t y) = eminusA(t) y minusintb(t) eminusA(t) dt
All solutions y to the linear differential equation in (1417) satisfy the equation
eminusA(t) y(t)minusintb(t) eminusA(t) dt = c0
where c0 isin R is arbitrary This is the implicit form of the solution but in this case it issimple to find the explicit form too
y(t) = eA(t)(c0 +
intb(t) eminusA(t) dt
)
This expression agrees with the one in Theorem 123 when we studied linear equations C
G NAGY ndash ODE November 29 2017 43
144 The Equation for the Inverse Function Sometimes the equation for a functiony is neither exact nor semi-exact but the equation for the inverse function yminus1 might beWe now try to find out when this can happen To carry out this study it is more convenientto change a little bit the notation we have been using so far
(a) We change the independent variable name from t to x Therefore we write differentialequations as
N(x y) yprime +M(x y) = 0 y = y(x) yprime =dy
dx
(b) We denote by x(y) the inverse of y(x) that is
x(y1) = x1 hArr y(x1) = y1
(c) Recall the identity relating derivatives of a function and its inverse function
xprime(y) =1
yprime(x)
Our first result says that for exact equations it makes no difference to solve for y or itsinverse x If one equation is exact so is the other equation
Theorem 146 N yprime +M = 0 is exact hArr M xprime +N = 0 is exact
Remark We will see that for semi-exact equations there is a difference
Proof of Theorem 146 Write the differential equation of a function y with values y(x)
N(x y) yprime +M(x y) = 0 and partxN = partyM
If a solution y is invertible we denote yminus1(y) = x(y) and we have the well-known relation
xprime(y) =1
yprime(x(y))
Divide the differential equation above by yprime and use the relation above then we get
N(x y) +M(x y)xprime = 0
where now y is the independent variable and the unknwon function is x with values x(y)and the prime means xprime = dxdy The condition for this last equation to be exact is
partyM = partxN
which is exactly the same condition for the equation N yprime + M = 0 to be exact Thisestablishes the Theorem
Remark Sometimes in the literature the equations N yprime +M = 0 and N +M xprime = 0 arewritten together as follows
N dy +M dx = 0
This equation deserves two comments
(a) We do not use this notation here That equation makes sense in the framework ofdifferential forms which is beyond the subject of these notes
(b) Some people justify the use of that equation outside the framework of differential forms
by thinking yprime =dy
dxas real fraction and multiplying N yprime+M = 0 by the denominator
Ndy
dx+M = 0 rArr N dy +M dx = 0
Unfortunately yprime is not a fractiondy
dx so the calculation just mentioned has no meaning
44 G NAGY ndash ODE november 29 2017
So if the equation for y is exact so is the equation for its inverse x The same is not truefor semi-exact equations If the equation for y is semi-exact then the equation for its inversex might or might not be semi-exact The next result states a condition on the equation forthe inverse function x to be semi-exact This condition is not equal to the condition on theequation for the function y to be semi-exact Compare Theorems 145 and 147
Theorem 147 If the equationM xprime +N = 0
is not exact with partyM 6= partxN the function M 6= 0 and where the function ` defined as
` = minus (partyM minus partxN)
Mdepends only on y not on x then the equation below is exact
(eLM)xprime + (eLN) = 0
where L is an antiderivative of `
L(y) =
int`(y) dy
Remarks
(a) The function micro(y) = eL(y) is called an integrating factor(b) Any integrating factor micro is solution of the differential equation
microprime(y) = `(y)micro(y)
(c) Multiplication by an integrating factor transforms a non-exact equation
M xprime +N = 0
into an exact equation(microM)xprime + (microN) = 0
Verification Proof of Theorem 147 We need to verify that the equation is exact
(eLM)xprime + (eLN) = 0 rArr M(x y) = eL(y)M(x y) N(x y) = eL(y)N(x y)
We now check for exactness and let us recall party(eL) = (eL)prime = ` eL then
partyM = ` eLM + eL partyM partxN = eH partxN
Let us use the definition of ` in the first equation above
partyM = eL(minus (partyM minus partxN)
MM + partyM
)= eL partxN = partxN
So the equation is exact This establishes the Theorem
Constructive Proof of Theorem 147 The original differential equation
M xprime +N = 0
is not exact because partyM 6= partxN Now multiply the differential equation by a nonzerofunction micro that depends only on y
(microM)xprime + (microN) = 0
We look for a function micro such that this new equation is exact This means that micro mustsatisfy the equation
party(microM) = partx(microN)
G NAGY ndash ODE November 29 2017 45
Recalling that micro depends only on y and denoting partymicro = microprime we get
microprimeM + micropartyM = micropartxN rArr microprimeM = minusmicro (partyM minus partxN)
So the differential equation (microM)xprime + (microN) = 0 is exact iff holds
microprime = minus(partyM minus partxN
M
)micro
The solution micro will depend only on y iff the function
`(y) = minuspartyM(x y)minus partxN(x y)
M(x y)
depends only on y If this happens as assumed in the hypotheses of the theorem then wecan solve for micro as follows
microprime(y) = `(y)micro(y) rArr micro(y) = eL(y) L(y) =
int`(y) dy
Therefore the equation below is exact
(eLM)xprime + (eLN) = 0
This establishes the Theorem
Example 1411 Find all solutions to the differential equation(5x eminusy + 2 cos(3x)
)yprime +
(5 eminusy minus 3 sin(3x)
)= 0
Solution We first check if the equation is exact for the unknown function y which dependson the variable x If we write the equation as N yprime +M = 0 with yprime = dydx then
N(x y) = 5x eminusy + 2 cos(3x) rArr partxN(x y) = 5 eminusy minus 6 sin(3x)
M(x y) = 5 eminusy minus 3 sin(3x) rArr partyM(x y) = minus5 eminusy
Since partxN 6= partyM the equation is not exact Let us check if there exists an integratingfactor micro that depends only on x Following Theorem 145 we study the function
h =
(partyM minus partxN
)N
=minus10 eminusy + 6 sin(3x)
5x eminusy + 2 cos(3x)
which is a function of both x and y and cannot be simplified into a function of x aloneHence an integrating factor cannot be function of only x
Let us now consider the equation for the inverse function x which depends on the variabley The equation is M xprime+N = 0 with xprime = dxdy where M and N are the same as before
M(x y) = 5 eminusy minus 3 sin(3x) N(x y) = 5x eminusy + 2 cos(3x)
We know from Theorem 146 that this equation is not exact Both the equation for y andequation for its inverse x must satisfy the same condition to be exact The condition ispartxN = partyM but we have seen that this is not true for the equation in this example Thelast thing we can do is to check if the equation for the inverse function x has an integratingfactor micro that depends only on y Following Theorem 147 we study the function
` = minus (partyM minus partxN)
M= minus
(minus10 eminusy + 6 sin(3x)
)(5 eminusy minus 3 sin(3x)
) = 2 rArr `(y) = 2
The function above does not depend on x so we can solve the differential equation for micro(y)
microprime(y) = `(y)micro(y) rArr microprime(y) = 2micro(y) rArr micro(y) = micro0 e2y
46 G NAGY ndash ODE november 29 2017
Since micro is an integrating factor we can choose micro0 = 1 hence micro(y) = e2y If we multiply theequation for x by this integrating factor we get
e2y(5 eminusy minus 3 sin(3x)
)xprime + e2y
(5x eminusy + 2 cos(3x)
)= 0(
5 ey minus 3 sin(3x) e2y)xprime +
(5x ey + 2 cos(3x) e2y
)= 0
This equation is exact because if we write it as M xprime + N = 0 then
M(x y) = 5 ey minus 3 sin(3x) e2y rArr partyM(x y) = 5 ey minus 6 sin(3x) e2y
N(x y) = 5x ey + 2 cos(3x) e2y rArr partxN(x y) = 5 ey minus 6 sin(3x) e2y
that is partyM = partxN Since the equation is exact we find a potential function ψ from
partxψ = M partyψ = N
Integrating on the variable x the equation partxψ = M we get
ψ(x y) = 5x ey + cos(3x) e2y + g(y)
Introducing this expression for ψ into the equation partyψ = N we get
5x ey + 2 cos(3x) e2y + gprime(y) = partyψ = N = 5x ey + 2 cos(3x) e2y
hence gprime(y) = 0 so we choose g = 0 A potential function for the equation for x is
ψ(x y) = 5x ey + cos(3x) e2y
The solutions x of the differential equation are given by
5x(y) ey + cos(3x(y)) e2y = c
Once we have the solution for the inverse function x we can find the solution for the originalunknown y which are given by
5x ey(x) + cos(3x) e2 y(x) = c
C
Notes Exact differential equations are studied in Boyce-DiPrima [3] Section 26 and inmost differential equation textbooks
G NAGY ndash ODE November 29 2017 47
145 Exercises
141- Consider the equation
(1 + t2) yprime = minus2t y
(a) Determine whether the differentialequation is exact
(b) Find every solution of the equationabove
142- Consider the equation
t cos(y) yprime minus 2y yprime = minustminus sin(y)
(a) Determine whether the differentialequation is exact
(b) Find every solution of the equationabove
143- Consider the equation
yprime =minus2minus y ety
minus2y + t ety
(a) Determine whether the differentialequation is exact
(b) Find every solution of the equationabove
144- Consider the equation
(6x5 minus xy) + (minusx2 + xy2)yprime = 0
with initial condition y(0) = 1
(a) Find an integrating factor micro thatconverts the equation above into anexact equation
(b) Find an implicit expression for thesolution y of the IVP
145- Consider the equation(2x2y +
y
x2
)yprime + 4xy2 = 0
with initial condition y(0) = minus2
(a) Find an integrating factor micro thatconverts the equation above into anexact equation
(b) Find an implicit expression for thesolution y of the IVP
(c) Find the explicit expression for thesolution y of the IVP
146- Consider the equation(minus3x eminus2y + sin(5x)
)yprime
+(3 eminus2y + 5 cos(5x)
)= 0
(a) Is this equation for y exact If notdoes this equation have an integrat-ing factor depending on x
(b) Is the equation for x = yminus1 exactIf not does this equation have anintegrating factor depending on y
(c) Find an implicit expression for allsolutions y of the differential equa-tion above
147- Find the solution to the equation
2t2y+2t2y2+1+(t3+2t3y+2ty) yprime = 0
with initial condition
y(1) = 2
48 G NAGY ndash ODE november 29 2017
15 Applications of Linear Equations
Different physical systems may be described by the same mathematical structure Theradioactive decay of a substance the cooling of a material or the salt concentration ona water tank can be described with linear differential equations A radioactive substancedecays at a rate proprotional to the substance amount at the time Something similarhappens to the temperature of a cooling body Linear constant coefficients differentialequations describe these two situations The salt concentration inside a water tank changesin the case that salty water is allowed in and out of the tank This situation is describedwith a linear variable coefficients differential equation
151 Exponential Decay An example of exponential decay is the radioactive decay ofcertain substances such as Uranium-235 Radium-226 Radon-222 Polonium-218 Lead-214Cobalt-60 Carbon-14 etc These nuclei break into several smaller nuclei and radiation Theradioactive decay of a single nucleus cannot be predicted but the decay of a large numbercan The rate of change in the amount of a radioactive substance in a sample is proportionalto the negative of that amount
Definition 151 The exponential decay equation for N with decay constant k gt 0 is
N prime = minuskN
Remark The equation N prime = kN with k gt 0 is called the exponential growth equation
We have seen in sect 11 how to solve this equation But we review it here one more time
Theorem 152 (Exponential Decay) The solution N of the exponential decay equationN prime = minuskN and intial condition N(0) = N0 is
N(t) = N0 eminuskt
Proof of Theorem 152 The differential equation above is both linear and separableWe choose to solve it using the integrating factor method The integrating factor is ekt(
N prime + kN)ekt = 0 rArr
(ektN
)prime= 0 rArr ektN = c c isin R
The initial condition N0 = N(0) = c so the solution of the initial value problem is
N(t) = N0 eminuskt
This establishes the Theorem
Remark Radioactive materials are often characterized not by their decay constant k butby their half-life τ This is a time it takes for half the material to decay
Definition 153 The half-life of a radioactive substance is the time τ such that
N(τ) =N(0)
2
There is a simple relation between the material constant and the material half-life
Theorem 154 A radioactive material constant k and half-life τ are related by the equation
kτ = ln(2)
G NAGY ndash ODE November 29 2017 49
Proof of Theorem 154 We know that the amount of a radioactive material as functionof time is given by
N(t) = N0 eminuskt
Then the definition of half-life implies
N0
2= N0 e
minuskτ rArr minuskτ = ln(1
2
)rArr kτ = ln(2)
This establishes the Theorem
Remark A radioactive material N can be expressed in terms of the half-life
N(t) = N0 e(minustτ) ln(2) rArr N(t) = N0 e
ln[2(minustτ)] rArr N(t) = N0 2minustτ
From this last expression is clear that for t = τ we get N(τ) = N02
Our first example is about dating remains with Carbon-14 The Carbon-14 is a radioac-tive isotope of Carbon-12 with a half-life of τ = 5730 years Carbon-14 is being constantlycreated in the upper atmospheremdashby collisions of Carbon-12 with outer space radiationmdashand is accumulated by living organisms While the organism lives the amount of Carbon-14in the organism is held constant The decay of Carbon-14 is compensated with new amountswhen the organism breaths or eats When the organism dies the amount of Carbon-14 inits remains decays So the balance between normal and radioactive carbon in the remainschanges in time
Example 151 Bone remains in an ancient excavation site contain only 14 of the Carbon-14 found in living animals today Estimate how old are the bone remains Use that thehalf-life of the Carbon-14 is τ = 5730 years
Solution Suppose that t = 0 is set at the time when the organism dies If at the presenttime t1 the remains contain 14 of the original amount that means
N(t1) =14
100N(0)
Since Carbon-14 is a radioactive substant with half-life τ the amount of Carbon-14 decaysin time as follows
N(t) = N(0) 2minustτ
where τ = 5730 years is the Carbon-14 half-life Therefore
2minust1τ =14
100rArr minus t1
τ= log2(14100) rArr t1 = τ log2(10014)
We obtain that t1 = 16 253 years The organism died more that 16 000 years ago C
Solution (Using the decay constant k) We write the solution of the radioactive decayequation as
N(t) = N(0) eminuskt kτ = ln(2)
Write the condition for t1 to be 14 of the original Carbon-14 as follows
N(0) eminuskt1 =14
100N(0) rArr eminuskt1 =
14
100rArr minuskt1 = ln
( 14
100
)
so t1 =1
kln(100
14
) Recalling the expression for k in terms of τ that is kτ = ln(2) we get
t1 = τln(10014)
ln(2)
50 G NAGY ndash ODE november 29 2017
We get t1 = 16 253 years which is the same result as above since
log2(10014) =ln(10014)
ln(2)
C
152 Newtonrsquos Cooling Law In 1701 Newton published anonymously the result of hishome made experiments done fifteen years earlier He focused on the time evolution of thetemperature of objects that rest in a medium with constant temperature He found that thedifference between the temperatues of an object and the constant temperature of a mediumvaries geometrically towards zero as time varies arithmetically This was his way of sayingthat the difference of temperatures ∆T depends on time as
(∆T )(t) = (∆T )0 eminustτ
for some initial temperature difference (∆T )0 and some time scale τ Although this is calleda ldquoCooling Lawrdquo it also describes objects that warm up When (∆T )0 gt 0 the object iscooling down but when (∆T )0 lt 0 the object is warming up
Newton knew pretty well that the function ∆T above is solution of a very particulardifferential equation But he chose to put more emphasis in the solution rather than in theequation Nowadays people think that differential equations are more fundamental thantheir solutions so we define Newtonrsquos cooling law as follows
Definition 155 The Newton cooling law says that the temperature T at a time t of amaterial placed in a surrounding medium kept at a constant temperature Ts satisfies
(∆T )prime = minusk (∆T )
with ∆T (t) = T (t)minusTs and k gt 0 constant characterizing the material thermal properties
Remark Newtonrsquos cooling law for ∆T is the same as the radioactive decay equationBut now the initial temperature difference (∆T )(0) = T (0)minus Ts can be either positive ornegative
Theorem 156 The solution of Newtonrsquos cooling law equation (∆T )prime = minusk (∆T ) withinitial data T (0) = T0 is
T (t) = (T0 minus Ts) eminuskt + Ts
Proof of Theorem 156 Newtonrsquos cooling law is a first order linear equation which wesolved in sect 11 The general solution is
(∆T )(t) = c eminuskt rArr T (t) = c eminuskt + Ts c isin Rwhere we used that (∆T )(t) = T (t)minus Ts The initial condition implies
T0 = T (0) = c+ Ts rArr c = T0 minus Ts rArr T (t) = (T0 minus Ts) eminuskt + Ts
This establishes the Theorem
Example 152 A cup with water at 45 C is placed in the cooler held at 5 C If after 2minutes the water temperature is 25 C when will the water temperature be 15 C
Solution We know that the solution of the Newton cooling law equation is
T (t) = (T0 minus Ts) eminuskt + Ts
and we also know that in this case we have
T0 = 45 Ts = 5 T (2) = 25
G NAGY ndash ODE November 29 2017 51
In this example we need to find t1 such that T (t1) = 15 In order to find that t1 we firstneed to find the constant k
T (t) = (45minus 5) eminuskt + 5 rArr T (t) = 40 eminuskt + 5
Now use the fact that T (2) = 25 C that is
20 = T (2) = 40 eminus2k rArr ln(12) = minus2k rArr k =1
2ln(2)
Having the constant k we can now go on and find the time t1 such that T (t1) = 15 C
T (t) = 40 eminust ln(radic
2) + 5 rArr 10 = 40 eminust1 ln(radic
2) rArr t1 = 4C
153 Mixing Problems We study the system pictured in Fig 3 A tank has a salt massQ(t) dissolved in a volume V (t) of water at a time t Water is pouring into the tank at arate ri(t) with a salt concentration qi(t) Water is also leaving the tank at a rate ro(t) witha salt concentration qo(t) Recall that a water rate r means water volume per unit timeand a salt concentration q means salt mass per unit volume
We assume that the salt entering in the tankgets instantaneously mixed As a consequencethe salt concentration in the tank is homoge-neous at every time This property simplifiesthe mathematical model describing the salt inthe tankBefore stating the problem we want to solvewe review the physical units of the main fieldsinvolved in it Denote by [ri] the units of thequantity ri Then we have
[ri] = [ro] =Volume
Time [qi] = [qo] =
Mass
Volume
[V ] = Volume [Q] = Mass
Instantaneously mixed
Tank
ro qo(t)V (t) Q(t)
ri qi(t)
Figure 3 Description of awater tank problem
Definition 157 A Mixing Problem refers to water coming into a tank at a rate ri withsalt concentration qi and going out the tank at a rate ro and salt concentration qo so thatthe water volume V and the total amount of salt Q which is instantaneously mixed in thetank satisfy the following equations
V prime(t) = ri(t)minus ro(t) (151)
Qprime(t) = ri(t) qi(t)minus ro(t) qo(t) (152)
qo(t) =Q(t)
V (t) (153)
rprimei(t) = rprimeo(t) = 0 (154)
The first and second equations above are just the mass conservation of water and saltrespectively Water volume and mass are proportional so both are conserved and wechose the volume to write down this conservation in Eq (151) This equation is indeeda conservation because it says that the water volume variation in time is equal to thedifference of volume time rates coming in and going out of the tank Eq (152) is the saltmass conservation since the salt mass variation in time is equal to the difference of the saltmass time rates coming in and going out of the tank The product of a water rate r times asalt concentration q has units of mass per time and represents the amount of salt entering or
52 G NAGY ndash ODE november 29 2017
leaving the tank per unit time Eq (153) is the consequence of the instantaneous mixingmechanism in the tank Since the salt in the tank is well-mixed the salt concentration ishomogeneous in the tank with value Q(t)V (t) Finally the equations in (154) say thatboth rates in and out are time independent hence constants
Theorem 158 The amount of salt in the mixing problem above satisfies the equation
Qprime(t) = a(t)Q(t) + b(t) (155)
where the coefficients in the equation are given by
a(t) = minus ro(ri minus ro) t+ V0
b(t) = ri qi(t) (156)
Proof of Theorem 158 The equation for the salt in the tank given in (155) comesfrom Eqs (151)-(154) We start noting that Eq (154) says that the water rates areconstant We denote them as ri and ro This information in Eq (151) implies that V prime isconstant Then we can easily integrate this equation to obtain
V (t) = (ri minus ro) t+ V0 (157)
where V0 = V (0) is the water volume in the tank at the initial time t = 0 On the otherhand Eqs(152) and (153) imply that
Qprime(t) = ri qi(t)minusroV (t)
Q(t)
Since V (t) is known from Eq (157) we get that the function Q must be solution of thedifferential equation
Qprime(t) = ri qi(t)minusro
(ri minus ro) t+ V0
Q(t)
This is a linear ODE for the function Q Indeed introducing the functions
a(t) = minus ro(ri minus ro) t+ V0
b(t) = ri qi(t)
the differential equation for Q has the form
Qprime(t) = a(t)Q(t) + b(t)
This establishes the Theorem We could use the formula for the general solution of a linear equation given in Section 12
to write the solution of Eq (155) for Q Such formula covers all cases we are going tostudy in this section Since we already know that formula we choose to find solutions inparticular cases These cases are given by specific choices of the rate constants ri ro theconcentration function qi and the initial data constants V0 and Q0 = Q(0) The study ofsolutions to Eq (155) in several particular cases might provide a deeper understanding ofthe physical situation under study than the expression of the solution Q in the general case
Example 153 (General Case for V (t) = V0) Consider a mixing problem with equalconstant water rates ri = ro = r with constant incoming concentration qi and with a giveninitial water volume in the tank V0 Then find the solution to the initial value problem
Qprime(t) = a(t)Q(t) + b(t) Q(0) = Q0
where function a and b are given in Eq (156) Graph the solution function Q for differentvalues of the initial condition Q0
G NAGY ndash ODE November 29 2017 53
Solution The assumption ri = ro = r implies that the function a is constant while theassumption that qi is constant implies that the function b is also constant too
a(t) = minus ro(ri minus ro) t+ V0
rArr a(t) = minus r
V0
= a0
b(t) = ri qi(t) rArr b(t) = ri qi = b0
Then we must solve the initial value problem for a constant coefficients linear equation
Qprime(t) = a0Q(t) + b0 Q(0) = Q0
The integrating factor method can be used to find the solution of the initial value problemabove The formula for the solution is given in Theorem 114
Q(t) =(Q0 +
b0a0
)ea0t minus b0
a0
In our case the we can evaluate the constant b0a0 and the result is
b0a0
= (rqi)(minusV0
r
)rArr minus b0
a0= qiV0
Then the solution Q has the form
Q(t) =(Q0 minus qiV0
)eminusrtV0 + qiV0 (158)
The initial amount of salt Q0 in the tank can be any non-negative real number The solutionbehaves differently for different values of Q0 We classify these values in three classes
(a) The initial amount of salt in the tank isthe critical value Q0 = qiV0 In this casethe solution Q remains constant equal tothis critical value that is Q(t) = qiV0
(b) The initial amount of salt in the tank isbigger than the critical value Q0 gt qiV0In this case the salt in the tank Q de-creases exponentially towards the criticalvalue
(c) The initial amount of salt in the tank issmaller than the critical value Q0 lt qiV0In this case the salt in the tank Q in-creases exponentially towards the criticalvalue
The graphs of a few solutions in these threeclasses are plotted in Fig 4
y
t
qiV0
Figure 4 The function Qin (158) for a few values ofthe initial condition Q0
C
Example 154 (Find a particular time for V (t) = V0) Consider a mixing problem withequal constant water rates ri = ro = r and fresh water is coming into the tank henceqi = 0 Then find the time t1 such that the salt concentration in the tank Q(t)V (t) is 1the initial value Write that time t1 in terms of the rate r and initial water volume V0
Solution The first step to solve this problem is to find the solution Q of the initial valueproblem
Qprime(t) = a(t)Q(t) + b(t) Q(0) = Q0
54 G NAGY ndash ODE november 29 2017
where function a and b are given in Eq (156) In this case they are
a(t) = minus ro(ri minus ro) t+ V0
rArr a(t) = minus r
V0
b(t) = ri qi(t) rArr b(t) = 0
The initial value problem we need to solve is
Qprime(t) = minus r
V0
Q(t) Q(0) = Q0
From Section 11 we know that the solution is given by
Q(t) = Q0 eminusrtV0
We can now proceed to find the time t1 We first need to find the concentration Q(t)V (t)We already have Q(t) and we now that V (t) = V0 since ri = ro Therefore
Q(t)
V (t)=Q(t)
V0
=Q0
V0
eminusrtV0
The condition that defines t1 isQ(t1)
V (t1)=
1
100
Q0
V0
From these two equations above we conclude that
1
100
Q0
V0
=Q(t1)
V (t1)=Q0
V0
eminusrt1V0
The time t1 comes from the equation
1
100= eminusrt1V0 hArr ln
( 1
100
)= minusrt1
V0
hArr ln(100) =rt1V0
The final result is given by
t1 =V0
rln(100)
C
Example 155 (Nonzero qi for V (t) = V0) Consider a mixing problem with equal constantwater rates ri = ro = r with only fresh water in the tank at the initial time hence Q0 = 0and with a given initial volume of water in the tank V0 Then find the function salt in thetank Q if the incoming salt concentration is given by the function
qi(t) = 2 + sin(2t)
Solution We need to find the solution Q to the initial value problem
Qprime(t) = a(t)Q(t) + b(t) Q(0) = 0
where function a and b are given in Eq (156) In this case we have
a(t) = minus ro(ri minus ro) t+ V0
rArr a(t) = minus r
V0
= minusa0
b(t) = ri qi(t) rArr b(t) = r[2 + sin(2t)
]
We are changing the sign convention for a0 so that a0 gt 0 The initial value problem weneed to solve is
Qprime(t) = minusa0Q(t) + b(t) Q(0) = 0
The solution is computed using the integrating factor method and the result is
Q(t) = eminusa0tint t
0
ea0sb(s) ds
G NAGY ndash ODE November 29 2017 55
where we used that the initial condition is Q0 = 0 Recalling the definition of the functionb we obtain
Q(t) = eminusa0tint t
0
ea0s[2 + sin(2s)
]ds
This is the formula for the solution of the problem we only need to compute the integralgiven in the equation above This is not straightforward though We start with the followingintegral found in an integration tableint
eks sin(ls) ds =eks
k2 + l2[k sin(ls)minus l cos(ls)
]
where k and l are constants Thereforeint t
0
ea0s[2 + sin(2s)
]ds =
[ 2
a0ea0s
]∣∣∣t0+[ ea0s
a20 + 22
[a0 sin(2s)minus 2 cos(2s)
]]∣∣∣t0
=2
a0q(ea0t minus 1
)+
ea0t
a20 + 22
[a0 sin(2t)minus 2 cos(2t)
]+
2
a20 + 22
With the integral above we can compute the solution Q as follows
Q(t) = eminusa0t[ 2
a0
(ea0t minus 1
)+
ea0t
a20 + 22
[a0 sin(2t)minus 2 cos(2t)
]+
2
a20 + 22
]
recalling that a0 = rV0 We rewrite expression above as follows
Q(t) =2
a0+[ 2
a20 + 22
minus 2
a0
]eminusa0t +
1
a20 + 22
[a0 sin(2t)minus 2 cos(2t)
] (159)
C
t
y
2
f(x) = 2minus 8
5eminusx
Q(t)
Figure 5 The graph of the function Q given in Eq (159) for a0 = 1
56 G NAGY ndash ODE november 29 2017
154 Exercises
151- A radioactive material decays ata rate proportional to the amountpresent Initially there are 50 mil-ligrams of the material present and afterone hour the material has lost 80 of itsoriginal mass
(a) Find the mass of the material asfunction of time
(b) Find the mass of the material afterfour hours
(c) Find the half-life of the material
152- A vessel with liquid at 18 C is placedin a cooler held at 3 C and after 3 min-utes the temperature drops to 13 C
(a) Find the differential equation satis-fied by the temperature T of a liq-uid in the cooler at time t = 0
(b) Find the function temperature ofthe liquid once it is put in thecooler
(c) Find the liquid cooling constant
153- A tank initially contains V0 = 100liters of water with Q0 = 25 grams ofsalt The tank is rinsed with fresh wa-ter flowing in at a rate of ri = 5 litersper minute and leaving the tank at thesame rate The water in the tank is well-stirred Find the time such that theamount the salt in the tank is Q1 = 5grams
154- A tank initially contains V0 = 100liters of pure water Water enters thetank at a rate of ri = 2 liters per minutewith a salt concentration of q1 = 3grams per liter The instantaneouslymixed mixture leaves the tank at thesame rate it enters the tank Find thesalt concentration in the tank at anytime t gt 0 Also find the limitingamount of salt in the tank in the limittrarrinfin
155- A tank with a capacity of Vm = 500liters originally contains V0 = 200 litersof water with Q0 = 100 grams of saltin solution Water containing salt withconcentration of qi = 1 gram per literis poured in at a rate of ri = 3 litersper minute The well-stirred water isallowed to pour out the tank at a rateof ro = 2 liters per minute Find thesalt concentration in the tank at thetime when the tank is about to overflowCompare this concentration with thelimiting concentration at infinity timeif the tank had infinity capacity
G NAGY ndash ODE November 29 2017 57
16 Nonlinear Equations
Linear differential equations are simpler to solve than nonlinear differential equations Whilewe have an explicit formula for the solutions to all linear equationsmdashTheorem 123mdashthereis no such formula for solutions to every nonlinear equation It is true that we solved severalnonlinear equations in sectsect 12-14 and we arrived at different formulas for their solutionsbut the nonlinear equations we solved are only a tiny part of all nonlinear equations
One can give up on the goal of finding a formula for solutions to all nonlinear equationsThen one can focus on proving whether a nonlinear equations has solutions or not This isthe path followed to arrive at the Picard-Lindelof Theorem This theorem determines whatnonlinear equations have solutions but it provides no formula for them However the proofof the theorem does provide a way to compute a sequence of approximate solutions to thedifferential equation The proof ends showing that this sequence converges to a solution ofthe differential equation
In this section we first introduce the Picard-Lindelof Theorem and the Picard iterationto find approximate solutions We then compare what we know about solutions to linearand to nonlinear differential equations We finish this section with a brief discussion ondirection fields
161 The Picard-Lindelof Theorem We will show that a large class of nonlinear dif-ferential equations have solutions First let us recall the definition of a nonlinear equation
Definition 161 An ordinary differential equation yprime(t) = f(t y(t)) is called nonlineariff the function f is nonlinear in the second argument
Example 161(a) The differential equation
yprime(t) =t2
y3(t)
is nonlinear since the function f(t y) = t2y3 is nonlinear in the second argument(b) The differential equation
yprime(t) = 2ty(t) + ln(y(t)
)is nonlinear since the function f(t y) = 2ty+ln(y) is nonlinear in the second argumentdue to the term ln(y)
(c) The differential equationyprime(t)
y(t)= 2t2
is linear since the function f(t y) = 2t2y is linear in the second argumentC
The Picard-Lindelof Theorem shows that certain nonlinear equations have solutionsuniquely determined by appropriate initial data
Theorem 162 (Picard-Lindelof) Consider the initial value problem
yprime(t) = f(t y(t)) y(t0) = y0 (161)
If the function f is continuous on the domain Da = [t0 minus a t0 + a] times [y0 minus a y0 + a] sub R2for some a gt 0 and f is Lipschitz continuous on y that is there exists k gt 0 such that
|f(t y2)minus f(t y1)| lt k |y2 minus y1|for all (t y2) (t y1) isin Da then there exists a positive b lt a such that there exists a uniquesolution y on the domain [t0 minus b t0 + b] to the initial value problem in (161)
58 G NAGY ndash ODE november 29 2017
Remark We prove this theorem rewriting the differential equation as an integral equationfor the unknown function y Then we use this integral equation to construct a sequence ofapproximate solutions yn to the original initial value problem Next we show that thissequence of approximate solutions has a unique limit as nrarrinfin We end the proof showingthat this limit is the only solution of the original initial value problem This proof follows[15] sect 16 and Zeidlerrsquos [16] sect 18 It is important to read the review on complete normedvector spaces called Banach spaces given in these references
Proof of Theorem 162 We start writing the differential equation in 161 as an integralequation hence we integrate on both sides of that equation with respect to t
int t
t0
yprime(s) ds =
int t
t0
f(s y(s)) ds rArr y(t) = y0 +
int t
t0
f(s y(s)) ds (162)
We have used the Fundamental Theorem of Calculus on the left-hand side of the firstequation to get the second equation And we have introduced the initial condition y(t0) = y0We use this integral form of the original differential equation to construct a sequence offunctions yninfinn=0 The domain of every function in this sequence is Da = [t0 minus a t0 + a]The sequence is defined as follows
yn+1(t) = y0 +
int t
t0
f(s yn(s)) ds n gt 0 y0(t) = y0 (163)
We see that the first element in the sequence is the constant function determined by theinitial conditions in (161) The iteration in (163) is called the Picard iteration Thecentral idea of the proof is to show that the sequence yn is a Cauchy sequence in thespace C(Db) of uniformly continuous functions in the domain Db = [t0minus b t0 + b] for a smallenough b gt 0 This function space is a Banach space under the norm
u = maxtisinDb
|u(t)|
See [15] and references therein for the definition of Cauchy sequences Banach spaces andthe proof that C(Db) with that norm is a Banach space We now show that the sequenceyn is a Cauchy sequence in that space Any two consecutive elements in the sequencesatisfy
yn+1 minus yn = maxtisinDb
∣∣∣int t
t0
f(s yn(s)) dsminusint t
t0
f(s ynminus1(s)) ds∣∣∣
6 maxtisinDb
int t
t0
∣∣f(s yn(s))minus f(s ynminus1(s))∣∣ ds
6 k maxtisinDb
int t
t0
|yn(s)minus ynminus1(s)| ds
6 kb yn minus ynminus1
Denoting r = kb we have obtained the inequality
yn+1 minus yn 6 r yn minus ynminus1 rArr yn+1 minus yn 6 rn y1 minus y0
G NAGY ndash ODE November 29 2017 59
Using the triangle inequality for norms and and the sum of a geometric series one computethe following
yn minus yn+m = yn minus yn+1 + yn+1 minus yn+2 + middot middot middot+ yn+(mminus1) minus yn+m6 yn minus yn+1+ yn+1 minus yn+2+ middot middot middot+ yn+(mminus1) minus yn+m6 (rn + rn+1 + middot middot middot+ rn+m) y1 minus y06 rn(1 + r + r2 + middot middot middot+ rm) y1 minus y0
6 rn(1minus rm
1minus r
)y1 minus y0
Now choose the positive constant b such that b lt mina 1k hence 0 lt r lt 1 In this casethe sequence yn is a Cauchy sequence in the Banach space C(Db) with norm henceconverges Denote the limit by y = limnrarrinfin yn This function satisfies the equation
y(t) = y0 +
int t
t0
f(s y(s)) ds
which says that y is not only continuous but also differentiable in the interior of Db hencey is solution of the initial value problem in (161) The proof of uniqueness of the solutionfollows the same argument used to show that the sequence above is a Cauchy sequenceConsider two solutions y and y of the initial value problem above That means
y(t) = y0 +
int t
t0
f(s y(s) ds y(t) = y0 +
int t
t0
f(s y(s) ds
Therefore their difference satisfies
y minus y = maxtisinDb
∣∣∣int t
t0
f(s y(s)) dsminusint t
t0
f(s y(s)) ds∣∣∣
6 maxtisinDb
int t
t0
∣∣f(s y(s))minus f(s y(s))∣∣ ds
6 k maxtisinDb
int t
t0
|y(s)minus y(s)| ds
6 kb y minus y
Since b is chosen so that r = kb lt 1 we got that
y minus y 6 r y minus y r lt 1 rArr y minus y = 0 rArr y = y
This establishes the Theorem
Example 162 Use the proof of Picard-Lindelofrsquos Theorem to find the solution to
yprime = 2 y + 3 y(0) = 1
Solution We first transform the differential equation into an integral equationint t
0
yprime(s) ds =
int t
0
(2 y(s) + 3) ds rArr y(t)minus y(0) =
int t
0
(2 y(s) + 3) ds
Using the initial condition y(0) = 1
y(t) = 1 +
int t
0
(2 y(s) + 3) ds
60 G NAGY ndash ODE november 29 2017
We now define the sequence of approximate solutions
y0 = y(0) = 1 yn+1(t) = 1 +
int t
0
(2 yn(s) + 3) ds n gt 0
We now compute the first elements in the sequence We said y0 = 1 now y1 is given by
n = 0 y1(t) = 1 +
int t
0
(2 y0(s) + 3) ds = 1 +
int t
0
5 ds = 1 + 5t
So y1 = 1 + 5t Now we compute y2
y2 = 1+
int t
0
(2 y1(s)+3) ds = 1+
int t
0
(2(1+5s)+3
)ds rArr y2 = 1+
int t
0
(5+10s
)ds = 1+5t+5t2
So wersquove got y2(t) = 1 + 5t+ 5t2 Now y3
y3 = 1 +
int t
0
(2 y2(s) + 3) ds = 1 +
int t
0
(2(1 + 5s+ 5s2) + 3
)ds
so we have
y3 = 1 +
int t
0
(5 + 10s+ 10s2
)ds = 1 + 5t+ 5t2 +
10
3t3
So we obtained y3(t) = 1 + 5t+ 5t2 +10
3t3 We now rewrite this expression so we can get
a power series expansion that can be written in terms of simple functions The first step isdone already to write the powers of t as tn for n = 1 2 3
y3(t) = 1 + 5t1 + 5t2 +5(2)
3t3
We now multiply by one each term so we get the factorials n on each term
y3(t) = 1 + 5t1
1+ 5(2)
t2
2+ 5(22)
t3
3
We then realize that we can rewrite the expression above in terms of power of (2t) that is
y3(t) = 1 +5
2
(2t)1
1+
5
2
(2t)2
2+
5
2
(2t)3
3= 1 +
5
2
((2t) +
(2t)2
2+
(2t)3
3
)
From this last expressionis simple to guess the n-th approximation
yN(t) = 1 +5
2
((2t) +
(2t)2
2+
(2t)3
3+ middot middot middot+ (2t)N
N
)= 1 +
5
2
Nsumk=1
(2t)k
k
Recall now that the power series expansion for the exponential
eat =
infinsumk=0
(at)k
k= 1 +
infinsumk=1
(at)k
krArr
infinsumk=1
(at)k
k= (eat minus 1)
Then the limit N rarrinfin is given by
y(t) = limNrarrinfin
yN(t) = 1 +5
2
infinsumk=1
(2t)k
k= 1 +
5
2
(e2t minus 1
)
One last rewriting of the solution and we obtain
y(t) =5
2e2t minus 3
2
C
G NAGY ndash ODE November 29 2017 61
Remark The differential equation yprime = 2 y + 3 is of course linear so the solution to theinitial value problem in Example 162 can be obtained using the methods in Section 11
eminus2t (yprime minus 2 y) = eminus2t 3 rArr eminus2t y = minus3
2eminus2t + c rArr y(t) = c e2t minus 3
2
and the initial condition implies
1 = y(0) = cminus 3
2rArr c =
5
2rArr y(t) =
5
2e2t minus 3
2
Example 163 Use the proof of Picard-Lindelofrsquos Theorem to find the solution to
yprime = a y + b y(0) = y0 a b isin R
Solution We first transform the differential equation into an integral equationint t
0
yprime(s) ds =
int t
0
(a y(s) + b) ds rArr y(t)minus y(0) =
int t
0
(a y(s) + b) ds
Using the initial condition y(0) = y0
y(t) = y0 +
int t
0
(a y(s) + b) ds
We now define the sequence of approximate solutions
y0 = y(0) = y0 yn+1(t) = y0 +
int t
0
(a yn(s) + b) ds n gt 0
We now compute the first elements in the sequence We said y0 = y0 now y1 is given by
n = 0 y1(t) = y0 +
int t
0
(a y0(s) + b) ds
= y0 +
int t
0
(a y0 + b) ds
= y0 + (a y0 + b)t
So y1 = y0 + (a y0 + b)t Now we compute y2
y2 = y0 +
int t
0
[a y1(s) + b] ds
= y0 +
int t
0
[a(y0 + (a y0 + b)s) + b
]ds
= y0 + (ay0 + b)t+ (a y0 + b)at2
2
So we obtained y2(t) = y0 + (ay0 + b)t+ (a y0 + b)at2
2 A similar calculation gives us y3
y3(t) = y0 + (ay0 + b)t+ (a y0 + b)at2
2+ (a y0 + b)
a2t3
3
We now rewrite this expression so we can get a power series expansion that can be writtenin terms of simple functions The first step is done already to write the powers of t as tnfor n = 1 2 3
y3(t) = y0 + (ay0 + b)(t)1
1+ (a y0 + b) a
t2
2+ (a y0 + b) a2 t
3
3
62 G NAGY ndash ODE november 29 2017
We already have the factorials n on each term tn We now realize we can write the powerfunctions as (at)n is we multiply eat term by one as follows
y3(t) = y0 +(ay0 + b)
a
(at)1
1+
(a y0 + b)
a
(at)2
2+
(a y0 + b)
a
(at)3
3
Now we can pull a common factor
y3(t) = y0 +(y0 +
b
a
) ( (at)1
1+
(at)2
2+
(at)3
3
)From this last expressionis simple to guess the n-th approximation
yN(t) = y0 +(y0 +
b
a
)( (at)1
1+
(at)2
2+
(at)3
3+ middot middot middot+ (at)N
N
)limNrarrinfin
yN(t) = y0 +(y0 +
b
a
) infinsumk=1
(at)k
k
Recall now that the power series expansion for the exponential
eat =
infinsumk=0
(at)k
k= 1 +
infinsumk=1
(at)k
krArr
infinsumk=1
(at)k
k= (eat minus 1)
Notice that the sum in the exponential starts at k = 0 while the sum in yn starts at k = 1Then the limit nrarrinfin is given by
y(t) = limnrarrinfin
yn(t)
= y0 +(y0 +
b
a
) infinsumk=1
(at)k
k
= y0 +(y0 +
b
a
) (eat minus 1
)
We have been able to add the power series and we have the solution written in terms ofsimple functions One last rewriting of the solution and we obtain
y(t) =(y0 +
b
a
)eat minus b
a
C
Remark We reobtained Eq (1112) in Theorem 114
Example 164 Use the Picard iteration to find the solution of
yprime = 5t y y(0) = 1
Solution We first transform the differential equation into an integral equationint t
0
yprime(s) ds =
int t
0
5s y(s) ds rArr y(t)minus y(0) =
int t
0
5s y(s) ds
Using the initial condition y(0) = 1
y(t) = 1 +
int t
0
5s y(s) ds
We now define the sequence of approximate solutions
y0 = y(0) = 1 yn+1(t) = 1 +
int t
0
5s yn(s) ds n gt 0
G NAGY ndash ODE November 29 2017 63
We now compute the first four elements in the sequence The first one is y0 = y(0) = 1 thesecond one y1 is given by
n = 0 y1(t) = 1 +
int t
0
5s ds = 1 +5
2t2
So y1 = 1 + (52)t2 Now we compute y2
y2 = 1 +
int t
0
5s y1(s) ds
= 1 +
int t
0
5s(1 +
5
2s2)ds
= 1 +
int t
0
(5s+
52
2s3)ds
= 1 +5
2t2 +
52
8t4
So we obtained y2(t) = 1 +5
2t2 +
52
23t4 A similar calculation gives us y3
y3 = 1 +
int t
0
5s y2(s) ds
= 1 +
int t
0
5s(1 +
5
2s2 +
52
23s4)ds
= 1 +
int t
0
(5s+
52
2s3 +
53
23s5)ds
= 1 +5
2t2 +
52
8t4 +
53
236t6
So we obtained y3(t) = 1 +5
2t2 +
52
23t4 +
53
243t6 We now rewrite this expression so we can
get a power series expansion that can be written in terms of simple functions The first stepis to write the powers of t as tn for n = 1 2 3
y3(t) = 1 +5
2(t2)1 +
52
23(t2)2 +
53
243(t2)3
Now we multiply by one each term to get the right facctorials n on each term
y3(t) = 1 +5
2
(t2)1
1+
52
22
(t2)2
2+
53
23
(t2)3
3
No we realize that the factor 52 can be written together with the powers of t2
y3(t) = 1 +( 5
2 t2)
1+
( 52 t
2)2
2+
( 52 t
2)3
3
From this last expression is simple to guess the n-th approximation
yN(t) = 1 +
Nsumk=1
( 52 t
2)k
k
which can be proven by induction Therefore
y(t) = limNrarrinfin
yN(t) = 1 +
infinsumk=1
( 52 t
2)k
k
64 G NAGY ndash ODE november 29 2017
Recall now that the power series expansion for the exponential
eat =
infinsumk=0
(at)k
k= 1 +
infinsumk=1
(at)k
k
so we get
y(t) = 1 + (e52 t
2
minus 1) rArr y(t) = e52 t
2
C
Remark The differential equation yprime = 5t y is of course separable so the solution to theinitial value problem in Example 164 can be obtained using the methods in Section 13
yprime
y= 5t rArr ln(y) =
5t2
2+ c rArr y(t) = c e
52 t
2
We now use the initial condition
1 = y(0) = c rArr c = 1
so we obtain the solutiony(t) = e
52 t
2
Example 165 Use the Picard iteration to find the solution of
yprime = 2t4 y y(0) = 1
Solution We first transform the differential equation into an integral equationint t
0
yprime(s) ds =
int t
0
2s4 y(s) ds rArr y(t)minus y(0) =
int t
0
2s4 y(s) ds
Using the initial condition y(0) = 1
y(t) = 1 +
int t
0
2s4 y(s) ds
We now define the sequence of approximate solutions
y0 = y(0) = 1 yn+1(t) = 1 +
int t
0
2s4 yn(s) ds n gt 0
We now compute the first four elements in the sequence The first one is y0 = y(0) = 1 thesecond one y1 is given by
n = 0 y1(t) = 1 +
int t
0
2s4 ds = 1 +2
5t5
So y1 = 1 + (25)t5 Now we compute y2
y2 = 1 +
int t
0
2s4 y1(s) ds
= 1 +
int t
0
2s4(1 +
2
5s5)ds
= 1 +
int t
0
(2s4 +
22
5s9)ds
= 1 +2
5t5 +
22
5
1
10t10
G NAGY ndash ODE November 29 2017 65
So we obtained y2(t) = 1 +2
5t5 +
22
52
1
2t10 A similar calculation gives us y3
y3 = 1 +
int t
0
2s4 y2(s) ds
= 1 +
int t
0
2s4(1 +
2
5s5 +
22
52
1
2s10)ds
= 1 +
int t
0
(2s4 +
22
5s9 +
23
52
1
2s14)ds
= 1 +2
5t5 +
22
5
1
10t10 +
23
52
1
2
1
15t15
So we obtained y3(t) = 1+2
5t5 +
22
52
1
2t10 +
23
53
1
2
1
3t15 We now try reorder terms in this last
expression so we can get a power series expansion we can write in terms of simple functionsThis is what we do
y3(t) = 1 +2
5(t5) +
22
53
(t5)2
2+
23
54
(t5)3
6
= 1 +2
5
(t5)
1+
22
52
(t5)2
2+
23
53
(t5)3
3
= 1 +( 2
5 t5)
1+
( 25 t
5)2
2+
( 25 t
5)3
3
From this last expression is simple to guess the n-th approximation
yN(t) = 1 +
Nsumn=1
( 25 t
5)n
n
which can be proven by induction Therefore
y(t) = limNrarrinfin
yN(t) = 1 +
infinsumn=1
( 25 t
5)n
n
Recall now that the power series expansion for the exponential
eat =
infinsumk=0
(at)k
k= 1 +
infinsumk=1
(at)k
k
so we get
y(t) = 1 + (e25 t
5
minus 1) rArr y(t) = e25 t
5
C
162 Comparison of Linear and Nonlinear Equations The main result in sect 12 wasTheorem 123 which says that an initial value problem for a linear differential equation
yprime = a(t) y + b(t) y(t0) = y0
with a b continuous functions on (t1 t2) and constants t0 isin (t1 t2) and y0 isin R has theunique solution y on (t1 t2) given by
y(t) = eA(t)(y0 +
int t
t0
eminusA(s) b(s) ds)
where we introduced the function A(t) =
int t
t0
a(s) ds
66 G NAGY ndash ODE november 29 2017
From the result above we can see that solutions to linear differential equations satisfiythe following properties
(a) There is an explicit expression for the solutions of a differential equations(b) For every initial condition y0 isin R there exists a unique solution(c) For every initial condition y0 isin R the solution y(t) is defined for all (t1 t2)
Remark None of these properties hold for solutions of nonlinear differential equations
From the Picard-Lindelof Theorem one can see that solutions to nonlinear differentialequations satisfy the following properties
(i) There is no explicit formula for the solution to every nonlinear differential equation(ii) Solutions to initial value problems for nonlinear equations may be non-unique when
the function f does not satisfy the Lipschitz condition(iii) The domain of a solution y to a nonlinear initial value problem may change when we
change the initial data y0
The next three examples (166)-(168) are particular cases of the statements in (i)-(iii)We start with an equation whose solutions cannot be written in explicit form
Example 166 For every constant a1 a2 a3 a4 find all solutions y to the equation
yprime(t) =t2(
y4(t) + a4 y3(t) + a3 y2(t) + a2 y(t) + a1
) (164)
Solution The nonlinear differential equation above is separable so we follow sect 13 to findits solutions First we rewrite the equation as(
y4(t) + a4 y3(t) + a3 y
2(t) + a2 y(t) + a1
)yprime(t) = t2
Then we integrate on both sides of the equationint (y4(t) + a4 y
3(t) + a3 y2(t) + a2 y(t) + a1
)yprime(t) dt =
intt2 dt+ c
Introduce the substitution u = y(t) so du = yprime(t) dtint(u4 + a4 u
3 + a3 u2 + a2 u+ a1
)du =
intt2 dt+ c
Integrate the left-hand side with respect to u and the right-hand side with respect to tSubstitute u back by the function y hence we obtain
1
5y5(t) +
a4
4y4(t) +
a3
3y3(t) +
a2
2y(t) + a1 y(t) =
t3
3+ c
This is an implicit form for the solution y of the problem The solution is the root of apolynomial degree five for all possible values of the polynomial coefficients But it has beenproven that there is no formula for the roots of a general polynomial degree bigger or equalfive We conclude that that there is no explicit expression for solutions y of Eq (164) C
We now give an example of the statement in (ii) that is a differential equation whichdoes not satisfy one of the hypothesis in Theorem 162 The function f has a discontinuityat a line in the (t u) plane where the initial condition for the initial value problem is givenWe then show that such initial value problem has two solutions instead of a unique solution
Example 167 Find every solution y of the initial value problem
yprime(t) = y13(t) y(0) = 0 (165)
G NAGY ndash ODE November 29 2017 67
Remark The equation above is nonlinear separable and f(t u) = u13 has derivative
partuf =1
3
1
u23
Since the function partuf is not continuous at u = 0 it does not satisfies the Lipschitz conditionin Theorem 162 on any domain of the form S = [minusa a]times [minusa a] with a gt 0
Solution The solution to the initial value problem in Eq (165) exists but it is not uniquesince we now show that it has two solutions The first solution is
y1(t) = 0
The second solution can be computed as using the ideas from separable equations that isint [y(t)
]minus13yprime(t) dt =
intdt+ c0
Then the substitution u = y(t) with du = yprime(t) dt implies thatintuminus13 du =
intdt+ c0
Integrate and substitute back the function y The result is
3
2
[y(t)
]23= t+ c0 rArr y(t) =
[2
3(t+ c0)
]32
The initial condition above implies
0 = y(0) =(2
3c0
)32
rArr c0 = 0
so the second solution is
y2(t) =(2
3t)32
C
Finally an example of the statement in (iii) In this example we have an equation withsolutions defined in a domain that depends on the initial data
Example 168 Find the solution y to the initial value problem
yprime(t) = y2(t) y(0) = y0
Solution This is a nonlinear separable equation so we can again apply the ideas inSect 13 We first find all solutions of the differential equationint
yprime(t) dt
y2(t)=
intdt+ c0 rArr minus 1
y(t)= t+ c0 rArr y(t) = minus 1
c0 + t
We now use the initial condition in the last expression above
y0 = y(0) = minus 1
c0rArr c0 = minus 1
y0
So the solution of the initial value problem above is
y(t) =1( 1
y0minus t)
This solution diverges at t = 1y0 so the domain of the solution y is not the whole real lineR Instead the domain is Rminus y0 so it depends on the values of the initial data y0 C
In the next example we consider an equation of the form yprime(t) = f(t y(t)) where f doesnot satisfy the hypotheses in Theorem 162
68 G NAGY ndash ODE november 29 2017
Example 169 Consider the nonlinear initialvalue problem
yprime(t) =1
(tminus 1)(t+ 1)(y(t)minus 2)(y(t) + 3)
y(t0) = y0 (166)
Find the regions on the plane where the hypothesesin Theorem 162 are not satisfied
Solution In this case the function f is given by
f(t u) =1
(tminus 1)(t+ 1)(uminus 2)(u+ 3) (167)
so f is not defined on the lines
t = 1 t = minus1 u = 2 u = minus3
See Fig 6 For example in the case that the initialdata is t0 = 0 y0 = 1 then Theorem 162 impliesthat there exists a unique solution on any region Rcontained in the rectangle R = (minus1 1) times (minus3 2)If the initial data for the initial value problem inEq (166) is t = 0 y0 = 2 then the hypotheses ofTheorem 162 are not satisfied C
u
t0
R
u = 2
u = minus3
t = minus1 t = 1
Figure 6 Red regionswhere f in Eq (167) isnot defined
163 Direction Fields Sometimes one needs to find information about solutions of adifferential equation without having to actually solve the equation One way to do this iswith the direction fields Consider a differential equation
yprime(t) = f(t y(t))
We interpret the the right-hand side above in a new way
(a) In the usual way the graph of f is a surface in the tyz-space where z = f(t y)(b) In the new way f(t y) is the value of a slope of a segment at each point (t y) on the
ty-plane(c) That slope is the value of yprime(t) the derivative of a solution y at t
Figure 7 The function f as a slope of a segment
G NAGY ndash ODE November 29 2017 69
The ideas above suggest the following definition
Definition 163 A direction field for the differential equation yprime(t) = f(t y(t)) is thegraph on the ty-plane of the values f(t y) as slopes of a small segments
We now show the direction fields of e few equations
Example 1610 Find the direction field of the equation yprime = y and sketch a few solutionsto the differential equation for different initial conditions
Solution Recall that the solutions are y(t) = y0 et So is the direction field shown in
Fig 8 C
t
y
1
0
minus1
yprime = y
Figure 8 Direction field for the equation yprime = y
Example 1611 Find the direction field of the equation yprime = sin(y) and sketch a fewsolutions to the differential equation for different initial conditions
Solution The equation is separable so the solutions are
ln∣∣∣csc(y0) + cot(y0)
csc(y) + cot(y)
∣∣∣ = t
for any y0 isin R The graphs of these solutions are not simple to do But the direction fieldis simpler to plot and can be seen in Fig 9 C
Example 1612 Find the direction field of the equation yprime = 2 cos(t) cos(y) and sketch afew solutions to the differential equation for different initial conditions
Solution We do not need to compute the explicit solution of yprime = 2 cos(t) cos(y) to havea qualitative idea of its solutions The direction field can be seen in Fig 10 C
70 G NAGY ndash ODE november 29 2017
t
y
π
0
minusπ
yprime = sin(y)
Figure 9 Direction field for the equation yprime = sin(y)
t
y
π
2
0
minusπ2
yprime = 2 cos(t) cos(y)
Figure 10 Direction field for the equation yprime = 2 cos(t) cos(y)
G NAGY ndash ODE November 29 2017 71
164 Exercises
161- Use the Picard iteration to find thefirst four elements y0 y1 y2 and y3of the sequence yninfinn=0 of approximatesolutions to the initial value problem
yprime = 6y + 1 y(0) = 0
162- Use the Picard iteration to find theinformation required below about thesequence yninfinn=0 of approximate solu-tions to the initial value problem
yprime = 3y + 5 y(0) = 1
(a) The first 4 elements in the sequencey0 y1 y2 and y3
(b) The general term ck(t) of the ap-proximation
yn(t) = 1 +
nsumk=1
ck(t)
k
(c) Find the limit y(t) = limnrarrinfin yn(t)
163- Find the domain where the solutionof the initial value problems below iswell-defined
(a) yprime =minus4t
y y(0) = y0 gt 0
(b) yprime = 2ty2 y(0) = y0 gt 0
164- By looking at the equation coeffi-cients find a domain where the solutionof the initial value problem below exists
(a) (t2minus4) yprime+2 ln(t) y = 3t and initial
condition y(1) = minus2
(b) yprime =y
t(tminus 3) and initial condition
y(minus1) = 2
165- State where in the plane with points(t y) the hypothesis of Theorem 162are not satisfied
(a) yprime =y2
2tminus 3y
(b) yprime =radic
1minus t2 minus y2
72 G NAGY ndash ODE november 29 2017
Chapter 2 Second Order Linear Equations
Newtonrsquos second law of motion ma = f is maybe one of the first differential equationswritten This is a second order equation since the acceleration is the second time derivativeof the particle position function Second order differential equations are more difficult tosolve than first order equations In sect 21 we compare results on linear first and second orderequations While there is an explicit formula for all solutions to first order linear equationsnot such formula exists for all solutions to second order linear equations The most onecan get is the result in Theorem 217 In sect 22 we introduce the Reduction Order Methodto find a new solution of a second order equation if we already know one solution of theequation In sect 23 we find explicit formulas for all solutions to linear second order equationsthat are both homogeneous and with constant coefficients These formulas are generalizedto nonhomogeneous equations in sect 25 In sect 26 we describe a few physical systems describedby second order linear differential equations
t
y1 y2
eminusωdt
minuseminusωdt
G NAGY ndash ODE November 29 2017 73
21 Variable Coefficients
We studied first order linear equations in sect 11-12 where we obtained a formula for allsolutions to these equations We could say that we know all that can be known aboutsolutions to first order linear equations However this is not the case for solutions to secondorder linear equations since we do not have a general formula for all solutions to theseequations
In this section we present two main results the first one is Theorem 212 which saysthat there are solutions to second order linear equations when the equation coefficients arecontinuous functions Furthermore these solutions have two free parameters that can befixed by appropriate initial conditions
The second result is Theorem 217 which is the closest we can get to a formula forsolutions to second order linear equations without sourcesmdashhomogeneous equations Toknow all solutions to these equations we only need to know two solutions that are notproportional to each other The proof of Theorem 217 is based on Theorem 212 plusan algebraic calculation and properties of the Wronskian function which are derived fromAbelrsquos Theorem
211 Definitions and Examples We start with a definition of second order linear differ-ential equations After a few examples we state the first of the main results Theorem 212about existence and uniqueness of solutions to an initial value problem in the case that theequation coefficients are continuous functions
Definition 211 A second order linear differential equation for the function y is
yprimeprime + a1(t) yprime + a0(t) y = b(t) (211)
where a1 a0 b are given functions on the interval I sub R The Eq (211) above
(a) is homogeneous iff the source b(t) = 0 for all t isin R(b) has constant coefficients iff a1 and a0 are constants(c) has variable coefficients iff either a1 or a0 is not constant
Remark The notion of an homogeneous equation presented here is different from the Eulerhomogeneous equations we studied in sect 13
Example 211
(a) A second order linear homogeneous constant coefficients equation is
yprimeprime + 5yprime + 6 = 0
(b) A second order linear nonhomogeneous constant coefficients equation is
yprimeprime minus 3yprime + y = cos(3t)
(c) A second order linear nonhomogeneous variable coefficients equation is
yprimeprime + 2t yprime minus ln(t) y = e3t
(d) Newtonrsquos law of motion for a point particle of mass m moving in one space dimensionunder a force f is mass times acceleration equals force
myprimeprime(t) = f(t y(t) yprime(t))
(e) Schrodinger equation in Quantum Mechanics in one space dimension stationary is
minus ~2
2mψprimeprime + V (x)ψ = E ψ
where ψ is the probability density of finding a particle of mass m at the position xhaving energy E under a potential V where ~ is Planck constant divided by 2π C
74 G NAGY ndash ODE november 29 2017
Example 212 Find the differential equation satisfied by the family of functions
y(t) = c1 e4t + c2 e
minus4t
where c1 c2 are arbitrary constants
Solution From the definition of y compute c1
c1 = y eminus4t minus c2 eminus8t
Now compute the derivative of function y
yprime = 4c1 e4t minus 4c2 e
minus4t
Replace c1 from the first equation above into the expression for yprime
yprime = 4(y eminus4t minus c2 eminus8t)e4t minus 4c2 eminus4t rArr yprime = 4y + (minus4minus 4)c2 e
minus4t
so we get an expression for c2 in terms of y and yprime
yprime = 4y minus 8c2 eminus4t rArr c2 =
1
8(4y minus yprime) e4t
At this point we can compute c1 in terms of y and yprime although we do not need it for whatfollows Anyway
c1 = y eminus4t minus 1
8(4y minus yprime)e4teminus8t rArr c1 =
1
8(4y + yprime) eminus4t
We do not need c1 because we can get a differential equation for y from the equation for c2Compute the derivative of that equation
0 = cprime2 =1
2(4y minus yprime) e4t +
1
8(4yprime minus yprimeprime) e4t rArr 4(4y minus yprime) + (4yprime minus yprimeprime) = 0
which gives us the following second order linear differential equation for y
yprimeprime minus 16 y = 0
C
Example 213 Find the differential equation satisfied by the family of functions
y(t) =c1t
+ c2 t c1 c2 isin R
Solution Compute yprime = minusc1t2
+ c2 Get one constant from yprime and put it in y
c2 = yprime +c1t2
rArr y =c1t
+(yprime +
c1t2
)t
so we get
y =c1t
+ t yprime +c1trArr y =
2c1t
+ t yprime
Compute the constant from the expression above
2c1t
= y minus t yprime rArr 2c1 = t y minus t2 yprime
Since the left hand side is constant
0 = (2c1)prime = (t y minus t2 yprime)prime = y + t yprime minus 2t yprime minus t2 yprimeprime
so we get that y must satisfy the differential equation
t2 yprimeprime + t yprime minus y = 0
C
G NAGY ndash ODE November 29 2017 75
Example 214 Find the differential equation satisfied by the family of functions
y(x) = c1 x+ c2 x2
where c1 c2 are arbitrary constants
Solution Compute the derivative of function y
yprime(x) = c1 + 2c2 x
From here it is simple to get c1c1 = yprime minus 2c2 x
Use this expression for c1 in the expression for y
y = (yprime minus 2c2 x)x+ c2 x2 = x yprime minus c2 x2 rArr c2 =
yprime
xminus y
x2
To get the differential equation for y we do not need c1 but we compute it anyway
c1 = yprime minus 2(yprime
xminus y
x2)x = yprime minus 2 yprime +
2y
xrArr c1 = minusyprime + 2y
x
The equation for y can be obtained computing a derivative in the expression for c2
0 = cprime2 =yprimeprime
xminus yprime
x2minus yprime
x2+ 2
y
x3=yprimeprime
xminus 2
yprime
x2+ 2
y
x3= 0 rArr x2 yprimeprime minus 2x yprime + 2 y = 0
C
212 Solutions to the Initial Value Problem Here is the first of the two main resultsin this section Second order linear differential equations have solutions in the case that theequation coefficients are continuous functions Since the solution is unique when we specifytwo initial conditions the general solution must have two arbitrary integration constants
Theorem 212 (IVP) If the functions a1 a0 b are continuous on a closed interval I sub Rthe constant t0 isin I and y0 y1 isin R are arbitrary constants then there is a unique solutiony defined on I of the initial value problem
yprimeprime + a1(t) yprime + a0(t) y = b(t) y(t0) = y0 yprime(t0) = y1 (212)
Remark The fixed point argument used in the proof of Picard-Lindelofrsquos Theorem 162can be extended to prove Theorem 212
Example 215 Find the domain of the solution to the initial value problem
(tminus 1) yprimeprime minus 3t yprime +4(tminus 1)
(tminus 3)y = t(tminus 1) y(2) = 1 yprime(2) = 0
Solution We first write the equation above in the form given in the Theorem above
yprimeprime minus 3t
(tminus 1)yprime +
4
(tminus 3)y = t
The equation coefficients are defined on the domain
(minusinfin 1) cup (1 3) cup (3infin)
So the solution may not be defined at t = 1 or t = 3 That is the solution is defined in
(minusinfin 1) or (1 3) or (3infin)
Since the initial condition is at t0 = 2 isin (1 3) then the domain of the solution is
D = (1 3)
C
76 G NAGY ndash ODE november 29 2017
213 Properties of Homogeneous Equations We simplify the problem with the hopeto get deeper properties of its solutions From now on in this section we focus on homoge-neous equations only We will get back to non-homogeneous equations in a later sectionBut before getting into homogeneous equations we introduce a new notation to write dif-ferential equations This is a shorter more economical notation Given two functions a1a0 introduce the function L acting on a function y as follows
L(y) = yprimeprime + a1(t) yprime + a0(t) y (213)
The function L acts on the function y and the result is another function given by Eq (213)
Example 216 Compute the operator L(y) = t yprimeprime + 2yprime minus 8
ty acting on y(t) = t3
Solution Since y(t) = t3 then yprime(t) = 3t2 and yprimeprime(t) = 6t hence
L(t3) = t (6t) + 2(3t2)minus 8
tt3 rArr L(t3) = 4t2
The function L acts on the function y(t) = t3 and the result is the function L(t3) = 4t2 C
The function L above is called an operator to emphasize that L is a function that actson other functions instead of acting on numbers as the functions we are used to Theoperator L above is also called a differential operator since L(y) contains derivatives of yThese operators are useful to write differential equations in a compact notation since
yprimeprime + a1(t) yprime + a0(t) y = f(t)
can be written using the operator L(y) = yprimeprime + a1(t) yprime + a0(t) y as
L(y) = f
An important type of operators are the linear operators
Definition 213 An operator L is a linear operator iff for every pair of functions y1y2 and constants c1 c2 holds
L(c1y1 + c2y2) = c1L(y1) + c2L(y2) (214)
In this Section we work with linear operators as the following result shows
Theorem 214 (Linear Operator) The operator L(y) = yprimeprime+ a1 yprime+ a0 y where a1 a0 are
continuous functions and y is a twice differentiable function is a linear operator
Proof of Theorem 214 This is a straightforward calculation
L(c1y1 + c2y2) = (c1y1 + c2y2)primeprime + a1 (c1y1 + c2y2)
prime + a0 (c1y1 + c2y2)
Recall that derivations is a linear operation and then reoorder terms in the following way
L(c1y1 + c2y2) =(c1yprimeprime1 + a1 c1y
prime1 + a0 c1y1
)+(c2yprimeprime2 + a1 c2y
prime2 + a0 c2y2
)
Introduce the definition of L back on the right-hand side We then conclude that
L(c1y1 + c2y2) = c1L(y1) + c2L(y2)
This establishes the Theorem The linearity of an operator L translates into the superposition property of the solutions
to the homogeneous equation L(y) = 0
G NAGY ndash ODE November 29 2017 77
Theorem 215 (Superposition) If L is a linear operator and y1 y2 are solutions of thehomogeneous equations L(y1) = 0 L(y2) = 0 then for every constants c1 c2 holds
L(c1 y1 + c2 y2) = 0
Remark This result is not true for nonhomogeneous equations
Proof of Theorem 215 Verify that the function y = c1y1 + c2y2 satisfies L(y) = 0 forevery constants c1 c2 that is
L(y) = L(c1y1 + c2y2) = c1 L(y1) + c2 L(y2) = c1 0 + c2 0 = 0
This establishes the Theorem We now introduce the notion of linearly dependent and linearly independent functions
Definition 216 Two functions y1 y2 are called linearly dependent iff they are propor-tional Otherwise the functions are linearly independent
Remarks
(a) Two functions y1 y2 are proportional iff there is a constant c such that for all t holds
y1(t) = c y2(t)
(b) The function y1 = 0 is proportional to every other function y2 since holds y1 = 0 = 0 y2
The definitions of linearly dependent or independent functions found in the literature areequivalent to the definition given here but they are worded in a slight different way Oftenin the literature two functions are called linearly dependent on the interval I iff there existconstants c1 c2 not both zero such that for all t isin I holds
c1y1(t) + c2y2(t) = 0
Two functions are called linearly independent on the interval I iff they are not linearlydependent that is the only constants c1 and c2 that for all t isin I satisfy the equation
c1y1(t) + c2y2(t) = 0
are the constants c1 = c2 = 0 This wording makes it simple to generalize these definitionsto an arbitrary number of functions
Example 217
(a) Show that y1(t) = sin(t) y2(t) = 2 sin(t) are linearly dependent(b) Show that y1(t) = sin(t) y2(t) = t sin(t) are linearly independent
SolutionPart (a) This is trivial since 2y1(t)minus y2(t) = 0
Part (b) Find constants c1 c2 such that for all t isin R holds
c1 sin(t) + c2t sin(t) = 0
Evaluating at t = π2 and t = 3π2 we obtain
c1 +π
2c2 = 0 c1 +
3π
2c2 = 0 rArr c1 = 0 c2 = 0
We conclude The functions y1 and y2 are linearly independent C
78 G NAGY ndash ODE november 29 2017
We now introduce the second main result in this section If you know two linearly in-dependent solutions to a second order linear homogeneous differential equation then youactually know all possible solutions to that equation Any other solution is just a linearcombination of the previous two solutions We repeat that the equation must be homoge-neous This is the closer we can get to a general formula for solutions to second order linearhomogeneous differential equations
Theorem 217 (General Solution) If y1 and y2 are linearly independent solutions of theequation L(y) = 0 on an interval I sub R where L(y) = yprimeprime + a1 y
prime + a0 y and a1 a2 arecontinuous functions on I then there are unique constants c1 c2 such that every solution yof the differential equation L(y) = 0 on I can be written as a linear combination
y(t) = c1 y1(t) + c2 y2(t)
Before we prove Theorem 217 it is convenient to state the following the definitionswhich come out naturally from this TheoremDefinition 218
(a) The functions y1 and y2 are fundamental solutions of the equation L(y) = 0 iff y1y2 are linearly independent and
L(y1) = 0 L(y2) = 0
(b) The general solution of the homogeneous equation L(y) = 0 is a two-parameter familyof functions ygen given by
ygen(t) = c1 y1(t) + c2 y2(t)
where the arbitrary constants c1 c2 are the parameters of the family and y1 y2 arefundamental solutions of L(y) = 0
Example 218 Show that y1 = et and y2 = eminus2t are fundamental solutions to the equation
yprimeprime + yprime minus 2y = 0
Solution We first show that y1 and y2 are solutions to the differential equation since
L(y1) = yprimeprime1 + yprime1 minus 2y1 = et + et minus 2et = (1 + 1minus 2)et = 0
L(y2) = yprimeprime2 + yprime2 minus 2y2 = 4 eminus2t minus 2 eminus2t minus 2eminus2t = (4minus 2minus 2)eminus2t = 0
It is not difficult to see that y1 and y2 are linearly independent It is clear that they are notproportional to each other A proof of that statement is the following Find the constantsc1 and c2 such that
0 = c1 y1 + c2 y2 = c1 et + c2 e
minus2t t isin R rArr 0 = c1 et minus 2c2 e
minus2t
The second equation is the derivative of the first one Take t = 0 in both equations
0 = c1 + c2 0 = c1 minus 2c2 rArr c1 = c2 = 0
We conclude that y1 and y2 are fundamental solutions to the differential equation aboveC
Remark The fundamental solutions to the equation above are not unique For exampleshow that another set of fundamental solutions to the equation above is given by
y1(t) =2
3et +
1
3eminus2t y2(t) =
1
3
(et minus eminus2t
)
To prove Theorem 217 we need to introduce the Wronskian function and to verify someof its properties The Wronskian function is studied in the following Subsection and Abelrsquos
G NAGY ndash ODE November 29 2017 79
Theorem is proved Once that is done we can say that the proof of Theorem 217 iscompleteProof of Theorem 217 We need to show that given any fundamental solution pairy1 y2 any other solution y to the homogeneous equation L(y) = 0 must be a unique linearcombination of the fundamental solutions
y(t) = c1 y1(t) + c2 y2(t) (215)
for appropriately chosen constants c1 c2First the superposition property implies that the function y above is solution of the
homogeneous equation L(y) = 0 for every pair of constants c1 c2Second given a function y if there exist constants c1 c2 such that Eq (215) holds then
these constants are unique The reason is that functions y1 y2 are linearly independentThis can be seen from the following argument If there are another constants c1 c2 so that
y(t) = c1 y1(t) + c2 y2(t)
then subtract the expression above from Eq (215)
0 = (c1 minus c1) y1 + (c2 minus c2) y2 rArr c1 minus c1 = 0 c2 minus c2 = 0
where we used that y1 y2 are linearly independent This second part of the proof can beobtained from the part three below but I think it is better to highlight it here
So we only need to show that the expression in Eq (215) contains all solutions Weneed to show that we are not missing any other solution In this third part of the argumententers Theorem 212 This Theorem says that in the case of homogeneous equations theinitial value problem
L(y) = 0 y(t0) = d1 yprime(t0) = d2
always has a unique solution That means a good parametrization of all solutions to thedifferential equation L(y) = 0 is given by the two constants d1 d2 in the initial conditionTo finish the proof of Theorem 217 we need to show that the constants c1 and c2 are alsogood to parametrize all solutions to the equation L(y) = 0 One way to show this is tofind an invertible map from the constants d1 d2 which we know parametrize all solutionsto the constants c1 c2 The map itself is simple to find
d1 = c1 y1(t0) + c2 y2(t0)
d2 = c1 yprime1(t0) + c2 y
prime2(t0)
We now need to show that this map is invertible From linear algebra we know that thismap acting on c1 c2 is invertible iff the determinant of the coefficient matrix is nonzero∣∣∣∣y1(t0) y2(t0)
yprime1(t0) yprime2(t0)
∣∣∣∣ = y1(t0) yprime2(t0)minus yprime1(t0)y2(t0) 6= 0
This leads us to investigate the function
W12(t) = y1(t) yprime2(t)minus yprime1(t)y2(t)
This function is called the Wronskian of the two functions y1 y2 At the end of this sectionwe prove Theorem 2113 which says the following If y1 y2 are fundamental solutions ofL(y) = 0 on I sub R then W12(t) 6= 0 on I This statement establishes the Theorem
80 G NAGY ndash ODE november 29 2017
214 The Wronskian Function We now introduce a function that provides importantinformation about the linear dependency of two functions y1 y2 This function W is calledthe Wronskian to honor the polish scientist Josef Wronski who first introduced this functionin 1821 while studying a different problem
Definition 219 The Wronskian of the differentiable functions y1 y2 is the function
W12(t) = y1(t)yprime2(t)minus yprime1(t)y2(t)
Remark Introducing the matrix valued function A(t) =
[y1(t) y2(t)yprime1(t) yprime2(t)
]the Wronskian can
be written using the determinant of that 2times 2 matrix W12(t) = det(A(t)
) An alternative
notation is W12 =
∣∣∣∣y1 y2yprime1 yprime2
∣∣∣∣Example 219 Find the Wronskian of the functions
(a) y1(t) = sin(t) and y2(t) = 2 sin(t) (ld)(b) y1(t) = sin(t) and y2(t) = t sin(t) (li)
SolutionPart (a) By the definition of the Wronskian
W12(t) =
∣∣∣∣y1(t) y2(t)yprime1(t) yprime2(t)
∣∣∣∣ =
∣∣∣∣sin(t) 2 sin(t)cos(t) 2 cos(t)
∣∣∣∣ = sin(t)2 cos(t)minus cos(t)2 sin(t)
We conclude that W12(t) = 0 Notice that y1 and y2 are linearly dependent
Part (b) Again by the definition of the Wronskian
W12(t) =
∣∣∣∣sin(t) t sin(t)cos(t) sin(t) + t cos(t)
∣∣∣∣ = sin(t)[sin(t) + t cos(t)
]minus cos(t)t sin(t)
We conclude that W12(t) = sin2(t) Notice that y1 and y2 are linearly independent C
It is simple to prove the following relation between the Wronskian of two functions andthe linear dependency of these two functions
Theorem 2110 (Wronskian I) If y1 y2 are linearly dependent on I sub R then
W12 = 0 on I
Proof of Theorem 2110 Since the functions y1 y2 are linearly dependent there existsa nonzero constant c such that y1 = c y2 hence holds
W12 = y1 yprime2 minus yprime1 y2 = (c y2) y
prime2 minus (c y2)
prime y2 = 0
This establishes the Theorem
Remark The converse statement to Theorem 2110 is false If W12(t) = 0 for all t isin Ithat does not imply that y1 and y2 are linearly dependent
Example 2110 Show that the functions
y1(t) = t2 and y2(t) = |t| t for t isin Rare linearly independent and have Wronskian W12 = 0
SolutionFirst these functions are linearly independent since y1(t) = minusy2(t) for t lt 0 but y1(t) =
y2(t) for t gt 0 So there is not c such that y1(t) = c y2(t) for all t isin R
G NAGY ndash ODE November 29 2017 81
Second their Wronskian vanishes on R This is simple to see since y1(t) = minusy2(t) fort lt 0 then W12 = 0 for t lt 0 Since y1(t) = y2(t) for t gt 0 then W12 = 0 for t gt 0 Finallyit is not difficult to see that W12(t = 0) = 0 C
Remark Often in the literature one finds the negative of Theorem 2110 which is equiv-alent to Theorem 2110 and we summarize ibn the followng Corollary
Corollary 2111 (Wronskian I) If the Wronskian W12(t0) 6= 0 at a point t0 isin I then thefunctions y1 y2 defined on I are linearly independent
The results mentioned above provide different properties of the Wronskian of two func-tions But none of these results is what we need to finish the proof of Theorem 217 Inorder to finish that proof we need one more result Abelrsquos Theorem
215 Abelrsquos Theorem We now show that the Wronskian of two solutions of a differentialequation satisfies a differential equation of its own This result is known as Abelrsquos Theorem
Theorem 2112 (Abel) If y1 y2 are twice continuously differentiable solutions of
yprimeprime + a1(t) yprime + a0(t) y = 0 (216)
where a1 a0 are continuous on I sub R then the Wronskian W12 satisfies
W prime12 + a1(t)W12 = 0
Therefore for any t0 isin I the Wronskian W12 is given by the expression
W12(t) = W12(t0) eminusA1(t)
where A1(t) =
int t
t0
a1(s) ds
Proof of Theorem 2112 We start computing the derivative of the Wronskian function
W prime12 =(y1 yprime2 minus yprime1 y2
)prime= y1 y
primeprime2 minus yprimeprime1 y2
Recall that both y1 and y2 are solutions to Eq (216) meaning
yprimeprime1 = minusa1 yprime1 minus a0 y1 yprimeprime2 = minusa1 yprime2 minus a0 y2Replace these expressions in the formula for W prime12 above
W prime12 = y1(minusa1 yprime2 minus a0 y2
)minus(minusa1 yprime1 minus a0 y1
)y2 rArr W prime12 = minusa1
(y1 yprime2 minus yprime1 y2
)So we obtain the equation
W prime12 + a1(t) W12 = 0
This equation for W12 is a first order linear equation its solution can be found using themethod of integrating factors given in Section 11 which results is the expression in theTheorem 2112 This establishes the Theorem
We now show one application of Abelrsquos Theorem
Example 2111 Find the Wronskian of two solutions of the equation
t2 yprimeprime minus t(t+ 2) yprime + (t+ 2) y = 0 t gt 0
Solution Notice that we do not known the explicit expression for the solutions Neverthe-less Theorem 2112 says that we can compute their Wronskian First we have to rewritethe differential equation in the form given in that Theorem namely
yprimeprime minus(2
t+ 1)yprime +
( 2
t2+
1
t
)y = 0
82 G NAGY ndash ODE november 29 2017
Then Theorem 2112 says that the Wronskian satisfies the differential equation
W prime12(t)minus(2
t+ 1)W12(t) = 0
This is a first order linear equation for W12 so its solution can be computed using themethod of integrating factors That is first compute the integral
minusint t
t0
(2
s+ 1)ds = minus2 ln
( tt0
)minus (tminus t0)
= ln( t20t2
)minus (tminus t0)
Then the integrating factor micro is given by
micro(t) =t20t2eminus(tminust0)
which satisfies the condition micro(t0) = 1 So the solution W12 is given by(micro(t)W12(t)
)prime= 0 rArr micro(t)W12(t)minus micro(t0)W12(t0) = 0
so the solution is
W12(t) = W12(t0)t2
t20e(tminust0)
If we call the constant c = W12(t0)[t20et0 ] then the Wronskian has the simpler form
W12(t) = c t2et
C
We now state and prove the statement we need to complete the proof of Theorem 217
Theorem 2113 (Wronskian II) If y1 y2 are fundamental solutions of L(y) = 0 on I sub Rthen W12(t) 6= 0 on I
Remark Instead of proving the Theorem above we prove an equivalent statementmdashthenegative statement
Corollary 2114 (Wronskian II) If y1 y2 are solutions of L(y) = 0 on I sub R and thereis a point t1 isin I such that W12(t1) = 0 then y1 y2 are linearly dependent on I
Proof of Corollary 2114 We know that y1 y2 are solutions of L(y) = 0 Then AbelrsquosTheorem says that their Wronskian W12 is given by
W12(t) = W 12(t0) eminusA1(t)
for any t0 isin I Chossing the point t0 to be t1 the point where by hypothesis W12(t1) = 0we get that
W12(t) = 0 for all t isin IKnowing that the Wronskian vanishes identically on I we can write
y1 yprime2 minus yprime1 y2 = 0
on I If either y1 or y2 is the function zero then the set is linearly dependent So wecan assume that both are not identically zero Letrsquos assume there exists t1 isin I such that
G NAGY ndash ODE November 29 2017 83
y1(t1) 6= 0 By continuity y1 is nonzero in an open neighborhood I1 sub I of t1 So in thatneighborhood we can divide the equation above by y2
1
y1 yprime2 minus yprime1 y2y21
= 0 rArr(y2y1
)prime= 0 rArr y2
y1= c on I1
where c isin R is an arbitrary constant So we conclude that y1 is proportional to y2 on theopen set I1 That means that the function y(t) = y2(t)minus c y1(t) satisfies
L(y) = 0 y(t1) = 0 yprime(t1) = 0
Therefore the existence and uniqueness Theorem 212 says that y(t) = 0 for all t isin I Thisfinally shows that y1 and y2 are linearly dependent This establishes the Theorem
84 G NAGY ndash ODE november 29 2017
216 Exercises
211- Find the constants c and k such thatthe function y(t) = c tk is solution of
minust3 y + t2 y + 4t y = 1
212- Let y(t) = c1 t+ c2 t2 be the general
solution of a second order linear differ-ential equation L(y) = 0 By eliminat-ing the constants c1 and c2 find the dif-ferential equation satisfied by y
213- (a) Verify that y1(t) = t2 andy2(t) = 1t are solutions to the dif-ferential equation
t2yprimeprime minus 2y = 0 t gt 0
(b) Show that y(t) = a t2 +b
tis so-
lution of the same equation for allconstants a b isin R
214- Find the longest interval where thesolution y of the initial value problemsbelow is defined (Do not try to solvethe differential equations)
(a) t2yprimeprime + 6y = 2t y(1) = 2 yprime(1) = 3(b) (t minus 6)yprime + 3typrime minus y = 1 y(3) =minus1 yprime(3) = 2
215- If the graph of y solution to a sec-ond order linear differential equationL(y(t)) = 0 on the interval [a b] is tan-gent to the t-axis at any point t0 isin [a b]then find the solution y explicitly
216- Can the function y(t) = sin(t2) besolution on an open interval containingt = 0 of a differential equation
yprimeprime + a(t) yprime + b(t)y = 0
with continuous coefficients a and bExplain your answer
217- Compute the Wronskian of the fol-lowing functions
(a) f(t) = sin(t) g(t) = cos(t)(b) f(x) = x g(x) = x ex
(c) f(θ) = cos2(θ) g(θ) = 1 + cos(2θ)
218- Verify whether the functions y1 y2below are a fundamental set for the dif-ferential equations given below
(a) y1(t) = cos(2t) y2(t) = sin(2t)
yprimeprime + 4y = 0
(b) y1(t) = et y2(t) = t et
yprimeprime minus 2yprime + y = 0
(c) y1(x) = x y2(t) = x ex
x2 yprimeprime minus 2x(x+ 2) yprime + (x+ 2) y = 0
219- If the Wronskian of any two solu-tions of the differential equation
yprimeprime + p(t) yprime + q(t) y = 0
is constant what does this imply aboutthe coefficients p and q
2110- Suppose y1 is solution of the IVP
yprimeprime1 + a1 yprime1 + a0 y1 = 0
y1(0) = 0
yprime1(0) = 5
and y2 is solution of the IVP
yprimeprime1 + a1 yprime1 + a0 y1 = 0
y1(0) = 0
yprime1(0) = 1
that is same differential equation andsame initial condition for the functionbut different initial conditions for thederivatives Then show that the func-tions y1 and y2 must be proportional toeach other
y1(t) = c y2(t)
and find the proportionality factor cHint 1 Theorem 212 says that theinitial value problem
yprimeprime + a1 yprime + a0 y = 0
y(0) = 0
yprime(0) = 0
has a unique solution and it is y(t) = 0for all tHint 2 Find what is the initial valueproblem for the function
yc(t) = y1(t)minus c y2(t)
and fine tune c to use hint 1
G NAGY ndash ODE November 29 2017 85
22 Reduction of Order Methods
Sometimes a solution to a second order differential equation can be obtained solving twofirst order equations one after the other When that happens we say we have reduced theorder of the equation We use the ideas in Chapter 1 to solve each first order equation
In this section we focus on three types of differential equations where such reduction oforder happens The first two cases are usually called special second order equations and thethird case is called the conservation of the energy
We end this section with a method that provides a second solution to a second orderequation if you already know one solution The second solution can be chosen not propor-tional to the first one This idea is called the reduction order methodmdashalthough all fourideas we study in this section do reduce the order of the original equation
221 Special Second Order Equations A second order differential equation is calledspecial when either the function or its first derivative or the independent variable doesnot appear explicitly in the equation In these cases the second order equation can betransformed into a first order equation for a new function The transformation to getthe new function is different in each case Then one solves the first order equation andtransforms back solving another first order equation to get the original function We startwith a few definitions
Definition 221 A second order equation in the unknown function y is an equation
yprimeprime = f(t y yprime)
where the function f R3 rarr R is given The equation is linear iff function f is linear inboth arguments y and yprime The second order differential equation above is special iff one ofthe following conditions hold
(a) yprimeprime = f(tZZy yprime) the function y does not appear explicitly in the equation
(b) yprimeprime = f(Zt y yprime) the variable t does not appear explicitly in the equation
(c) yprimeprime = f(Zt yyprime ) the variable t the function yprime do not appear explicitly in the equation
It is simpler to solve special second order equations when the function y is missingcase (a) than when the variable t is missing case (b) as it can be seen by comparingTheorems 222 and 223 The case (c) is well known in physics since it applies to Newtonrsquossecond law of motion in the case that the force on a particle depends only on the positionof the particle In such a case one can show that the energy of the particle is conserved
Let us start with case (a)
Theorem 222 (Function y Missing) If a second order differential equation has the formyprimeprime = f(t yprime) then v = yprime satisfies the first order equation vprime = f(t v)
The proof is trivial so we go directly to an example
Example 221 Find the y solution of the second order nonlinear equation yprimeprime = minus2t (yprime)2
with initial conditions y(0) = 2 yprime(0) = minus1
Solution Introduce v = yprime Then vprime = yprimeprime and
vprime = minus2t v2 rArr vprime
v2= minus2t rArr minus1
v= minust2 + c
So1
yprime= t2 minus c that is yprime =
1
t2 minus c The initial condition implies
minus1 = yprime(0) = minus1
crArr c = 1 rArr yprime =
1
t2 minus 1
86 G NAGY ndash ODE november 29 2017
Then y =
intdt
t2 minus 1+ c We integrate using the method of partial fractions
1
t2 minus 1=
1
(tminus 1)(t+ 1)=
a
(tminus 1)+
b
(t+ 1)
Hence 1 = a(t+ 1) + b(tminus 1) Evaluating at t = 1 and t = minus1 we get a =1
2 b = minus1
2 So
1
t2 minus 1=
1
2
[ 1
(tminus 1)minus 1
(t+ 1)
]
Therefore the integral is simple to do
y =1
2
(ln |tminus 1| minus ln |t+ 1|
)+ c 2 = y(0) =
1
2(0minus 0) + c
We conclude y =1
2
(ln |tminus 1| minus ln |t+ 1|
)+ 2 C
The case (b) is way more complicated to solve
Theorem 223 (Variable t Missing) If the initial value problem
yprimeprime = f(y yprime) y(0) = y0 yprime(0) = y1
has an invertible solution y then the function
w(y) = v(t(y))
where v(t) = yprime(t) and t(y) is the inverse of y(t) satisfies the initial value problem
w =f(y w)
w w(y0) = y1
where we denoted w =dw
dy
Remark The proof is based on the chain rule for the derivative of functions
Proof of Theorem 223 The differential equation is yprimeprime = f(y yprime) Denoting v(t) = yprime(t)
vprime = f(y v)
It is not clear how to solve this equation since the function y still appears in the equationOn a domain where y is invertible we can do the following Denote t(y) the inverse valuesof y(t) and introduce w(y) = v(t(y)) The chain rule implies
w(y) =dw
dy
∣∣∣y
=dv
dt
∣∣∣t(y)
dt
dy
∣∣∣t(y)
=vprime(t)
yprime(t)
∣∣∣t(y)
=vprime(t)
v(t)
∣∣∣t(y)
=f(y(t) v(t))
v(t)
∣∣∣t(y)
=f(y w(y))
w(y)
where w(y) =dw
dy and vprime(t) =
dv
dt Therefore we have obtained the equation for w namely
w =f(y w)
wFinally we need to find the initial condition fro w Recall that
y(t = 0) = y0 hArr t(y = y0) = 0
yprime(t = 0) = y1 hArr v(t = 0) = y1
Thereforew(y = y0) = v(t(y = y0)) = v(t = 0) = y1 rArr w(y0) = y1
This establishes the Theorem
G NAGY ndash ODE November 29 2017 87
Example 222 Find a solution y to the second order equation yprimeprime = 2y yprime
Solution The variable t does not appear in the equation So we start introduciong thefunction v(t) = yprime(t) The equation is now given by vprime(t) = 2y(t) v(t) We look for invertiblesolutions y then introduce the function w(y) = v(t(y)) This function satisfies
w(y) =dw
dy=(dvdt
dt
dy
)∣∣∣t(y)
=vprime
yprime
∣∣∣t(y)
=vprime
v
∣∣∣t(y)
Using the differential equation
w(y) =2yv
v
∣∣∣t(y)
rArr dw
dy= 2y rArr w(y) = y2 + c
Since v(t) = w(y(t)) we get v(t) = y2(t) + c This is a separable equation
yprime(t)
y2(t) + c= 1
Since we only need to find a solution of the equation and the integral depends on whetherc gt 0 c = 0 c lt 0 we choose (for no special reason) only one case c = 1int
dy
1 + y2=
intdt+ c0 rArr arctan(y) = t+ c0y(t) = tan(t+ c0)
Again for no reason we choose c0 = 0 and we conclude that one possible solution to ourproblem is y(t) = tan(t) C
Example 223 Find the solution y to the initial value problem
y yprimeprime + 3(yprime)2 = 0 y(0) = 1 yprime(0) = 6
Solution We start rewriting the equation in the standard form
yprimeprime = minus3(yprime)2
y
The variable t does not appear explicitly in the equation so we introduce the functionv(t) = yprime(t) The differential equation now has the form vprime(t) = minus3v2(t)y(t) We look forinvertible solutions y and then we introduce the function w(y) = v(t(y)) Because of thechain rule for derivatives this function satisfies
w(y) =dw
dy(y) =
(dvdt
dt
dy
)∣∣∣t(y)
=vprime
yprime
∣∣∣t(y)
=vprime
v
∣∣∣t(y)
rArr w(y) =vprime(t(y))
w(y)
Using the differential equation on the factor vprime we get
w(y) =minus3v2(t(y))
y
1
w=minus3w2
ywrArr w =
minus3w
y
This is a separable equation for function w The problem for w also has initial conditionswhich can be obtained from the initial conditions from y Recalling the definition of inversefunction
y(t = 0) = 1 hArr t(y = 1) = 0
Therefore
w(y = 1) = v(t(y = 1)) = v(0) = yprime(0) = 6
where in the last step above we use the initial condition yprime(0) = 6 Summarizing the initialvalue problem for w is
w =minus3w
y w(1) = 6
88 G NAGY ndash ODE november 29 2017
The equation for w is separable so the method from sect 13 implies that
ln(w) = minus3 ln(y) + c0 = ln(yminus3) + c0 rArr w(y) = c1 yminus3 c1 = ec0
The initial condition fixes the constant c1 since
6 = w(1) = c1 rArr w(y) = 6 yminus3
We now transform from w back to v as follows
v(t) = w(y(t)) = 6 yminus3(t) rArr yprime(t) = 6yminus3(t)
This is now a first order separable equation for y Again the method from sect 13 imply that
y3 yprime = 6 rArr y4
4= 6t+ c2
The initial condition for y fixes the constant c2 since
1 = y(0) rArr 1
4= 0 + c2 rArr y4
4= 6t+
1
4
So we conclude that the solution y to the initial value problem is
y(t) = (24t+ 1)4
C
222 Conservation of the Energy We now study case (c) in Def 221mdashsecond orderdifferential equations such that both the variable t and the function yprime do not appear ex-plicitly in the equation This case is important in Newtonian mechanics For that reasonwe slightly change notation we use to write the differential equation Instead of writing theequation as yprimeprime = f(y) as in Def 221 we write it as
myprimeprime = f(y)
where m is a constant This notation matches the notation of Newtonrsquos second law of motionfor a particle of mass m with position function y as function of time t acting under a forcef that depends only on the particle position y
It turns out that solutions to the differential equation above have a particular propertyThere is a function of yprime and y called the energy of the system that remains conservedduring the motion We summarize this result in the statement below
Theorem 224 (Conservation of the Energy) Consider a particle with positive mass mand position y function of time t which is a solution of Newtonrsquos second law of motion
myprimeprime = f(y)
with initial conditions y(t0) = y0 and yprime(t0) = v0 where f(y) is the force acting on theparticle at the position y Then the position function y satisfies
1
2mv2 + V (y) = E0
where E0 = 12mv
20 + V (y0) is fixed by the initial conditions v(t) = yprime(t) is the particle
velocity and V is the potential of the force fmdashthe negative of the primitive of f that is
V (y) = minusintf(y) dy hArr f = minusdV
dy
G NAGY ndash ODE November 29 2017 89
Remark The term T (v) = 12mv
2 is the kinetic energy of the particle The term V (y) isthe potential energy The Theorem above says that the total mechanical energy
E = T (v) + V (y)
remains constant during the motion of the particle
Proof of Theorem 224 We write the differential equation using the potential V
myprimeprime = minusdVdy
Multiply the equation above by yprime
myprime(t) yprimeprime(t) = minusdVdy
yprime(t)
Use the chain rule on both sides of the equation above
d
dt
(1
2m (yprime)2
)= minus d
dtV (y(t))
Introduce the velocity v = yprime and rewrite the equation above as
d
dt
(1
2mv2 + V (y)
)= 0
This means that the quantity
E(y v) =1
2mv2 + V (y)
called the mechanical energy of the system remains constant during the motion Thereforeit must match its value at the initial time t0 which we called E0 in the Theorem So wearrive to the equation
E(y v) =1
2mv2 + V (y) = E0
This establishes the Theorem
Example 224 Find the potential energy and write the energy conservation for the fol-lowing systems
(i) A particle attached to a spring with constant k moving in one space dimension(ii) A particle moving vertically close to the Earth surface under Earthrsquos constant gravita-
tional acceleration In this case the force on the particle having mass m is f(y) = mgwhere g = 981 ms2
(iii) A particle moving along the direction vertical to the surface of a spherical planet withmass M and radius R
SolutionCase (i) The force on a particle of mass m attached to a spring with spring constantk gt 0 when displaced an amount y from the equilibrium position y = 0 is f(y) = minuskyTherefore Newtonrsquos second law of motion says
myprimeprime = minusky
The potential in this case is V (y) = 12ky
2 since minusdVdy = minusky = f If we introduce theparticle velocity v = yprime then the total mechanical energy is
E(y v) =1
2mv2 +
1
2ky2
90 G NAGY ndash ODE november 29 2017
The conservation of the energy says that
1
2mv2 +
1
2ky2 = E0
where E0 is the energy at the initial time
Case (ii) Newtonrsquos equation of motion says myprimeprime = mg If we multiply Newtonrsquosequation by yprime we get
myprime yprimeprime = mg yprime rArr d
dt
(1
2m (yprime)2 +mg y
)= 0
If we introduce the the gravitational energy
E(y v) =1
2mv2 +mgy
where v = yprime then Newtonrsquos law saysdE
dt= 0 so the total gravitational energy is constant
1
2mv2 +mgy = E(0)
Case (iii) Consider a particle of mass m moving on a line which is perpendicular to thesurface of a spherical planet of mass M and radius R The force on such a particle when isat a distance y from the surface of the planet is according to Newtonrsquos gravitational law
f(y) = minus GMm
(R+ y)2
where G = 667times 10minus11 m3
s2 Kg is Newtonrsquos gravitational constant The potential is
V (y) = minus GMm
(R+ y)
since minusdVdy = f(y) The energy for this system is
E(y v) =1
2mv2 minus GMm
(R+ y)
where we introduced the particle velocity v = yprime The conservation of the energy says that
1
2mv2 minus GMm
(R+ y)= E0
where E0 is the energy at the initial time C
Example 225 Find the maximum height of a ball of mass m = 01 Kg that is shotvertically by a spring with spring constant k = 400 Kgs2 and compressed 01 m Useg = 10 ms2
Solution This is a difficult problem to solve if one tries to find the position function y andevaluate it at the time when its speed vanishesmdashmaximum altitude One has to solve twodifferential equations for y one with source f1 = minuskyminusmg and other with source f2 = minusmgand the solutions must be glued together The first source describes the particle when ispushed by the spring under the Earthrsquos gravitational force The second source describesthe particle when only the Earthrsquos gravitational force is acting on the particle Also themoment when the ball leaves the spring is hard to describe accurately
G NAGY ndash ODE November 29 2017 91
A simpler method is to use the conservation of the mechanical and gravitational energyThe energy for this particle is
E(t) =1
2mv2 +
1
2ky2 +mgy
This energy must be constant along the movement In particular the energy at the initialtime t = 0 must be the same as the energy at the time of the maximum height tM
E(t = 0) = E(tM) rArr 1
2mv2
0 +1
2ky2
0 +mgy0 =1
2mv2
M +mgyM
But at the initial time we have v0 = 0 and y0 = minus01 (the negative sign is because thespring is compressed) and at the maximum time we also have vM = 0 hence
1
2ky2
0 +mgy0 = mgyM rArr yM = y0 +k
2mgy20
We conclude that yM = 19 m C
Example 226 Find the escape velocity from Earthmdashthe initial velocity of a projec-tile moving vertically upwards starting from the Earth surface such that it escapes Earthgravitational attraction Recall that the acceleration of gravity at the surface of Earth isg = GMR2 = 981 ms2 and that the radius of Earth is R = 6378 Km Here M denotesthe mass of the Earth and G is Newtonrsquos gravitational constant
Solution The projectile moves in the vertical direction so the movement is along onespace dimension Let y be the position of the projectile with y = 0 at the surface of theEarth Newtonrsquos equation in this case is
myprimeprime = minus GMm
(R+ y)2
We start rewriting the force using the constant g instead of G
minus GMm
(R+ y)2= minusGM
R2
mR2
(R+ y)2= minus gmR2
(R+ y)2
So the equation of motion for the projectile is
myprimeprime = minus gmR2
(R+ y)2
The projectile mass m can be canceled from the equation above (we do it later) so the resultwill be independent of the projectile mass Now we introduce the gravitational potential
V (y) = minus gmR2
(R+ y)
We know that the motion of this particle satisfies the conservation of the energy
1
2mv2 minus gmR2
(R+ y)= E0
where v = yprime The initial energy is simple to compute y(0) = 0 and v(0) = v0 so we get
1
2mv2(t)minus gmR2
(R+ y(t))=
1
2mv2
0 minus gmR
We now cancel the projectile mass from the equation and we rewrite the equation as
v2(t) = v20 minus 2gR+
2gR2
(R+ y(t))
92 G NAGY ndash ODE november 29 2017
Now we choose the initial velocity v0 to be the escape velocity ve The latter is the smallestinitial velocity such that v(t) is defined for all y including y rarrinfin Since
v2(t) gt 0 and2gR2
(R+ y(t))gt 0
this means that the escape velocity must satisfy
v2e minus 2gR gt 0
Since the escape velocity is the smallest velocity satisfying the condition above that means
ve =radic
2gR rArr ve = 112 Kms
C
Example 227 Find the time tM for a rocket to reach the Moon if it is launched atthe escape velocity Use that the distance from the surface of the Earth to the Moon isd = 405 696 Km
Solution From Example 226 we know that the position function y of the rocket satisfiesthe differential equation
v2(t) = v20 minus 2gR+
2gR2
(R+ y(t))
where R is the Earth radius g the gravitational acceleration at the Earth surface v = yprimeand v0 is the initial velocity Since the rocket initial velocity is the Earth escape velocityv0 = ve =
radic2gR the differential equation for y is
(yprime)2 =2gR2
(R+ y)rArr yprime =
radic2g RradicR+ y
where we chose the positive square root because in our coordinate system the rocket leavingEarth means v gt 0 Now the last equation above is a separable differential equation for yso we can integrate it
(R+ y)12 yprime =radic
2g R rArr 2
3(R+ y)32 =
radic2g R t+ c
where c is a constant which can be determined by the initial condition y(t = 0) = 0 sinceat the initial time the projectile is on the surface of the Earth the origin of out coordinatesystem With this initial condition we get
c =2
3R32 rArr 2
3(R+ y)32 =
radic2g R t+
2
3R32 (221)
From the equation above we can compute an explicit form of the solution function y
y(t) =(3
2
radic2g R t+R32
)23
minusR (222)
To find the time to reach the Moon we need to evaluate Eq (221) for y = d and get tM
2
3(R+ d)32 =
radic2g R tM +
2
3R32 rArr tM =
2
3
1radic2g R
((R+ d)32 minusR23
)
The formula above gives tM = 515 hours C
G NAGY ndash ODE November 29 2017 93
223 The Reduction of Order Method If we know one solution to a second orderlinear homogeneous differential equation then one can find a second solution to that equa-tion And this second solution can be chosen to be not proportional to the known solutionOne obtains the second solution transforming the original problem into solving two firstorder differential equations
Theorem 225 (Reduction of Order) If a nonzero function y1 is solution to
yprimeprime + a1(t) yprime + a0(t) y = 0 (223)
where a1 a0 are given functions then a second solution not proportional to y1 is
y2(t) = y1(t)
inteminusA1(t)
y21 (t)
dt (224)
where A1(t) =inta1(t) dt
Remark In the first part of the proof we write y2(t) = v(t) y1(t) and show that y2 issolution of Eq (223) iff the function v is solution of
vprimeprime +(
2yprime1(t)
y1(t)+ a1(t)
)vprime = 0 (225)
In the second part we solve the equation for v This is a first order equation for for w = vprimesince v itself does not appear in the equation hence the name reduction of order methodThe equation for w is linear and first order so we can solve it using the integrating factormethod One more integration gives v which is the factor multiplying y1 in Eq (224)
Remark The functions v and w in this subsection have no relation with the functions vand w from the previous subsection
Proof of Theorem 225 We write y2 = vy1 and we put this function into the differentialequation in 223 which give us an equation for v To start compute yprime2 and yprimeprime2
yprime2 = vprime y1 + v yprime1 yprimeprime2 = vprimeprime y1 + 2vprime yprime1 + v yprimeprime1
Introduce these equations into the differential equation
0 = (vprimeprime y1 + 2vprime yprime1 + v yprimeprime1 ) + a1 (vprime y1 + v yprime1) + a0v y1
= y1 vprimeprime + (2yprime1 + a1 y1) v
prime + (yprimeprime1 + a1 yprime1 + a0 y1) v
The function y1 is solution to the differential original differential equation
yprimeprime1 + a1 yprime1 + a0 y1 = 0
then the equation for v is given by
y1 vprimeprime + (2yprime1 + a1 y1) v
prime = 0 rArr vprimeprime +(
2yprime1y1
+ a1
)vprime = 0
This is Eq (225) The function v does not appear explicitly in this equation so denotingw = vprime we obtain
wprime +(
2yprime1y1
+ a1
)w = 0
This is is a first order linear equation for w so we solve it using the integrating factormethod with integrating factor
micro(t) = y21 (t) eA1(t) where A1(t) =
inta1(t) dt
94 G NAGY ndash ODE november 29 2017
Therefore the differential equation for w can be rewritten as a total t-derivative as(y21 e
A1 w)prime
= 0 rArr y21 e
A1 w = w0 rArr w(t) = w0eminusA1(t)
y21 (t)
Since vprime = w we integrate one more time with respect to t to obtain
v(t) = w0
inteminusA1(t)
y21 (t)
dt+ v0
We are looking for just one function v so we choose the integration constants w0 = 1 andv0 = 0 We then obtain
v(t) =
inteminusA1(t)
y21 (t)
dt rArr y2(t) = y1(t)
inteminusA1(t)
y21 (t)
dt
For the furthermore part we now need to show that the functions y1 and y2 = vy1 arelinearly independent We start computing their Wronskian
W12 =
∣∣∣∣y1 vy1yprime1 (vprimey1 + vyprime1)
∣∣∣∣ = y1(vprimey1 + vyprime1)minus vy1yprime1 rArr W12 = vprimey2
1
Recall that above in this proof we have computed vprime = w and the result was w = w0 eminusA1y2
1 So we get vprimey2
1 = w0 eminusA1 and then the Wronskian is given by
W12 = w0 eminusA1
This is a nonzero function therefore the functions y1 and y2 = vy1 are linearly independentThis establishes the Theorem
Example 228 Find a second solution y2 linearly independent to the solution y1(t) = t ofthe differential equation
t2yprimeprime + 2typrime minus 2y = 0
Solution We look for a solution of the form y2(t) = t v(t) This implies that
yprime2 = t vprime + v yprimeprime2 = t vprimeprime + 2vprime
So the equation for v is given by
0 = t2(t vprimeprime + 2vprime
)+ 2t
(t vprime + v
)minus 2t v
= t3 vprimeprime + (2t2 + 2t2) vprime + (2tminus 2t) v
= t3 vprimeprime + (4t2) vprime rArr vprimeprime +4
tvprime = 0
Notice that this last equation is precisely Eq () since in our case we have
y1 = t p(t) =2
trArr t vprimeprime +
[2 +
2
tt]vprime = 0
The equation for v is a first order equation for w = vprime given by
wprime
w= minus4
trArr w(t) = c1t
minus4 c1 isin R
Therefore integrating once again we obtain that
v = c2tminus3 + c3 c2 c3 isin R
and recalling that y2 = t v we then conclude that
y2 = c2tminus2 + c3t
G NAGY ndash ODE November 29 2017 95
Choosing c2 = 1 and c3 = 0 we obtain that y2(t) = tminus2 Therefore a fundamental solutionset to the original differential equation is given by
y1(t) = t y2(t) =1
t2
C
96 G NAGY ndash ODE november 29 2017
224 Exercises
221- Consider the differential equation
t2 yprimeprime + 3t yprime minus 3 = 0 t gt 0
with initial conditions
y(1) = 3 yprime(1) =3
2
(a) Find the initial value problem sat-isfied by v(t) = yprime(t)
(b) Solve the differential equation for v(c) Find the solution y of the differen-
tial equation above
222- Consider the differential equation
y yprimeprime + 3 (yprime)2 = 0
with initial conditions
y(0) = 1 yprime(0) = 5
(a) Find the differential equation sat-isfied by w(y) = v(t(y)) wherev(t) = yprime(t)
(b) Find the initial condition satisfiedby the function w
(c) Solve the initial value problem forthe function w
(d) Use the solution w found above toset up a first order initial valueproblem for y
(e) Find the solution y of the differen-tial equation above
223- Solve the differential equation
yprimeprime = minus yprime
y7
with initial conditions
y(0) = 1 yprime(0) =1
6
224- Use the reduction order method tofind a second solution y2 to the differ-ential equation
t2 yprimeprime + 8t yprime + 12 y = 0
knowing that y1(t) = 1t3 is a solutionThe second solution y2 must not containany term proportional to y1
225- Use the reduction order method tofind a solution y2 of the equation
t2 yprimeprime + 2t yprime minus 6 y = 0
knowing that y1 = t2 is a solution tothis equation
(a) Write y2 = v y1 and find yprime2 and yprimeprime2 (b) Find the differential equation for v(c) Solve the differential equation for v
and find the general solution(d) Choose the simplest function v such
that y2 and y1 are fundamental so-lutions of the differential equationabove
G NAGY ndash ODE November 29 2017 97
23 Homogenous Constant Coefficients Equations
All solutions to a second order linear homogeneous equation can be obtained from anypair of nonproportional solutions This is the main idea given in sect 21 Theorem 217 Inthis section we obtain these two linearly independent solutions in the particular case thatthe equation has constant coefficients Such problem reduces to solve for the roots of adegree-two polynomial the characteristic polynomial
231 The Roots of the Characteristic Polynomial Thanks to the work done in sect 21we only need to find two linearly independent solutions to second order linear homogeneousequations Then Theorem 217 says that every other solution is a linear combination of theformer two How do we find any pair of linearly independent solutions Since the equationis so simple having constant coefficients we find such solutions by trial and error Here isan example of this idea
Example 231 Find solutions to the equation
yprimeprime + 5yprime + 6y = 0 (231)
Solution We try to find solutions to this equation using simple test functions For exam-ple it is clear that power functions y = tn wonrsquot work since the equation
n(nminus 1) t(nminus2) + 5n t(nminus1) + 6 tn = 0
cannot be satisfied for all t isin R We obtained instead a condition on t This rules outpower functions A key insight is to try with a test function having a derivative proportionalto the original function
yprime(t) = r y(t)
Such function would be simplified from the equation For example we try now with thetest function y(t) = ert If we introduce this function in the differential equation we get
(r2 + 5r + 6) ert = 0 hArr r2 + 5r + 6 = 0 (232)
We have eliminated the exponential and any t dependence from the differential equationand now the equation is a condition on the constant r So we look for the appropriate valuesof r which are the roots of a polynomial degree two
rplusmn =1
2
(minus5plusmn
radic25minus 24
)=
1
2(minus5plusmn 1) rArr
r+ = minus2
rminus = minus3
We have obtained two different roots which implies we have two different solutions
y1(t) = eminus2t y2(t) = eminus3t
These solutions are not proportional to each other so the are fundamental solutions to thedifferential equation in (231) Therefore Theorem 217 in sect 21 implies that we have foundall possible solutions to the differential equation and they are given by
y(t) = c1eminus2t + c2e
minus3t c1 c2 isin R (233)
C
From the example above we see that this idea will produce fundamental solutions toall constant coefficients homogeneous equations having associated polynomials with twodifferent roots Such polynomial play an important role to find solutions to differentialequations as the one above so we give such polynomial a name
98 G NAGY ndash ODE november 29 2017
Definition 231 The characteristic polynomial and characteristic equation of thesecond order linear homogeneous equation with constant coefficients
yprimeprime + a1yprime + a0y = 0
are given by
p(r) = r2 + a1r + a0 p(r) = 0
As we saw in Example 231 the roots of the characteristic polynomial are crucial toexpress the solutions of the differential equation above The characteristic polynomial is asecond degree polynomial with real coefficients and the general expression for its roots is
rplusmn =1
2
(minusa1 plusmn
radica21 minus 4a0
)
If the discriminant (a21 minus 4a0) is positive zero or negative then the roots of p are different
real numbers only one real number or a complex-conjugate pair of complex numbers Foreach case the solution of the differential equation can be expressed in different forms
Theorem 232 (Constant Coefficients) If rplusmn are the roots of the characteristic polynomialto the second order linear homogeneous equation with constant coefficients
yprimeprime + a1yprime + a0y = 0 (234)
and if c+ c- are arbitrary constants then the following statements hold true
(a) If r+ 6= r- real or complex then the general solution of Eq (234) is given by
ygen(t) = c+ er+t + c- e
r-t
(b) If r+ = r- = r0 isin R then the general solution of Eq (234) is given by
ygen(t) = c+ er0t + c- te
r0t
Furthermore given real constants t0 y0 and y1 there is a unique solution to the initial valueproblem given by Eq (234) and the initial conditions y(t0) = y0 and yprime(t0) = y1
Remarks
(a) The proof is to guess that functions y(t) = ert must be solutions for appropriate values ofthe exponent constant r the latter being roots of the characteristic polynomial Whenthe characteristic polynomial has two different roots Theorem 217 says we have allsolutions When the root is repeated we use the reduction of order method to find asecond solution not proportional to the first one
(b) At the end of the section we show a proof where we construct the fundamental solutionsy1 y2 without guessing them We do not need to use Theorem 217 in this second proofwhich is based completely in a generalization of the reduction of order method
Proof of Theorem 232 We guess that particular solutions to Eq 234 must be expo-nential functions of the form y(t) = ert because the exponential will cancel out from theequation and only a condition for r will remain This is what happens
r2ert + a1ert + a0e
rt = 0 rArr r2 + a1r + a0 = 0
The second equation says that the appropriate values of the exponent are the root of thecharacteristic polynomial We now have two cases If r+ 6= r- then the solutions
y+(t) = er+t y-(t) = er-t
are linearly independent so the general solution to the differential equation is
ygen(t) = c+ er+t + c- e
r-t
G NAGY ndash ODE November 29 2017 99
If r+ = r- = r0 then we have found only one solution y+(t) = er0t and we need to find asecond solution not proportional to y+ This is what the reduction of order method is perfectfor We write the second solution as
y-(t) = v(t) y+(t) rArr y-(t) = v(t) er0t
and we put this expression in the differential equation (234)(vprimeprime + 2r0v
prime + vr20
)er0t +
(vprime + r0v
)a1e
r0t + a0v er0t = 0
We cancel the exponential out of the equation and we reorder terms
vprimeprime + (2r0 + a1) vprime + (r2
0 + a1r0 + a0) v = 0
We now need to use that r0 is a root of the characteristic polynomial r20 + a1r0 + a0 = 0
so the last term in the equation above vanishes But we also need to use that the root r0 isrepeated
r0 = minusa12plusmn 1
2
radica21 minus 4a0 = minusa1
2rArr 2r0 + a1 = 0
The equation on the right side above implies that the second term in the differential equationfor v vanishes So we get that
vprimeprime = 0 rArr v(t) = c1 + c2t
and the second solution is y-(t) = (c1 + c2t) y+(t) If we choose the constant c2 = 0 thefunction y- is proportional to y+ So we definitely want c2 6= 0 The other constant c1 onlyadds a term proportional to y+ we can choose it zero So the simplest choice is c1 = 0c2 = 1 and we get the fundamental solutions
y+(t) = er0t y-(t) = t er0t
So the general solution for the repeated root case is
ygen(t) = c+ er0t + c-t e
r0t
The furthermore part follows from solving a 2times 2 linear system for the unknowns c+ and c-The initial conditions for the case r+ 6= r- are the following
y0 = c+ er+t0 + c- e
r-t0 y1 = r+c+ er+t0 + r-c- e
r-t0
It is not difficult to verify that this system is always solvable and the solutions are
c+ = minus (r-y0 minus y1)(r+ minus r-) er+t0
c- =(r+y0 minus y1)
(r+ minus r-) er-t0
The initial conditions for the case r- = r- = r0 are the following
y0 = (c+ + c-t0) er0t0 y1 = c- e
r0t0 + r0(c+ + c-t0) er0t0
It is also not difficult to verify that this system is always solvable and the solutions are
c+ =y0 + t0(r0y0 minus y1)
er0t0 c- = minus (r0y0 minus y0)
er0t0
This establishes the Theorem
Example 232 Find the solution y of the initial value problem
yprimeprime + 5yprime + 6y = 0 y(0) = 1 yprime(0) = minus1
Solution We know that the general solution of the differential equation above is
ygen(t) = c+eminus2t + c-e
minus3t
100 G NAGY ndash ODE november 29 2017
We now find the constants c+ and c- that satisfy the initial conditions above
1 = y(0) = c+ + c-
minus1 = yprime(0) = minus2c+ minus 3c-
rArr
c+ = 2
c- = minus1
Therefore the unique solution to the initial value problem is
y(t) = 2eminus2t minus eminus3t
C
Example 233 Find the general solution ygen of the differential equation
2yprimeprime minus 3yprime + y = 0
Solution We look for every solutions of the form y(t) = ert where r is solution of thecharacteristic equation
2r2 minus 3r + 1 = 0 rArr r =1
4
(3plusmnradic
9minus 8)rArr
r+ = 1
r- =1
2
Therefore the general solution of the equation above is
ygen(t) = c+et + c-e
t2
C
Example 234 Find the solution to the initial value problem
9yprimeprime + 6yprime + y = 0 y(0) = 1 yprime(0) =5
3
Solution The characteristic polynomial is p(r) = 9r2 + 6r + 1 with roots given by
rplusmn =1
18
(minus6plusmn
radic36minus 36
)rArr r+ = r- = minus1
3
Theorem 232 says that the general solution has the form
ygen(t) = c+ eminust3 + c-t e
minust3
We need to compute the derivative of the expression above to impose the initial conditions
yprimegen(t) = minusc+3eminust3 + c-
(1minus t
3
)eminust3
then the initial conditions imply that
1 = y(0) = c+
5
3= yprime(0) = minusc+
3+ c-
rArr c+ = 1 c- = 2
So the solution to the initial value problem above is y(t) = (1 + 2t) eminust3 C
Example 235 Find the general solution ygen of the equation
yprimeprime minus 2yprime + 6y = 0
Solution We first find the roots of the characteristic polynomial
r2 minus 2r + 6 = 0 rArr rplusmn =1
2
(2plusmnradic
4minus 24)rArr rplusmn = 1plusmn i
radic5
G NAGY ndash ODE November 29 2017 101
Since the roots of the characteristic polnomial are different Theorem 232 says that thegeneral solution of the differential equation above which includes complex-valued solutionscan be written as follows
ygen(t) = c+ e(1+i
radic5)t + c- e
(1minusiradic
5)t c+ c- isin C
C
232 Real Solutions for Complex Roots We study in more detail the solutions tothe differential equation (234) in the case that the characteristic polynomial has complexroots Since these roots have the form
rplusmn = minusa12plusmn 1
2
radica21 minus 4a0
the roots are complex-valued in the case a21 minus 4a0 lt 0 We use the notation
rplusmn = αplusmn iβ with α = minusa12 β =
radica0 minus
a21
4
The fundamental solutions in Theorem 232 are the complex-valued functions
y+ = e(α+iβ)t y- = e(αminusiβ)t
The general solution constructed from these solutions is
ygen(t) = c+ e(α+iβ)t + c- e
(αminusiβ)t c+ c- isin C
This formula for the general solution includes real valued and complex valued solutionsBut it is not so simple to single out the real valued solutions Knowing the real valuedsolutions could be important in physical applications If a physical system is described by adifferential equation with real coefficients more often than not one is interested in findingreal valued solutions For that reason we now provide a new set of fundamental solutionsthat are real valued Using real valued fundamental solution is simple to separate all realvalued solutions from the complex valued ones
Theorem 233 (Real Valued Fundamental Solutions) If the differential equation
yprimeprime + a1 yprime + a0 y = 0 (235)
where a1 a0 are real constants has characteristic polynomial with complex roots rplusmn = αplusmniβand complex valued fundamental solutions
y+(t) = e(α+iβ)t y-(t) = e(αminusiβ)t
then the equation also has real valued fundamental solutions given by
y+(t) = eαt cos(βt) y-(t) = eαt sin(βt)
Proof of Theorem 233 We start with the complex valued fundamental solutions
y+(t) = e(α+iβ)t y-(t) = e(αminusiβ)t
We take the function y+ and we use a property of complex exponentials
y+(t) = e(α+iβ)t = eαt eiβt = eαt(cos(βt) + i sin(βt)
)
where on the last step we used Eulerrsquos formula eiθ = cos(θ)+i sin(θ) Repeat this calculationfor y- we get
y+(t) = eαt(cos(βt) + i sin(βt)
) y-(t) = eαt
(cos(βt)minus i sin(βt)
)
102 G NAGY ndash ODE november 29 2017
If we recall the superposition property of linear homogeneous equations Theorem 215we know that any linear combination of the two solutions above is also a solution of thedifferential equation (236) in particular the combinations
y+(t) =1
2
(y+(t) + y-(t)
) y-(t) =
1
2i
(y+(t)minus y-(t)
)
A straightforward computation gives
y+(t) = eαt cos(βt) y-(t) = eαt sin(βt)
This establishes the Theorem
Example 236 Find the real valued general solution of the equation
yprimeprime minus 2yprime + 6y = 0
Solution We already found the roots of the characteristic polynomial but we do it again
r2 minus 2r + 6 = 0 rArr rplusmn =1
2
(2plusmnradic
4minus 24)rArr rplusmn = 1plusmn i
radic5
So the complex valued fundamental solutions are
y+(t) = e(1+iradic
5) t y-(t) = e(1minusiradic
5) t
Theorem says that real valued fundamental solutions are given by
y+(t) = et cos(radic
5t) y-(t) = et sin(radic
5t)
So the real valued general solution is given by
ygen(t) =(c+ cos(
radic5 t) + c- sin(
radic5 t))et c+ c- isin R
C
Remark Sometimes it is difficult to remember the formula for real valued solutions Oneway to obtain those solutions without remembering the formula is to start repeat the proofof Theorem 233 Start with the complex valued solution y+ and use the properties of thecomplex exponential
y+(t) = e(1+iradic
5)t = et eiradic
5t = et(cos(radic
5t) + i sin(radic
5t))
The real valued fundamental solutions are the real and imaginary parts in that expression
Example 237 Find real valued fundamental solutions to the equation
yprimeprime + 2 yprime + 6 y = 0
Solution The roots of the characteristic polynomial p(r) = r2 + 2r + 6 are
rplusmn =1
2
[minus2plusmn
radic4minus 24
]=
1
2
[minus2plusmn
radicminus20
]rArr rplusmn = minus1plusmn i
radic5
These are complex-valued roots with
α = minus1 β =radic
5
Real-valued fundamental solutions are
y1(t) = eminust cos(radic
5 t) y2(t) = eminust sin(radic
5 t)
G NAGY ndash ODE November 29 2017 103
t
y1 y2
eminust
minuseminust
Figure 11 Solutions from Ex 237
Second order differential equations withcharacteristic polynomials having com-plex roots like the one in this exam-ple describe physical processes relatedto damped oscillations An examplefrom physics is a pendulums with fric-tion C
Example 238 Find the real valued general solution of yprimeprime + 5 y = 0
Solution The characteristic polynomial is p(r) = r2 + 5 with roots rplusmn = plusmnradic
5 i In this
case α = 0 and β =radic
5 Real valued fundamental solutions are
y+(t) = cos(radic
5 t) y-(t) = sin(radic
5 t)
The real valued general solution is
ygen(t) = c+ cos(radic
5 t) + c- sin(radic
5 t) c+ c- isin RC
Remark Physical processes that oscillate in time without dissipation could be describedby differential equations like the one in this example
233 Constructive Proof of Theorem 232 We now present an alternative proof forTheorem 232 that does not involve guessing the fundamental solutions of the equationInstead we construct these solutions using a generalization of the reduction of order method
Proof of Theorem 232 The proof has two main parts First we transform the originalequation into an equation simpler to solve for a new unknown second we solve this simplerproblem
In order to transform the problem into a simpler one we express the solution y as aproduct of two functions that is y(t) = u(t)v(t) Choosing v in an appropriate way theequation for u will be simpler to solve than the equation for y Hence
y = uv rArr yprime = uprimev + vprimeu rArr yprimeprime = uprimeprimev + 2uprimevprime + vprimeprimeu
Therefore Eq (234) implies that
(uprimeprimev + 2uprimevprime + vprimeprimeu) + a1 (uprimev + vprimeu) + a0 uv = 0
that is [uprimeprime +
(a1 + 2
vprime
v
)uprime + a0 u
]v + (vprimeprime + a1 v
prime)u = 0 (236)
We now choose the function v such that
a1 + 2vprime
v= 0 hArr vprime
v= minusa1
2 (237)
We choose a simple solution of this equation given by
v(t) = eminusa1t2
Having this expression for v one can compute vprime and vprimeprime and it is simple to check that
vprimeprime + a1vprime = minusa
21
4v (238)
104 G NAGY ndash ODE november 29 2017
Introducing the first equation in (237) and Eq (238) into Eq (236) and recalling thatv is non-zero we obtain the simplified equation for the function u given by
uprimeprime minus k u = 0 k =a21
4minus a0 (239)
Eq (239) for u is simpler than the original equation (234) for y since in the former thereis no term with the first derivative of the unknown function
In order to solve Eq (239) we repeat the idea followed to obtain this equation thatis express function u as a product of two functions and solve a simple problem of one ofthe functions We first consider the harder case which is when k 6= 0 In this case let us
express u(t) = eradickt w(t) Hence
uprime =radickeradickt w + e
radickt wprime rArr uprimeprime = ke
radickt w + 2
radickeradickt wprime + e
radickt wprimeprime
Therefore Eq (239) for function u implies the following equation for function w
0 = uprimeprime minus ku = eradickt (2radick wprime + wprimeprime) rArr wprimeprime + 2
radickwprime = 0
Only derivatives of w appear in the latter equation so denoting x(t) = wprime(t) we have tosolve a simple equation
xprime = minus2radick x rArr x(t) = x0e
minus2radickt x0 isin R
Integrating we obtain w as follows
wprime = x0eminus2radickt rArr w(t) = minus x0
2radickeminus2radickt + c0
renaming c1 = minusx0(2radick) we obtain
w(t) = c1eminus2radickt + c0 rArr u(t) = c0e
radickt + c1e
minusradickt
We then obtain the expression for the solution y = uv given by
y(t) = c0e(minus a12 +
radick)t + c1e
(minus a12 minusradick)t
Since k = (a214minus a0) the numbers
rplusmn = minusa12plusmnradick hArr rplusmn =
1
2
(minusa1 plusmn
radica21 minus 4a0
)are the roots of the characteristic polynomial
r2 + a1 r + a0 = 0
we can express all solutions of the Eq (234) as follows
y(t) = c0er+t + c1e
r-t k 6= 0
Finally consider the case k = 0 Then Eq (239) is simply given by
uprimeprime = 0 rArr u(t) = (c0 + c1t) c0 c1 isin R
Then the solution y to Eq (234) in this case is given by
y(t) = (c0 + c1t) eminusa1t2
Since k = 0 the characteristic equation r2+a1 r+a0 = 0 has only one root r+ = rminus = minusa12so the solution y above can be expressed as
y(t) = (c0 + c1t) er+t k = 0
The Furthermore part is the same as in Theorem 232 This establishes the Theorem
G NAGY ndash ODE November 29 2017 105
Notes
(a) In the case that the characteristic polynomial of a differential equation has repeatedroots there is an interesting argument to guess the solution y- The idea is to take aparticular type of limit in solutions of differential equations with complex valued roots
Consider the equation in (234) with a characteristic polynomial having complexvalued roots given by rplusmn = αplusmn iβ with
α = minusa12 β =
radica0 minus
a21
4
Real valued fundamental solutions in this case are given by
y+ = eα t cos(βt) y- = eα t sin(βt)
We now study what happen to these solutions y+ and y- in the following limit Thevariable t is held constant α is held constant and β rarr 0 The last two conditionsare conditions on the equation coefficients a1 a0 For example we fix a1 and we varya0 rarr a2
14 from aboveSince cos(βt)rarr 1 as β rarr 0 with t fixed then keeping α fixed too we obtain
y+(t) = eα t cos(βt) minusrarr eα t = y+(t)
Sincesin(βt)
βtrarr 1 as β rarr 0 with t constant that is sin(βt)rarr βt we conclude that
y-(t)
β=
sin(βt)
βeα t =
sin(βt)
βtt eα t minusrarr t eα t = y-(t)
The calculation above says that the function y-β is close to the function y-(t) = t eα t inthe limit β rarr 0 t held constant This calculation provides a candidate y-(t) = t y+(t)of a solution to Eq (234) It is simple to verify that this candidate is in fact solution ofEq (234) Since y- is not proportional to y+ one then concludes the functions y+ y- area fundamental set for the differential equation in (234) in the case the characteristicpolynomial has repeated roots
(b) Brief Review of Complex Numbersbull Complex numbers have the form z = a+ ib where i2 = minus1bull The complex conjugate of z is the number z = aminus ibbull Re(z) = a Im(z) = b are the real and imaginary parts of z
bull Hence Re(z) =z + z
2 and Im(z) =
z minus z2i
bull The exponential of a complex number is defined as
ea+ib =
infinsumn=0
(a+ ib)n
n
In particular holds ea+ib = ea eibbull Eulerrsquos formula eib = cos(b) + i sin(b)bull Hence a complex number of the form ea+ib can be written as
ea+ib = ea(cos(b) + i sin(b)
) eaminusib = ea
(cos(b)minus i sin(b)
)
bull From ea+ib and eaminusib we get the real numbers
1
2
(ea+ib + eaminusib
)= ea cos(b)
1
2i
(ea+ib minus eaminusib
)= ea sin(b)
106 G NAGY ndash ODE november 29 2017
234 Exercises
231- Consider the differential equation
yprimeprime minus 7yprime + 12y = 0
(a) Find the roots r+- of the characteris-tic polynomial associated with thedifferential equation
(b) Use the roots r+- above to find fun-damental solutions y+- of the differ-ential equation
(c) Solve the differential equationabove with initial conditions
y(0) = 1 yprime(0) = minus1
232- Consider the differential equation
yprimeprime minus 8yprime + 25y = 0
(a) Find the roots r+- of the characteris-tic polynomial associated with thedifferential equation
(b) Use the roots r+- above to find realvalued fundamental solutions y+- ofthe differential equation
(c) Solve the differential equationabove with initial conditions
y(0) = 2 yprime(0) = 2
233- Consider the differential equation
yprimeprime minus 6yprime + 9y = 0
(a) Find the roots r+- of the characteris-tic polynomial associated with thedifferential equation
(b) Use the roots r+- above to find realvalued fundamental solutions y+- ofthe differential equation
(c) Solve the differential equationabove with initial conditions
y(0) = 1 yprime(0) = 2
234- Consider the differential equation
yprimeprime minus 4yprime + 4y = 0
(a) Find one solution of the formy1(t) = ert
(b) Use the reduction order methodto find a second solution
y2(t) = v(t) y1(t)
First find the differential equationsatisfied by v(t)
(c) Find all solutions v(t) of the differ-ential equation in part (b)
(d) Choose a function v such that theassociated solution y2 does not con-tain any term proportional to y1
G NAGY ndash ODE November 29 2017 107
24 Euler Equidimensional Equation
Second order linear equations with variable coefficients are in general more difficult to solvethan equations with constant coefficients But the Euler equidimensional equation is anexception to this rule The same ideas we used to solve second order linear equations withconstant coefficients can be used to solve Eulerrsquos equidimensional equation Moreover thereis a transformation that converts Eulerrsquos equation into a linear equation
241 The Roots of the Indicial Polynomial The Euler equidimensional equation ap-pears for example when one solves the two-dimensional Laplace equation in polar coordi-nates This happens if one tries to find the electrostatic potential of a two-dimensional chargeconfiguration having circular symmetry The Euler equation is simple to recongnizemdashthecoefficient of each term in the equation is a power of the independent variable that matchesthe order of the derivative in that term
Definition 241 The Euler equidimensional equation for the unknown y with singularpoint at t0 isin R is given by the equation below where a1 and a0 are constants
(tminus t0)2 yprimeprime + a1 (tminus t0) yprime + a0 y = 0
Remarks
(a) This equation is also called Cauchy equidimensional equation Cauchy equation Cauchy-Euler equation or simply Euler equation As George Simmons says in [10] ldquoEulerstudies were so extensive that many mathematicians tried to avoid confusion by namingsubjects after the person who first studied them after Eulerrdquo
(b) The equation is called equidimensional because if the variable t has any physical di-
mensions then the terms with (tminus t0)ndn
dtn for any nonnegative integer n are actually
dimensionless
(c) The exponential functions y(t) = ert are not solutions of the Euler equation Justintroduce such a function into the equation and it is simple to show that there is noconstant r such that the exponential is solution
(d) The particular case t0 = 0 is
t2 yprimeprime + p0 t yprime + q0 y = 0
We now summarize what is known about solutions of the Euler equation
Theorem 242 (Euler Equation) Consider the Euler equidimensional equation
(tminus t0)2 yprimeprime + a1 (tminus t0) yprime + a0 y = 0 t gt t0 (241)
where a1 a0 and t0 are real constants and denote by r+- the roots of the indicial polynomialp(r) = r(r minus 1) + a1r + a0
(a) If r+ 6= r- real or complex then the general solution of Eq (241) is given by
ygen(t) = c+(tminus t0)r+ + c-(tminus t0)r- t gt t0 c+ c- isin R
(b) If r+ = r- = r0 isin R then the general solution of Eq (241) is given by
ygen(t) = c+ (tminus t0)r0 + c- (tminus t0)r0 ln(tminus t0) t gt t0 c+ c- isin R
Furthermore given real constants t1 gt t0 y0 and y1 there is a unique solution to the initialvalue problem given by Eq (241) and the initial conditions
y(t1) = y0 yprime(t1) = y1
108 G NAGY ndash ODE november 29 2017
Remark We have restricted to a domain with t gt t0 Similar results hold for t lt t0 Infact one can prove the following If a solution y has the value y(t minus t0) at t minus t0 gt 0 thenthe function y defined as y(t minus t0) = y(minus(t minus t0)) for t minus t0 lt 0 is solution of Eq (241)for tminus t0 lt 0 For this reason the solution for t 6= t0 is sometimes written in the literaturesee [3] sect 54 as follows
ygen(t) = c+|tminus t0|r+ + c-|tminus t0|r- r+ 6= r-
ygen(t) = c+ |tminus t0|r0 + c- |tminus t0|r0 ln |tminus t0| r+ = r- = r0
However when solving an initial value problem we need to pick the domain that containsthe initial data point t1 This domain will be a subinterval in either (minusinfin t0) or (t0infin) Forsimplicity in these notes we choose the domain (t0infin)
The proof of this theorem closely follows the ideas to find all solutions of second orderlinear equations with constant coefficients Theorem 232 in sect 23 In that case we foundfundamental solutions to the differential equation
yprimeprime + a1 yprime + a0 y = 0
and then we recalled Theorem 217 which says that any other solution is a linear combina-tion of a fundamental solution pair In the case of constant coefficient equations we lookedfor fundamental solutions of the form y(t) = ert where the constant r was a root of thecharacteristic polynomial
r2 + a1r + a0 = 0
When this polynomial had two different roots r+ 6= r- we got the fundamental solutions
y+(t) = er+t y-(t) = er-t
When the root was repeated r+ = r- = r0 we used the reduction order method to get thefundamental solutions
y+(t) = er0t y-(t) = t er0t
Well the proof of Theorem 242 closely follows this proof replacing the exponential functionby power functions
Proof of Theorem 242 For simplicity we consider the case t0 = 0 The general caset0 6= 0 follows from the case t0 = 0 replacing t by (tminus t0) So consider the equation
t2 yprimeprime + a1 t yprime + a0 y = 0 t gt 0
We look for solutions of the form y(t) = tr because power functions have the property that
yprime = r trminus1 rArr t yprime = r tr
A similar property holds for the second derivative
yprimeprime = r(r minus 1) trminus2 rArr t2 yprimeprime = r(r minus 1) tr
When we introduce this function into the Euler equation we get an algebraic equation for r[r(r minus 1) + a1r + a0
]tr = 0 hArr r(r minus 1) + a1r + a0 = 0
The constant r must be a root of the indicial polynomial
p(r) = r(r minus 1) + a1r + a0
This polynomial is sometimes called the Euler characteristic polynomial So we have twopossibilities If the roots are different r+ 6= r- we get the fundamental solutions
y+(t) = tr+ y-(t) = tr-
G NAGY ndash ODE November 29 2017 109
If we have a repeated root r+ = r- = r0 then one solution is y+(t) = tr0 To obtain the secondsolution we use the reduction order method Since we have one solution to the equation y+the second solution is
y-(t) = v(t) y+(t) rArr y-(t) = v(t) tr0
We need to compute the first two derivatives of y-
yprime- = r0v tr0minus1 + vprime tr0 yprimeprime- = r0(r0 minus 1)v tr0minus2 + 2r0v
prime tr0minus1 + vprimeprime tr0
We now put these expressions for y- yprime- and yprimeprime- into the Euler equation
t2(r0(r0 minus 1)v tr0minus2 + 2r0v
prime tr0minus1 + vprimeprime tr0)
+ a1t(r0v t
r0minus1 + vprime tr0)
+ a0 v tr0 = 0
Let us reorder terms in the following way
vprimeprime tr0+2 + (2r0 + a1) vprime tr0+1 +
[r0(r0 minus 1) + a1r0 + a0
]v tr0 = 0
We now need to recall that r0 is both a root of the indicial polynomial
r0(r0 minus 1) + a1r0 + a0 = 0
and r0 is a repeated root that is (a1 minus 1)2 = 4a0 hence
r0 = minus (a1 minus 1)
2rArr 2r0 + a1 = 1
Using these two properties of r0 in the Euler equation above we get the equation for v
vprimeprime tr0+2 + vprime tr0+1 = 0 rArr vprimeprime t+ vprime = 0
This is a first order equation for w = vprime
wprime t+ w = 0 rArr (t w)prime = 0 rArr w(t) =w0
t
We now integrate one last time to get function v
vprime =w0
trArr v(t) = w0 ln(t) + v0
So the second solution to the Euler equation in the case of repeated roots is
y-(t) =(w0 ln(t) + v0
)tr0 rArr y-(t) = w0t
r0 ln(t) + v0 y+(t)
It is clear we can choose v0 = 0 and w0 = 1 to get
y-(t) = tr0 ln(t)
We got fundamental solutions for all roots of the indicial polynomial and their generalsolutions follow from Theorem 217 in sect 21 This establishes the Theorem
Example 241 Find the general solution of the Euler equation below for t gt 0
t2 yprimeprime + 4t yprime + 2 y = 0
Solution We look for solutions of the form y(t) = tr which implies that
t yprime(t) = r tr t2 yprimeprime(t) = r(r minus 1) tr
therefore introducing this function y into the differential equation we obtain[r(r minus 1) + 4r + 2
]tr = 0 hArr r(r minus 1) + 4r + 2 = 0
The solutions are computed in the usual way
r2 + 3r + 2 = 0 rArr r+- =1
2
[minus3plusmn
radic9minus 8
]rArr
r+ = minus1
r- = minus2
110 G NAGY ndash ODE november 29 2017
So the general solution of the differential equation above is given by
ygen(t) = c+ tminus1 + c- t
minus2C
Remark Both fundamental solutions in the example above diverge at t = 0
Example 242 Find the general solution of the Euler equation below for t gt 0
t2 yprimeprime minus 3t yprime + 4 y = 0
Solution We look for solutions of the form y(t) = tr then the constant r must be solutionof the Euler characteristic polynomial
r(r minus 1)minus 3r + 4 = 0 hArr r2 minus 4r + 4 = 0 rArr r+ = r- = 2
Therefore the general solution of the Euler equation for t gt 0 in this case is given by
ygen(t) = c+t2 + c-t
2 ln(t)C
Example 243 Find the general solution of the Euler equation below for t gt 0
t2 yprimeprime minus 3t yprime + 13 y = 0
Solution We look for solutions of the form y(t) = tr which implies that
t yprime(t) = r tr t2 yprimeprime(t) = r(r minus 1) tr
therefore introducing this function y into the differential equation we obtain[r(r minus 1)minus 3r + 13
]tr = 0 hArr r(r minus 1)minus 3r + 13 = 0
The solutions are computed in the usual way
r2 minus 4r + 13 = 0 rArr r+- =1
2
[4plusmnradicminus36
]rArr
r+ = 2 + 3i
r- = 2minus 3i
So the general solution of the differential equation above is given by
ygen(t) = c+ t(2+3i) + c- t
(2minus3i) (242)
C
242 Real Solutions for Complex Roots We study in more detail the solutions to theEuler equation in the case that the indicial polynomial has complex roots Since these rootshave the form
r+- = minus (a1 minus 1)
2plusmn 1
2
radic(a1 minus 1)2 minus 4a0
the roots are complex-valued in the case (p0 minus 1)2 minus 4q0 lt 0 We use the notation
r+- = αplusmn iβ with α = minus (a1 minus 1)
2 β =
radica0 minus
(a1 minus 1)2
4
The fundamental solutions in Theorem 242 are the complex-valued functions
y+(t) = t(α+iβ) y-(t) = t(αminusiβ)
The general solution constructed from these solutions is
ygen(t) = c+ t(α+iβ) + c- t
(αminusiβ) c+ c- isin CThis formula for the general solution includes real valued and complex valued solutionsBut it is not so simple to single out the real valued solutions Knowing the real valuedsolutions could be important in physical applications If a physical system is described by a
G NAGY ndash ODE November 29 2017 111
differential equation with real coefficients more often than not one is interested in findingreal valued solutions For that reason we now provide a new set of fundamental solutionsthat are real valued Using real valued fundamental solution is simple to separate all realvalued solutions from the complex valued ones
Theorem 243 (Real Valued Fundamental Solutions) If the differential equation
(tminus t0)2 yprimeprime + a1(tminus t0) yprime + a0 y = 0 t gt t0 (243)
where a1 a0 t0 are real constants has indicial polynomial with complex roots r+- = α plusmn iβand complex valued fundamental solutions for t gt t0
y+(t) = (tminus t0)(α+iβ) y-(t) = (tminus t0)(αminusiβ)
then the equation also has real valued fundamental solutions for t gt t0 given by
y+(t) = (tminus t0)α cos(β ln(tminus t0)
) y-(t) = (tminus t0)α sin
(β ln(tminus t0)
)
Proof of Theorem 243 For simplicity consider the case t0 = 0 Take the solutions
y+(t) = t(α+iβ) y-(t) = t(αminusiβ)
Rewrite the power function as follows
y+(t) = t(α+iβ) = tα tiβ = tα eln(tiβ) = tα eiβ ln(t) rArr y+(t) = tα eiβ ln(t)
A similar calculation yields
y-(t) = tα eminusiβ ln(t)
Recall now Euler formula for complex exponentials eiθ = cos(θ) + i sin(θ) then we get
y+(t) = tα[cos(β ln(t)
)+ i sin
(β ln(t)
)] y-(t) = tα
[cos(β ln(t)
)minus i sin
(β ln(t)
)]
Since y+ and y- are solutions to Eq (243) so are the functions
y1(t) =1
2
[y1(t) + y2(t)
] y2(t) =
1
2i
[y1(t)minus y2(t)
]
It is not difficult to see that these functions are
y+(t) = tα cos(β ln(t)
) y-(t) = tα sin
(β ln(t)
)
To prove the case having t0 6= 0 just replace t by (tminus t0) on all steps above This establishesthe Theorem
Example 244 Find a real-valued general solution of the Euler equation below for t gt 0
t2 yprimeprime minus 3t yprime + 13 y = 0
Solution The indicial equation is r(r minus 1)minus 3r + 13 = 0 with solutions
r2 minus 4r + 13 = 0 rArr r+ = 2 + 3i r- = 2minus 3i
A complex-valued general solution for t gt 0 is
ygen(t) = c+ t(2+3i) + c- t
(2minus3i) c+ c- isin C
A real-valued general solution for t gt 0 is
ygen(t) = c+ t2 cos
(3 ln(t)
)+ c- t
2 sin(3 ln(t)
) c+ c- isin R
C
112 G NAGY ndash ODE november 29 2017
243 Transformation to Constant Coefficients Theorem 242 shows that y(t) = tr+- where r+- are roots of the indicial polynomial are solutions to the Euler equation
t2 yprimeprime + a1t yprime + a0 y = 0 t gt 0
The proof of this theorem is to verify that the power functions y(t) = tr+- solve the differentialequation How did we know we had to try with power functions One answer could be thisis a guess a lucky one Another answer could be that the Euler equation can be transformedinto a constant coefficient equation by a change of the independent variable
Theorem 244 (Transformation to Constant Coefficients) The function y is solution ofthe Euler equidimensional equation
t2 yprimeprime + a1t yprime + a0 y = 0 t gt 0 (244)
iff the function u(z) = y(t(z)) where t(z) = ez satisfies the constant coefficients equation
u+ (a1 minus 1) u+ a0 u = 0 z isin R (245)
where yprime = dydt and u = dudz
Remark The solutions of the constant coefficient equation in (245) are u(z) = er+-z wherer+- are the roots of the characteristic polynomial of Eq (245)
r2+-
+ (a1 minus 1)r+- + a0 = 0
that is r+- must be a root of the indicial polynomial of Eq (244)
(a) Consider the case that r+ 6= r- Recalling that y(t) = u(z(t)) and z(t) = ln(t) we get
y+-(t) = u(z(t)) = er+- z(t) = er+- ln(t) = eln(tr+- ) rArr y+-(t) = tr+-
(b) Consider the case that r+ = r- = r0 Recalling that y(t) = u(z(t)) and z(t) = ln(t) weget that y+(t) = tr0 while the second solution is
y-(t) = u(z(t)) = z(t) er0 z(t) = ln(t) er0 ln(t) = ln(t) eln(tr0 ) rArr y-(t) = ln(t) tr0
Proof of Theorem 244 Given t gt 0 introduce t(z) = ez Given a function y let
u(z) = y(t(z)) rArr u(z) = y(ez)
Then the derivatives of u and y are related by the chain rule
u(z) =du
dz(z) =
dy
dt(t(z))
dt
dz(z) = yprime(t(z))
d(ez)
dz= yprime(t(z)) ez
so we obtainu(z) = t yprime(t)
where we have denoted u = dudz The relation for the second derivatives is
u(z) =d
dt
(t yprime(t)
) dtdz
(z) =(t yprimeprime(t) + yprime(t)
) d(ez)
dz=(t yprimeprime(t) + yprime(t)
)t
so we obtainu(z) = t2 yprimeprime(t) + t yprime(t)
Combining the equations for u and u we get
t2 yprimeprime = uminus u t yprime = u
The function y is solution of the Euler equation t2 yprimeprime + a1t yprime + a0 y = 0 iff holds
uminus u+ a1 u+ a0 u = 0 rArr u+ (a1 minus 1) u+ a0 u = 0
This establishes the Theorem
G NAGY ndash ODE November 29 2017 113
244 Exercises
241- 242-
114 G NAGY ndash ODE november 29 2017
25 Nonhomogeneous Equations
All solutions of a linear homogeneous equation can be obtained from only two solutions thatare linearly independent called fundamental solutions Every other solution is a linear com-bination of these two This is the general solution formula for homogeneous equations and itis the main result in sect 21 Theorem 217 This result is not longer true for nonhomogeneousequations The superposition property Theorem 215 which played an important part toget the general solution formula for homogeneous equations is not true for nonhomogeneousequations
We start this section proving a general solution formula for nonhomogeneous equationsWe show that all the solutions of the nonhomogeneous equation are a translation by a fixedfunction of the solutions of the homogeneous equation The fixed function is one solutionmdashit doesnrsquot matter which onemdashof the nonhomogenous equation and it is called a particularsolution of the nonhomogeneous equation
Later in this section we show two different ways to compute the particular solution of anonhomogeneous equationmdashthe undetermined coefficients method and the variation of pa-rameters method In the former method we guess a particular solution from the expression ofthe source in the equation The guess contains a few unknown constants the undeterminedcoefficients that must be determined by the equation The undetermined method works forconstant coefficients linear operators and simple source functions The source functions andthe associated guessed solutions are collected in a small table This table is constructed bytrial and error In the latter method we have a formula to compute a particular solutionin terms of the equation source and fundamental solutions of the homogeneous equationThe variation of parameters method works with variable coefficients linear operators andgeneral source functions But the calculations to find the solution are usually not so simpleas in the undetermined coefficients method
251 The General Solution Formula The general solution formula for homogeneousequations Theorem 217 is no longer true for nonhomogeneous equations But there isa general solution formula for nonhomogeneous equations Such formula involves threefunctions two of them are fundamental solutions of the homogeneous equation and thethird function is any solution of the nonhomogeneous equation Every other solution of thenonhomogeneous equation can be obtained from these three functions
Theorem 251 (General Solution) Every solution y of the nonhomogeneous equation
L(y) = f (251)
with L(y) = yprimeprime + a1 yprime + a0 y where a1 a0 and f are continuous functions is given by
y = c1 y1 + c2 y2 + yp
where the functions y1 and y2 are fundamental solutions of the homogeneous equationL(y1) = 0 L(y2) = 0 and yp is any solution of the nonhomogeneous equation L(yp) = f
Before we proof Theorem 251 we state the following definition which comes naturallyfrom this Theorem
Definition 252 The general solution of the nonhomogeneous equation L(y) = f is atwo-parameter family of functions
ygen(t) = c1 y1(t) + c2 y2(t) + yp(t) (252)
where the functions y1 and y2 are fundamental solutions of the homogeneous equationL(y1) = 0 L(y2) = 0 and yp is any solution of the nonhomogeneous equation L(yp) = f
G NAGY ndash ODE November 29 2017 115
Remark The difference of any two solutions of the nonhomogeneous equation is actually asolution of the homogeneous equation This is the key idea to prove Theorem 251 In otherwords the solutions of the nonhomogeneous equation are a translation by a fixed functionyp of the solutions of the homogeneous equation
Proof of Theorem 251 Let y be any solution of the nonhomogeneous equation L(y) = f Recall that we already have one solution yp of the nonhomogeneous equation L(yp) = f We can now subtract the second equation from the first
L(y)minus L(yp) = f minus f = 0 rArr L(y minus yp) = 0
The equation on the right is obtained from the linearity of the operator L This last equationsays that the difference of any two solutions of the nonhomogeneous equation is solution ofthe homogeneous equation The general solution formula for homogeneous equations saysthat all solutions of the homogeneous equation can be written as linear combinations of apair of fundamental solutions y1 y2 So the exist constants c1 c2 such that
y minus yp = c1 y1 + c2 y2
Since for every y solution of L(y) = f we can find constants c1 c2 such that the equationabove holds true we have found a formula for all solutions of the nonhomogeneous equationThis establishes the Theorem
252 The Undetermined Coefficients Method The general solution formula in (252)is the most useful if there is a way to find a particular solution yp of the nonhomogeneousequation L(yp) = f We now present a method to find such particular solution the un-determined coefficients method This method works for linear operators L with constantcoefficients and for simple source functions f Here is a summary of the undeterminedcoefficients method
(1) Find fundamental solutions y1 y2 of the homogeneous equation L(y) = 0
(2) Given the source functions f guess the solutions yp following the Table 1 below
(3) If the function yp given by the table satisfies L(yp) = 0 then change the guess to typIf typ satisfies L(typ) = 0 as well then change the guess to t2yp
(4) Find the undetermined constants k in the function yp using the equation L(y) = f where y is yp or typ or t2yp
f(t) (Source) (K m a b given) yp(t) (Guess) (k not given)
Keat keat
Kmtm + middot middot middot+K0 kmt
m + middot middot middot+ k0
K1 cos(bt) +K2 sin(bt) k1 cos(bt) + k2 sin(bt)
(Kmtm + middot middot middot+K0) e
at (kmtm + middot middot middot+ k0) e
at
(K1 cos(bt) +K2 sin(bt)
)eat
(k1 cos(bt) + k2 sin(bt)
)eat
(Kmtm + middot middot middot+K0)
(K1 cos(bt) + K2 sin(bt)
) (kmt
m + middot middot middot+ k0)(k1 cos(bt) + k2 sin(bt)
)Table 1 List of sources f and solutions yp to the equation L(yp) = f
116 G NAGY ndash ODE november 29 2017
This is the undetermined coefficients method It is a set of simple rules to find a particularsolution yp of an nonhomogeneous equation L(yp) = f in the case that the source functionf is one of the entries in the Table 1 There are a few formulas in particular cases and afew generalizations of the whole method We discuss them after a few examples
Example 251 (First Guess Right) Find all solutions to the nonhomogeneous equation
yprimeprime minus 3yprime minus 4y = 3 e2t
Solution From the problem we get L(y) = yprimeprime minus 3yprime minus 4y and f(t) = 3 e2t
(1) Find fundamental solutions y+ y- to the homogeneous equation L(y) = 0 Since thehomogeneous equation has constant coefficients we find the characteristic equation
r2 minus 3r minus 4 = 0 rArr r+ = 4 r- = minus1 rArr y+(t) = e4t y- = (t) = eminust
(2) The table says For f(t) = 3e2t guess yp(t) = k e2t The constant k is the undeterminedcoefficient we must find
(3) Since yp(t) = k e2t is not solution of the homogeneous equation we do not need tomodify our guess (Recall L(y) = 0 iff exist constants c+ c- such that y(t) = c+ e
4t+c- eminust)
(4) Introduce yp into L(yp) = f and find k So we do that
(22 minus 6minus 4)ke2t = 3 e2t rArr minus6k = 3 rArr k = minus1
2
We guessed that yp must be proportional to the exponential e2t in order to cancel out theexponentials in the equation above We have obtained that
yp(t) = minus1
2e2t
The undetermined coefficients method gives us a way to compute a particular solution yp ofthe nonhomogeneous equation We now use the general solution theorem Theorem 251to write the general solution of the nonhomogeneous equation
ygen(t) = c+ e4t + c- e
minust minus 1
2e2t
C
Remark The step (4) in Example 251 is a particular case of the following statement
Theorem 253 Consider the equation L(y) = f where L(y) = yprimeprime+a1 yprime+a0 y has constant
coefficients and p is its characteristic polynomial If the source function is f(t) = K eatwith p(a) 6= 0 then a particular solution of the nonhomogeneous equation is
yp(t) =K
p(a)eat
Proof of Theorem 253 Since the linear operator L has constant coefficients let uswrite L and its associated characteristic polynomial p as follows
L(y) = yprimeprime + a1yprime + a0y p(r) = r2 + a1r + a0
Since the source function is f(t) = K eat the Table 1 says that a good guess for a particularsoution of the nonhomogneous equation is yp(t) = k eat Our hypothesis is that this guessis not solution of the homogenoeus equation since
L(yp) = (a2 + a1a+ a0) k eat = p(a) k eat and p(a) 6= 0
G NAGY ndash ODE November 29 2017 117
We then compute the constant k using the equation L(yp) = f
(a2 + a1a+ a0) k eat = K eat rArr p(a) k eat = K eat rArr k =
K
p(a)
We get the particular solution yp(t) =K
p(a)eat This establishes the Theorem
Remark As we said the step (4) in Example 251 is a particular case of Theorem 253
yp(t) =3
p(2)e2t =
3
(22 minus 6minus 4)e2t =
3
minus6e2t rArr yp(t) = minus1
2e2t
In the following example our first guess for a particular solution yp happens to be asolution of the homogenous equation
Example 252 (First Guess Wrong) Find all solutions to the nonhomogeneous equation
yprimeprime minus 3yprime minus 4y = 3 e4t
Solution If we write the equation as L(y) = f with f(t) = 3 e4t then the operator L isthe same as in Example 251 So the solutions of the homogeneous equation L(y) = 0 arethe same as in that example
y+(t) = e4t y-(t) = eminust
The source function is f(t) = 3 e4t so the Table 1 says that we need to guess yp(t) = k e4tHowever this function yp is solution of the homogeneous equation because
yp = k y+ rArr L(yp) = 0
We have to change our guess as indicated in the undetermined coefficients method step (3)
yp(t) = kt e4t
This new guess is not solution of the homogeneous equation So we proceed to compute theconstant k We introduce the guess into L(yp) = f
yprimep = (1 + 4t) k e4t yprimeprimep = (8 + 16t) k e4t rArr[8minus 3 + (16minus 12minus 4)t
]k e4t = 3 e4t
therefore we get that
5k = 3 rArr k =3
5rArr yp(t) =
3
5t e4t
The general solution theorem for nonhomogneneous equations says that
ygen(t) = c+ e4t + c- e
minust +3
5t e4t
C
In the following example the equation source is a trigonometric function
Example 253 (First Guess Right) Find all the solutions to the nonhomogeneous equation
yprimeprime minus 3yprime minus 4y = 2 sin(t)
Solution If we write the equation as L(y) = f with f(t) = 2 sin(t) then the operator Lis the same as in Example 251 So the solutions of the homogeneous equation L(y) = 0are the same as in that example
y+(t) = e4t y-(t) = eminust
118 G NAGY ndash ODE november 29 2017
Since the source function is f(t) = 2 sin(t) the Table 1 says that we need to choose thefunction yp(t) = k1 cos(t) + k2 sin(t) This function yp is not solution to the homogeneousequation So we look for the constants k1 k2 using the differential equation
yprimep = minusk1 sin(t) + k2 cos(t) yprimeprimep = minusk1 cos(t)minus k2 sin(t)
and then we obtain
[minusk1 cos(t)minus k2 sin(t)]minus 3[minusk1 sin(t) + k2 cos(t)]minus 4[k1 cos(t) + k2 sin(t)] = 2 sin(t)
Reordering terms in the expression above we get
(minus5k1 minus 3k2) cos(t) + (3k1 minus 5k2) sin(t) = 2 sin(t)
The last equation must hold for all t isin R In particular it must hold for t = π2 and fort = 0 At these two points we obtain respectively
3k1 minus 5k2 = 2
minus5k1 minus 3k2 = 0
rArr
k1 =
3
17
k2 = minus 5
17
So the particular solution to the nonhomogeneous equation is given by
yp(t) =1
17
[3 cos(t)minus 5 sin(t)
]
The general solution theorem for nonhomogeneous equations implies
ygen(t) = c+ e4t + c- e
minust +1
17
[3 cos(t)minus 5 sin(t)
]
C
The next example collects a few nonhomogeneous equations and the guessed function yp
Example 254 We provide few more examples of nonhomogeneous equations and theappropriate guesses for the particular solutions
(a) For yprimeprime minus 3yprime minus 4y = 3e2t sin(t) guess yp(t) =[k1 cos(t) + k2 sin(t)
]e2t
(b) For yprimeprime minus 3yprime minus 4y = 2t2 e3t guess yp(t) =(k2t
2 + k1t+ k0)e3t
(c) For yprimeprime minus 3yprime minus 4y = 2t2 e4t guess yp(t) =(k2t
2 + k1t+ k0)t e4t
(d) For yprimeprime minus 3yprime minus 4y = 3t sin(t) guess yp(t) = (k1t+ k0)[k1 cos(t) + k2 sin(t)
]
C
Remark Suppose that the source function f does not appear in Table 1 but f can bewritten as f = f1 +f2 with f1 and f2 in the table In such case look for a particular solutionyp = yp1 + yp2 where L(yp1) = f1 and L(yp2) = f2 Since the operator L is linear
L(yp) = L(yp1 + yp2) = L(yp1) + L(yp2) = f1 + f2 = f rArr L(yp) = f
Example 255 Find all solutions to the nonhomogeneous equation
yprimeprime minus 3yprime minus 4y = 3 e2t + 2 sin(t)
Solution If we write the equation as L(y) = f with f(t) = 2 sin(t) then the operator Lis the same as in Example 251 and 253 So the solutions of the homogeneous equationL(y) = 0 are the same as in these examples
y+(t) = e4t y-(t) = eminust
G NAGY ndash ODE November 29 2017 119
The source function f(t) = 3 e2t + 2 sin(t) does not appear in Table 1 but each term doesf1(t) = 3 e2t and f2(t) = 2 sin(t) So we look for a particular solution of the form
yp = yp1 + yp2 where L(yp1) = 3 e2t L(yp2) = 2 sin(t)
We have chosen this example because we have solved each one of these equations before inExample 251 and 253 We found the solutions
yp1(t) = minus1
2e2t yp2(t) =
1
17
(3 cos(t)minus 5 sin(t)
)
Therefore the particular solution for the equation in this example is
yp(t) = minus1
2e2t +
1
17
(3 cos(t)minus 5 sin(t)
)
Using the general solution theorem for nonhomogeneous equations we obtain
ygen(t) = c+ e4t + c- e
minust minus 1
2e2t +
1
17
(3 cos(t)minus 5 sin(t)
)
C
253 The Variation of Parameters Method This method provides a second way tofind a particular solution yp to a nonhomogeneous equation L(y) = f We summarize thismethod in formula to compute yp in terms of any pair of fundamental solutions to thehomogeneous equation L(y) = 0 The variation of parameters method works with secondorder linear equations having variable coefficients and contiuous but otherwise arbitrarysources When the source function of a nonhomogeneous equation is simple enough toappear in Table 1 the undetermined coefficients method is a quick way to find a particularsolution to the equation When the source is more complicated one usually turns to thevariation of parameters method with its more involved formula for a particular solution
Theorem 254 (Variation of Parameters) A particular solution to the equation
L(y) = f
with L(y) = yprimeprime + a1(t) yprime + a0(t) y and a1 a0 f continuous functions is given by
yp = u1y1 + u2y2
where y1 y2 are fundamental solutions of the homogeneous equatio L(y) = 0 and the func-tions u1 u2 are defined by
u1(t) =
intminusy2(t)f(t)
Wy1y2(t)dt u2(t) =
inty1(t)f(t)
Wy1y2(t)dt (253)
where Wy1y2 is the Wronskian of y1 and y2
The proof is a generalization of the reduction order method Recall that the reductionorder method is a way to find a second solution y2 of an homogeneous equation if we alreadyknow one solution y1 One writes y2 = u y1 and the original equation L(y2) = 0 provides anequation for u This equation for u is simpler than the original equation for y2 because thefunction y1 satisfies L(y1) = 0
The formula for yp can be seen as a generalization of the reduction order method Wewrite yp in terms of both fundamental solutions y1 y2 of the homogeneous equation
yp(t) = u1(t) y1(t) + u2(t) y2(t)
We put this yp in the equation L(yp) = f and we find an equation relating u1 and u2 Itis important to realize that we have added one new function to the original problem Theoriginal problem is to find yp Now we need to find u1 and u2 but we still have only oneequation to solve L(yp) = f The problem for u1 u2 cannot have a unique solution So we
120 G NAGY ndash ODE november 29 2017
are completely free to add a second equation to the original equation L(yp) = f We choosethe second equation so that we can solve for u1 and u2
Proof of Theorem 254 Motivated by the reduction of order method we look for a yp
yp = u1 y1 + u2 y2
We hope that the equations for u1 u2 will be simpler to solve than the equation for yp Butwe started with one unknown function and now we have two unknown functions So we arefree to add one more equation to fix u1 u2 We choose
uprime1 y1 + uprime2 y2 = 0
In other words we choose u2 =
intminusyprime1
yprime2uprime1 dt Letrsquos put this yp into L(yp) = f We need yprimep
(and recall uprime1 y1 + uprime2 y2 = 0)
yprimep = uprime1 y1 + u1 yprime1 + uprime2 y2 + u2 y
prime2 rArr yprimep = u1 y
prime1 + u2 y
prime2
and we also need yprimeprimep
yprimeprimep = uprime1 yprime1 + u1 y
primeprime1 + uprime2 y
prime2 + u2 y
primeprime2
So the equation L(yp) = f is
(uprime1 yprime1 + u1 y
primeprime1 + uprime2 y
prime2 + u2 y
primeprime2 ) + a1(u1 y
prime1 + u2 y
prime2) + a0(u1 y1 + u2 y2) = f
We reorder a few terms and we see that
uprime1 yprime1 + uprime2 y
prime2 + u1 (yprimeprime1 + a1 y
prime1 + a0 y1) + u2 (yprimeprime2 + a1 y
prime2 + a0 y2) = f
The functions y1 and y2 are solutions to the homogeneous equation
yprimeprime1 + a1 yprime1 + a0 y1 = 0 yprimeprime2 + a1 y
prime2 + a0 y2 = 0
so u1 and u2 must be solution of a simpler equation that the one above given by
uprime1 yprime1 + uprime2 y
prime2 = f (254)
So we end with the equations
uprime1 yprime1 + uprime2 y
prime2 = f
uprime1 y1 + uprime2 y2 = 0
And this is a 2times 2 algebraic linear system for the unknowns uprime1 uprime2 It is hard to overstate
the importance of the word ldquoalgebraicrdquo in the previous sentence From the second equationabove we compute uprime2 and we introduce it in the first equation
uprime2 = minusy1y2uprime1 rArr uprime1y
prime1 minus
y1yprime2
y2uprime1 = f rArr uprime1
(yprime1y2 minus y1yprime2y2
)= f
Recall that the Wronskian of two functions is W12 = y1yprime2 minus yprime1y2 we get
uprime1 = minus y2fW12
rArr uprime2 =y1f
W12
These equations are the derivative of Eq (253) Integrate them in the variable t and choosethe integration constants to be zero We get Eq (253) This establishes the Theorem
Remark The integration constants in the expressions for u1 u2 can always be chosen tobe zero To understand the effect of the integration constants in the function yp let us dothe following Denote by u1 and u2 the functions in Eq (253) and given any real numbersc1 and c2 define
u1 = u1 + c1 u2 = u2 + c2
G NAGY ndash ODE November 29 2017 121
Then the corresponding solution yp is given by
yp = u1 y1 + u2 y2 = u1 y1 + u2 y2 + c1 y1 + c2 y2 rArr yp = yp + c1 y1 + c2 y2
The two solutions yp and yp differ by a solution to the homogeneous differential equationSo both functions are also solution to the nonhomogeneous equation One is then free tochoose the constants c1 and c2 in any way We chose them in the proof above to be zero
Example 256 Find the general solution of the nonhomogeneous equation
yprimeprime minus 5yprime + 6y = 2 et
Solution The formula for yp in Theorem 254 requires we know fundamental solutions tothe homogeneous problem So we start finding these solutions first Since the equation hasconstant coefficients we compute the characteristic equation
r2 minus 5r + 6 = 0 rArr rplusmn =1
2
(5plusmnradic
25minus 24)rArr
r+ = 3
r- = 2
So the functions y1 and y2 in Theorem 254 are in our case given by
y1(t) = e3t y2(t) = e2t
The Wronskian of these two functions is given by
Wy1y2(t) = (e3t)(2 e2t)minus (3 e3t)(e2t) rArr Wy1y2(t) = minuse5t
We are now ready to compute the functions u1 and u2 Notice that Eq (253) the followingdifferential equations
uprime1 = minus y2f
Wy1y2
uprime2 =y1f
Wy1y2
So the equation for u1 is the following
uprime1 = minuse2t(2 et)(minuseminus5t) rArr uprime1 = 2 eminus2t rArr u1 = minuseminus2t
uprime2 = e3t(2 et)(minuseminus5t) rArr uprime2 = minus2 eminust rArr u2 = 2 eminust
where we have chosen the constant of integration to be zero The particular solution we arelooking for is given by
yp = (minuseminus2t)(e3t) + (2 eminust)(e2t) rArr yp = et
Then the general solution theorem for nonhomogeneous equation implies
ygen(t) = c+ e3t + c- e
2t + et c+ c- isin R
C
Example 257 Find a particular solution to the differential equation
t2yprimeprime minus 2y = 3t2 minus 1
knowing that y1 = t2 and y2 = 1t are solutions to the homogeneous equation t2yprimeprimeminus2y = 0
Solution We first rewrite the nonhomogeneous equation above in the form given in The-orem 254 In this case we must divide the whole equation by t2
yprimeprime minus 2
t2y = 3minus 1
t2rArr f(t) = 3minus 1
t2
We now proceed to compute the Wronskian of the fundamental solutions y1 y2
Wy1y2(t) = (t2)(minus1
t2
)minus (2t)
(1
t
)rArr Wy1y2(t) = minus3
122 G NAGY ndash ODE november 29 2017
We now use the equation in (253) to obtain the functions u1 and u2
uprime1 = minus1
t
(3minus 1
t2
) 1
minus3
=1
tminus 1
3tminus3 rArr u1 = ln(t) +
1
6tminus2
uprime2 = (t2)(
3minus 1
t2
) 1
minus3
= minust2 +1
3rArr u2 = minus1
3t3 +
1
3t
A particular solution to the nonhomogeneous equation above is yp = u1y1 + u2y2 that is
yp =[ln(t) +
1
6tminus2](t2) +
1
3(minust3 + t)(tminus1)
= t2 ln(t) +1
6minus 1
3t2 +
1
3
= t2 ln(t) +1
2minus 1
3t2
= t2 ln(t) +1
2minus 1
3y1(t)
However a simpler expression for a solution of the nonhomogeneous equation above is
yp = t2 ln(t) +1
2
C
Remark Sometimes it could be difficult to remember the formulas for functions u1 and u2
in (253) In such case one can always go back to the place in the proof of Theorem 254where these formulas come from the system
uprime1yprime1 + uprime2y
prime2 = f
uprime1y1 + uprime2y2 = 0
The system above could be simpler to remember than the equations in (253) We end thisSection using the equations above to solve the problem in Example 257 Recall that thesolutions to the homogeneous equation in Example 257 are y1(t) = t2 and y2(t) = 1twhile the source function is f(t) = 3minus 1t2 Then we need to solve the system
t2 uprime1 + uprime21
t= 0
2t uprime1 + uprime2(minus1)
t2= 3minus 1
t2
This is an algebraic linear system for uprime1 and uprime2 Those are simple to solve From the equationon top we get uprime2 in terms of uprime1 and we use that expression on the bottom equation
uprime2 = minust3 uprime1 rArr 2t uprime1 + t uprime1 = 3minus 1
t2rArr uprime1 =
1
tminus 1
3t3
Substitue back the expression for uprime1 in the first equation above and we get uprime2 We get
uprime1 =1
tminus 1
3t3
uprime2 = minust2 +1
3
We should now integrate these functions to get u1 and u2 and then get the particular solutionyp = u1y1 + u2y2 We do not repeat these calculations since they are done Example 257
G NAGY ndash ODE November 29 2017 123
254 Exercises
251- 252-
124 G NAGY ndash ODE november 29 2017
26 Applications
Different physical systems are mathematically identical In this Section we show thata weight attached to a spring oscillating either in air or under water is mathematicallyidentical to the behavior of an electric current in a circuit containing a resistance a capacitorand an inductance Mathematical identical means that both systems are described by thesame differential equation
261 Review of Constant Coefficient Equations In Section 23 we have seen how tofind solutions to second order linear constant coefficient homogeneous differential equa-tions
yprimeprime + a1 yprime + a0 y = 0 a1 a2 isin R (261)
Theorem 232 provides formulas for the general solution of this equation We review herethis result and at the same time we introduce new names describing these solutions namesthat are common in the physics literature The first step to obtain solutions to Eq (261)is to find the roots or the characteristic polynomial p(r) = r2 + a1r+ a0 which are given by
rplusmn = minusa12plusmn 1
2
radica21 minus 4a0
We then have three different cases to consider
(a) A system is over damped in the case that a21 minus 4a0 gt 0 In this case the characteristic
polynomial has real and distinct roots r+ r- and the corresponding solutions to thedifferential equation are
y1(t) = er+t y2(t) = er-t
So the solutions are exponentials increasing or decreasing according whether the rootsare positive or negative respectively The decreasing exponential solutions originate thename over damped solutions
(b) A system is critically damped in the case that a21minus4a0 = 0 In this case the characteristic
polynomial has only one real repeated root r = minusa12 and the corresponding solutionsto the differential equation are then
y1(t) = eminusa1t2 y2(t) = t eminusa1t2
(c) A system is under damped in the case that a21 minus 4a0 lt 0 In this case the characteristic
polynomial has two complex roots rplusmn = αplusmnβi where one root is the complex conjugateof the other since the polynomial has real coefficients The corresponding solutions tothe differential equation are
y1(t) = eαt cos(βt) y2(t) = eαt sin(βt)
where α = minusa12
and β =1
2
radic4a0 minus a2
1
(d) A system is undamped when is under damped with a1 = 0 Therefore the characteristicpolynomial has two pure imaginary roots rplusmn = plusmnradica0 The corresponding solutions areoscillatory functions
y1(t) = cos(ω0t) y2(t) = sin(ω0t)
where ω0 =radica0
G NAGY ndash ODE November 29 2017 125
262 Undamped Mechanical Oscillations Springs are curious objects when you slightlydeform them they create a force proportional and in opposite direction to the deformationWhen you release the spring it goes back to its original size This is true for small enoughdeformations If you stretch the spring long enough the deformations are permanent
Definition 261 A spring is an object that when deformed by an amount ∆l creates aforce Fs = minusk∆l with k gt 0
Consider a spring-body system as shown in Fig 262 A spring is fixed to a ceiling andhangs vertically with a natural length l It stretches by ∆l when a body with mass m isattached to its lower end just as in the middle spring in Fig 262 We assume that theweight m is small enough so that the spring is not damaged This means that the spring actslike a normal spring whenever it is deformed by an amount ∆l it makes a force proportionaland opposite to the deformation
Fs0 = minusk∆l
Here k gt 0 is a constant that depends on the type of spring Newtonrsquos law of motion implythe following result
Theorem 262 A spring-body system with spring constant k body mass m at rest witha spring deformation ∆l within the rage where the spring acts like a spring satisfies
mg = k∆l
Proof of Theorem 262 Since the spring-body system is at rest Newtonrsquos law of motionimply that all forces acting on the body must add up to zero The only two forces acting onthe body are its weight Fg = mg and the force done by the spring Fs0 = minusk∆l We haveused the hypothesis that ∆l is small enough so the spring is not damaged We are usingthe sign convention displayed in Fig 262 where forces pointing downwards are positive
As we said above since the body is at restthe addition of all forces acting on the bodymust vanish
Fg + Fs0 = 0 rArr mg = k∆l
This establishes the Theorem
Remark Rewriting the equation above as
k =mg
∆l
it is possible to compute the spring constant kby measuring the displacement ∆l and know-ing the body mass m
y
∆l0
m
y(t)m
Figure 12 Springs with weights
We now find out how the body will move when we take it away from the rest positionTo describe that movement we introduce a vertical coordinate for the displacements y asshown in Fig 262 with y positive downwards and y = 0 at the rest position of the springand the body The physical system we want to describe is simple we further stretch thespring with the body by y0 and then we release it with an initial velocity v0 Newtonrsquos lawof motion determine the subsequent motion
126 G NAGY ndash ODE november 29 2017
Theorem 263 The vertical movement of a spring-body system in air with spring constantk gt 0 and body mass m gt 0 is described by the solutions of the differential equation
myprimeprime + k y = 0 (262)
where y is the vertical displacement function as shown in Fig 262 Furthermore there isa unique solution to Eq (262) satisfying the initial conditions y(0) = y0 and yprime(0) = v0
y(t) = A cos(ω0tminus φ)
with angular frequency ω0 =
radick
m where the amplitude A gt 0 and phase-shift φ isin (minusπ π]
A =
radicy20 +
v20
ω20
φ = arctan( v0ω0y0
)
Remark The angular or circular frequency of the system is ω0 =radickm meaning that
the motion of the system is periodic with period given by T = 2πω0 which in turns impliesthat the system frequency is ν0 = ω0(2π)
Proof of Theorem 263 Newtonrsquos second law of motion says that mass times accelerationof the body myprimeprime(t) must be equal to the sum of all forces acting on the body hence
myprimeprime(t) = Fg + Fs0 + Fs(t)
where Fs(t) = minusk y(t) is the force done by the spring due to the extra displacement ySince the first two terms on the right hand side above cancel out Fg + Fs0 = 0 the bodydisplacement from the equilibrium position y(t) must be solution of the differential equation
myprimeprime(t) + k y(t) = 0
which is Eq (262) In Section we have seen how to solve this type of differentialequations The characteristic polynomial is p(r) = mr2 + k which has complex rootsrplusmn = plusmnω2
0 i where we introduced the angular or circular frequency of the system
ω0 =
radick
m
The reason for this name is the calculations done in Section where we found that areal-valued expression for the general solution to Eq (262) is given by
ygen(t) = c1 cos(ω0t) + c2 sin(ω0t)
This means that the body attached to the spring oscillates around the equilibrium positiony = 0 with period T = 2πω0 hence frequency ν0 = ω0(2π) There is an equivalent wayto express the general solution above given by
ygen(t) = A cos(ω0tminus φ)
These two expressions for ygen are equivalent because of the trigonometric identity
A cos(ω0tminus φ) = A cos(ω0t) cos(φ) +A sin(ω0t) sin(φ)
which holds for all A and φ and ω0t Then it is not difficult to see that
c1 = A cos(φ)
c2 = A sin(φ)
hArr
A =radicc21 + c22
φ = arctan(c2c1
)
G NAGY ndash ODE November 29 2017 127
Since both expressions for the general solution are equivalent we use the second one interms of the amplitude and phase-shift The initial conditions y(0) = y0 and yprime(0) = y0determine the constants A and φ Indeed
y0 = y(0) = A cos(φ)
v0 = yprime(0) = Aω0 sin(φ)
rArr
A =
radicy20 +
v20
ω20
φ = arctan( v0ω0y0
)
This establishes the Theorem
Example 261 Find the movement of a 50 gr mass attached to a spring moving in airwith initial conditions y(0) = 4 cm and yprime(0) = 40 cms The spring is such that a 30 grmass stretches it 6 cm Approximate the acceleration of gravity by 1000 cms2
Solution Theorem 263 says that the equation satisfied by the displacement y is given by
myprimeprime + ky = 0
In order to solve this equation we need to find the spring constant k which by Theorem 262is given by k = mg∆l In our case when a mass of m = 30 gr is attached to the sprint itstretches ∆l = 6 cm so we get
k =(30) (1000)
6rArr k = 5000
gr
s2
Knowing the spring constant k we can now describe the movement of the body with massm = 50 gr The solution of the differential equation above is obtained as usual first find theroots of the characteristic polynomial
mr2 + k = 0 rArr rplusmn = plusmnω0i ω0 =
radick
m=
radic5000
50rArr ω0 = 10
1
s
We write down the general solution in terms of the amplitude A and phase-shift φ
y(t) = A cos(ω0tminus φ) rArr y(t) = A cos(10 tminus φ)
To accommodate the initial conditions we need the function yprime(t) = minusAω0 sin(ω0tminusφ) Theinitial conditions determine the amplitude and phase-shift as follows
4 = y(0) = A cos(φ)
40 = yprime(0) = minus10A sin(minusφ)
rArr
A =
radic16 + 16
φ = arctan( 40
(10)(4)
)
We obtain that A = 4radic
2 and tan(φ) = 1 The later equation implies that either φ = π4 orφ = minus3π4 for φ isin (minusπ π] If we pick the second value φ = minus3π4 this would imply thaty(0) lt 0 and yprime(0) lt 0 which is not true in our case So we must pick the value φ = π4We then conclude
y(t) = 4radic
2 cos(
10 tminus π
4
)
C
263 Damped Mechanical Oscillations Suppose now that the body in the spring-bodysystem is a thin square sheet of metal If the main surface of the sheet is perpendicular tothe direction of motion then the air dragged by the sheet during the spring oscillations willbe significant enough to slow down the spring oscillations in an appreciable time One canfind out that the friction force done by the air opposes the movement and it is proportionalto the velocity of the body that is Fd = minusd yprime(t) We call such force a damping force where
128 G NAGY ndash ODE november 29 2017
d gt 0 is the damping coefficient and systems having such force damped systems We nowdescribe the spring-body system in the case that there is a non-zero damping force
Theorem 264
(a) The vertical displacement y function as shown in Fig 262 of a spring-body systemwith spring constant k gt 0 body mass m gt 0 and damping constant d gt 0 is describedby the solutions of
myprimeprime + d yprime + k y = 0 (263)
(b) The roots of the characteristic polynomial of Eq (263) are rplusmn = minusωd plusmnradicω2d minus ω2
0
with damping coefficient ωd =d
2mand circular frequency ω0 =
radick
m
(c) The solutions to Eq (263) fall into one of the following cases(i) A system with ωd gt ω0 is called over damped with general solution to Eq (263)
y(t) = c+ er+t + c- e
r-t
(ii) A system with ωd = ω0 is called critically damped with general solution to Eq (263)
y(t) = c+ eminusωdt + c- t e
minusωdt
(iii) A system with ωd lt ω0 is called under damped with general solution to Eq (263)
y(t) = Aeminusωdt cos(βtminus φ)
where β =radicω20 minus ω2
d(d) There is a unique solution to Eq (262) with initial conditions y(0) = y0 and yprime(0) = v0
Remark In the case the damping coefficient vanishes we recover Theorem 263
Proof of Therorem 263 Newtonrsquos second law of motion says that mass times acceler-ation of the body myprimeprime(t) must be equal to the sum of all forces acting on the body In thecase that we take into account the air dragging force we have
myprimeprime(t) = Fg + Fs0 + Fs(t) + Fd(t)
where Fs(t) = minusk y(t) as in Theorem 263 and Fd(t) = minusd yprime(t) is the air -body draggingforce Since the first two terms on the right hand side above cancel out Fg + Fs0 = 0as mentioned in Theorem 262 the body displacement from the equilibrium position y(t)must be solution of the differential equation
myprimeprime(t) + +d yprime(t) + k y(t) = 0
which is Eq (263) In Section we have seen how to solve this type of differentialequations The characteristic polynomial is p(r) = mr2 + dr + k which has complex roots
rplusmn =1
2m
[minusdplusmn
radicd2 minus 4mk
]= minus d
2mplusmnradic( d
2m
)2
minus k
mrArr rplusmn = minusωd plusmn
radicω2d minus ω2
0
where ωd =d
2mand ω0 =
radick
m In Section we found that the general solution of a
differential equation with a characteristic polynomial having roots as above can be dividedinto three groups For the case r+ 6= r- real valued we obtain case (ci) for the case r+ = r-we obtain case (cii) Finally we said that the general solution for the case of two complexroots rplusmn = α+ βi was given by
y(t) = eαt(c1 cos(βt) + c2 sin(βt)
)
G NAGY ndash ODE November 29 2017 129
In our case α = minusωd and β =radicω20 minus ω2
d We now rewrite the second factor on the right-handside above in terms of an amplitude and a phase shift
y(t) = Aeminusωdt cos(βtminus φ)
The main result from Section says that the initial value problem in Theorem 264 has aunique solution for each of the three cases above This establishes the Theorem
Example 262 Find the movement of a 5Kg mass attached to a spring with constant k =5KgSecs
2moving in a mediuith damping constant d = 5KgSecs with initial conditions
y(0) =radic
3 and yprime(0) = 0
Solution By Theorem 264 the differential equation for this system is myprimeprime+dyprime+ky = 0with m = 5 k = 5 d = 5 The roots of the characteristic polynomial are
rplusmn = minusωd plusmnradicω2d minus ω2
0 ωd =d
2m=
1
2 ω0 =
radick
m= 1
that is
rplusmn = minus1
2plusmnradic
1
4minus 1 = minus1
2plusmn iradic
3
2
This means our system has under damped oscillations Following Theorem 264 part (ciii)the general solution is given by
y(t) = Aeminust2 cos(radic3
2tminus φ
)
We only need to introduce the initial conditions into the expression for y to find out theamplitude A and phase-shift φ In order to do that we first compute the derivative
yprime(t) = minus1
2Aeminust2 cos
(radic3
2tminus φ
)minusradic
3
2Aeminust2 sin
(radic3
2tminus φ
)
The initial conditions in the example imply
radic3 = y(0) = A cos(φ) 0 = yprime(0) = minus1
2A cos(φ) +
radic3
2A sin(φ)
The second equation above allows us to compute the phase-shift since
tan(φ) =1radic3rArr φ =
π
6 or φ =
π
6minus π = minus5π
6
If φ = minus5π6 then y(0) lt 0 which is not out case Hence we must choose φ = π6 Withthat phase-shift the amplitude is given by
radic3 = A cos
(π6
)= A
radic3
2rArr A = 2
We conclude y(t) = 2 eminust2 cos(radic3
2tminus π
6
) C
264 Electrical Oscillations We describe the electric current flowing through an RLC-series electric circuit which consists of a resistance a coil and a capacitor connected inseries as shown in Fig 13 A current can be started by approximating a magnet to the coilIf the circuit has low resistance the current will keep flowing through the coil between thecapacitor plates endlessly There is no need of a power source to keep the current flowingThe presence of a resistance transforms the current energy into heat damping the currentoscillation
130 G NAGY ndash ODE november 29 2017
This system is described by an integro-differential equation found by Kirchhoff nowcalled Kirchhoffrsquos voltage law relating the re-sistor R capacitor C inductor L and thecurrent I in a circuit as follows
LI prime(t) +RI(t) +1
C
int t
t0
I(s) ds = 0 (264)
RC
L
I(t) = electric current
Figure 13 An RLC circuit
Kirchhoffrsquos voltage law is all we need to present the following result
Theorem 265 The electric current I in an RLC circuit with resistance R gt 0 capaci-tance C gt 0 and inductance L gt 0 satisfies the differential equation
LI primeprime(t) +RI prime(t) +1
CI(t) = 0
The roots of the characteristic polynomial of Eq (263) are rplusmn = minusωd plusmnradicω2d minus ω2
0 with
damping coefficient ωd =R
2Land circular frequency ω0 =
radic1
LC Furthermore the results
in Theorem 264 parts (c) (d) hold with ωd and ω0 defined here
Proof of Theorem 265 Compute the derivate on both sides in Eq (264)
LI primeprime(t) +RI prime(t) +1
CI(t) = 0
and divide by L
I primeprime(t) + 2( R
2L
)I prime(t) +
1
LCI(t) = 0
Introduce ωd =R
2Land ω0 =
1radicLC
then Kirchhoffrsquos law can be expressed as the second
order homogeneous constant coefficients differential equation
I primeprime + 2ωd Iprime + ω2
0 I = 0
The rest of the proof follows the one of Theorem 264 This establishes the Theorem
Example 263 Find real-valued fundamental solutions to I primeprime + 2ωd Iprime + ω2
0 I = 0 whereωd = R(2L) ω2
0 = 1(LC) in the cases (a) (b) below
Solution The roots of the characteristic polynomial p(r) = r2 + 2ωdr + ω20 are given by
rplusmn =1
2
[minus2ωd plusmn
radic4ω2
d minus 4ω20
]rArr rplusmn = minusωd plusmn
radicω2d minus ω2
0
Case (a) R = 0 This implies ωd = 0 so rplusmn = plusmniω0 Therefore
I1(t) = cos(ω0t) I2(t) = sin(ω0t)
Remark When the circuit has no resistance the current oscillates without dissipation
Case (b) R ltradic
4LC This implies
R2 lt4L
ChArr R2
4L2lt
1
LChArr ω2
d lt ω20
Therefore the characteristic polynomial has complex roots rplusmn = minusωd plusmn iradicω20 minus ω2
d hencethe fundamental solutions are
I1(t) = eminusωdt cos(β t)
G NAGY ndash ODE November 29 2017 131
I2(t) = eminusωdt sin(β t)
with β =radicω20 minus ω2
d Therefore the resistance R damps the current oscillations producedby the capacitor and the inductance C
t
I1 I2
eminusωdt
minuseminusωdt
Figure 14 Typical currents I1 I2 for case (b)
132 G NAGY ndash ODE november 29 2017
265 Exercises
261- 262-
G NAGY ndash ODE November 29 2017 133
Chapter 3 Power Series Solutions
The first differential equations were solved around the end of the seventeen century andbeginning of the eighteen century We studied a few of these equations in sect 11-14 and theconstant coefficients equations in Chapter 2 By the middle of the eighteen century peoplerealized that the methods we learnt in these first sections had reached a dead end One reasonwas the lack of functions to write the solutions of differential equations The elementaryfunctions we use in calculus such as polynomials quotient of polynomials trigonometricfunctions exponentials and logarithms were simply not enough People even started tothink of differential equations as sources to find new functions It was matter of little timebefore mathematicians started to use power series expansions to find solutions of differentialequations Convergent power series define functions far more general than the elementaryfunctions from calculus
In sect 31 we study the simplest case when the power series is centered at a regular pointof the equation The coefficients of the equation are analytic functions at regular points inparticular continuous In sect we study the Euler equidimensional equation The coefficientsof an Euler equation diverge at a particular point in a very specific way No power seriesare needed to find solutions in this case In sect 32 we solve equations with regular singularpoints The equation coefficients diverge at regular singular points in a way similar tothe coefficients in an Euler equation We will find solutions to these equations using thesolutions to an Euler equation and power series centered precisely at the regular singularpoints of the equation
x
y
1
minus1
minus1 1
P0
P1
P2
P3
134 G NAGY ndash ODE november 29 2017
31 Solutions Near Regular Points
We study second order linear homogeneous differential equations with variable coefficients
yprimeprime + p(x) yprime + q(x) y = 0
We look for solutions on a domain where the equation coefficients p q are analytic functionsRecall that a function is analytic on a given domain iff it can be written as a convergentpower series expansions on that domain In Appendix B we review a few ideas on analyticfunctions and power series expansion that we need in this section A regular point of theequation is every point where the equation coefficients are analytic We look for solutionsthat can be written as power series centered at a regular point For simplicity we solve onlyhomogeneous equations but the power series method can be used with nonhomogeneousequations without introducing substantial modifications
311 Regular Points We now look for solutions to second order linear homogeneousdifferential equations having variable coefficients Recall we solved the constant coefficientcase in Chapter 2 We have seen that the solutions to constant coefficient equations canbe written in terms of elementary functions such as quotient of polynomials trigonometricfunctions exponentials and logarithms For example the equation
yprimeprime + y = 0
has the fundamental solutions y1(x) = cos(x) and y2(x) = sin(x) But the equation
x yprimeprime + yprime + x y = 0
cannot be solved in terms of elementary functions that is in terms of quotients of poly-nomials trigonometric functions exponentials and logarithms Except for equations withconstant coefficient and equations with variable coefficient that can be transformed intoconstant coefficient by a change of variable no other second order linear equation can besolved in terms of elementary functions Still we are interested in finding solutions to vari-able coefficient equations Mainly because these equations appear in the description of somany physical systems
We have said that power series define more general functions than the elementary func-tions mentioned above So we look for solutions using power series In this section we centerthe power series at a regular point of the equation
Definition 311 A point x0 isin R is called a regular point of the equation
yprimeprime + p(x) yprime + q(x) y = 0 (311)
iff p q are analytic functions at x0 Otherwise x0 is called a singular point of the equation
Remark Near a regular point x0 the coefficients p and q in the differential equation abovecan be written in terms of power series centered at x0
p(x) = p0 + p1 (xminus x0) + p2 (xminus x0)2 + middot middot middot =
infinsumn=0
pn (xminus x0)n
q(x) = q0 + q1 (xminus x0) + q2 (xminus x0)2 + middot middot middot =
infinsumn=0
qn (xminus x0)n
and these power series converge in a neighborhood of x0
Example 311 Find all the regular points of the equation
x yprimeprime + yprime + x2 y = 0
G NAGY ndash ODE November 29 2017 135
Solution We write the equation in the form of Eq (311)
yprimeprime +1
xyprime + x y = 0
In this case the coefficient functions are p(x) = 1x and q(x) = x The function q is analyticin R The function p is analytic for all points in Rminus 0 So the point x0 = 0 is a singularpoint of the equation Every other point is a regular point of the equation C
312 The Power Series Method The differential equation in (311) is a particularcase of the equations studied in sect 21 and the existence result in Theorem 212 applies toEq (311) This Theorem was known to Lazarus Fuchs who in 1866 added the following Ifthe coefficient functions p and q are analytic on a domain so is the solution on that domainFuchs went ahead and studied the case where the coefficients p and q have singular pointswhich we study in sect 32 The result for analytic coefficients is summarized below
Theorem 312 If the functions p q are analytic on an open interval (x0minusρ x0 +ρ) sub Rthen the differential equation
yprimeprime + p(x) yprime + q(x) y = 0
has two independent solutions y1 y2 which are analytic on the same interval
Remark A complete proof of this theorem can be found in [2] Page 169 See also [10]sect 29 We present the first steps of the proof and we leave the convergence issues to the latterreferences The proof we present is based on power series expansions for the coefficients pq and the solution y This is not the proof given by Fuchs in 1866
Proof of Thorem 312 Since the coefficient functions p and q are analytic functions on(x0 minus ρ x0 + ρ) where ρ gt 0 they can be written as power series centered at x0
p(x) =
infinsumn=0
pn (xminus x0)n q(x) =
infinsumn=0
qn (xminus x0)n
We look for solutions that can also be written as power series expansions centered at x0
y(x) =
infinsumn=0
an (xminus x0)n
We start computing the first derivatives of the function y
yprime(x) =
infinsumn=0
nan (xminus x0)(nminus1) rArr yprime(x) =
infinsumn=1
nan (xminus x0)(nminus1)
where in the second expression we started the sum at n = 1 since the term with n = 0vanishes Relabel the sum with m = n minus 1 so when n = 1 we have that m = 0 andn = m+ 1 Therefore we get
yprime(x) =
infinsumm=0
(m+ 1)a(m+1) (xminus x0)m
We finally rename the summation index back to n
yprime(x) =
infinsumn=0
(n+ 1)a(n+1) (xminus x0)n (312)
From now on we do these steps at once and the notation nminus 1 = mrarr n means
yprime(x) =
infinsumn=1
nan (xminus x0)(nminus1) =
infinsumn=0
(n+ 1)a(n+1) (xminus x0)n
136 G NAGY ndash ODE november 29 2017
We continue computing the second derivative of function y
yprimeprime(x) =
infinsumn=2
n(nminus 1)an (xminus x0)(nminus2)
and the transformation nminus 2 = mrarr n gives us the expression
yprimeprime(x) =
infinsumn=0
(n+ 2)(n+ 1)a(n+2) (xminus x0)n
The idea now is to put all these power series back in the differential equation We startwith the term
q(x) y =( infinsumn=0
qn(xminus x0)n) ( infinsum
m=0
am(xminus x0)m)
=
infinsumn=0
( nsumk=0
akqnminusk
)(xminus x0)
n
where the second expression above comes from standard results in power series multiplica-tion A similar calculation gives
p(x) yprime =( infinsumn=0
pn(xminus x0)n) ( infinsum
m=0
(m+ 1)a(m+1)(xminus x0)m)
=
infinsumn=0
( nsumk=0
(k + 1)a(k+1)pnminusk
)(xminus x0)
n
Therefore the differential equation yprimeprime + p(x) yprime + q(x) y = 0 has now the forminfinsumn=0
[(n+ 2)(n+ 1)a(n+2) +
nsumk=0
[(k + 1)a(k+1)p(nminusk) + akq(nminusk)
]](xminus x0)
n = 0
So we obtain a recurrence relation for the coefficients an
(n+ 2)(n+ 1)a(n+2) +
nsumk=0
[(k + 1)a(k+1)p(nminusk) + akq(nminusk)
]= 0
for n = 0 1 2 middot middot middot Equivalently
a(n+2) = minus 1
(n+ 2)(n+ 1)
nsumk=0
[(k + 1)a(k+1)p(nminusk) + akq(nminusk) (313)
We have obtained an expression for a(n+2) in terms of the previous coefficients a(n+1) middot middot middot a0
and the coefficients of the function p and q If we choose arbitrary values for the first twocoefficients a0 and a1 the the recurrence relation in (313) define the remaining coefficientsa2 a3 middot middot middot in terms of a0 and a1 The coefficients an chosen in such a way guarantee thatthe function y defined in (312) satisfies the differential equation
In order to finish the proof of Theorem 312 we need to show that the power seriesfor y defined by the recurrence relation actually converges on a nonempty domain andfurthermore that this domain is the same where p and q are analytic This part of theproof is too complicated for us The interested reader can find the rest of the proof in [2]Page 169 See also [10] sect 29
It is important to understand the main ideas in the proof above because we will followthese ideas to find power series solutions to differential equations So we now summarizethe main steps in the proof above
G NAGY ndash ODE November 29 2017 137
(a) Write a power series expansion of the solution centered at a regular point x0
y(x) =
infinsumn=0
an (xminus x0)n
(b) Introduce the power series expansion above into the differential equation and find arecurrence relation among the coefficients an
(c) Solve the recurrence relation in terms of free coefficients
(d) If possible add up the resulting power series for the solutions y1 y2
We follow these steps in the examples below to find solutions to several differential equa-tions We start with a first order constant coefficient equation and then we continue witha second order constant coefficient equation The last two examples consider variable coef-ficient equations
Example 312 Find a power series solution y around the point x0 = 0 of the equation
yprime + c y = 0 c isin R
Solution We already know every solution to this equation This is a first order lineardifferential equation so using the method of integrating factor we find that the solution is
y(x) = a0 eminusc x a0 isin R
We are now interested in obtaining such solution with the power series method Althoughthis is not a second order equation the power series method still works in this examplePropose a solution of the form
y =
infinsumn=0
an xn rArr yprime =
infinsumn=1
nan x(nminus1)
We can start the sum in yprime at n = 0 or n = 1 We choose n = 1 since it is more convenientlater on Introduce the expressions above into the differential equation
infinsumn=1
nan xnminus1 + c
infinsumn=0
an xn = 0
Relabel the first sum above so that the functions xnminus1 and xn in the first and second sumhave the same label One way is the following
infinsumn=0
(n+ 1)a(n+1) xn +
infinsumn=0
c an xn = 0
We can now write down both sums into one single sum
infinsumn=0
[(n+ 1)a(n+1) + c an
]xn = 0
Since the function on the left-hand side must be zero for every x isin R we conclude thatevery coefficient that multiplies xn must vanish that is
(n+ 1)a(n+1) + c an = 0 n gt 0
The last equation is called a recurrence relation among the coefficients an The solution ofthis relation can be found by writing down the first few cases and then guessing the general
138 G NAGY ndash ODE november 29 2017
expression for the solution that is
n = 0 a1 = minusc a0 rArr a1 = minusc a0
n = 1 2a2 = minusc a1 rArr a2 =c2
2a0
n = 2 3a3 = minusc a2 rArr a3 = minusc3
3a0
n = 3 4a4 = minusc a3 rArr a4 =c4
4a0
One can check that the coefficient an can be written as
an = (minus1)ncn
na0
which implies that the solution of the differential equation is given by
y(x) = a0
infinsumn=0
(minus1)ncn
nxn rArr y(x) = a0
infinsumn=0
(minusc x)n
nrArr y(x) = a0 e
minusc x
C
Example 313 Find a power series solution y(x) around the point x0 = 0 of the equation
yprimeprime + y = 0
Solution We know that the solution can be found computing the roots of the characteristicpolynomial r2 + 1 = 0 which gives us the solutions
y(x) = a0 cos(x) + a1 sin(x)
We now recover this solution using the power series
y =
infinsumn=0
an xn rArr yprime =
infinsumn=1
nan x(nminus1) rArr yprimeprime =
infinsumn=2
n(nminus 1)an x(nminus2)
Introduce the expressions above into the differential equation which involves only the func-tion and its second derivative
infinsumn=2
n(nminus 1)an xnminus2 +
infinsumn=0
an xn = 0
Relabel the first sum above so that both sums have the same factor xn One way isinfinsumn=0
(n+ 2)(n+ 1)a(n+2) xn +
infinsumn=0
an xn = 0
Now we can write both sums using one single sum as followsinfinsumn=0
[(n+ 2)(n+ 1)a(n+2) + an
]xn = 0 rArr (n+ 2)(n+ 1)a(n+2) + an = 0 n gt 0
The last equation is the recurrence relation The solution of this relation can again be foundby writing down the first few cases and we start with even values of n that is
n = 0 (2)(1)a2 = minusa0 rArr a2 = minus 1
2a0
n = 2 (4)(3)a4 = minusa2 rArr a4 =1
4a0
n = 4 (6)(5)a6 = minusa4 rArr a6 = minus 1
6a0
G NAGY ndash ODE November 29 2017 139
One can check that the even coefficients a2k can be written as
a2k =(minus1)k
(2k)a0
The coefficients an for the odd values of n can be found in the same way that is
n = 1 (3)(2)a3 = minusa1 rArr a3 = minus 1
3a1
n = 3 (5)(4)a5 = minusa3 rArr a5 =1
5a1
n = 5 (7)(6)a7 = minusa5 rArr a7 = minus 1
7a1
One can check that the odd coefficients a2k+1 can be written as
a2k+1 =(minus1)k
(2k + 1)a1
Split the sum in the expression for y into even and odd sums We have the expression forthe even and odd coefficients Therefore the solution of the differential equation is given by
y(x) = a0
infinsumk=0
(minus1)k
(2k)x2k + a1
infinsumk=0
(minus1)k
(2k + 1)x2k+1
One can check that these are precisely the power series representations of the cosine andsine functions respectively
y(x) = a0 cos(x) + a1 sin(x)C
Example 314 Find the first four terms of the power series expansion around the pointx0 = 1 of each fundamental solution to the differential equation
yprimeprime minus x yprime minus y = 0
Solution This is a differential equation we cannot solve with the methods of previoussections This is a second order variable coefficients equation We use the power seriesmethod so we look for solutions of the form
y =
infinsumn=0
an(xminus 1)n rArr yprime =
infinsumn=1
nan(xminus 1)nminus1 rArr yprimeprime =
infinsumn=2
n(nminus 1)an(xminus 1)nminus2
We start working in the middle term in the differential equation Since the power series iscentered at x0 = 1 it is convenient to re-write this term as x yprime = [(xminus 1) + 1] yprime that is
x yprime =
infinsumn=1
nanx(xminus 1)nminus1
=
infinsumn=1
nan[(xminus 1) + 1
](xminus 1)nminus1
=
infinsumn=1
nan(xminus 1)n +
infinsumn=1
nan(xminus 1)nminus1 (314)
As usual by now the first sum on the right-hand side of Eq (314) can start at n = 0 sincewe are only adding a zero term to the sum that is
infinsumn=1
nan(xminus 1)n =
infinsumn=0
nan(xminus 1)n
140 G NAGY ndash ODE november 29 2017
while it is convenient to relabel the second sum in Eq (314) follows
infinsumn=1
nan(xminus 1)nminus1 =
infinsumn=0
(n+ 1)a(n+1)(xminus 1)n
so both sums in Eq (314) have the same factors (xminus 1)n We obtain the expression
x yprime =
infinsumn=0
nan(xminus 1)n +
infinsumn=0
(n+ 1)a(n+1)(xminus 1)n
=
infinsumn=0
[nan + (n+ 1)a(n+1)
](xminus 1)n (315)
In a similar way relabel the index in the expression for yprimeprime so we obtain
yprimeprime =
infinsumn=0
(n+ 2)(n+ 1)a(n+2)(xminus 1)n (316)
If we use Eqs (315)-(316) in the differential equation together with the expression for ythe differential equation can be written as follows
infinsumn=0
(n+ 2)(n+ 1)a(n+2)(xminus 1)n minusinfinsumn=0
[nan + (n+ 1)a(n+1)
](xminus 1)n minus
infinsumn=0
an(xminus 1)n = 0
We can now put all the terms above into a single sum
infinsumn=0
[(n+ 2)(n+ 1)a(n+2) minus (n+ 1)a(n+1) minus nan minus an
](xminus 1)n = 0
This expression provides the recurrence relation for the coefficients an with n gt 0 that is
(n+ 2)(n+ 1)a(n+2) minus (n+ 1)a(n+1) minus (n+ 1)an = 0
(n+ 1)[(n+ 2)a(n+2) minus a(n+1) minus an
]= 0
which can be rewritten as follows
(n+ 2)a(n+2) minus a(n+1) minus an = 0 (317)
We can solve this recurrence relation for the first four coefficients
n = 0 2a2 minus a1 minus a0 = 0 rArr a2 =a12
+a02
n = 1 3a3 minus a2 minus a1 = 0 rArr a3 =a12
+a06
n = 2 4a4 minus a3 minus a2 = 0 rArr a4 =a14
+a06
Therefore the first terms in the power series expression for the solution y of the differentialequation are given by
y = a0 + a1(xminus 1) +(a0
2+a12
)(xminus 1)2 +
(a06
+a12
)(xminus 1)3 +
(a06
+a14
)(xminus 1)4 + middot middot middot
which can be rewritten as
y = a0
[1 +
1
2(xminus 1)2 +
1
6(xminus 1)3 +
1
6(xminus 1)4 + middot middot middot
]+ a1
[(xminus 1) +
1
2(xminus 1)2 +
1
2(xminus 1)3 +
1
4(xminus 1)4 + middot middot middot
]
G NAGY ndash ODE November 29 2017 141
So the first four terms on each fundamental solution are given by
y1 = 1 +1
2(xminus 1)2 +
1
6(xminus 1)3 +
1
6(xminus 1)4
y2 = (xminus 1) +1
2(xminus 1)2 +
1
2(xminus 1)3 +
1
4(xminus 1)4
C
Example 315 Find the first three terms of the power series expansion around the pointx0 = 2 of each fundamental solution to the differential equation
yprimeprime minus x y = 0
Solution We then look for solutions of the form
y =
infinsumn=0
an(xminus 2)n
It is convenient to rewrite the function x y = [(xminus 2) + 2] y that is
xy =
infinsumn=0
anx(xminus 2)n
=
infinsumn=0
an[(xminus 2) + 2
](xminus 2)n
=
infinsumn=0
an(xminus 2)n+1 +
infinsumn=0
2an(xminus 2)n (318)
We now relabel the first sum on the right-hand side of Eq (318) in the following way
infinsumn=0
an(xminus 2)n+1 =
infinsumn=1
a(nminus1)(xminus 2)n (319)
We do the same type of relabeling on the expression for yprimeprime
yprimeprime =
infinsumn=2
n(nminus 1)an(xminus 2)nminus2
=
infinsumn=0
(n+ 2)(n+ 1)a(n+2)(xminus 2)n
Then the differential equation above can be written as follows
infinsumn=0
(n+ 2)(n+ 1)a(n+2)(xminus 2)n minusinfinsumn=0
2an(xminus 2)n minusinfinsumn=1
a(nminus1)(xminus 2)n = 0
(2)(1)a2 minus 2a0 +
infinsumn=1
[(n+ 2)(n+ 1)a(n+2) minus 2an minus a(nminus1)
](xminus 2)n = 0
So the recurrence relation for the coefficients an is given by
a2 minus a0 = 0 (n+ 2)(n+ 1)a(n+2) minus 2an minus a(nminus1) = 0 n gt 1
142 G NAGY ndash ODE november 29 2017
We can solve this recurrence relation for the first four coefficients
n = 0 a2 minus a0 = 0 rArr a2 = a0
n = 1 (3)(2)a3 minus 2a1 minus a0 = 0 rArr a3 =a06
+a13
n = 2 (4)(3)a4 minus 2a2 minus a1 = 0 rArr a4 =a06
+a112
Therefore the first terms in the power series expression for the solution y of the differentialequation are given by
y = a0 + a1(xminus 2) + a0(xminus 2)2 +(a0
6+a13
)(xminus 2)3 +
(a06
+a112
)(xminus 2)4 + middot middot middot
which can be rewritten as
y = a0
[1 + (xminus 2)2 +
1
6(xminus 2)3 +
1
6(xminus 2)4 + middot middot middot
]+ a1
[(xminus 2) +
1
3(xminus 2)3 +
1
12(xminus 2)4 + middot middot middot
]So the first three terms on each fundamental solution are given by
y1 = 1 + (xminus 2)2 +1
6(xminus 2)3
y2 = (xminus 2) +1
3(xminus 2)3 +
1
12(xminus 2)4
C
313 The Legendre Equation The Legendre equation appears when one solves theLaplace equation in spherical coordinates The Laplace equation describes several phenom-ena such as the static electric potential near a charged body or the gravitational potentialof a planet or star When the Laplace equation describes a situation having spherical sym-metry it makes sense to use spherical coordinates to solve the equation It is in that casethat the Legendre equation appears for a variable related to the polar angle in the sphericalcoordinate system See Jacksonrsquos classic book on electrodynamics [8] sect 31 for a derivationof the Legendre equation from the Laplace equation
Example 316 Find all solutions of the Legendre equation
(1minus x2) yprimeprime minus 2x yprime + l(l + 1) y = 0
where l is any real constant using power series centered at x0 = 0
Solution We start writing the equation in the form of Theorem 312
yprimeprime minus 2
(1minus x2)yprime +
l(l + 1)
(1minus x2)y = 0
It is clear that the coefficient functions
p(x) = minus 2
(1minus x2) q(x) =
l(l + 1)
(1minus x2)
are analytic on the interval |x| lt 1 which is centered at x0 = 0 Theorem 312 says thatthere are two solutions linearly independent and analytic on that interval So we write thesolution as a power series centered at x0 = 0
y(x) =
infinsumn=0
an xn
G NAGY ndash ODE November 29 2017 143
Then we get
yprimeprime =
infinsumn=0
(n+ 2)(n+ 1)a(n+2) xn
minusx2 yprimeprime =
infinsumn=0
minus(nminus 1)nan xn
minus2x yprime =
infinsumn=0
minus2nan xn
l(l + 1) y =
infinsumn=0
l(l + 1)an xn
The Legendre equation says that the addition of the four equations above must be zeroinfinsumn=0
((n+ 2)(n+ 1)a(n+2) minus (nminus 1)nan minus 2nan + l(l + 1)an
)xn = 0
Thereforeevery term in that sum must vanish
(n+ 2)(n+ 1)a(n+2) minus (nminus 1)nan minus 2nan + l(l + 1)an = 0 n gt n
This is the recurrence relation for the coefficients an After a few manipulations the recur-rence relation becomes
a(n+2) = minus (l minus n)(l + n+ 1)
(n+ 2)(n+ 1)an n gt 0
By giving values to n we obtain
a2 = minus l(l + 1)
2a0 a3 = minus (l minus 1)(l + 2)
3a1
Since a4 is related to a2 and a5 is related to a3 we get
a4 = minus (l minus 2)(l + 3)
(3)(4)a2 rArr a4 =
(l minus 2)l(l + 1)(l + 3)
4a0
a5 = minus (l minus 3)(l + 4)
(4)(5)a3 rArr a5 =
(l minus 3)(l minus 1)(l + 2)(l + 4)
5a1
If one keeps solving the coefficients an in terms of either a0 or a1 one gets the expression
y(x) = a0
[1minus l(l + 1)
2x2 +
(l minus 2)l(l + 1)(l + 3)
4x4 + middot middot middot
]+ a1
[xminus (l minus 1)(l + 2)
3x3 +
(l minus 3)(l minus 1)(l + 2)(l + 4)
5x5 + middot middot middot
]
Hence the fundamental solutions are
y1(x) = 1minus l(l + 1)
2x2 +
(l minus 2)l(l + 1)(l + 3)
4x4 + middot middot middot
y2(x) = xminus (l minus 1)(l + 2)
3x3 +
(l minus 3)(l minus 1)(l + 2)(l + 4)
5x5 + middot middot middot
The ration test provides the interval where the seires above converge For function y1 weget replacing n by 2n∣∣∣a2n+2 x
2n+2
a2n x2n
∣∣∣ =∣∣∣= (l minus 2n)(l + 2n+ 1)
(2n+ 1)(2n+ 2)
∣∣∣ |x2| rarr |x|2 as nrarrinfin
A similar result holds for y2 So both series converge on the interval defined by |x| lt 1 C
144 G NAGY ndash ODE november 29 2017
Remark The functions y1 y2 are called Legendre functions For a noninteger value ofthe constant l these functions cannot be written in terms of elementary functions Butwhen l is an integer one of these series terminate and becomes a polynomial The casel being a nonnegative integer is specially relevant in physics For l even the function y1becomes a polynomial while y2 remains an infinite series For l odd the function y2 becomesa polynomial while the y1 remains an infinite series For example for l = 0 1 2 3 we get
l = 0 y1(x) = 1
l = 1 y2(x) = x
l = 2 y1(x) = 1minus 3x2
l = 3 y2(x) = xminus 5
3x3
The Legendre polynomials are proportional to these polynomials The proportionality fac-tor for each polynomial is chosen so that the Legendre polynomials have unit lengh in aparticular chosen inner product We just say here that the first four polynomials are
l = 0 y1(x) = 1 P0 = y1 P0(x) = 1
l = 1 y2(x) = x P1 = y2 P1(x) = x
l = 2 y1(x) = 1minus 3x2 P2 = minus1
2y1 P2(x) =
1
2
(3x2 minus 1
)
l = 3 y2(x) = xminus 5
3x3 P3 = minus3
2y1 P3(x) =
1
2
(5x3 minus 3x
)
These polynomials Pn are called Legendre polynomials The graph of the first four Le-gendre polynomials is given in Fig 15
x
y
1
minus1
minus1 1
P0
P1
P2
P3
Figure 15 The graph of the first four Legendre polynomials
G NAGY ndash ODE November 29 2017 145
146 G NAGY ndash ODE november 29 2017
314 Exercises
311- 312-
G NAGY ndash ODE November 29 2017 147
32 Solutions Near Regular Singular Points
We continue with our study of the solutions to the differential equation
yprimeprime + p(x) yprime + q(x) y = 0
In sect 31 we studied the case where the coefficient functions p and q were analytic functionsWe saw that the solutions were also analytic and we used power series to find them Insect we studied the case where the coefficients p and q were singular at a point x0 Thesingularity was of a very particular form
p(x) =p0
(xminus x0) q(x) =
q0(xminus x0)2
where p0 q0 are constants The equation was called the Euler equidimensional equationWe found solutions near the singular point x0 We found out that some solutions wereanalytic at x0 and some solutions were singular at x0 In this section we study equationswith coefficients p and q being again singular at a point x0 The singularity in this case issuch that both functions below
(xminus x0)p(x) (xminus x0)2q(x)
are analytic in a neighborhood of x0 The Euler equation is the particular case where thesefunctions above are constants Now we say they admit power series expansions centered atx0 So we study equations that are close to Euler equations when the variable x is close tothe singular point x0 We will call the point x0 a regular singular point That is a singularpoint that is not so singular We will find out that some solutions may be well defined atthe regular singular point and some other solutions may be singular at that point
321 Regular Singular Points In sect 31 we studied second order equations
yprimeprime + p(x) yprime + q(x) y = 0
and we looked for solutions near regular points of the equation A point x0 is a regular pointof the equation iff the functions p and q are analytic in a neighborhood of x0 In particularthe definition means that these functions have power series centered at x0
p(x) =
infinsumn=0
pn(xminus x0)n q(x) =
infinsumn=0
qn(xminus x0)n
which converge in a neighborhood of x0 A point x0 is called a singular point of the equationif the coefficients p and q are not analytic on any set containing x0 In this section we studya particular type of singular points We study singular points that are not so singular
Definition 321 A point x0 isin R is a regular singular point of the equation
yprimeprime + p(x) yprime + q(x) y = 0
iff both functions px0 and qx0 are analytic on a neighborhood containing x0 where
px0(x) = (xminus x0)p(x) qx0(x) = (xminus x0)2q(x)
Remark The singular point x0 in an Euler equidimensional equation is regular singularIn fact the functions px0 and qx0 are not only analytic they are actually constant Theproof is simple take the Euler equidimensional equation
yprimeprime +p0
(xminus x0)yprime +
q0(xminus x0)2
y = 0
and compute the functions px0 and qx0 for the point x0
px0(x) = (xminus x0)( p0
(xminus x0)
)= p0 qx0(x) = (xminus x0)
2( q0
(xminus x0)2
)= q0
148 G NAGY ndash ODE november 29 2017
Example 321 Show that the singular point of Euler equation below is regular singular
(xminus 3)2 yprimeprime + 2(xminus 3) yprime + 4 y = 0
Solution Divide the equation by (xminus 3)2 so we get the equation in the standard form
yprimeprime +2
(xminus 3)yprime +
4
(xminus 3)2y = 0
The functions p and q are given by
p(x) =2
(xminus 3) q(x) =
4
(xminus 3)2
The functions p3 and q3 for the point x0 = 3 are constants
p3(x) = (xminus 3)( 2
(xminus 3)
)= 2 q3(x) = (xminus 3)2
( 4
(xminus 3)2
)= 4
Therefore they are analytic This shows that x0 = 3 is regular singular C
Example 322 Find the regular-singular points of the Legendre equation
(1minus x2) yprimeprime minus 2x yprime + l(l + 1) y = 0
where l is a real constant
Solution We start writing the Legendre equation in the standard form
yprimeprime minus 2x
(1minus x2)yprime +
l(l + 1)
(1minus x2)y = 0
The functions p and q are given by
p(x) = minus 2x
(1minus x2) q(x) =
l(l + 1)
(1minus x2)
These functions are analytic except where the denominators vanish
(1minus x2) = (1minus x)(1 + x) = 0 rArrx0 = 1
x1 = minus1
Let us start with the singular point x0 = 1 The functions px0 and qx0 for this point are
px0(x) = (xminus 1)p(x) = (xminus 1)(minus 2x
(1minus x)(1 + x)
)rArr px0(x) =
2x
(1 + x)
qx0(x) = (xminus 1)2q(x) = (xminus 1)2( l(l + 1)
(1minus x)(1 + x)
)rArr qx0(x) = minus l(l + 1)(xminus 1)
(1 + x)
These two functions are analytic in a neighborhood of x0 = 1 (Both px0 and qx0 have novertical asymptote at x0 = 1) Therefore the point x0 = 1 is a regular singular point Wenow need to do a similar calculation with the point x1 = minus1 The functions px1 and qx1 forthis point are
px1(x) = (x+ 1)p(x) = (x+ 1)(minus 2x
(1minus x)(1 + x)
)rArr px1(x) = minus 2x
(1minus x)
qx1(x) = (x+ 1)2q(x) = (x+ 1)2( l(l + 1)
(1minus x)(1 + x)
)rArr qx1(x) =
l(l + 1)(x+ 1)
(1minus x)
These two functions are analytic in a neighborhood of x1 = minus1 (Both px1 and qx1 have novertical asymptote at x1 = minus1) Therefore the point x1 = minus1 is a regular singular pointC
G NAGY ndash ODE November 29 2017 149
Example 323 Find the regular singular points of the differential equation
(x+ 2)2(xminus 1) yprimeprime + 3(xminus 1) yprime + 2 y = 0
Solution We start writing the equation in the standard form
yprimeprime +3
(x+ 2)2yprime +
2
(x+ 2)2(xminus 1)y = 0
The functions p and q are given by
p(x) =3
(x+ 2)2 q(x) =
2
(x+ 2)2(xminus 1)
The denominators of the functions above vanish at x0 = minus2 and x1 = 1 These are singularpoints of the equation Let us find out whether these singular points are regular singular ornot Let us start with x0 = minus2 The functions px0 and qx0 for this point are
px0(x) = (x+ 2)p(x) = (x+ 2)( 3
(x+ 2)2
)rArr px0(x) =
3
(x+ 2)
qx0(x) = (x+ 2)2q(x) = (x+ 2)2( 2
(x+ 2)2(xminus 1)
)rArr qx0(x) = minus 2
(xminus 1)
We see that qx0 is analytic on a neighborhood of x0 = minus2 but px0 is not analytic on anyneighborhood containing x0 = minus2 because the function px0 has a vertical asymptote atx0 = minus2 So the point x0 = minus2 is not a regular singular point We need to do a similarcalculation for the singular point x1 = 1 The functions px1 and qx1 for this point are
px1(x) = (xminus 1)p(x) = (xminus 1)( 3
(x+ 2)2
)rArr px1(x) =
3(xminus 1)
(x+ 2)
qx1(x) = (xminus 1)2q(x) = (xminus 1)2( 2
(x+ 2)2(xminus 1)
)rArr qx1(x) = minus2(xminus 1)
(x+ 2)
We see that both functions px1 and qx1 are analytic on a neighborhood containing x1 = 1(Both px1 and qx1 have no vertical asymptote at x1 = 1) Therefore the point x1 = 1 is aregular singular point C
Remark It is fairly simple to find the regular singular points of an equation Take theequation in out last example written in standard form
yprimeprime +3
(x+ 2)2yprime +
2
(x+ 2)2(xminus 1)y = 0
The functions p and q are given by
p(x) =3
(x+ 2)2 q(x) =
2
(x+ 2)2(xminus 1)
The singular points are given by the zeros in the denominators that is x0 = minus2 and x1 = 1The point x0 is not regular singular because function p diverges at x0 = minus2 faster than
1
(x+ 2) The point x1 = 1 is regular singular because function p is regular at x1 = 1 and
function q diverges at x1 = 1 slower than1
(xminus 1)2
150 G NAGY ndash ODE november 29 2017
322 The Frobenius Method We now assume that the differential equation
yprimeprime + p(x) yprime + q(x) y = 0 (321)
has a regular singular point We want to find solutions to this equation that are definedarbitrary close to that regular singular point Recall that a point x0 is a regular singularpoint of the equation above iff the functions (xminus x0) p and (xminus x0)
2 q are analytic at x0 Afunction is analytic at a point iff it has a convergent power series expansion in a neighborhoodof that point In our case this means that near a regular singular point holds
(xminus x0) p(x) =
infinsumn=0
pn (xminus x0)n = p0 + p1(xminus x0) + p2(xminus x0)
2 + middot middot middot
(xminus x0)2 q(x) =
infinsumn=0
qn (xminus x0)n = q0 + q1(xminus x0) + q2(xminus x0)
2 + middot middot middot
This means that near x0 the function p diverges at most like (x minus x0)minus1 and function q
diverges at most like (xminus x0)minus2 as it can be seen from the equations
p(x) =p0
(xminus x0)+ p1 + p2(xminus x0) + middot middot middot
q(x) =q0
(xminus x0)2+
q1
(xminus x0)+ q2 + middot middot middot
Therefore for p0 and q0 nonzero and x close to x0 we have the relations
p(x) p0
(xminus x0) q(x) q0
(xminus x0)2 x x0
where the symbol a b with a b isin R means that |a minus b| is close to zero In other wordsthe for x close to a regular singular point x0 the coefficients of Eq (321) are close to thecoefficients of the Euler equidimensional equation
(xminus x0)2 yprimeprimee + p0(xminus x0) y
primee + q0 ye = 0
where p0 and q0 are the zero order terms in the power series expansions of (x minus x0) p and(xminusx0)
2 q given above One could expect that solutions y to Eq (321) are close to solutionsye to this Euler equation One way to put this relation in a more precise way is
y(x) = ye(x)
infinsumn=0
an(xminus x0)n rArr y(x) = ye(x)
(a0 + a1(xminus x0) + middot middot middot
)
Recalling that at least one solution to the Euler equation has the form ye(x) = (x minus x0)r
where r is a root of the indicial polynomial
r(r minus 1) + p0r + q0 = 0
we then expect that for x close to x0 the solution to Eq (321) be close to
y(x) = (xminus x0)rinfinsumn=0
an(xminus x0)n
This expression for the solution is usually written in a more compact way as follows
y(x) =
infinsumn=0
an(xminus x0)(r+n)
This is the main idea of the Frobenius method to find solutions to equations with regularsingular points To look for solutions that are close to solutions to an appopriate Eulerequation We now state two theorems summarize a few formulas for solutions to differentialequations with regular singular points
G NAGY ndash ODE November 29 2017 151
Theorem 322 (Frobenius) Assume that the differential equation
yprimeprime + p(x) yprime + q(x) y = 0 (322)
has a regular singular point x0 isin R and denote by p0 q0 the zero order terms in
(xminus x0) p(x) =
infinsumn=0
pn (xminus x0)n (xminus x0)
2 q(x) =
infinsumn=0
qn (xminus x0)n
Let r+ r- be the solutions of the indicial equation
r(r minus 1) + p0 r + q0 = 0
(a) If (r+minusr-) is not an integer then the differential equation in (322) has two independentsolutions y+ y- of the form
y+(x) = |xminus x0|r+infinsumn=0
an (xminus x0)n with a0 = 1
y-(x) = |xminus x0|r-infinsumn=0
bn (xminus x0)n with b0 = 1
(b) If (r+minus r-) = N a nonnegative integer then the differential equation in (322) has twoindependent solutions y+ y- of the form
y+(x) = |xminus x0|r+infinsumn=0
an (xminus x0)n with a0 = 1
y-(x) = |xminus x0|r-infinsumn=0
bn (xminus x0)n + c y+(x) ln |xminus x0| with b0 = 1
The constant c is nonzero if N = 0 If N gt 0 the constant c may or may not be zero
In both cases above the series converge in the interval defined by |x minus x0| lt ρ and thedifferential equation is satisfied for 0 lt |xminus x0| lt ρ
Remarks
(a) The statements above are taken from Apostolrsquos second volume [2] Theorems 614 615For a sketch of the proof see Simmons [10] A proof can be found in [5 7]
(b) The existence of solutions and their behavior in a neighborhood of a singular point wasfirst shown by Lazarus Fuchs in 1866 The construction of the solution using singularpower series expansions was first shown by Ferdinand Frobenius in 1874
We now give a summary of the Frobenius method to find the solutions mentioned inTheorem 322 to a differential equation having a regular singular point For simplicity weonly show how to obtain the solution y+
(1) Look for a solution y of the form y(x) =
infinsumn=0
an (xminus x0)(n+r)
(2) Introduce this power series expansion into the differential equation and find the indicialequation for the exponent r Find the larger solution of the indicial equation
(3) Find a recurrence relation for the coefficients an
(4) Introduce the larger root r into the recurrence relation for the coefficients an Onlythen solve this latter recurrence relation for the coefficients an
(5) Using this procedure we will find the solution y+ in Theorem 322
152 G NAGY ndash ODE november 29 2017
We now show how to use these steps to find one solution of a differential equation near aregular singular point We show the case where the roots of the indicial polynomial differ byan integer We show that in this case we obtain only solution y+ The solution y- does not
have the form y(x) =
infinsumn=0
an (x minus x0)(n+r) Theorem 322 says that there is a logarithmic
term in the solution We do not compute that solution here
Example 324 Find the solution y near the regular singular point x0 = 0 of the equation
x2 yprimeprime minus x(x+ 3) yprime + (x+ 3) y = 0
Solution We look for a solution of the form
y(x) =
infinsumn=0
an x(n+r)
The first and second derivatives are given by
yprime(x) =
infinsumn=0
(n+ r)an x(n+rminus1) yprimeprime(x) =
infinsumn=0
(n+ r)(n+ r minus 1)an x(n+rminus2)
In the case r = 0 we had the relationsuminfinn=0 nan x
(nminus1) =suminfinn=1 nan x
(nminus1) But in ourcase r 6= 0 so we do not have the freedom to change in this way the starting value of thesummation index n If we want to change the initial value for n we have to re-label thesummation index We now introduce these expressions into the differential equation It isconvenient to do this step by step We start with the term (x+ 3)y which has the form
(x+ 3) y = (x+ 3)
infinsumn=0
an x(n+r)
=
infinsumn=0
an x(n+r+1) +
infinsumn=0
3an x(n+r)
=
infinsumn=1
a(nminus1) x(n+r) +
infinsumn=0
3an x(n+r) (323)
We continue with the term containing yprime
minusx(x+ 3) yprime = minus(x2 + 3x)
infinsumn=0
(n+ r)an x(n+rminus1)
= minusinfinsumn=0
(n+ r)an x(n+r+1) minus
infinsumn=0
3(n+ r)an x(n+r)
= minusinfinsumn=1
(n+ r minus 1)a(nminus1) x(n+r) minus
infinsumn=0
3(n+ r)an x(n+r) (324)
Then we compute the term containing yprimeprime as follows
x2 yprimeprime = x2infinsumn=0
(n+ r)(n+ r minus 1)an x(n+rminus2)
=
infinsumn=0
(n+ r)(n+ r minus 1)an x(n+r) (325)
G NAGY ndash ODE November 29 2017 153
As one can see from Eqs(323)-(325) the guiding principle to rewrite each term is tohave the power function x(n+r) labeled in the same way on every term For example inEqs(323)-(325) we do not have a sum involving terms with factors x(n+rminus1) or factorsx(n+r+1) Then the differential equation can be written as follows
infinsumn=0
(n+ r)(n+ r minus 1)an x(n+r) minus
infinsumn=1
(n+ r minus 1)a(nminus1) x(n+r)
minusinfinsumn=0
3(n+ r)an x(n+r) +
infinsumn=1
a(nminus1) x(n+r) +
infinsumn=0
3an x(n+r) = 0
In the equation above we need to split the sums containing terms with n gt 0 into the termn = 0 and a sum containing the terms with n gt 1 that is[
r(r minus 1)minus 3r + 3]a0x
r+infinsumn=1
[(n+ r)(n+ r minus 1)an minus (n+ r minus 1)a(nminus1) minus 3(n+ r)an + a(nminus1) + 3an
]x(n+r) = 0
and this expression can be rewritten as follows[r(r minus 1)minus 3r + 3
]a0x
r+infinsumn=1
[[(n+ r)(n+ r minus 1)minus 3(n+ r) + 3
]an minus (n+ r minus 1minus 1)a(nminus1)
]x(n+r) = 0
and then [r(r minus 1)minus 3r + 3
]a0x
r+infinsumn=1
[[(n+ r)(n+ r minus 1)minus 3(n+ r minus 1)
]an minus (n+ r minus 2)a(nminus1)
]x(n+r) = 0
hence[r(r minus 1)minus 3r + 3
]a0x
r +
infinsumn=1
[(n+ r minus 1)(n+ r minus 3)an minus (n+ r minus 2)a(nminus1)
]x(n+r) = 0
The indicial equation and the recurrence relation are given by the equations
r(r minus 1)minus 3r + 3 = 0 (326)
(n+ r minus 1)(n+ r minus 3)an minus (n+ r minus 2)a(nminus1) = 0 (327)
The way to solve these equations in (326)-(327) is the following First solve Eq (326) forthe exponent r which in this case has two solutions rplusmn second introduce the first solutionr+ into the recurrence relation in Eq (327) and solve for the coefficients an the result isa solution y+ of the original differential equation then introduce the second solution r- intoEq (327) and solve again for the coefficients an the new result is a second solution y- Letus follow this procedure in the case of the equations above
r2 minus 4r + 3 = 0 rArr rplusmn =1
2
[4plusmnradic
16minus 12]rArr
r+ = 3
r- = 1
Introducing the value r+ = 3 into Eq (327) we obtain
(n+ 2)nan minus (n+ 1)anminus1 = 0
One can check that the solution y+ obtained form this recurrence relation is given by
y+(x) = a0 x3[1 +
2
3x+
1
4x2 +
1
15x3 + middot middot middot
]
154 G NAGY ndash ODE november 29 2017
Notice that r+ minus r- = 3 minus 1 = 2 this is a nonpositive integer Theorem 322 says thatthe solution y- contains a logarithmic term Therefore the solution y- is not of the forminfinsumn=0
anx(r+n) as we have assumed in the calculations done in this example But what does
happen if we continue this calculation for r- = 1 What solution do we get Let us findout We introduce the value r- = 1 into Eq (327) then we get
n(nminus 2)an minus (nminus 1)anminus1 = 0
One can also check that the solution y- obtained form this recurrence relation is given by
y-(x) = a2 x[x2 +
2
3x3 +
1
4x4 +
1
15x5 + middot middot middot
]
= a2 x3[1 +
2
3x+
1
4x2 +
1
15x3 + middot middot middot
]rArr y- =
a2a1y+
So get a solution but this solution is proportional to y+ To get a solution not proportionalto y+ we need to add the logarithmic term as in Theorem 322 C
323 The Bessel Equation We saw in sect 31 that the Legendre equation appears whenone solves the Laplace equation in spherical coordinates If one uses cylindrical coordinatesinsted one needs to solve the Bessel equation Recall we mentioned that the Laplaceequation describes several phenomena such as the static electric potential near a chargedbody or the gravitational potential of a planet or star When the Laplace equation describesa situation having cylindrical symmetry it makes sense to use cylindrical coordinates to solveit Then the Bessel equation appears for the radial variable in the cylindrical coordinatesystem See Jacksonrsquos classic book on electrodynamics [8] sect 37 for a derivation of theBessel equation from the Laplace equation
The equation is named after Friedrich Bessel a German astronomer from the first halfof the seventeen century who was the first person to calculate the distance to a star otherthan our Sun Besselrsquos parallax of 1838 yielded a distance of 11 light years for the star61 Cygni In 1844 he discovered that Sirius the brightest star in the sky has a travelingcompanion Nowadays such system is called a binary star This companion has the sizeof a planet and the mass of a star so it has a very high density many thousand timesthe density of water This was the first dead start discovered Bessel first obtained theequation that now bears his name when he was studing star motions But the equationfirst appeared in Daniel Bernoullirsquos studies of oscillations of a hanging chain (Taken fromSimmonsrsquo book [10] sect 34)
Example 325 Find all solutions y(x) =
infinsumn=0
anxn+r with a0 6= 0 of the Bessel equation
x2 yprimeprime + x yprime + (x2 minus α2) y = 0 x gt 0
where α is any real nonnegative constant using the Frobenius method centered at x0 = 0
Solution Let us double check that x0 = 0 is a regular singular point of the equation Westart writing the equation in the standard form
yprimeprime +1
xyprime +
(x2 minus α2)
x2y = 0
so we get the functions p(x) = 1x and q(x) = (x2 minus α2)x2 It is clear that x0 = 0 is asingular point of the equation Since the functions
p(x) = xp(x) = 1 q(x) = x2q(x) = (x2 minus α2)
G NAGY ndash ODE November 29 2017 155
are analytic we conclude that x0 = 0 is a regular singular point So it makes sense to lookfor solutions of the form
y(x) =
infinsumn=0
anx(n+r) x gt 0
We now compute the different terms needed to write the differential equation We need
x2y(x) =
infinsumn=0
anx(n+r+2) rArr y(x) =
infinsumn=2
a(nminus2)x(n+r)
where we did the relabeling n+ 2 = mrarr n The term with the first derivative is given by
x yprime(x) =
infinsumn=0
(n+ r)anx(n+r)
The term with the second derivative has the form
x2 yprimeprime(x) =
infinsumn=0
(n+ r)(n+ r minus 1)anx(n+r)
Therefore the differential equation takes the forminfinsumn=0
(n+ r)(n+ r minus 1)anx(n+r) +
infinsumn=0
(n+ r)anx(n+r)
+
infinsumn=2
a(nminus2)x(n+r) minus
infinsumn=0
α2 anx(n+r) = 0
Group together the sums that start at n = 0infinsumn=0
[(n+ r)(n+ r minus 1) + (n+ r)minus α2
]an x
(n+r) +
infinsumn=2
a(nminus2)x(n+r)
and cancel a few terms in the first suminfinsumn=0
[(n+ r)2 minus α2
]an x
(n+r) +
infinsumn=2
a(nminus2)x(n+r) = 0
Split the sum that starts at n = 0 into its first two terms plus the rest
(r2 minus α2)a0 xr +
[(r + 1)2 minus α2
]a1 x
(r+1)
+
infinsumn=2
[(n+ r)2 minus α2
]an x
(n+r) +
infinsumn=2
a(nminus2) x(n+r) = 0
The reason for this splitting is that now we can write the two sums as one
(r2 minus α2)a0 xr +
[(r + 1)2 minus α2
]a1 x
(r+1) +
infinsumn=2
[(n+ r)2 minus α2
]an + a(nminus2)
x(n+r) = 0
We then conclude that each term must vanish
(r2minusα2)a0 = 0[(r+ 1)2minusα2
]a1 = 0
[(n+ r)2minusα2
]an + a(nminus2) = 0 n gt 2 (328)
This is the recurrence relation for the Bessel equation It is here where we use that we lookfor solutions with a0 6= 0 In this example we do not look for solutions with a1 6= 0 Maybeit is a good exercise for the reader to find such solutions But in this example we look forsolutions with a0 6= 0 This condition and the first equation above imply that
r2 minus α2 = 0 rArr rplusmn = plusmnα
156 G NAGY ndash ODE november 29 2017
and recall that α is a nonnegative but otherwise arbitrary real number The choice r = r+will lead to a solution yα and the choice r = r- will lead to a solution yminusα These solutionsmay or may not be linearly independent This depends on the value of α since r+minusr- = 2αOne must be careful to study all possible cases
Remark Let us start with a very particular case Suppose that both equations below hold
(r2 minus α2) = 0[(r + 1)2 minus α2
]= 0
This equations are the result of both a0 6= 0 and a1 6= 0 These equations imply
r2 = (r + 1)2 rArr 2r + 1 = 0 rArr r = minus1
2
But recall that r = plusmnα and α gt 0 hence the case a0 6= 0 and a1 6= 0 happens only whenα = 12 and we choose r- = minusα = minus12 We leave computation of the solution yminus12 as anexercise for the reader But the answer is
yminus12(x) = a0cos(x)radic
x+ a1
sin(x)radicx
From now on we assume that α 6= 12 This condition on α the equation r2 minus α2 = 0 andthe remark above imply that
(r + 1)2 minus α2 6= 0
So the second equation in the recurrence relation in (328) implies that a1 = 0 Summariz-ing the first two equations in the recurrence relation in (328) are satisfied because
rplusmn = plusmnα a1 = 0
We only need to find the coefficients an for n gt 2 such that the third equation in therecurrence relation in (328) is satisfied But we need to consider two cases r = r+ = α andr- = minusα
We start with the case r = r+ = α and we get
(n2 + 2nα) an + a(nminus2) = 0 rArr n(n+ 2α) an = minusa(nminus2)
Since n gt 2 and α gt 0 the factor (n+ 2α) never vanishes and we get
an = minusa(nminus2)
n(n+ 2α)
This equation and a1 = 0 imply that all coefficients a2k+1 = 0 for k gt 0 the odd coefficientsvanish On the other hand the even coefficent are nonzero The coefficient a2 is
a2 = minus a02(2 + 2α)
rArr a2 = minus a022(1 + α)
the coefficient a4 is
a4 = minus a2
4(4 + 2α)= minus a2
22(2)(2 + α)rArr a4 =
a024(2)(1 + α)(2 + α)
the coefficient a6 is
a6 = minus a4
6(6 + 2α)= minus a4
22(3)(3 + α)rArr a6 = minus a0
26(3)(1 + α)(2 + α)(3 + α)
Now it is not so hard to show that the general term a2k for k = 0 1 2 middot middot middot has the form
a2k =(minus1)ka0
22k(k)(1 + α)(2 + α) middot middot middot (k + α)
G NAGY ndash ODE November 29 2017 157
We then get the solution yα
yα(x) = a0 xα[1 +
infinsumk=1
(minus1)k
22k(k)(1 + α)(2 + α) middot middot middot (k + α)
] α gt 0 (329)
The ratio test shows that this power series converges for all x gt 0 When a0 = 1 thecorresponding solution is usually called in the literature as Jα
Jα(x) = xα[1 +
infinsumk=1
(minus1)k
22k(k)(1 + α)(2 + α) middot middot middot (k + α)
] α gt 0
We now look for solutions to the Bessel equation coming from the choice r = r- = minusαwith a1 = 0 and α 6= 12 The third equation in the recurrence relation in (328) implies
(n2 minus 2nα)an + a(nminus2) = 0 rArr n(nminus 2α)an = minusa(nminus2)
If 2α = N a nonnegative integer the second equation above implies that the recurrencerelation cannot be solved for an with n gt N This case will be studied later on Now assumethat 2α is not a nonnegative integer In this case the factor (nminus 2α) never vanishes and
an = minusa(nminus2)
n(nminus 2α)
This equation and a1 = 0 imply that all coefficients a2k+1 = 0 for k gt 0 the odd coefficientsvanish On the other hand the even coefficent are nonzero The coefficient a2 is
a2 = minus a02(2minus 2α)
rArr a2 = minus a022(1minus α)
the coefficient a4 is
a4 = minus a2
4(4minus 2α)= minus a2
22(2)(2minus α)rArr a4 =
a024(2)(1minus α)(2minus α)
the coefficient a6 is
a6 = minus a4
6(6minus 2α)= minus a4
22(3)(3minus α)rArr a6 = minus a0
26(3)(1minus α)(2minus α)(3minus α)
Now it is not so hard to show that the general term a2k for k = 0 1 2 middot middot middot has the form
a2k =(minus1)ka0
22k(k)(1minus α)(2minus α) middot middot middot (k minus α)
We then get the solution yminusα
yminusα(x) = a0 xα[1 +
infinsumk=1
(minus1)k
22k(k)(1minus α)(2minus α) middot middot middot (k minus α)
] α gt 0 (3210)
The ratio test shows that this power series converges for all x gt 0 When a0 = 1 thecorresponding solution is usually called in the literature as Jminusα
Jminusα(x) = xminusα[1 +
infinsumk=1
(minus1)k
22k(k)(1minus α)(2minus α) middot middot middot (k minus α)
] α gt 0
The function yminusα was obtained assuming that 2α is not a nonnegative integer From thecalculations above it is clear that we need this condition on α so we can compute an interms of a(nminus2) Notice that rplusmn = plusmnα hence (r+ minus r-) = 2α So the condition on α is thecondition (r+ minus r-) not a nonnegative integer which appears in Theorem 322
However there is something special about the Bessel equation That the constant 2αis not a nonnegative integer means that α is neither an integer nor an integer plus one-half But the formula for yminusα is well defined even when α is an integer plus one-half say
158 G NAGY ndash ODE november 29 2017
k + 12 for k integer Introducing this yminus(k+12) into the Bessel equation one can checkthat yminus(k+12) is a solution to the Bessel equation
Summarizing the solutions of the Bessel equation function yα is defined for every non-negative real number α and yminusα is defined for every nonnegative real number α except fornonnegative integers For a given α such that both yα and yminusα are defined these func-tions are linearly independent That these functions cannot be proportional to each otheris simple to see since for α gt 0 the function yα is regular at the origin x = 0 while yminusαdiverges
The last case we need to study is how to find the solution yminusα when α is a nonnegativeinteger We see that the expression in (3210) is not defined when α is a nonnegativeinteger And we just saw that this condition on α is a particular case of the condition inTheorem 322 that (r+ minus r-) is not a nonnegative integer Theorem 322 gives us what isthe expression for a second solution yminusα linearly independent of yα in the case that α is anonnegative integer This expression is
yminusα(x) = yα(x) ln(x) + xminusαinfinsumn=0
cnxn
If we put this expression into the Bessel equation one can find a recurrence relation for thecoefficients cn This is a long calculation and the final result is
yminusα(x) = yα(x) ln(x)
minus 1
2
(x2
)minusα αminus1sumn=0
(αminus nminus 1)
n
(x2
)2n
minus 1
2
(x2
)α infinsumn=0
(minus1)n(hn + h(n+α))
n (n+ α)
(x2
)2n
with h0 = 0 hn = 1 + 12 + middot middot middot+ 1
n for n gt 1 and α a nonnegative integer C
G NAGY ndash ODE November 29 2017 159
324 Exercises
321- 322-
160 G NAGY ndash ODE november 29 2017
Notes on Chapter 3
Sometimes solutions to a differential equation cannot be written in terms of previouslyknown functions When that happens the we say that the solutions to the differentialequation define a new type of functions How can we work with or let alone write down anew function a function that cannot be written in terms of the functions we already knowIt is the differential equation what defines the function So the function properties must beobtained from the differential equation itself A way to compute the function values mustcome from the differential equation as well The few paragraphs that follow try to give sensethat this procedure is not as artificial as it may sound
Differential Equations to Define Functions We have seen in sect 32 that the solutionsof the Bessel equation for α 6= 12 cannot be written in terms of simple functions such asquotients of polynomials trigonometric functions logarithms and exponentials We usedpower series including negative powers to write solutions to this equation To study prop-erties of these solutions one needs to use either the power series expansions or the equationitself This type of study on the solutions of the Bessel equation is too complicated for thesenotes but the interested reader can see [14]
We want to give an idea how this type of study can be carried out We choose a differentialequation that is simpler to study than the Bessel equation We study two solutions C and Sof this particular differential equation and we will show using only the differential equationthat these solutions have all the properties that the cosine and sine functions have Sowe will conclude that these solutions are in fact C(x) = cos(x) and S(x) = sin(x) Thisexample is taken from Hassanirsquos textbook [] example 1361 page 368
Example 326 Let the function C be the unique solution of the initial value problem
C primeprime + C = 0 C(0) = 1 C prime(0) = 0
and let the function S be the unique solution of the initial value problem
Sprimeprime + S = 0 S(0) = 0 Sprime(0) = 1
Use the differential equation to study these functions
Solution(a) We start showing that these solutions C and S are linearly independent We only needto compute their Wronskian at x = 0
W (0) = C(0)Sprime(0)minus C prime(0)S(0) = 1 6= 0
Therefore the functions C and S are linearly independent
(b) We now show that the function S is odd and the function C is even The function
C(x) = C(minusx) satisfies the initial value problem
C primeprime + C = C primeprime + C = 0 C(0) = C(0) = 1 C prime(0) = minusC prime(0) = 0
This is the same initial value problem satisfied by the function C The uniqueness ofsolutions to these initial value problem implies that C(minusx) = C(x) for all x isin R hence the
function C is even The function S(x) = S(minusx) satisfies the initial value problem
Sprimeprime + S = Sprimeprime + S = 0 S(0) = S(0) = 0 Sprime(0) = minusSprime(0) = minus1
This is the same initial value problem satisfied by the function minusS The uniqueness ofsolutions to these initial value problem implies that S(minusx) = minusS(x) for all x isin R hencethe function S is odd
G NAGY ndash ODE November 29 2017 161
(c) Next we find a differential relation between the functions C and S Notice that thefunction minusC prime is the uique solution of the initial value problem
(minusC prime)primeprime + (minusC prime) = 0 minusC prime(0) = 0 (minusC prime)prime(0) = C(0) = 1
This is precisely the same initial value problem satisfied by the function S The uniquenessof solutions to these initial value problems implies that minusC = S that is for all x isin R holds
C prime(x) = minusS(x)
Take one more derivative in this relation and use the differential equation for C
Sprime(x) = minusC primeprime(x) = C(x) rArr Sprime(x) = C(x)
(d) Let us now recall that Abelrsquos Theorem says that the Wronskian of two solutions to asecond order differential equation yprimeprime+ p(x) yprime+ q(x) y = 0 satisfies the differential equationW prime + p(x)W = 0 In our case the function p = 0 so the Wronskian is a constant functionIf we compute the Wronskian of the functions C and S and we use the differential relationsfound in (c) we get
W (x) = C(x)Sprime(x)minus C prime(x)S(x) = C2(x) + S2(x)
This Wronskian must be a constant function but at x = 0 takes the value W (0) = C2(0) +S2(0) = 1 We therefore conclude that for all x isin R holds
C2(x) + S2(x) = 1
(e) We end computing power series expansions of these functions C and S so we have away to compute their values We start with function C The initial conditions say
C(0) = 1 C prime(0) = 0
The differential equation at x = 0 and the first initial condition say that C primeprime(0) = minusC(0) =minus1 The derivative of the differential equation at x = 0 and the second initial condition saythat C primeprimeprime(0) = minusC prime(0) = 0 If we keep taking derivatives of the differential equation we get
C primeprime(0) = minus1 C primeprimeprime(0) = 0 C(4)(0) = 1
and in general
C(n)(0) =
0 if n is odd
(minus1)k if n = 2k where k = 0 1 2 middot middot middot
So we obtain the Taylor series expansion
C(x) =
infinsumk=0
(minus1)kx2k
(2k)
which is the power series expansion of the cosine function A similar calculation yields
S(x) =
infinsumk=0
(minus1)kx2k+1
(2k + 1)
which is the power series expansion of the sine function Notice that we have obtained theseexpansions using only the differential equation and its derivatives at x = 0 together withthe initial conditions The ratio test shows that these power series converge for all x isin RThese power series expansions also say that the function S is odd and C is even C
162 G NAGY ndash ODE november 29 2017
Review of Natural Logarithms and Exponentials The discovery or invention of anew type of functions happened many times before the time of differential equations Look-ing at the history of mathematics we see that people first defined polynomials as additionsand multiplications on the independent variable x After that came quotient of polynomialsThen people defined trigonometric functions as ratios of geometric objects For example thesine and cosine functions were originally defined as ratios of the sides of right trianglesThese were all the functions known before calculus before the seventeen century Calculusbrought the natural logarithm and its inverse the exponential function together with thenumber e
What is used to define the natural logarithm is not a differential equation but integrationPeople knew that the antiderivative of a power function f(x) = xn is another power functionF (x) = x(n+1)(n + 1) except for n = minus1 where this rule fails The antiderivative of thefunction f(x) = 1x is neither a power function nor a trigonometric function so at thattime it was a new function People gave a name to this new function ln and defined it aswhatever comes from the integration of the function f(x) = 1x that is
ln(x) =
int x
1
ds
s x gt 0
All the properties of this new function must come from that definition It is clear that thisfunction is increasing that ln(1) = 0 and that the function take values in (minusinfininfin) Butthis function has a more profound property ln(ab) = ln(a) + ln(b) To see this relation firstcompute
ln(ab) =
int ab
1
ds
s=
int a
1
ds
s+
int ab
a
ds
s
then change the variable in the second term s = sa so ds = dsa hence dss = dss and
ln(ab) =
int a
1
ds
s+
int b
1
ds
s= ln(a) + ln(b)
The Euler number e is defined as the solution of the equation ln(e) = 1 The inverse of thenatural logarithm lnminus1 is defined in the usual way
lnminus1(y) = x hArr ln(x) = y x isin (0infin) y isin (minusinfininfin)
Since the natural logarithm satisfies that ln(x1x2) = ln(x1) + ln(x2) the inverse functionsatisfies the related identity lnminus1(y1 + y2) = lnminus1(y1) lnminus1(y2) To see this identity compute
lnminus1(y1 + y2) = lnminus1(ln(x1) + ln(x2)
)= lnminus1(ln(x1x2)) = x1x2 = lnminus1(y1) lnminus1(y2)
This identity and the fact that lnminus1(1) = e imply that for any positive integer n holds
lnminus1(n) = lnminus1
n times
(︷ ︸︸ ︷1 + middot middot middot+ 1)=
n times︷ ︸︸ ︷lnminus1(1) middot middot middot lnminus1(1)=
n times︷ ︸︸ ︷e middot middot middot e= en
This relation says that lnminus1 is the exponential function when restricted to positive integersThis suggests a way to generalize the exponential function from positive integers to realnumbers ey = lnminus1(y) for y real Hence the name exponential for the inverse of the naturallogarithm And this is how calculus brought us the logarithm and the exponential functions
Finally notice that by the definition of the natural logarithm its derivative is lnprime(x) = 1xBut there is a formula relating the derivative of a function f and its inverse fminus1(
fminus1)prime
(y) =1
f prime(fminus1(y)
)
G NAGY ndash ODE November 29 2017 163
Using this formula for the natural logarithm we see that(lnminus1
)prime(y) =
1
lnprime(lnminus1(y)
) = lnminus1(y)
In other words the inverse of the natural logarithm call it now g(y) = lnminus1(y) = ey mustbe a solution to the differential equation
gprime(y) = g(y)
And this is how logarithms and exponentials can be added to the set of known functionsOf course now that we know about differential equations we can always start with thedifferential equation above and obtain all the properties of the exponential function usingthe differential equation This might be a nice exercise for the interested reader
164 G NAGY ndash ODE november 29 2017
Chapter 4 The Laplace Transform Method
The Laplace Transform is a transformation meaning that it changes a function into a newfunction Actually it is a linear transformation because it converts a linear combination offunctions into a linear combination of the transformed functions Even more interesting theLaplace Transform converts derivatives into multiplications These two properties make theLaplace Transform very useful to solve linear differential equations with constant coefficientsThe Laplace Transform converts such differential equation for an unknown function into analgebraic equation for the transformed function Usually it is easy to solve the algebraicequation for the transformed function Then one converts the transformed function backinto the original function This function is the solution of the differential equation
Solving a differential equation using a Laplace Transform is radically different from allthe methods we have used so far This method as we will use it here is relatively new TheLaplace Transform we define here was first used in 1910 but its use grew rapidly after 1920specially to solve differential equations Transformations like the Laplace Transform wereknown much earlier Pierre Simon de Laplace used a similar transformation in his studies ofprobability theory published in 1812 but analogous transformations were used even earlierby Euler around 1737
δn
t0
1
2
3
11
2
1
3
δ1(t)
δ2(t)
δ3(t)
G NAGY ndash ODE November 29 2017 165
41 Introduction to the Laplace Transform
The Laplace transform is a transformationmdashit changes a function into another functionThis transformation is an integral transformationmdashthe original function is multiplied by anexponential and integrated on an appropriate region Such an integral transformation isthe answer to very interesting questions Is it possible to transform a differential equationinto an algebraic equation Is it possible to transform a derivative of a function into amultiplication The answer to both questions is yes for example with a Laplace transform
This is how it works You start with a derivative of a function yprime(t) then you multiplyit by any function we choose an exponential eminusst and then you integrate on t so we get
yprime(t)rarrinteminusst yprime(t) dt
which is a transformation an integral transformation And now because we have an inte-gration above we can integrate by partsmdashthis is the big idea
yprime(t)rarrinteminusst yprime(t) dt = eminusst y(t) + s
inteminusst y(t) dt
So we have transformed the derivative we started with into a multiplication by this constants from the exponential The idea in this calculation actually works to solve differentialequations and motivates us to define the integral transformation y(t)rarr Y (s) as follows
y(t)rarr Y (s) =
inteminusst y(t) dt
The Laplace transform is a transformation similar to the one above where we choose someappropriate integration limitsmdashwhich are very convenient to solve initial value problems
We dedicate this section to introduce the precise definition of the Laplace transformand how is used to solve differential equations In the following sections we will see thatthis method can be used to solve linear constant coefficients differential equation with verygeneral sources including Diracrsquos delta generalized functions
411 Oveview of the Method The Laplace transform changes a function into anotherfunction For example we will show later on that the Laplace transform changes
f(x) = sin(ax) into F (x) =a
x2 + a2
We will follow the notation used in the literature and we use t for the variable of theoriginal function f while we use s for the variable of the transformed function F Usingthis notation the Laplace transform changes
f(t) = sin(at) into F (s) =a
s2 + a2
We will show that the Laplace transform is a linear transformation and it transforms deriva-tives into multiplication Because of these properties we will use the Laplace transform tosolve linear differential equations
We Laplace transform the original differential equation Because the the properties abovethe result will be an algebraic equation for the transformed function Algebraic equationsare simple to solve so we solve the algebraic equation Then we Laplace transform backthe solution We summarize these steps as follows
L[
differential
eq for y
](1)minusrarr
Algebraic
eq for L[y]
(2)minusrarrSolve the
algebraic
eq for L[y]
(3)minusrarrTransform back
to obtain y
(Use the table)
166 G NAGY ndash ODE november 29 2017
412 The Laplace Transform The Laplace transform is a transformation meaning thatit converts a function into a new function We have seen transformations earlier in thesenotes In Chapter 2 we used the transformation
L[y(t)] = yprimeprime(t) + a1 yprime(t) + a0 y(t)
so that a second order linear differential equation with source f could be written as L[y] = f There are simpler transformations for example the differentiation operation itself
D[f(t)] = f prime(t)
Not all transformations involve differentiation There are integral transformations for ex-ample integration itself
I[f(t)] =
int x
0
f(t) dt
Of particular importance in many applications are integral transformations of the form
T [f(t)] =
int b
a
K(s t) f(t) dt
where K is a fixed function of two variables called the kernel of the transformation and ab are real numbers or plusmninfin The Laplace transform is a transfomation of this type wherethe kernel is K(s t) = eminusst the constant a = 0 and b =infin
Definition 411 The Laplace transform of a function f defined on Df = (0infin) is
F (s) =
int infin0
eminusstf(t) dt (411)
defined for all s isin DF sub R where the integral converges
In these note we use an alternative notation for the Laplace transform that emphasizesthat the Laplace transform is a transformation L[f ] = F that is
L[ ] =
int infin0
eminusst ( ) dt
So the Laplace transform will be denoted as either L[f ] or F depending whether we wantto emphasize the transformation itself or the result of the transformation We will also usethe notation L[f(t)] or L[f ](s) or L[f(t)](s) whenever the independent variables t and sare relevant in any particular context
The Laplace transform is an improper integralmdashan integral on an unbounded domainImproper integrals are defined as a limit of definite integralsint infin
t0
g(t) dt = limNrarrinfin
int N
t0
g(t) dt
An improper integral converges iff the limit exists otherwise the integral divergesNow we are ready to compute our first Laplace transform
Example 411 Compute the Laplace transform of the function f(t) = 1 that is L[1]
Solution Following the definition
L[1] =
int infin0
eminusst dt = limNrarrinfin
int N
0
eminusst dt
The definite integral above is simple to compute but it depends on the values of s Fors = 0 we get
limNrarrinfin
int N
0
dt = limnrarrinfin
N =infin
G NAGY ndash ODE November 29 2017 167
So the improper integral diverges for s = 0 For s 6= 0 we get
limNrarrinfin
int N
0
eminusst dt = limNrarrinfin
minus1
seminusst
∣∣∣N0
= limNrarrinfin
minus1
s(eminussN minus 1)
For s lt 0 we have s = minus|s| hence
limNrarrinfin
minus1
s(eminussN minus 1) = lim
Nrarrinfinminus1
s(e|s|N minus 1) = minusinfin
So the improper integral diverges for s lt 0 In the case that s gt 0 we get
limNrarrinfin
minus1
s(eminussN minus 1) =
1
s
If we put all these result together we get
L[1] =1
s s gt 0
C
Example 412 Compute L[eat] where a isin R
Solution We start with the definition of the Laplace transform
L[eat] =
int infin0
eminusst(eat) dt =
int infin0
eminus(sminusa)t dt
In the case s = a we get
L[eat] =
int infin0
1 dt =infin
so the improper integral diverges In the case s 6= a we get
L[eat] = limNrarrinfin
int N
0
eminus(sminusa)t dt s 6= a
= limNrarrinfin
[ (minus1)
(sminus a)eminus(sminusa)t
∣∣∣N0
]= lim
Nrarrinfin
[ (minus1)
(sminus a)(eminus(sminusa)N minus 1)
]
Now we have to remaining cases The first case is
sminus a lt 0 rArr minus(sminus a) = |sminus a| gt 0 rArr limNrarrinfin
eminus(sminusa)N =infin
so the integral diverges for s lt a The other case is
sminus a gt 0 rArr minus(sminus a) = minus|sminus a| lt 0 rArr limNrarrinfin
eminus(sminusa)N = 0
so the integral converges only for s gt a and the Laplace transform is given by
L[eat] =1
(sminus a) s gt a
C
Example 413 Compute L[teat] where a isin R
Solution In this case the calculation is more complicated than above since we need tointegrate by parts We start with the definition of the Laplace transform
L[teat] =
int infin0
eminusstteat dt = limNrarrinfin
int N
0
teminus(sminusa)t dt
168 G NAGY ndash ODE november 29 2017
This improper integral diverges for s = a so L[teat] is not defined for s = a From now onwe consider only the case s 6= a In this case we can integrate by parts
L[teat] = limNrarrinfin
[minus 1
(sminus a)teminus(sminusa)t
∣∣∣N0
+1
sminus a
int N
0
eminus(sminusa)t dt]
that is
L[teat] = limNrarrinfin
[minus 1
(sminus a)teminus(sminusa)t
∣∣∣N0
minus 1
(sminus a)2eminus(sminusa)t
∣∣∣N0
] (412)
In the case that s lt a the first term above diverges
limNrarrinfin
minus 1
(sminus a)N eminus(sminusa)N = lim
Nrarrinfinminus 1
(sminus a)N e|sminusa|N =infin
therefore L[teat] is not defined for s lt a In the case s gt a the first term on the right handside in (412) vanishes since
limNrarrinfin
minus 1
(sminus a)N eminus(sminusa)N = 0
1
(sminus a)t eminus(sminusa)t
∣∣t=0
= 0
Regarding the other term and recalling that s gt a
limNrarrinfin
minus 1
(sminus a)2eminus(sminusa)N = 0
1
(sminus a)2eminus(sminusa)t
∣∣t=0
=1
(sminus a)2
Therefore we conclude that
L[teat] =1
(sminus a)2 s gt a
C
Example 414 Compute L[sin(at)] where a isin R
Solution In this case we need to compute
L[sin(at)] =
int infin0
eminusst sin(at) dt = limNrarrinfin
int N
0
eminusst sin(at) dt
The definite integral above can be computed integrating by parts twiceint N
0
eminusst sin(at) dt = minus1
s
[eminusst sin(at)
]∣∣∣N0
minus a
s2
[eminusst cos(at)
]∣∣∣N0
minus a2
s2
int N
0
eminusst sin(at) dt
which implies that(1 +
a2
s2
)int N
0
eminusst sin(at) dt = minus1
s
[eminusst sin(at)
]∣∣∣N0
minus a
s2
[eminusst cos(at)
]∣∣∣N0
then we getint N
0
eminusst sin(at) dt =s2
(s2 + a2)
[minus1
s
[eminusst sin(at)
]∣∣∣N0
minus a
s2
[eminusst cos(at)
]∣∣∣N0
]
and finally we getint N
0
eminusst sin(at) dt =s2
(s2 + a2)
[minus1
s
[eminussN sin(aN)minus 0
]minus a
s2
[eminussN cos(aN)minus 1
]]
One can check that the limit N rarrinfin on the right hand side above does not exist for s 6 0so L[sin(at)] does not exist for s 6 0 In the case s gt 0 it is not difficult to see thatint infin
0
eminusst sin(at) dt =( s2
s2 + a2
)[1
s(0minus 0)minus a
s2(0minus 1)
]
G NAGY ndash ODE November 29 2017 169
so we obtain the final result
L[sin(at)] =a
s2 + a2 s gt 0
C
In Table 2 we present a short list of Laplace transforms They can be computed in thesame way we computed the the Laplace transforms in the examples above
f(t) F (s) = L[f(t)] DF
f(t) = 1 F (s) =1
ss gt 0
f(t) = eat F (s) =1
(sminus a)s gt a
f(t) = tn F (s) =n
s(n+1)s gt 0
f(t) = sin(at) F (s) =a
s2 + a2s gt 0
f(t) = cos(at) F (s) =s
s2 + a2s gt 0
f(t) = sinh(at) F (s) =a
s2 minus a2s gt |a|
f(t) = cosh(at) F (s) =s
s2 minus a2s gt |a|
f(t) = tneat F (s) =n
(sminus a)(n+1)s gt a
f(t) = eat sin(bt) F (s) =b
(sminus a)2 + b2s gt a
f(t) = eat cos(bt) F (s) =(sminus a)
(sminus a)2 + b2s gt a
f(t) = eat sinh(bt) F (s) =b
(sminus a)2 minus b2sminus a gt |b|
f(t) = eat cosh(bt) F (s) =(sminus a)
(sminus a)2 minus b2sminus a gt |b|
Table 2 List of a few Laplace transforms
413 Main Properties Since we are more or less confident on how to compute a Laplacetransform we can start asking deeper questions For example what type of functions havea Laplace transform It turns out that a large class of functions those that are piecewisecontinuous on [0infin) and bounded by an exponential This last property is particularlyimportant and we give it a name
170 G NAGY ndash ODE november 29 2017
Definition 412 A function f defined on [0infin) is of exponential order s0 where s0 isany real number iff there exist positive constants k T such that
|f(t)| 6 k es0t for all t gt T (413)
Remarks
(a) When the precise value of the constant s0 is not important we will say that f is ofexponential order
(b) An example of a function that is not of exponential order is f(t) = et2
This definition helps to describe a set of functions having Laplace transform Piecewisecontinuous functions on [0infin) of exponential order have Laplace transforms
Theorem 413 (Convergence of LT) If a function f defined on [0infin) is piecewise con-tinuous and of exponential order s0 then the L[f ] exists for all s gt s0 and there exists apositive constant k such that ∣∣L[f ]
∣∣ 6 k
sminus s0 s gt s0
Proof of Theorem 413 From the definition of the Laplace transform we know that
L[f ] = limNrarrinfin
int N
0
eminusst f(t) dt
The definite integral on the interval [0 N ] exists for every N gt 0 since f is piecewisecontinuous on that interval no matter how large N is We only need to check whether theintegral converges as N rarrinfin This is the case for functions of exponential order because∣∣∣int N
0
eminusstf(t) dt∣∣∣ 6 int N
0
eminusst|f(t)| dt 6int N
0
eminusstkes0t dt = k
int N
0
eminus(sminuss0)t dt
Therefore for s gt s0 we can take the limit as N rarrinfin∣∣L[f ]∣∣ 6 lim
Nrarrinfin
∣∣∣int N
0
eminusstf(t) dt∣∣∣ 6 kL[es0t] =
k
(sminus s0)
Therefore the comparison test for improper integrals implies that the Laplace transformL[f ] exists at least for s gt s0 and it also holds that∣∣L[f ]
∣∣ 6 k
sminus s0 s gt s0
This establishes the Theorem The next result says that the Laplace transform is a linear transformation This means
that the Laplace transform of a linear combination of functions is the linear combination oftheir Laplace transforms
Theorem 414 (Linearity) If L[f ] and L[g] exist then for all a b isin R holds
L[af + bg] = aL[f ] + bL[g]
G NAGY ndash ODE November 29 2017 171
Proof of Theorem 414 Since integration is a linear operation so is the Laplace trans-form as this calculation shows
L[af + bg] =
int infin0
eminusst[af(t) + bg(t)
]dt
= a
int infin0
eminusstf(t) dt+ b
int infin0
eminusstg(t) dt
= aL[f ] + bL[g]
This establishes the Theorem
Example 415 Compute L[3t2 + 5 cos(4t)]
Solution From the Theorem above and the Laplace transform in Table we know that
L[3t2 + 5 cos(4t)] = 3L[t2] + 5L[cos(4t)]
= 3( 2
s3
)+ 5( s
s2 + 42
) s gt 0
=6
s3+
5s
s2 + 42
Therefore
L[3t2 + 5 cos(4t)] =5s4 + 6s2 + 96
s3(s2 + 16) s gt 0
C
The Laplace transform can be used to solve differential equations The Laplace transformconverts a differential equation into an algebraic equation This is so because the Laplacetransform converts derivatives into multiplications Here is the precise result
Theorem 415 (Derivative into Multiplication) If a function f is continuously differen-tiable on [0infin) and of exponential order s0 then L[f prime] exists for s gt s0 and
L[f prime] = sL[f ]minus f(0) s gt s0 (414)
Proof of Theorem 415 The main calculation in this proof is to compute
L[f prime] = limNrarrinfin
int N
0
eminusst f prime(t) dt
We start computing the definite integral above Since f prime is continuous on [0infin) that definiteintegral exists for all positive N and we can integrate by partsint N
0
eminusstf prime(t) dt =[(eminusstf(t)
)∣∣∣N0
minusint N
0
(minuss)eminusstf(t) dt]
= eminussNf(N)minus f(0) + s
int N
0
eminusstf(t) dt
We now compute the limit of this expression above as N rarr infin Since f is continuous on[0infin) of exponential order s0 we know that
limNrarrinfin
int N
0
eminusstf(t) dt = L[f ] s gt s0
Let us use one more time that f is of exponential order s0 This means that there existpositive constants k and T such that |f(t)| 6 k es0t for t gt T Therefore
limNrarrinfin
eminussNf(N) 6 limNrarrinfin
k eminussNes0N = limNrarrinfin
k eminus(sminuss0)N = 0 s gt s0
172 G NAGY ndash ODE november 29 2017
These two results together imply that L[f prime] exists and holds
L[f prime] = sL[f ]minus f(0) s gt s0
This establishes the Theorem
Example 416 Verify the result in Theorem 415 for the function f(t) = cos(bt)
Solution We need to compute the left hand side and the right hand side of Eq (414)and verify that we get the same result We start with the left hand side
L[f prime] = L[minusb sin(bt)] = minusbL[sin(bt)] = minusb b
s2 + b2rArr L[f prime] = minus b2
s2 + b2
We now compute the right hand side
sL[f ]minus f(0) = sL[cos(bt)]minus 1 = ss
s2 + b2minus 1 =
s2 minus s2 minus b2
s2 + b2
so we get
sL[f ]minus f(0) = minus b2
s2 + b2
We conclude that L[f prime] = sL[f ]minus f(0) C
It is not difficult to generalize Theorem 415 to higher order derivatives
Theorem 416 (Higher Derivatives into Multiplication) If a function f is n-times con-tinuously differentiable on [0infin) and of exponential order s0 then L[f primeprime] middot middot middot L[f (n)] existfor s gt s0 and
L[f primeprime] = s2 L[f ]minus s f(0)minus f prime(0) (415)
L[f (n)] = sn L[f ]minus s(nminus1) f(0)minus middot middot middot minus f (nminus1)(0) (416)
Proof of Theorem 416 We need to use Eq (414) n times We start with the Laplacetransform of a second derivative
L[f primeprime] = L[(f prime)prime]
= sL[f prime]minus f prime(0)
= s(sL[f ]minus f(0)
)minus f prime(0)
= s2 L[f ]minus s f(0)minus f prime(0)
The formula for the Laplace transform of an nth derivative is computed by induction on nWe assume that the formula is true for nminus 1
L[f (nminus1)] = s(nminus1) L[f ]minus s(nminus2) f(0)minus middot middot middot minus f (nminus2)(0)
Since L[f (n)] = L[(f prime)(nminus1)] the formula above on f prime gives
L[(f prime)(nminus1)] = s(nminus1) L[f prime]minus s(nminus2) f prime(0)minus middot middot middot minus (f prime)(nminus2)(0)
= s(nminus1)(sL[f ]minus f(0)
)minus s(nminus2) f prime(0)minus middot middot middot minus f (nminus1)(0)
= s(n) L[f ]minus s(nminus1) f(0)minus s(nminus2) f prime(0)minus middot middot middot minus f (nminus1)(0)
This establishes the Theorem
G NAGY ndash ODE November 29 2017 173
Example 417 Verify Theorem 416 for f primeprime where f(t) = cos(bt)
Solution We need to compute the left hand side and the right hand side in the firstequation in Theorem (416) and verify that we get the same result We start with the lefthand side
L[f primeprime] = L[minusb2 cos(bt)] = minusb2 L[cos(bt)] = minusb2 s
s2 + b2rArr L[f primeprime] = minus b2s
s2 + b2
We now compute the right hand side
s2 L[f ]minus s f(0)minus f prime(0) = s2 L[cos(bt)]minus sminus 0 = s2 s
s2 + b2minus s =
s3 minus s3 minus b2ss2 + b2
so we get
s2 L[f ]minus s f(0)minus f prime(0) = minus b2s
s2 + b2
We conclude that L[f primeprime] = s2 L[f ]minus s f(0)minus f prime(0) C
414 Solving Differential Equations The Laplace transform can be used to solve differ-ential equations We Laplace transform the whole equation which converts the differentialequation for y into an algebraic equation for L[y] We solve the Algebraic equation and wetransform back
L[
differential
eq for y
](1)minusrarr
Algebraic
eq for L[y]
(2)minusrarrSolve the
algebraic
eq for L[y]
(3)minusrarrTransform back
to obtain y
(Use the table)
Example 418 Use the Laplace transform to find y solution of
yprimeprime + 9 y = 0 y(0) = y0 yprime(0) = y1
Remark Notice we already know what the solution of this problem is Following sect 23 weneed to find the roots of
p(r) = r2 + 9 rArr r+- = plusmn3 i
and then we get the general solution
y(t) = c+ cos(3t) + c- sin(3t)
Then the initial condition will say that
y(t) = y0 cos(3t) +y13
sin(3t)
We now solve this problem using the Laplace transform method
Solution We now use the Laplace transform method
L[yprimeprime + 9y] = L[0] = 0
The Laplace transform is a linear transformation
L[yprimeprime] + 9L[y] = 0
But the Laplace transform converts derivatives into multiplications
s2 L[y]minus s y(0)minus yprime(0) + 9L[y] = 0
This is an algebraic equation for L[y] It can be solved by rearranging terms and using theinitial condition
(s2 + 9)L[y] = s y0 + y1 rArr L[y] = y0s
(s2 + 9)+ y1
1
(s2 + 9)
174 G NAGY ndash ODE november 29 2017
But from the Laplace transform table we see that
L[cos(3t)] =s
s2 + 32 L[sin(3t)] =
3
s2 + 32
therefore
L[y] = y0 L[cos(3t)] + y11
3L[sin(3t)]
Once again the Laplace transform is a linear transformation
L[y] = L[y0 cos(3t) +
y13
sin(3t)]
We obtain thaty(t) = y0 cos(3t) +
y13
sin(3t)
C
G NAGY ndash ODE November 29 2017 175
415 Exercises
411-
(a) Compute the definite integral
IN =
int N
4
dx
x2
(b) Use the result in (a) to compute
I =
int infin4
dx
x2
412-
(a) Compute the definite integral
IN =
int N
5
eminusst dt
(b) Use the result in (a) to compute
I =
int infin5
eminusst dt
413-
(a) Compute the definite integral
IN =
int N
0
eminusst e2t dt
(b) Use the result in (a) to compute
F (s) = L[e2t]
Indicate the domain of F
414-
(a) Compute the definite integral
IN =
int N
0
eminusst t eminus2t dt
(b) Use the result in (a) to compute
F (s) = L[t eminus2t]
Indicate the domain of F
415-
(a) Compute the definite integral
IN =
int N
0
eminusst sin(2t) dt
(b) Use the result in (a) to compute
F (s) = L[sin(2t)]
Indicate the domain of F
416-
(a) Compute the definite integral
IN =
int N
0
eminusst cos(2t) dt
(b) Use the result in (a) to compute
F (s) = L[cos(2t)]
Indicate the domain of F
417- Use the definition of the Laplacetransform to compute
F (s) = L[sinh(at)]
and indicate the domain of F
418- Use the definition of the Laplacetransform to compute
F (s) = L[cosh(at)]
and indicate the domain of F
176 G NAGY ndash ODE november 29 2017
42 The Initial Value Problem
We will use the Laplace transform to solve differential equations The main idea is
L
[differential eq
for y(t)
](1)minusrarr
Algebraic eq
for L[y(t)]
(2)minusrarrSolve the
algebraic eq
for L[y(t)]
(3)minusrarrTransform back
to obtain y(t)
(Use the table)
We will use the Laplace transform to solve differential equations with constant coefficientsAlthough the method can be used with variable coefficients equations the calculations couldbe very complicated in such a case
The Laplace transform method works with very general source functions including stepfunctions which are discontinuous and Diracrsquos deltas which are generalized functions
421 Solving Differential Equations As we see in the sketch above we start with adifferential equation for a function y We first compute the Laplace transform of the wholedifferential equation Then we use the linearity of the Laplace transform Theorem 414 andthe property that derivatives are converted into multiplications Theorem 415 to transformthe differential equation into an algebraic equation for L[y] Let us see how this works in asimple example a first order linear equation with constant coefficientsmdashwe already solvedit in sect 11
Example 421 Use the Laplace transform to find the solution y to the initial value problem
yprime + 2y = 0 y(0) = 3
Solution In sect 11 we saw one way to solve this problem using the integrating factormethod One can check that the solution is y(t) = 3eminus2t We now use the Laplace transformFirst compute the Laplace transform of the differential equation
L[yprime + 2y] = L[0] = 0
Theorem 414 says the Laplace transform is a linear operation that is
L[yprime] + 2L[y] = 0
Theorem 415 relates derivatives and multiplications as follows(sL[y]minus y(0)
)+ 2L[y] = 0 rArr (s+ 2)L[y] = y(0)
In the last equation we have been able to transform the original differential equation for yinto an algebraic equation for L[y] We can solve for the unknown L[y] as follows
L[y] =y(0)
s+ 2rArr L[y] =
3
s+ 2
where in the last step we introduced the initial condition y(0) = 3 From the list of Laplacetransforms given in sect 41 we know that
L[eat] =1
sminus arArr 3
s+ 2= 3L[eminus2t] rArr 3
s+ 2= L[3 eminus2t]
So we arrive at L[y(t)] = L[3 eminus2t] Here is where we need one more property of the Laplacetransform We show right after this example that
L[y(t)] = L[3 eminus2t] rArr y(t) = 3 eminus2t
This property is called one-to-one Hence the only solution is y(t) = 3 eminus2t C
G NAGY ndash ODE November 29 2017 177
422 One-to-One Property Let us repeat the method we used to solve the differentialequation in Example 421 We first computed the Laplace transform of the whole differentialequation Then we use the linearity of the Laplace transform Theorem 414 and theproperty that derivatives are converted into multiplications Theorem 415 to transformthe differential equation into an algebraic equation for L[y] We solved the algebraic equationand we got an expression of the form
L[y(t)] = H(s)
where we have collected all the terms that come from the Laplace transformed differentialequation into the function H We then used a Laplace transform table to find a function hsuch that
L[h(t)] = H(s)
We arrived to an equation of the form
L[y(t)] = L[h(t)]
Clearly y = h is one solution of the equation above hence a solution to the differentialequation We now show that there are no solutions to the equation L[y] = L[h] other thany = h The reason is that the Laplace transform on continuous functions of exponentialorder is an one-to-one transformation also called injective
Theorem 421 (One-to-One) If f g are continuous on [0infin) of exponential order then
L[f ] = L[g] rArr f = g
Remarks
(a) The result above holds for continuous functions f and g But it can be extended topiecewise continuous functions In the case of piecewise continuous functions f and gsatisfying L[f ] = L[g] one can prove that f = g+h where h is a null function meaning
thatint T0h(t) dt = 0 for all T gt 0 See Churchillrsquos textbook [4] page 14
(b) Once we know that the Laplace transform is a one-to-one transformation we can definethe inverse transformation in the usual way
Definition 422 The inverse Laplace transform denoted Lminus1 of a function F is
Lminus1[F (s)] = f(t) hArr F (s) = L[f(t)]
Remarks There is an explicit formula for the inverse Laplace transform which involvesan integral on the complex plane
Lminus1[F (s)]∣∣∣t
=1
2πilimcrarrinfin
int a+ic
aminusicest F (s) ds
See for example Churchillrsquos textbook [4] page 176 However we do not use this formula inthese notes since it involves integration on the complex plane
Proof of Theorem 421 The proof is based on a clever change of variables and onWeierstrass Approximation Theorem of continuous functions by polynomials Before we getto the change of variable we need to do some rewriting Introduce the function u = f minus gthen the linearity of the Laplace transform implies
L[u] = L[f minus g] = L[f ]minus L[g] = 0
178 G NAGY ndash ODE november 29 2017
What we need to show is that the function u vanishes identically Let us start with thedefinition of the Laplace transform
L[u] =
int infin0
eminusst u(t) dt
We know that f and g are of exponential order say s0 therefore u is of exponential orders0 meaning that there exist positive constants k and T such that∣∣u(t)
∣∣ lt k es0t t gt T
Evaluate L[u] at s = s1 +n+ 1 where s1 is any real number such that s1 gt s0 and n is anypositive integer We get
L[u]∣∣∣s
=
int infin0
eminus(s1+n+1)t u(t) dt =
int infin0
eminuss1t eminus(n+1)t u(t) dt
We now do the substitution y = eminust so dy = minuseminust dt
L[u]∣∣∣s
=
int 0
1
ys1 yn u(minus ln(y)
)(minusdy) =
int 1
0
ys1 yn u(minus ln(y)
)dy
Introduce the function v(y) = ys1 u((minus ln(y)
) so the integral is
L[u]∣∣∣s
=
int 1
0
yn v(y) dy (421)
We know that L[u] exists because u is continuous and of exponential order so the functionv does not diverge at y = 0 To double check this recall that t = minus ln(y) rarr infin as y rarr 0+and u is of exponential order s0 hence
limyrarr0+
|v(y)| = limtrarrinfin
eminuss1t|u(t)| lt limtrarrinfin
eminus(s1minuss0)t = 0
Our main hypothesis is that L[u] = 0 for all values of s such that L[u] is defined in particulars By looking at Eq (421) this means thatint 1
0
yn v(y) dy = 0 n = 1 2 3 middot middot middot
The equation above and the linearity of the integral imply that this function v is perpen-dicular to every polynomial p that isint 1
0
p(y) v(y) dy = 0 (422)
for every polynomial p Knowing that we can do the following calculationint 1
0
v2(y) dy =
int 1
0
(v(y)minus p(y)
)v(y) dy +
int 1
0
p(y) v(y) dy
The last term in the second equation above vanishes because of Eq (422) thereforeint 1
0
v2(y) dy =
int 1
0
(v(y)minus p(y)
)v(y) dy
6int 1
0
∣∣v(y)minus p(y)∣∣ |v(y)| dy
6 maxyisin[01]
|v(y)|int 1
0
∣∣v(y)minus p(y)∣∣ dy (423)
We remark that the inequality above is true for every polynomial p Here is where we use theWeierstrass Approximation Theorem which essentially says that every continuous functionon a closed interval can be approximated by a polynomial
G NAGY ndash ODE November 29 2017 179
Theorem 423 (Weierstrass Approximation) If f is a continuous function on a closedinterval [a b] then for every ε gt 0 there exists a polynomial qε such that
maxyisin[ab]
|f(y)minus qε(y)| lt ε
The proof of this theorem can be found on a real analysis textbook Weierstrass resultimplies that given v and ε gt 0 there exists a polynomial pε such that the inequalityin (423) has the formint 1
0
v2(y) dy 6 maxyisin[01]
|v(y)|int 1
0
∣∣v(y)minus pε(y)∣∣ dy 6 max
yisin[01]|v(y)| ε
Since ε can be chosen as small as we please we getint 1
0
v2(y) dy = 0
But v is continuous hence v = 0 meaning that f = g This establishes the Theorem
423 Partial Fractions We are now ready to start using the Laplace transform to solvesecond order linear differential equations with constant coefficients The differential equationfor y will be transformed into an algebraic equation for L[y] We will then arrive to anequation of the form L[y(t)] = H(s) We will see already in the first example below thatusually this function H does not appear in Table 2 We will need to rewrite H as a linearcombination of simpler functions each one appearing in Table 2 One of the more usedtechniques to do that is called Partial Fractions Let us solve the next example
Example 422 Use the Laplace transform to find the solution y to the initial value problem
yprimeprime minus yprime minus 2y = 0 y(0) = 1 yprime(0) = 0
Solution First compute the Laplace transform of the differential equation
L[yprimeprime minus yprime minus 2y] = L[0] = 0
Theorem 414 says that the Laplace transform is a linear operation
L[yprimeprime]minus L[yprime]minus 2L[y] = 0
Then Theorem 415 relates derivatives and multiplications[s2 L[y]minus s y(0)minus yprime(0)
]minus[sL[y]minus y(0)
]minus 2L[y] = 0
which is equivalent to the equation
(s2 minus sminus 2)L[y] = (sminus 1) y(0) + yprime(0)
Once again we have transformed the original differential equation for y into an algebraicequation for L[y] Introduce the initial condition into the last equation above that is
(s2 minus sminus 2)L[y] = (sminus 1)
Solve for the unknown L[y] as follows
L[y] =(sminus 1)
(s2 minus sminus 2)
The function on the right hand side above does not appear in Table 2 We now use partialfractions to find a function whose Laplace transform is the right hand side of the equationabove First find the roots of the polynomial in the denominator
s2 minus sminus 2 = 0 rArr splusmn =1
2
[1plusmnradic
1 + 8]rArr
s+ = 2
sminus = minus1
180 G NAGY ndash ODE november 29 2017
that is the polynomial has two real roots In this case we factorize the denominator
L[y] =(sminus 1)
(sminus 2)(s+ 1)
The partial fraction decomposition of the right-hand side in the equation above is the fol-lowing Find constants a and b such that
(sminus 1)
(sminus 2)(s+ 1)=
a
sminus 2+
b
s+ 1
A simple calculation shows
(sminus 1)
(sminus 2)(s+ 1)=
a
sminus 2+
b
s+ 1=a(s+ 1) + b(sminus 2)
(sminus 2)(s+ 1)=s(a+ b) + (aminus 2b)
(sminus 2)(s+ 1)
Hence constants a and b must be solutions of the equations
(sminus 1) = s(a+ b) + (aminus 2b) rArr
a+ b = 1
aminus 2b = minus1
The solution is a =1
3and b =
2
3 Hence
L[y] =1
3
1
(sminus 2)+
2
3
1
(s+ 1)
From the list of Laplace transforms given in sect Table 2 we know that
L[eat] =1
sminus arArr 1
sminus 2= L[e2t]
1
s+ 1= L[eminust]
So we arrive at the equation
L[y] =1
3L[e2t] +
2
3L[eminust] = L
[1
3
(e2t + 2 eminust
)]We conclude that
y(t) =1
3
(e2t + 2 eminust
)
C
The Partial Fraction Method is usually introduced in a second course of Calculus to inte-grate rational functions We need it here to use Table 2 to find Inverse Laplace transformsThe method applies to rational functions
R(s) =Q(s)
P (s)
where P Q are polynomials and the degree of the numerator is less than the degree of thedenominator In the example above
R(s) =(sminus 1)
(s2 minus sminus 2)
One starts rewriting the polynomial in the denominator as a product of polynomials degreetwo or one In the example above
R(s) =(sminus 1)
(sminus 2)(s+ 1)
One then rewrites the rational function as an addition of simpler rational functions In theexample above
R(s) =a
(sminus 2)+
b
(s+ 1)
G NAGY ndash ODE November 29 2017 181
We now solve a few examples to recall the different partial fraction cases that can appearwhen solving differential equations
Example 423 Use the Laplace transform to find the solution y to the initial value problem
yprimeprime minus 4yprime + 4y = 0 y(0) = 1 yprime(0) = 1
Solution First compute the Laplace transform of the differential equation
L[yprimeprime minus 4yprime + 4y] = L[0] = 0
Theorem 414 says that the Laplace transform is a linear operation
L[yprimeprime]minus 4L[yprime] + 4L[y] = 0
Theorem 415 relates derivatives with multiplication[s2 L[y]minus s y(0)minus yprime(0)
]minus 4
[sL[y]minus y(0)
]+ 4L[y] = 0
which is equivalent to the equation
(s2 minus 4s+ 4)L[y] = (sminus 4) y(0) + yprime(0)
Introduce the initial conditions y(0) = 1 and yprime(0) = 1 into the equation above
(s2 minus 4s+ 4)L[y] = sminus 3
Solve the algebraic equation for L[y]
L[y] =(sminus 3)
(s2 minus 4s+ 4)
We now want to find a function y whose Laplace transform is the right hand side in theequation above In order to see if partial fractions will be needed we now find the roots ofthe polynomial in the denominator
s2 minus 4s+ 4 = 0 rArr splusmn =1
2
[4plusmnradic
16minus 16]rArr s+ = sminus = 2
that is the polynomial has a single real root so L[y] can be written as
L[y] =(sminus 3)
(sminus 2)2
This expression is already in the partial fraction decomposition We now rewrite the righthand side of the equation above in a way it is simple to use the Laplace transform table insect
L[y] =(sminus 2) + 2minus 3
(sminus 2)2=
(sminus 2)
(sminus 2)2minus 1
(sminus 2)2rArr L[y] =
1
sminus 2minus 1
(sminus 2)2
From the list of Laplace transforms given in Table 2 sect we know that
L[eat] =1
sminus arArr 1
sminus 2= L[e2t]
L[teat] =1
(sminus a)2rArr 1
(sminus 2)2= L[t e2t]
So we arrive at the equation
L[y] = L[e2t]minus L[t e2t] = L[e2t minus t e2t
]rArr y(t) = e2t minus t e2t
C
182 G NAGY ndash ODE november 29 2017
Example 424 Use the Laplace transform to find the solution y to the initial value problem
yprimeprime minus 4yprime + 4y = 3 et y(0) = 0 yprime(0) = 0
Solution First compute the Laplace transform of the differential equation
L[yprimeprime minus 4yprime + 4y] = L[3 et] = 3( 1
sminus 1
)
The Laplace transform is a linear operation
L[yprimeprime]minus 4L[yprime] + 4L[y] =3
sminus 1
The Laplace transform relates derivatives with multiplication[s2 L[y]minus s y(0)minus yprime(0)
]minus 4
[sL[y]minus y(0)
]+ 4L[y] =
3
sminus 1
But the initial conditions are y(0) = 0 and yprime(0) = 0 so
(s2 minus 4s+ 4)L[y] =3
sminus 1
Solve the algebraic equation for L[y]
L[y] =3
(sminus 1)(s2 minus 4s+ 4)
We use partial fractions to simplify the right-hand side above We start finding the roots ofthe polynomial in the denominator
s2 minus 4s+ 4 = 0 rArr splusmn =1
2
[4plusmnradic
16minus 16]rArr s+ = sminus = 2
that is the polynomial has a single real root so L[y] can be written as
L[y] =3
(sminus 1)(sminus 2)2
The partial fraction decomposition of the right-hand side above is
3
(sminus 1)(sminus 2)2=
a
(sminus 1)+
b s+ c
(sminus 2)2=a (sminus 2)2 + (b s+ c)(sminus 1)
(sminus 1)(sminus 2)2
From the far right and left expressions above we get
3 = a (sminus 2)2 + (b s+ c)(sminus 1) = a (s2 minus 4s+ 4) + b s2 minus b s+ c sminus cExpanding all terms above and reordering terms we get
(a+ b) s2 + (minus4aminus b+ c) s+ (4aminus cminus 3) = 0
Since this polynomial in s vanishes for all s isin R we get that
a+ b = 0
minus4aminus b+ c = 0
4aminus cminus 3 = 0
rArr
a = 3
b = minus3
c = 9
So we get
L[y] =3
(sminus 1)(sminus 2)2=
3
sminus 1+minus3s+ 9
(sminus 2)2
One last trick is needed on the last term above
minus3s+ 9
(sminus 2)2=minus3(sminus 2 + 2) + 9
(sminus 2)2=minus3(sminus 2)
(sminus 2)2+minus6 + 9
(sminus 2)2= minus 3
(sminus 2)+
3
(sminus 2)2
G NAGY ndash ODE November 29 2017 183
So we finally get
L[y] =3
sminus 1minus 3
(sminus 2)+
3
(sminus 2)2
From our Laplace transforms Table we know that
L[eat] =1
sminus arArr 1
sminus 2= L[e2t]
L[teat] =1
(sminus a)2rArr 1
(sminus 2)2= L[te2t]
So we arrive at the formula
L[y] = 3L[et]minus 3L[e2t] + 3L[t e2t] = L[3 (et minus e2t + t e2t)
]So we conclude that y(t) = 3 (et minus e2t + t e2t) C
Example 425 Use the Laplace transform to find the solution y to the initial value problem
yprimeprime minus 4yprime + 4y = 3 sin(2t) y(0) = 1 yprime(0) = 1
Solution First compute the Laplace transform of the differential equation
L[yprimeprime minus 4yprime + 4y] = L[3 sin(2t)]
The right hand side above can be expressed as follows
L[3 sin(2t)] = 3L[sin(2t)] = 32
s2 + 22=
6
s2 + 4
Theorem 414 says that the Laplace transform is a linear operation
L[yprimeprime]minus 4L[yprime] + 4L[y] =6
s2 + 4
and Theorem 415 relates derivatives with multiplications[s2 L[y]minus s y(0)minus yprime(0)
]minus 4
[sL[y]minus y(0)
]+ 4L[y] =
6
s2 + 4
Reorder terms
(s2 minus 4s+ 4)L[y] = (sminus 4) y(0) + yprime(0) +6
s2 + 4
Introduce the initial conditions y(0) = 1 and yprime(0) = 1
(s2 minus 4s+ 4)L[y] = sminus 3 +6
s2 + 4
Solve this algebraic equation for L[y] that is
L[y] =(sminus 3)
(s2 minus 4s+ 4)+
6
(s2 minus 4 + 4)(s2 + 4)
From the Example above we know that s2 minus 4s+ 4 = (sminus 2)2 so we obtain
L[y] =1
sminus 2minus 1
(sminus 2)2+
6
(sminus 2)2(s2 + 4) (424)
From the previous example we know that
L[e2t minus te2t] =1
sminus 2minus 1
(sminus 2)2 (425)
184 G NAGY ndash ODE november 29 2017
We know use partial fractions to simplify the third term on the right hand side of Eq (424)The appropriate partial fraction decomposition for this term is the following Find constantsa b c d such that
6
(sminus 2)2 (s2 + 4)=as+ b
s2 + 4+
c
(sminus 2)+
d
(sminus 2)2
Take common denominator on the right hand side above and one obtains the system
a+ c = 0
minus4a+ bminus 2c+ d = 0
4aminus 4b+ 4c = 0
4bminus 8c+ 4d = 6
The solution for this linear system of equations is the following
a =3
8 b = 0 c = minus3
8 d =
3
4
Therefore6
(sminus 2)2 (s2 + 4)=
3
8
s
s2 + 4minus 3
8
1
(sminus 2)+
3
4
1
(sminus 2)2
We can rewrite this expression above in terms of the Laplace transforms given in Table 2in Sect as follows
6
(sminus 2)2 (s2 + 4)=
3
8L[cos(2t)]minus 3
8L[e2t] +
3
4L[te2t]
and using the linearity of the Laplace transform
6
(sminus 2)2 (s2 + 4)= L
[3
8cos(2t)minus 3
8e2t +
3
4te2t] (426)
Finally introducing Eqs (425) and (426) into Eq (424) we obtain
L[y(t)] = L[(1minus t) e2t +
3
8(minus1 + 2t) e2t +
3
8cos(2t)
]
Since the Laplace transform is an invertible transformation we conclude that
y(t) = (1minus t) e2t +3
8(2tminus 1) e2t +
3
8cos(2t)
C
424 Higher Order IVP The Laplace transform method can be used with linear differ-ential equations of higher order than second order as long as the equation coefficients areconstant Below we show how we can solve a fourth order equation
Example 426 Use the Laplace transform to find the solution y to the initial value problem
y(4) minus 4y = 0y(0) = 1 yprime(0) = 0
yprimeprime(0) = minus2 yprimeprimeprime(0) = 0
Solution Compute the Laplace transform of the differential equation
L[y(4) minus 4y] = L[0] = 0
The Laplace transform is a linear operation
L[y(4)]minus 4L[y] = 0
G NAGY ndash ODE November 29 2017 185
and the Laplace transform relates derivatives with multiplications[s4 L[y]minus s3 y(0)minus s2 yprime(0)minus s yprimeprime(0)minus yprimeprimeprime(0)
]minus 4L[y] = 0
From the initial conditions we get[s4 L[y]minuss3minus0+2sminus0
]minus4L[y] = 0 rArr (s4minus4)L[y] = s3minus2s rArr L[y] =
(s3 minus 2s)
(s4 minus 4)
In this case we are lucky because
L[y] =s(s2 minus 2)
(s2 minus 2)(s2 + 2)=
s
(s2 + 2)
SinceL[cos(at)] =
s
s2 + a2
we get that
L[y] = L[cos(radic
2t)] rArr y(t) = cos(radic
2t)
C
186 G NAGY ndash ODE november 29 2017
425 Exercises
421- 422-
G NAGY ndash ODE November 29 2017 187
43 Discontinuous Sources
The Laplace transform method can be used to solve linear differential equations with dis-continuous sources In this section we review the simplest discontinuous functionmdashthe stepfunctionmdashand we use steps to construct more general piecewise continuous functions Thenwe compute the Laplace transform of a step function But the main result in this sectionare the translation identities Theorem 433 These identities together with the Laplacetransform table in sect 41 can be very useful to solve differential equations with discontinuoussources
431 Step Functions We start with a definition of a step function
Definition 431 The step function at t = 0 is denoted by u and given by
u(t) =
0 t lt 0
1 t gt 0(431)
Example 431 Graph the step u uc(t) = u(tminus c) and uminusc(t) = u(t+ c) for c gt 0
Solution The step function u and its right and left translations are plotted in Fig 16
t
u
0
1u(t)
t
u
0 c
u(tminus c)
t
u
0minusc
u(t+ c)
Figure 16 The graph of the step function given in Eq (431) a rightand a left translation by a constant c gt 0 respectively of this step function
C
Recall that given a function with values f(t) and a positive constant c then f(tminus c) andf(t+ c) are the function values of the right translation and the left translation respectivelyof the original function f In Fig 17 we plot the graph of functions f(t) = eat g(t) = u(t) eat
and their respective right translations by c gt 0
t
f
0
1
f(t) = et
t
f
0
1
f(t) = etminusc
c t
f
0
1
f(t) = u(t) et
t
f
0
1
f(t) = u(tminus c) etminusc
c
Figure 17 The function f(t) = et its right translation by c gt 0 thefunction f(t) = u(t) eat and its right translation by c
Right and left translations of step functions are useful to construct bump functions
188 G NAGY ndash ODE november 29 2017
Example 432 Graph the bump function b(t) = u(tminus a)minus u(tminus b) where a lt b
Solution The bump function we need to graph is
b(t) = u(tminus a)minus u(tminus b) hArr b(t) =
0 t lt a
1 a 6 t lt b
0 t gt b
(432)
The graph of a bump function is given in Fig 18 constructed from two step functions Stepand bump functions are useful to construct more general piecewise continuous functions
t
u
0
1
a b
u(tminus a)
t
u
0
1
a b
u(tminus b)
t
u
0
1
a b
b(t)
Figure 18 A bump function b constructed with translated step functions
C
Example 433 Graph the function
f(t) =[u(tminus 1)minus u(tminus 2)
]eat
Solution Recall that the function
b(t) = u(tminus 1)minus u(tminus 2)
is a bump function with sides at t = 1 andf t = 2Then the function
f(t) = b(t) eat
is nonzero where b is nonzero that is on [1 2) andon that domain it takes values eat The graph off is given in Fig 19 C
t
y
0
1
1 2
f(t)
Figure 19 Function f
432 The Laplace Transform of Steps We compute the Laplace transform of a stepfunction using the definition of the Laplace transform
Theorem 432 For every number c isin R and and every s gt 0 holds
L[u(tminus c)] =
eminuscs
sfor c gt 0
1
sfor c lt 0
Proof of Theorem 432 Consider the case c gt 0 The Laplace transform is
L[u(tminus c)] =
int infin0
eminusstu(tminus c) dt =
int infinc
eminusst dt
G NAGY ndash ODE November 29 2017 189
where we used that the step function vanishes for t lt c Now compute the improper integral
L[u(tminus c)] = limNrarrinfin
minus1
s
(eminusNs minus eminuscs
)=eminuscs
srArr L[u(tminus c)] =
eminuscs
s
Consider now the case of c lt 0 The step function is identically equal to one in the domainof integration of the Laplace transform which is [0infin) hence
L[u(tminus c)] =
int infin0
eminusstu(tminus c) dt =
int infin0
eminusst dt = L[1] =1
s
This establishes the Theorem
Example 434 Compute L[3u(tminus 2)]
Solution The Laplace transform is a linear operation so
L[3u(tminus 2)] = 3L[u(tminus 2)]
and the Theorem 432 above implies that L[3u(tminus 2)] =3 eminus2s
s C
Remarks
(a) The LT is an invertible transformation in the set of functions we work in our class
(b) L[f ] = F hArr Lminus1[F ] = f
Example 435 Compute Lminus1[eminus3s
s
]
Solution Theorem 432 says thateminus3s
s= L[u(tminus 3)] so Lminus1
[eminus3s
s
]= u(tminus 3) C
433 Translation Identities We now introduce two properties relating the Laplacetransform and translations The first property relates the Laplace transform of a trans-lation with a multiplication by an exponential The second property can be thought as theinverse of the first one
Theorem 433 (Translation Identities) If L[f(t)](s) exists for s gt a then
L[u(tminus c)f(tminus c)] = eminuscs L[f(t)] s gt a c gt 0 (433)
L[ectf(t)] = L[f(t)](sminus c) s gt a+ c c isin R (434)
Example 436 Take f(t) = cos(t) and write the equations given the Theorem above
Solution
L[cos(t)] =s
s2 + 1rArr
L[u(tminus c) cos(tminus c)] = eminuscs
s
s2 + 1
L[ect cos(t)] =(sminus c)
(sminus c)2 + 1
C
Remarks
(a) We can highlight the main idea in the theorem above as follows
L[right-translation (uf)
]= (exp)
(L[f ]
)
L[(exp) (f)
]= translation
(L[f ]
)
190 G NAGY ndash ODE november 29 2017
(b) Denoting F (s) = L[f(t)] then an equivalent expression for Eqs (433)-(434) is
L[u(tminus c)f(tminus c)] = eminuscs F (s)
L[ectf(t)] = F (sminus c)
(c) The inverse form of Eqs (433)-(434) is given by
Lminus1[eminuscs F (s)] = u(tminus c)f(tminus c) (435)
Lminus1[F (sminus c)] = ectf(t) (436)
(d) Eq (434) holds for all c isin R while Eq (433) holds only for c gt 0(e) Show that in the case that c lt 0 the following equation holds
L[u(t+ |c|)f(t+ |c|)] = e|c|s(L[f(t)]minus
int |c|0
eminusst f(t) dt)
Proof of Theorem 433 The proof is again based in a change of the integration variableWe start with Eq (433) as follows
L[u(tminus c)f(tminus c)] =
int infin0
eminusstu(tminus c)f(tminus c) dt
=
int infinc
eminusstf(tminus c) dt τ = tminus c dτ = dt c gt 0
=
int infin0
eminuss(τ+c)f(τ) dτ
= eminuscsint infin0
eminussτf(τ) dτ
= eminuscs L[f(t)] s gt a
The proof of Eq (434) is a bit simpler since
L[ectf(t)
]=
int infin0
eminusstectf(t) dt =
int infin0
eminus(sminusc)tf(t) dt = L[f(t)](sminus c)
which holds for sminus c gt a This establishes the Theorem
Example 437 Compute L[u(tminus 2) sin(a(tminus 2))
]
Solution Both L[sin(at)] =a
s2 + a2and L[u(tminus c)f(tminus c)] = eminuscs L[f(t)] imply
L[u(tminus 2) sin(a(tminus 2))
]= eminus2s L[sin(at)] = eminus2s a
s2 + a2
We conclude L[u(tminus 2) sin(a(tminus 2))
]=
a eminus2s
s2 + a2 C
Example 438 Compute L[e3t sin(at)
]
Solution Since L[ectf(t)] = L[f ](sminus c) then we get
L[e3t sin(at)
]=
a
(sminus 3)2 + a2 s gt 3
C
Example 439 Compute both L[u(tminus 2) cos
(a(tminus 2)
)]and L
[e3t cos(at)
]
G NAGY ndash ODE November 29 2017 191
Solution Since L[cos(at)
]=
s
s2 + a2 then
L[u(tminus 2) cos
(a(tminus 2)
)]= eminus2s s
(s2 + a2) L
[e3t cos(at)
]=
(sminus 3)
(sminus 3)2 + a2
C
Example 4310 Find the Laplace transform of the function
f(t) =
0 t lt 1
(t2 minus 2t+ 2) t gt 1(437)
Solution The idea is to rewrite function f so we can use the Laplace transform Table 2in sect 41 to compute its Laplace transform Since the function f vanishes for all t lt 1 weuse step functions to write f as
f(t) = u(tminus 1)(t2 minus 2t+ 2)
Now notice that completing the square we obtain
t2 minus 2t+ 2 = (t2 minus 2t+ 1)minus 1 + 2 = (tminus 1)2 + 1
The polynomial is a parabola t2 translated to the right and up by one This is a discontinuousfunction as it can be seen in Fig 20
So the function f can be written as follows
f(t) = u(tminus 1) (tminus 1)2 + u(tminus 1)
Since we know that L[t2] =2
s3 then
Eq (433) implies
L[f(t)] = L[u(tminus 1) (tminus 1)2] + L[u(tminus 1)]
= eminuss2
s3+ eminuss
1
sso we get
L[f(t)] =eminuss
s3
(2 + s2
)
C
t
y
0
1
u(tminus 1) [(tminus 1)2 + 1]
1
Figure 20 Function fgiven in Eq (437)
Example 4311 Find the function f such that L[f(t)] =eminus4s
s2 + 5
Solution Notice that
L[f(t)] = eminus4s( 1
s2 + 5
)rArr L[f(t)] =
1radic5eminus4s
( radic5
s2 +(radic
5)2)
Recall that L[sin(at)] =a
(s2 + a2) then
L[f(t)] =1radic5eminus4s L[sin(
radic5t)]
But the translation identity
eminuscs L[f(t)] = L[u(tminus c)f(tminus c)]
192 G NAGY ndash ODE november 29 2017
implies
L[f(t)] =1radic5L[u(tminus 4) sin
(radic5 (tminus 4)
)]
hence we obtain
f(t) =1radic5u(tminus 4) sin
(radic5 (tminus 4)
)
C
Example 4312 Find the function f(t) such that L[f(t)] =(sminus 1)
(sminus 2)2 + 3
Solution We first rewrite the right-hand side above as follows
L[f(t)] =(sminus 1minus 1 + 1)
(sminus 2)2 + 3
=(sminus 2)
(sminus 2)2 + 3+
1
(sminus 2)2 + 3
=(sminus 2)
(sminus 2)2 +(radic
3)2 +
1radic3
radic3
(sminus 2)2 +(radic
3)2
= L[cos(radic
3 t)](sminus 2) +1radic3L[sin(
radic3 t)](sminus 2)
But the translation identity L[f(t)](sminus c) = L[ectf(t)] implies
L[f(t)] = L[e2t cos
(radic3 t)]
+1radic3L[e2t sin
(radic3 t)]
So we conclude that
f(t) =e2t
radic3
[radic3 cos
(radic3 t)
+ sin(radic
3 t)]
C
Example 4313 Find Lminus1[ 2eminus3s
s2 minus 4
]
Solution Since Lminus1[ a
s2 minus a2
]= sinh(at) and Lminus1
[eminuscs f(s)
]= u(tminus c) f(tminus c) then
Lminus1[ 2eminus3s
s2 minus 4
]= Lminus1
[eminus3s 2
s2 minus 4
]rArr Lminus1
[ 2eminus3s
s2 minus 4
]= u(tminus 3) sinh
(2(tminus 3)
)
C
Example 4314 Find a function f such that L[f(t)] =eminus2s
s2 + sminus 2
Solution Since the right hand side above does not appear in the Laplace transform Tablein sect 41 we need to simplify it in an appropriate way The plan is to rewrite the denominatorof the rational function 1(s2 +sminus2) so we can use partial fractions to simplify this rationalfunction We first find out whether this denominator has real or complex roots
splusmn =1
2
[minus1plusmn
radic1 + 8
]rArr
s+ = 1
sminus = minus2
We are in the case of real roots so we rewrite
s2 + sminus 2 = (sminus 1) (s+ 2)
G NAGY ndash ODE November 29 2017 193
The partial fraction decomposition in this case is given by
1
(sminus 1) (s+ 2)=
a
(sminus 1)+
b
(s+ 2)=
(a+ b) s+ (2aminus b)(sminus 1) (s+ 2)
rArr
a+ b = 0
2aminus b = 1
The solution is a = 13 and b = minus13 so we arrive to the expression
L[f(t)] =1
3eminus2s 1
sminus 1minus 1
3eminus2s 1
s+ 2
Recalling that
L[eat] =1
sminus a
and Eq (433) we obtain the equation
L[f(t)] =1
3L[u(tminus 2) e(tminus2)
]minus 1
3L[u(tminus 2) eminus2(tminus2)
]which leads to the conclusion
f(t) =1
3u(tminus 2)
[e(tminus2) minus eminus2(tminus2)
]
C
434 Solving Differential Equations The last three examples in this section show howto use the methods presented above to solve differential equations with discontinuous sourcefunctions
Example 4315 Use the Laplace transform to find the solution of the initial value problem
yprime + 2y = u(tminus 4) y(0) = 3
Solution We compute the Laplace transform of the whole equation
L[yprime] + 2L[y] = L[u(tminus 4)] =eminus4s
s
From the previous section we know that[sL[y]minus y(0)
]+ 2L[y] =
eminus4s
srArr (s+ 2)L[y] = y(0) +
eminus4s
s
We introduce the initial condition y(0) = 3 into equation above
L[y] =3
(s+ 2)+ eminus4s 1
s(s+ 2)rArr L[y] = 3L
[eminus2t
]+ eminus4s 1
s(s+ 2)
We need to invert the Laplace transform on the last term on the right hand side in equationabove We use the partial fraction decomposition on the rational function above as follows
1
s(s+ 2)=a
s+
b
(s+ 2)=a(s+ 2) + bs
s(s+ 2)=
(a+ b) s+ (2a)
s(s+ 2)rArr
a+ b = 0
2a = 1
We conclude that a = 12 and b = minus12 so
1
s(s+ 2)=
1
2
[1
sminus 1
(s+ 2)
]
We then obtain
L[y] = 3L[eminus2t
]+
1
2
[eminus4s 1
sminus eminus4s 1
(s+ 2)
]= 3L
[eminus2t
]+
1
2
(L[u(tminus 4)]minus L
[u(tminus 4) eminus2(tminus4)
])
194 G NAGY ndash ODE november 29 2017
Hence we conclude that
y(t) = 3eminus2t +1
2u(tminus 4)
[1minus eminus2(tminus4)
]
C
Example 4316 Use the Laplace transform to find the solution to the initial value problem
yprimeprime + yprime +5
4y = b(t) y(0) = 0 yprime(0) = 0 b(t) =
1 0 6 t lt π0 t gt π
(438)
Solution From Fig 21 the source function b can be written as
b(t) = u(t)minus u(tminus π)
t
u
0
1
π
u(t)
t
u
0
1
π
u(tminus π)
t
b
0
1
π
u(t)minus u(tminus π)
Figure 21 The graph of the u its translation and b as given in Eq (438)
The last expression for b is particularly useful to find its Laplace transform
L[b(t)] = L[u(t)]minus L[u(tminus π)] =1
s+ eminusπs
1
srArr L[b(t)] = (1minus eminusπs) 1
s
Now Laplace transform the whole equation
L[yprimeprime] + L[yprime] +5
4L[y] = L[b]
Since the initial condition are y(0) = 0 and yprime(0) = 0 we obtain(s2 + s+
5
4
)L[y] =
(1minus eminusπs
) 1
srArr L[y] =
(1minus eminusπs
) 1
s(s2 + s+ 5
4
) Introduce the function
H(s) =1
s(s2 + s+ 5
4
) rArr y(t) = Lminus1[H(s)]minus Lminus1[eminusπsH(s)]
That is we only need to find the inverse Laplace transform of H We use partial fractions tosimplify the expression of H We first find out whether the denominator has real or complexroots
s2 + s+5
4= 0 rArr splusmn =
1
2
[minus1plusmn
radic1minus 5
]
so the roots are complex valued An appropriate partial fraction decomposition is
H(s) =1
s(s2 + s+ 5
4
) =a
s+
(bs+ c)(s2 + s+ 5
4
)Therefore we get
1 = a(s2 + s+
5
4
)+ s (bs+ c) = (a+ b) s2 + (a+ c) s+
5
4a
G NAGY ndash ODE November 29 2017 195
This equation implies that a b and c satisfy the equations
a+ b = 0 a+ c = 05
4a = 1
The solution is a =4
5 b = minus4
5 c = minus4
5 Hence we have found that
H(s) =1(
s2 + s+ 54
)s
=4
5
[1
sminus (s+ 1)(
s2 + s+ 54
)]Complete the square in the denominator
s2 + s+5
4=[s2 + 2
(1
2
)s+
1
4
]minus 1
4+
5
4=(s+
1
2
)2
+ 1
Replace this expression in the definition of H that is
H(s) =4
5
[1
sminus (s+ 1)[(
s+ 12
)2+ 1]]
Rewrite the polynomial in the numerator
(s+ 1) =(s+
1
2+
1
2
)=(s+
1
2
)+
1
2
hence we get
H(s) =4
5
[1
sminus
(s+ 1
2
)[(s+ 1
2
)2+ 1] minus 1
2
1[(s+ 1
2
)2+ 1]]
Use the Laplace transform table to get H(s) equal to
H(s) =4
5
[L[1]minus L
[eminust2 cos(t)
]minus 1
2L[eminust2 sin(t)]
]
equivalently
H(s) = L[4
5
(1minus eminust2 cos(t)minus 1
2eminust2 sin(t)
)]
Denote
h(t) =4
5
[1minus eminust2 cos(t)minus 1
2eminust2 sin(t)
] rArr H(s) = L[h(t)]
Recalling L[y(t)] = H(s) + eminusπsH(s) we obtain L[y(t)] = L[h(t)] + eminusπs L[h(t)] that is
y(t) = h(t) + u(tminus π)h(tminus π)
C
Example 4317 Use the Laplace transform to find the solution to the initial value problem
yprimeprime + yprime +5
4y = g(t) y(0) = 0 yprime(0) = 0 g(t) =
sin(t) 0 6 t lt π
0 t gt π(439)
Solution From Fig 22 the source function g can be written as the following product
g(t) =[u(t)minus u(tminus π)
]sin(t)
since u(t) minus u(t minus π) is a box function taking value one in the interval [0 π] and zero onthe complement Finally notice that the equation sin(t) = minus sin(t minus π) implies that thefunction g can be expressed as follows
g(t) = u(t) sin(t)minus u(tminus π) sin(t) rArr g(t) = u(t) sin(t) + u(tminus π) sin(tminus π)
The last expression for g is particularly useful to find its Laplace transform
196 G NAGY ndash ODE november 29 2017
t
v
0
1
π
v(t) = sin(t)
t
b
0
1
π
u(t)minus u(tminus π)
t
g
0
1
π
g(t)
Figure 22 The graph of the sine function a square function u(t)minusu(tminusπ)and the source function g given in Eq (439)
L[g(t)] =1
(s2 + 1)+ eminusπs
1
(s2 + 1)
With this last transform is not difficult to solve the differential equation As usual Laplacetransform the whole equation
L[yprimeprime] + L[yprime] +5
4L[y] = L[g]
Since the initial condition are y(0) = 0 and yprime(0) = 0 we obtain(s2 + s+
5
4
)L[y] =
(1 + eminusπs
) 1
(s2 + 1)rArr L[y] =
(1 + eminusπs
) 1(s2 + s+ 5
4
)(s2 + 1)
Introduce the function
H(s) =1(
s2 + s+ 54
)(s2 + 1)
rArr y(t) = Lminus1[H(s)] + Lminus1[eminusπsH(s)]
That is we only need to find the Inverse Laplace transform of H We use partial fractionsto simplify the expression of H We first find out whether the denominator has real orcomplex roots
s2 + s+5
4= 0 rArr splusmn =
1
2
[minus1plusmn
radic1minus 5
]
so the roots are complex valued An appropriate partial fraction decomposition is
H(s) =1(
s2 + s+ 54
)(s2 + 1)
=(as+ b)(s2 + s+ 5
4
) +(cs+ d)
(s2 + 1)
Therefore we get
1 = (as+ b)(s2 + 1) + (cs+ d)(s2 + s+
5
4
)
equivalently
1 = (a+ c) s3 + (b+ c+ d) s2 +(a+
5
4c+ d
)s+
(b+
5
4d)
This equation implies that a b c and d are solutions of
a+ c = 0 b+ c+ d = 0 a+5
4c+ d = 0 b+
5
4d = 1
Here is the solution to this system
a =16
17 b =
12
17 c = minus16
17 d =
4
17
We have found that
H(s) =4
17
[ (4s+ 3)(s2 + s+ 5
4
) +(minus4s+ 1)
(s2 + 1)
]
G NAGY ndash ODE November 29 2017 197
Complete the square in the denominator
s2 + s+5
4=[s2 + 2
(1
2
)s+
1
4
]minus 1
4+
5
4=(s+
1
2
)2
+ 1
H(s) =4
17
[ (4s+ 3)[(s+ 1
2
)2+ 1] +
(minus4s+ 1)
(s2 + 1)
]
Rewrite the polynomial in the numerator
(4s+ 3) = 4(s+
1
2minus 1
2
)+ 3 = 4
(s+
1
2
)+ 1
hence we get
H(s) =4
17
[4
(s+ 1
2
)[(s+ 1
2
)2+ 1] +
1[(s+ 1
2
)2+ 1] minus 4
s
(s2 + 1)+
1
(s2 + 1)
]
Use the Laplace transform Table in 2 to get H(s) equal to
H(s) =4
17
[4L[eminust2 cos(t)
]+ L
[eminust2 sin(t)
]minus 4L[cos(t)] + L[sin(t)]
]
equivalently
H(s) = L[ 4
17
(4eminust2 cos(t) + eminust2 sin(t)minus 4 cos(t) + sin(t)
)]
Denote
h(t) =4
17
[4eminust2 cos(t) + eminust2 sin(t)minus 4 cos(t) + sin(t)
]rArr H(s) = L[h(t)]
Recalling L[y(t)] = H(s) + eminusπsH(s) we obtain L[y(t)] = L[h(t)] + eminusπs L[h(t)] that is
y(t) = h(t) + u(tminus π)h(tminus π)
C
198 G NAGY ndash ODE november 29 2017
435 Exercises
431- 432-
G NAGY ndash ODE November 29 2017 199
44 Generalized Sources
We introduce a generalized functionmdashthe Dirac delta We define the Dirac delta as a limitnrarrinfin of a particular sequence of functions δn We will see that this limit is a functionon the domain R minus 0 but it is not a function on R For that reason we call this limit ageneralized functionmdashthe Dirac delta generalized function
We will show that each element in the sequence δn has a Laplace transform and thissequence of Laplace transforms L[δn] has a limit as nrarrinfin We use this limit of Laplacetransforms to define the Laplace transform of the Dirac delta
We will solve differential equations having the Dirac delta generalized function as sourceSuch differential equations appear often when one describes physical systems with impulsiveforcesmdashforces acting on a very short time but transfering a finite momentum to the systemDiracrsquos delta is tailored to model impulsive forces
441 Sequence of Functions and the Dirac Delta A sequence of functions is a se-quence whose elements are functions If each element in the sequence is a continuous func-tion we say that this is a sequence of continuous functions Given a sequence of functionsyn we compute the limnrarrinfin yn(t) for a fixed t The limit depends on t so it is a functionof t and we write it as
limnrarrinfin
yn(t) = y(t)
The domain of the limit function y is smaller or equal to the domain of the yn The limitof a sequence of continuous functions may or may not be a continuous function
Example 441 The limit of the sequence below is a continuous functionfn(t) = sin
((1 +
1
n
)t)rarr sin(t) as nrarrinfin
As usual in this section the limit is computed for each fixed value of t C
However not every sequence of continuous functions has a continuous function as a limit
Example 442 Consider now the following se-quence un for n gt 1
un(t) =
0 t lt 0
nt 0 6 t 61
n
1 t gt1
n
(441)
This is a sequence of continuous functions whoselimit is a discontinuous function From the fewgraphs in Fig 23 we can see that the limit nrarrinfinof the sequence above is a step function indeedlimnrarrinfin un(t) = u(t) where
u(t) =
0 for t 6 0
1 for t gt 0
We used a tilde in the name u because this stepfunction is not the same we defined in the previoussection The step u in sect 43 satisfied u(0) = 1 C
un
t0
1
11
2
1
3
u1(t)u2(t)u3(t)
Figure 23 A fewfunctions in the se-quence un
Exercise Find a sequence un so that its limit is the step function u defined in sect 43
200 G NAGY ndash ODE november 29 2017
Although every function in the sequence un is continuous the limit u is a discontinuousfunction It is not difficult to see that one can construct sequences of continuous functionshaving no limit at all A similar situation happens when one considers sequences of piecewisediscontinuous functions In this case the limit could be a continuous function a piecewisediscontinuous function or not a function at all
We now introduce a particular sequence of piecewise discontinuous functions with domainR such that the limit as nrarrinfin does not exist for all values of the independent variable tThe limit of the sequence is not a function with domain R In this case the limit is a newtype of object that we will call Diracrsquos delta generalized function Diracrsquos delta is the limitof a sequence of particular bump functions
Definition 441 The Dirac delta generalized function is the limit
δ(t) = limnrarrinfin
δn(t)
for every fixed t isin R of the sequence functions δninfinn=1
δn(t) = n[u(t)minus u
(tminus 1
n
)] (442)
The sequence of bump functions introduced abovecan be rewritten as follows
δn(t) =
0 t lt 0
n 0 6 t lt1
n
0 t gt1
n
We then obtain the equivalent expression
δ(t) =
0 for t 6= 0
infin for t = 0
Remark It can be shown that there exist infin-itely many sequences δn such that their limit asn rarr infin is Diracrsquos delta For example anothersequence is
δn(t) = n[u(t+
1
2n
)minus u(tminus 1
2n
)]
=
0 t lt minus 1
2n
n minus 1
2n6 t 6
1
2n
0 t gt1
2n
δn
t0
1
2
3
11
2
1
3
δ1(t)
δ2(t)
δ3(t)
Figure 24 A fewfunctions in the se-quence δn
The Dirac delta generalized function is the function identically zero on the domain Rminus0Diracrsquos delta is not defined at t = 0 since the limit diverges at that point If we shift eachelement in the sequence by a real number c then we define
δ(tminus c) = limnrarrinfin
δn(tminus c) c isin R
This shifted Diracrsquos delta is identically zero on R minus c and diverges at t = c If we shiftthe graphs given in Fig 24 by any real number c one can see thatint c+1
c
δn(tminus c) dt = 1
G NAGY ndash ODE November 29 2017 201
for every n gt 1 Therefore the sequence of integrals is the constant sequence 1 1 middot middot middot which has a trivial limit 1 as nrarrinfin This says that the divergence at t = c of the sequenceδn is of a very particular type The area below the graph of the sequence elements is alwaysthe same We can say that this property of the sequence provides the main defining propertyof the Dirac delta generalized function
Using a limit procedure one can generalize several operations from a sequence to itslimit For example translations linear combinations and multiplications of a function bya generalized function integration and Laplace transforms
Definition 442 We introduce the following operations on the Dirac delta
f(t) δ(tminus c) + g(t) δ(tminus c) = limnrarrinfin
[f(t) δn(tminus c) + g(t) δn(tminus c)
]int b
a
δ(tminus c) dt = limnrarrinfin
int b
a
δn(tminus c) dt
L[δ(tminus c)] = limnrarrinfin
L[δn(tminus c)]
Remark The notation in the definitions above could be misleading In the left handsides above we use the same notation as we use on functions although Diracrsquos delta is nota function on R Take the integral for example When we integrate a function f theintegration symbol means ldquotake a limit of Riemann sumsrdquo that isint b
a
f(t) dt = limnrarrinfin
nsumi=0
f(xi) ∆x xi = a+ i∆x ∆x =bminus an
However when f is a generalized function in the sense of a limit of a sequence of functionsfn then by the integration symbol we mean to compute a different limitint b
a
f(t) dt = limnrarrinfin
int b
a
fn(t) dt
We use the same symbol the integration to mean two different things depending whetherwe integrate a function or a generalized function This remark also holds for all the oper-ations we introduce on generalized functions specially the Laplace transform that will beoften used in the rest of this section
442 Computations with the Dirac Delta Once we have the definitions of operationsinvolving the Dirac delta we can actually compute these limits The following statementsummarizes few interesting results The first formula below says that the infinity we foundin the definition of Diracrsquos delta is of a very particular type that infinity is such that Diracrsquosdelta is integrable in the sense defined above with integral equal one
Theorem 443 For every c isin R and ε gt 0 holds
int c+ε
cminusεδ(tminus c) dt = 1
Proof of Theorem 443 The integral of a Diracrsquos delta generalized function is computedas a limit of integrals int c+ε
cminusεδ(tminus c) dt = lim
nrarrinfin
int c+ε
cminusεδn(tminus c) dt
If we choose n gt 1ε equivalently 1n lt ε then the domain of the functions in the sequenceis inside the interval (cminus ε c+ ε) and we can writeint c+ε
cminusεδ(tminus c) dt = lim
nrarrinfin
int c+ 1n
c
ndt for1
nlt ε
202 G NAGY ndash ODE november 29 2017
Then it is simple to computeint c+ε
cminusεδ(tminus c) dt = lim
nrarrinfinn(c+
1
nminus c)
= limnrarrinfin
1 = 1
This establishes the Theorem
The next result is also deeply related with the defining property of the Dirac deltamdashthesequence functions have all graphs of unit area
Theorem 444 If f is continuous on (a b) and c isin (a b) then
int b
a
f(t) δ(tminus c) dt = f(c)
Proof of Theorem 444 We again compute the integral of a Diracrsquos delta as a limit ofa sequence of integralsint b
a
δ(tminus c) f(t) dt = limnrarrinfin
int b
a
δn(tminus c) f(t) dt
= limnrarrinfin
int b
a
n[u(tminus c)minus u
(tminus cminus 1
n
)]f(t) dt
= limnrarrinfin
int c+ 1n
c
n f(t) dt1
nlt (bminus c)
To get the last line we used that c isin [a b] Let F be any primitive of f so F (t) =intf(t) dt
Then we can write int b
a
δ(tminus c) f(t) dt = limnrarrinfin
n[F(c+
1
n
)minus F (c)
]= limnrarrinfin
1(1n
)[F (c+1
n
)minus F (c)
]= F prime(c)
= f(c)
This establishes the Theorem
In our next result we compute the Laplace transform of the Dirac delta We give twoproofs of this result In the first proof we use the previous theorem In the second proof weuse the same idea used to prove the previous theorem
Theorem 445 For all s isin R holds L[δ(tminus c)] =
eminuscs for c gt 0
0 for c lt 0
First Proof of Theorem 445 We use the previous theorem on the integral that definesa Laplace transform Although the previous theorem applies to definite integrals not toimproper integrals it can be extended to cover improper integrals In this case we get
L[δ(tminus c)] =
int infin0
eminusst δ(tminus c) dt =
eminuscs for c gt 0
0 for c lt 0
This establishes the Theorem
G NAGY ndash ODE November 29 2017 203
Second Proof of Theorem 445 The Laplace transform of a Diracrsquos delta is computedas a limit of Laplace transforms
L[δ(tminus c)] = limnrarrinfin
L[δn(tminus c)]
= limnrarrinfin
L[n[u(tminus c)minus u
(tminus cminus 1
n
)]]= limnrarrinfin
int infin0
n[u(tminus c)minus u
(tminus cminus 1
n
)]eminusst dt
The case c lt 0 is simple For1
nlt |c| holds
L[δ(tminus c)] = limnrarrinfin
int infin0
0 dt rArr L[δ(tminus c)] = 0 for s isin R c lt 0
Consider now the case c gt 0 We then have
L[δ(tminus c)] = limnrarrinfin
int c+ 1n
c
n eminusst dt
For s = 0 we get
L[δ(tminus c)] = limnrarrinfin
int c+ 1n
c
ndt = 1 rArr L[δ(tminus c)] = 1 for s = 0 c gt 0
In the case that s 6= 0 we get
L[δ(tminus c)] = limnrarrinfin
int c+ 1n
c
n eminusst dt = limnrarrinfin
minusns
(eminuscs minus eminus(c+ 1
n )s)
= eminuscs limnrarrinfin
(1minus eminus sn )( s
n
)
The limit on the last line above is a singular limit of the form 00 so we can use the lrsquoHopital
rule to compute it that is
limnrarrinfin
(1minus eminus sn )( s
n
) = limnrarrinfin
(minus s
n2eminus
sn
)(minus s
n2
) = limnrarrinfin
eminussn = 1
We then obtain
L[δ(tminus c)] = eminuscs for s 6= 0 c gt 0
This establishes the Theorem
443 Applications of the Dirac Delta Diracrsquos delta generalized functions describeimpulsive forces in mechanical systems such as the force done by a stick hitting a marbleAn impulsive force acts on an infinitely short time and transmits a finite momentum to thesystem
Example 443 Use Newtonrsquos equation of motion and Diracrsquos delta to describe the changeof momentum when a particle is hit by a hammer
Solution A point particle with mass m moving on one space direction x with a force Facting on it is described by
ma = F hArr mxprimeprime(t) = F (t x(t))
where x(t) is the particle position as function of time a(t) = xprimeprime(t) is the particle accelerationand we will denote v(t) = xprime(t) the particle velocity We saw in sect 11 that Newtonrsquos second
204 G NAGY ndash ODE november 29 2017
law of motion is a second order differential equation for the position function x Now it ismore convenient to use the particle momentum p = mv to write the Newtonrsquos equation
mxprimeprime = mvprime = (mv)prime = F rArr pprime = F
So the force F changes the momentum P If we integrate on an interval [t1 t2] we get
∆p = p(t2)minus p(t1) =
int t2
t1
F (t x(t)) dt
Suppose that an impulsive force is acting on a particle at t0 transmitting a finite momentumsay p0 This is where the Dirac delta is uselful for because we can write the force as
F (t) = p0 δ(tminus t0)then F = 0 on Rminus t0 and the momentum transferred to the particle by the force is
∆p =
int t0+∆t
t0minus∆t
p0 δ(tminus t0) dt = p0
The momentum tranferred is ∆p = p0 but the force is identically zero on Rminust0 We havetransferred a finite momentum to the particle by an interaction at a single time t0 C
444 The Impulse Response Function We now want to solve differential equationswith the Dirac delta as a source But there is a particular type of solutions that will beimportant later onmdashsolutions to initial value problems with the Dirac delta source and zeroinitial conditions We give these solutions a particular name
Definition 446 The impulse response function at the point c gt 0 of the constantcoefficients linear operator L(y) = yprimeprime + a1 y
prime + a0 y is the solution yδ of
L(yδ) = δ(tminus c) yδ(0) = 0 yprimeδ(0) = 0
Remark Impulse response functions are also called fundamental solutions
Theorem 447 The function yδ is the impulse response function at c gt 0 of the constantcoefficients operator L(y) = yprimeprime + a1 y
prime + a0 y iff holds
yδ = Lminus1[eminuscsp(s)
]
where p is the characteristic polynomial of L
Remark The impulse response function yδ at c = 0 satifies
yδ = Lminus1[ 1
p(s)
]
Proof of Theorem 447 Compute the Laplace transform of the differential equation forfor the impulse response function yδ
L[yprimeprime] + a1 L[yprime] + a0 L[y] = L[δ(tminus c)] = eminuscs
Since the initial data for yδ is trivial we get
(s2 + a1s+ a0)L[y] = eminuscs
Since p(s) = s2 + a1s+ a0 is the characteristic polynomial of L we get
L[y] =eminuscs
p(s)hArr y(t) = Lminus1
[eminuscsp(s)
]
All the steps in this calculation are if and only ifs This establishes the Theorem
G NAGY ndash ODE November 29 2017 205
Example 444 Find the impulse response function at t = 0 of the linear operator
L(y) = yprimeprime + 2yprime + 2y
Solution We need to find the solution yδ of the initial value problem
yprimeprimeδ + 2yprimeδ + 2yδ = δ(t) yδ(0) = 0 yprimeδ(0) = 0
Since the souce is a Dirac delta we have to use the Laplace transform to solve this problemSo we compute the Laplace transform on both sides of the differential equation
L[yprimeprimeδ ] + 2L[yprimeδ] + 2L[yδ] = L[δ(t)] = 1 rArr (s2 + 2s+ 2)L[yδ] = 1
where we have introduced the initial conditions on the last equation above So we obtain
L[yδ] =1
(s2 + 2s+ 2)
The denominator in the equation above has complex valued roots since
splusmn =1
2
[minus2plusmn
radic4minus 8
]
therefore we complete squares s2 + 2s+ 2 = (s+ 1)2 + 1 We need to solve the equation
L[yδ] =1[
(s+ 1)2 + 1] = L[eminust sin(t)] rArr yδ(t) = eminust sin(t)
C
Example 445 Find the impulse response function at t = c gt 0 of the linear operator
L(y) = yprimeprime + 2 yprime + 2 y
Solution We need to find the solution yδ of the initial value problem
yprimeprimeδ + 2 yprimeδ + 2 yδ = δ(tminus c) yδ(0) = 0 yprimeδ(0) = 0
We have to use the Laplace transform to solve this problem because the source is a Diracrsquosdelta generalized function So compute the Laplace transform of the differential equation
L[yprimeprimeδ ] + 2L[yprimeδ] + 2L[yδ] = L[δ(tminus c)]Since the initial conditions are all zero and c gt 0 we get
(s2 + 2s+ 2)L[yδ] = eminuscs rArr L[yδ] =eminuscs
(s2 + 2s+ 2)
Find the roots of the denominator
s2 + 2s+ 2 = 0 rArr splusmn =1
2
[minus2plusmn
radic4minus 8
]The denominator has complex roots Then it is convenient to complete the square in thedenominator
s2 + 2s+ 2 =[s2 + 2
(2
2
)s+ 1
]minus 1 + 2 = (s+ 1)2 + 1
Therefore we obtain the expression
L[yδ] =eminuscs
(s+ 1)2 + 1
Recall that L[sin(t)] =1
s2 + 1 and L[f ](sminus c) = L[ect f(t)] Then
1
(s+ 1)2 + 1= L[eminust sin(t)] rArr L[yδ] = eminuscs L[eminust sin(t)]
206 G NAGY ndash ODE november 29 2017
Since for c gt 0 holds eminuscs L[f ](s) = L[u(tminus c) f(tminus c)] we conclude that
yδ(t) = u(tminus c) eminus(tminusc) sin(tminus c)
C
Example 446 Find the solution y to the initial value problem
yprimeprime minus y = minus20 δ(tminus 3) y(0) = 1 yprime(0) = 0
Solution The source is a generalized function so we need to solve this problem using theLapace transform So we compute the Laplace transform of the differential equation
L[yprimeprime]minus L[y] = minus20L[δ(tminus 3)] rArr (s2 minus 1)L[y]minus s = minus20 eminus3s
where in the second equation we have already introduced the initial conditions We arriveto the equation
L[y] =s
(s2 minus 1)minus 20 eminus3s 1
(s2 minus 1)= L[cosh(t)]minus 20L[u(tminus 3) sinh(tminus 3)]
which leads to the solution
y(t) = cosh(t)minus 20u(tminus 3) sinh(tminus 3)
C
Example 447 Find the solution to the initial value problem
yprimeprime + 4y = δ(tminus π)minus δ(tminus 2π) y(0) = 0 yprime(0) = 0
Solution We again Laplace transform both sides of the differential equation
L[yprimeprime] + 4L[y] = L[δ(tminus π)]minus L[δ(tminus 2π)] rArr (s2 + 4)L[y] = eminusπs minus eminus2πs
where in the second equation above we have introduced the initial conditions Then
L[y] =eminusπs
(s2 + 4)minus eminus2πs
(s2 + 4)
=eminusπs
2
2
(s2 + 4)minus eminus2πs
2
2
(s2 + 4)
=1
2L[u(tminus π) sin
[2(tminus π)
]]minus 1
2L[u(tminus 2π) sin
[2(tminus 2π)
]]
The last equation can be rewritten as follows
y(t) =1
2u(tminus π) sin
[2(tminus π)
]minus 1
2u(tminus 2π) sin
[2(tminus 2π)
]
which leads to the conclusion that
y(t) =1
2
[u(tminus π)minus u(tminus 2π)
]sin(2t)
C
G NAGY ndash ODE November 29 2017 207
445 Comments on Generalized Sources We have used the Laplace transform to solvedifferential equations with the Dirac delta as a source function It may be convenient tounderstand a bit more clearly what we have done since the Dirac delta is not an ordinaryfunction but a generalized function defined by a limit Consider the following example
Example 448 Find the impulse response function at t = c gt 0 of the linear operator
L(y) = yprime
Solution We need to solve the initial value problem
yprime(t) = δ(tminus c) y(0) = 0
In other words we need to find a primitive of the Dirac delta However Diracrsquos delta is noteven a function Anyway let us compute the Laplace transform of the equation as we didin the previous examples
L[yprime(t)] = L[δ(tminus c)] rArr sL[y(t)]minus y(0) = eminuscs rArr L[y(t)] =eminuscs
s
But we know that
eminuscs
s= L[u(tminus c)] rArr L[y(t)] = L[u(tminus c)] rArr y(t) = u(tminus c)
C
Looking at the differential equation yprime(t) = δ(tminus c) and at the solution y(t) = u(tminus c) onecould like to write them together as
uprime(tminus c) = δ(tminus c) (443)
But this is not correct because the step function is a discontinuous function at t = c hencenot differentiable What we have done is something different We have found a sequence offunctions un with the properties
limnrarrinfin
un(tminus c) = u(tminus c) limnrarrinfin
uprimen(tminus c) = δ(tminus c)
and we have called y(t) = u(tminus c) This is what we actually do when we solve a differentialequation with a source defined as a limit of a sequence of functions such as the Dirac deltaThe Laplace transform method used on differential equations with generalized sources allowsus to solve these equations without the need to write any sequence which are hidden in thedefinitions of the Laplace transform of generalized functions Let us solve the problem inthe Example 448 one more time but this time let us show where all the sequences actuallyare
Example 449 Find the solution to the initial value problem
yprime(t) = δ(tminus c) y(0) = 0 c gt 0 (444)
Solution Recall that the Dirac delta is defined as a limit of a sequence of bump functions
δ(tminus c) = limnrarrinfin
δn(tminus c) δn(tminus c) = n[u(tminus c)minus u
(tminus cminus 1
n
)] n = 1 2 middot middot middot
The problem we are actually solving involves a sequence and a limit
yprime(t) = limnrarrinfin
δn(tminus c) y(0) = 0
We start computing the Laplace transform of the differential equation
L[yprime(t)] = L[ limnrarrinfin
δn(tminus c)]
208 G NAGY ndash ODE november 29 2017
We have defined the Laplace transform of the limit as the limit of the Laplace transforms
L[yprime(t)] = limnrarrinfin
L[δn(tminus c)]
If the solution is at least piecewise differentiable we can use the property
L[yprime(t)] = sL[y(t)]minus y(0)
Assuming that property and the initial condition y(0) = 0 we get
L[y(t)] =1
slimnrarrinfin
L[δn(tminus c)] rArr L[y(t)] = limnrarrinfin
L[δn(tminus c)]s
Introduce now the function yn(t) = un(t minus c) given in Eq (441) which for each n is theonly continuous piecewise differentiable solution of the initial value problem
yprimen(t) = δn(tminus c) yn(0) = 0
It is not hard to see that this function un satisfies
L[un(t)] =L[δn(tminus c)]
s
Therefore using this formula back in the equation for y we get
L[y(t)] = limnrarrinfin
L[un(t)]
For continuous functions we can interchange the Laplace transform and the limit
L[y(t)] = L[ limnrarrinfin
un(t)]
So we get the resulty(t) = lim
nrarrinfinun(t) rArr y(t) = u(tminus c)
We see above that we have found something more than just y(t) = u(tminus c) We have found
y(t) = limnrarrinfin
un(tminus c)
where the sequence elements un are continuous functions with un(0) = 0 and
limnrarrinfin
un(tminus c) = u(tminus c) limnrarrinfin
uprimen(tminus c) = δ(tminus c)
Finally derivatives and limits cannot be interchanged for un
limnrarrinfin
[uprimen(tminus c)
]6=[
limnrarrinfin
un(tminus c)]prime
so it makes no sense to talk about yprime C
When the Dirac delta is defined by a sequence of functions as we did in this section thecalculation needed to find impulse response functions must involve sequence of functionsand limits The Laplace transform method used on generalized functions allows us to hideall the sequences and limits This is true not only for the derivative operator L(y) = yprime butfor any second order differential operator with constant coefficients
Definition 448 A solution of the initial value problem with a Diracrsquos delta source
yprimeprime + a1 yprime + a0 y = δ(tminus c) y(0) = y0 yprime(0) = y1 (445)
where a1 a0 y0 y1 and c isin R are given constants is a function
y(t) = limnrarrinfin
yn(t)
where the functions yn with n gt 1 are the unique solutions to the initial value problems
yprimeprimen + a1 yprimen + a0 yn = δn(tminus c) yn(0) = y0 yprimen(0) = y1 (446)
and the source δn satisfy limnrarrinfin δn(tminus c) = δ(tminus c)
G NAGY ndash ODE November 29 2017 209
The definition above makes clear what do we mean by a solution to an initial value problemhaving a generalized function as source when the generalized function is defined as the limitof a sequence of functions The following result says that the Laplace transform methodused with generalized functions hides all the sequence computations
Theorem 449 The function y is solution of the initial value problem
yprimeprime + a1 yprime + a0 y = δ(tminus c) y(0) = y0 yprime(0) = y1 c gt 0
iff its Laplace transform satisfies the equation(s2 L[y]minus sy0 minus y1
)+ a1
(sL[y]minus y0
)minus a0 L[y] = eminuscs
This Theorem tells us that to find the solution y to an initial value problem when the sourceis a Diracrsquos delta we have to apply the Laplace transform to the equation and perform thesame calculations as if the Dirac delta were a function This is the calculation we did whenwe computed the impulse response functionsProof of Theorem 449 Compute the Laplace transform on Eq (446)
L[yprimeprimen] + a1 L[yprimen] + a0 L[yn] = L[δn(tminus c)]Recall the relations between the Laplace transform and derivatives and use the initial con-ditions
L[yprimeprimen] = s2 L[yn]minus sy0 minus y1 L[yprime] = sL[yn]minus y0and use these relation in the differential equation
(s2 + a1s+ a0)L[yn]minus sy0 minus y1 minus a1y0 = L[δn(tminus c)]Since δn satisfies that limnrarrinfin δn(tminus c) = δ(tminus c) an argument like the one in the proof ofTheorem 445 says that for c gt 0 holds
L[δn(tminus c)] = L[δ(tminus c)] rArr limnrarrinfin
L[δn(tminus c)] = eminuscs
Then(s2 + a1s+ a0) lim
nrarrinfinL[yn]minus sy0 minus y1 minus a1y0 = eminuscs
Interchanging limits and Laplace transforms we get
(s2 + a1s+ a0)L[y]minus sy0 minus y1 minus a1y0 = eminuscs
which is equivalent to(s2 L[y]minus sy0 minus y1
)+ a1
(sL[y]minus y0
)minus a0 L[y] = eminuscs
This establishes the Theorem
210 G NAGY ndash ODE november 29 2017
446 Exercises
441- Find the solution to the initialvalue problem
yprimeprime minus 8yprime + 16y = cos(πt) δ(tminus 1)
y(0) = 0 yprime(0) = 0
442-
G NAGY ndash ODE November 29 2017 211
45 Convolutions and Solutions
Solutions of initial value problems for linear nonhomogeneous differential equations can bedecomposed in a nice way The part of the solution coming from the initial data can beseparated from the part of the solution coming from the nonhomogeneous source functionFurthermore the latter is a kind of product of two functions the source function itself andthe impulse response function from the differential operator This kind of product of twofunctions is the subject of this section This kind of product is what we call the convolutionof two functions
451 Definition and Properties One can say that the convolution is a generalizationof the pointwise product of two functions In a convolution one multiplies the two functionsevaluated at different points and then integrates the result Here is a precise definition
Definition 451 The convolution of functions f and g is a function f lowast g given by
(f lowast g)(t) =
int t
0
f(τ)g(tminus τ) dτ (451)
Remark The convolution is defined for functions f and g such that the integral in (451) isdefined For example for f and g piecewise continuous functions or one of them continuousand the other a Diracrsquos delta generalized function
Example 451 Find f lowast g the convolution of the functions f(t) = eminust and g(t) = sin(t)
Solution The definition of convolution is
(f lowast g)(t) =
int t
0
eminusτ sin(tminus τ) dτ
This integral is not difficult to compute Integrate by parts twiceint t
0
eminusτ sin(tminus τ) dτ =[eminusτ cos(tminus τ)
]∣∣∣t0
minus[eminusτ sin(tminus τ)
]∣∣∣t0
minusint t
0
eminusτ sin(tminus τ) dτ
that is
2
int t
0
eminusτ sin(tminus τ) dτ =[eminusτ cos(tminus τ)
]∣∣∣t0
minus[eminusτ sin(tminus τ)
]∣∣∣t0
= eminust minus cos(t)minus 0 + sin(t)
We then conclude that
(f lowast g)(t) =1
2
[eminust + sin(t)minus cos(t)
] (452)
C
Example 452 Graph the convolution of
f(τ) = u(τ)minus u(τ minus 1)
g(τ) =
2 eminus2τ for τ gt 0
0 for τ lt 0
Solution Notice that
g(minusτ) =
2 e2τ for τ 6 0
0 for τ gt 0
Then we have that
g(tminus τ) = g(minus(τ minus t))
2 e2(τminust) for τ 6 t
0 for τ gt t
212 G NAGY ndash ODE november 29 2017
In the graphs below we can see that the values of the convolution function f lowast g measurethe overlap of the functions f and g when one function slides over the other
Figure 25 The graphs of f g and f lowast g
C
A few properties of the convolution operation are summarized in the Theorem belowBut we save the most important property for the next subsection
Theorem 452 (Properties) For every piecewise continuous functions f g and h hold
(i) Commutativity f lowast g = g lowast f
(ii) Associativity f lowast (g lowast h) = (f lowast g) lowast h
(iii) Distributivity f lowast (g + h) = f lowast g + f lowast h
(iv) Neutral element f lowast 0 = 0
(v) Identity element f lowast δ = f
Proof of Theorem 452 We only prove properties (i) and (v) the rest are left as anexercise and they are not so hard to obtain from the definition of convolution The firstproperty can be obtained by a change of the integration variable as follows
(f lowast g)(t) =
int t
0
f(τ) g(tminus τ) dτ
G NAGY ndash ODE November 29 2017 213
Now introduce the change of variables τ = tminus τ which implies dτ = minusdτ then
(f lowast g)(t) =
int 0
t
f(tminus τ) g(τ)(minus1) dτ
=
int t
0
g(τ) f(tminus τ) dτ
so we conclude that
(f lowast g)(t) = (g lowast f)(t)
We now move to property (v) which is essentially a property of the Dirac delta
(f lowast δ)(t) =
int t
0
f(τ) δ(tminus τ) dτ = f(t)
This establishes the Theorem
452 The Laplace Transform The Laplace transform of a convolution of two functionsis the pointwise product of their corresponding Laplace transforms This result will be akey part in the solution decomposition result we show at the end of the section
Theorem 453 (Laplace Transform) If both L[g] and L[g] exist including the case whereeither f or g is a Diracrsquos delta then
L[f lowast g] = L[f ]L[g] (453)
Remark It is not an accident that the convolution of two functions satisfies Eq (453)The definition of convolution is chosen so that it has this property One can see that this isthe case by looking at the proof of Theorem 453 One starts with the expression L[f ]L[g]then changes the order of integration and one ends up with the Laplace transform of somequantity Because this quantity appears in that expression is that it deserves a name Thisis how the convolution operation was created
Proof of Theorem 453 We start writing the right hand side of Eq (451) the productL[f ]L[g] We write the two integrals coming from the individual Laplace transforms andwe rewrite them in an appropriate way
L[f ]L[g] =[int infin
0
eminusstf(t) dt] [int infin
0
eminusstg(t) dt]
=
int infin0
eminusstg(t)(int infin
0
eminusstf(t) dt)dt
=
int infin0
g(t)(int infin
0
eminuss(t+t)f(t) dt)dt
where we only introduced the integral in t as a constant inside the integral in t Introducethe change of variables in the inside integral τ = t+ t hence dτ = dt Then we get
L[f ]L[g] =
int infin0
g(t)(int infin
t
eminussτf(τ minus t) dτ)dt (454)
=
int infin0
int infint
eminussτ g(t) f(τ minus t) dτ dt (455)
214 G NAGY ndash ODE november 29 2017
Here is the key step We must switch the order ofintegration From Fig 26 we see that changing theorder of integration gives the following expression
L[f ]L[g] =
int infin0
int τ
0
eminussτ g(t) f(τ minus t) dt dτ
Then is straightforward to check that
L[f ]L[g] =
int infin0
eminussτ(int τ
0
g(t) f(τ minus t) dt)dτ
=
int infin0
eminussτ (g lowast f)(τ) dt
= L[g lowast f ] rArr L[f ]L[g] = L[f lowast g]
This establishes the Theorem
τ
t
0
t = τ
Figure 26 Domain ofintegration in (455)
Example 453 Compute the Laplace transform of the function u(t) =
int t
0
eminusτ sin(tminusτ) dτ
Solution The function u above is the convolution of the functions
f(t) = eminust g(t) = sin(t)
that is u = f lowast g Therefore Theorem 453 says that
L[u] = L[f lowast g] = L[f ]L[g]
Since
L[f ] = L[eminust] =1
s+ 1 L[g] = L[sin(t)] =
1
s2 + 1
we then conclude that L[u] = L[f lowast g] is given by
L[f lowast g] =1
(s+ 1)(s2 + 1)
C
Example 454 Use the Laplace transform to compute u(t) =
int t
0
eminusτ sin(tminus τ) dτ
Solution Since u = f lowast g with f(t) = eminust and g(t) = sin(t) then from Example 453
L[u] = L[f lowast g] =1
(s+ 1)(s2 + 1)
A partial fraction decomposition of the right hand side above implies that
L[u] =1
2
( 1
(s+ 1)+
(1minus s)(s2 + 1)
)=
1
2
( 1
(s+ 1)+
1
(s2 + 1)minus s
(s2 + 1)
)=
1
2
(L[eminust] + L[sin(t)]minus L[cos(t)]
)
This says that
u(t) =1
2
(eminust + sin(t)minus cos(t)
)
So we recover Eq (452) in Example 451 that is
(f lowast g)(t) =1
2
(eminust + sin(t)minus cos(t)
)
C
G NAGY ndash ODE November 29 2017 215
Example 455 Find the function g such that f(t) =
int t
0
sin(4τ) g(tminusτ) dτ has the Laplace
transform L[f ] =s
(s2 + 16)((sminus 1)2 + 9)
Solution Since f(t) = sin(4t) lowast g(t) we can write
s
(s2 + 16)((sminus 1)2 + 9)= L[f ] = L[sin(4t) lowast g(t)]
= L[sin(4t)]L[g]
=4
(s2 + 42)L[g]
so we get that
4
(s2 + 42)L[g] =
s
(s2 + 16)((sminus 1)2 + 9)rArr L[g] =
1
4
s
(sminus 1)2 + 32
We now rewrite the right-hand side of the last equation
L[g] =1
4
(sminus 1 + 1)
(sminus 1)2 + 32rArr L[g] =
1
4
( (sminus 1)
(sminus 1)2 + 32+
1
3
3
(sminus 1)2 + 32
)
that is
L[g] =1
4
(L[cos(3t)](sminus 1) +
1
3L[sin(3t)](sminus 1)
)=
1
4
(L[et cos(3t)] +
1
3L[et sin(3t)]
)
which leads us to
g(t) =1
4et(
cos(3t) +1
3sin(3t)
)C
453 Solution Decomposition The Solution Decomposition Theorem is the main resultof this section Theorem 454 shows one way to write the solution to a general initialvalue problem for a linear second order differential equation with constant coefficients Thesolution to such problem can always be divided in two terms The first term containsinformation only about the initial data The second term contains information only aboutthe source function This second term is a convolution of the source function itself and theimpulse response function of the differential operator
Theorem 454 (Solution Decomposition) Given constants a0 a1 y0 y1 and a piecewisecontinuous function g the solution y to the initial value problem
yprimeprime + a1 yprime + a0 y = g(t) y(0) = y0 yprime(0) = y1 (456)
can be decomposed as
y(t) = yh(t) + (yδ lowast g)(t) (457)
where yh is the solution of the homogeneous initial value problem
yprimeprimeh + a1 yprimeh + a0 yh = 0 yh(0) = y0 yprimeh(0) = y1 (458)
and yδ is the impulse response solution that is
yprimeprimeδ + a1 yprimeδ + a0 yδ = δ(t) yδ(0) = 0 yprimeδ(0) = 0
216 G NAGY ndash ODE november 29 2017
Remark The solution decomposition in Eq (457) can be written in the equivalent way
y(t) = yh(t) +
int t
0
yδ(τ)g(tminus τ) dτ
Also recall that the impulse response function can be written in the equivalent way
yδ = Lminus1[eminuscsp(s)
] c 6= 0 and yδ = Lminus1
[ 1
p(s)
] c = 0
Proof of Theorem454 Compute the Laplace transform of the differential equation
L[yprimeprime] + a1 L[yprime] + a0 L[y] = L[g(t)]
Recalling the relations between Laplace transforms and derivatives
L[yprimeprime] = s2 L[y]minus sy0 minus y1 L[yprime] = sL[y]minus y0we re-write the differential equation for y as an algebraic equation for L[y]
(s2 + a1s+ a0)L[y]minus sy0 minus y1 minus a1y0 = L[g(t)]
As usual it is simple to solve the algebraic equation for L[y]
L[y] =(s+ a1)y0 + y1(s2 + a1s+ a0)
+1
(s2 + a1s+ a0)L[g(t)]
Now the function yh is the solution of Eq (458) that is
L[yh] =(s+ a1)y0 + y1(s2 + a1s+ a0)
And by the definition of the impulse response solution yδ we have that
L[yδ] =1
(s2 + a1s+ a0)
These last three equation imply
L[y] = L[yh] + L[yδ]L[g(t)]
This is the Laplace transform version of Eq (457) Inverting the Laplace transform above
y(t) = yh(t) + Lminus1[L[yδ]L[g(t)]
]
Using the result in Theorem 453 in the last term above we conclude that
y(t) = yh(t) + (yδ lowast g)(t)
Example 456 Use the Solution Decomposition Theorem to express the solution of
yprimeprime + 2 yprime + 2 y = g(t) y(0) = 1 yprime(0) = minus1
Solution We first find the impuse response function
yδ(t) = Lminus1[ 1
p(s)
] p(s) = s2 + 2s+ 2
since p has complex roots we complete the square
s2 + 2s+ 2 = s2 + 2s+ 1minus 1 + 2 = (s+ 1)2 + 1
so we get
yδ(t) = Lminus1[ 1
(s+ 1)2 + 1
]rArr yδ(t) = eminust sin(t)
G NAGY ndash ODE November 29 2017 217
We now compute the solution to the homogeneous problem
yprimeprimeh + 2 yprimeh + 2 yh = 0 yh(0) = 1 yprimeh(0) = minus1
Using Laplace transforms we get
L[yprimeprimeh] + 2L[yprimeh] + 2L[yh] = 0
and recalling the relations between the Laplace transform and derivatives(s2 L[yh]minus s yh(0)minus yprimeh(0)
)+ 2(L[yprimeh] = sL[yh]minus yh(0)
)+ 2L[yh] = 0
using our initial conditions we get (s2 + 2s+ 2)L[yh]minus s+ 1minus 2 = 0 so
L[yh] =(s+ 1)
(s2 + 2s+ 2)=
(s+ 1)
(s+ 1)2 + 1
so we obtain
yh(t) = L[eminust cos(t)
]
Therefore the solution to the original initial value problem is
y(t) = yh(t) + (yδ lowast g)(t) rArr y(t) = eminust cos(t) +
int t
0
eminusτ sin(τ) g(tminus τ) dτ
C
Example 457 Use the Laplace transform to solve the same IVP as above
yprimeprime + 2 yprime + 2 y = g(t) y(0) = 1 yprime(0) = minus1
Solution Compute the Laplace transform of the differential equation above
L[yprimeprime] + 2L[yprime] + 2L[y] = L[g(t)]
and recall the relations between the Laplace transform and derivatives
L[yprimeprime] = s2 L[y]minus sy(0)minus yprime(0) L[yprime] = sL[y]minus y(0)
Introduce the initial conditions in the equation above
L[yprimeprime] = s2 L[y]minus s (1)minus (minus1) L[yprime] = sL[y]minus 1
and these two equation into the differential equation
(s2 + 2s+ 2)L[y]minus s+ 1minus 2 = L[g(t)]
Reorder terms to get
L[y] =(s+ 1)
(s2 + 2s+ 2)+
1
(s2 + 2s+ 2)L[g(t)]
Now the function yh is the solution of the homogeneous initial value problem with the sameinitial conditions as y that is
L[yh] =(s+ 1)
(s2 + 2s+ 2)=
(s+ 1)
(s+ 1)2 + 1= L[eminust cos(t)]
Now the function yδ is the impulse response solution for the differential equation in thisExample that is
cL[yδ] =1
(s2 + 2s+ 2)=
1
(s+ 1)2 + 1= L[eminust sin(t)]
If we put all this information together and we get
L[y] = L[yh] + L[yδ]L[g(t)] rArr y(t) = yh(t) + (yδ lowast g)(t)
218 G NAGY ndash ODE november 29 2017
More explicitly we get
y(t) = eminust cos(t) +
int t
0
eminusτ sin(τ) g(tminus τ) dτ
C
G NAGY ndash ODE November 29 2017 219
454 Exercises
451- 452-
220 G NAGY ndash ODE november 29 2017
Chapter 5 Systems of Linear Differential Equations
Newtonrsquos second law of motion for point particles is one of the first differential equationsever written Even this early example of a differential equation consists not of a singleequation but of a system of three equation on three unknowns The unknown functions arethe particle three coordinates in space as function of time One important difficulty to solvea differential system is that the equations in a system are usually coupled One cannot solvefor one unknown function without knowing the other unknowns In this chapter we studyhow to solve the system in the particular case that the equations can be uncoupled We callsuch systems diagonalizable Explicit formulas for the solutions can be written in this caseLater we generalize this idea to systems that cannot be uncoupled
R8
R5
R6
R7
R1
R2
R3
R4
x2
x1
u1u2
0
G NAGY ndash ODE November 29 2017 221
51 General Properties
This Section is a generalization of the ideas in sect 21 from a single equation to a system ofequations We start introducing a linear system of differential equations with variable coef-ficients and the associated initial value problem We show that such initial value problemsalways have a unique solution We then introduce the concepts of fundamental solutionsgeneral solution fundamental matrix the Wronskian and Abelrsquos Theorem for systems Weassume that the reader is familiar with the concepts of linear algebra given in Chapter 8
511 First Order Linear Systems A single differential equation on one unknown func-tion is often not enough to describe certain physical problems For example problems inseveral dimensions or containing several interacting particles The description of a pointparticle moving in space under Newtonrsquos law of motion requires three functions of timemdashthe space coordinates of the particlemdashto describe the motion together with three differentialequations To describe several proteins activating and deactivating each other inside a cellalso requires as many unknown functions and equations as proteins in the system In thissection we present a first step aimed to describe such physical systems We start introducinga first order linear differential system of equations
Definition 511 An ntimes n first order linear differential system is the equation
xprime(t) = A(t) x(t) + b(t) (511)
where the ntimesn coefficient matrix A the source n-vector b and the unknown n-vector x aregiven in components by
A(t) =
a11(t) middot middot middot a1n(t)
an1(t) middot middot middot ann(t)
b(t) =
b1(t)bn(t)
x(t) =
x1(t)
xn(t)
The system in 511 is called homogeneous iff the source vector b = 0 of constant coef-ficients iff the matrix A is constant and diagonalizable iff the matrix A is diagonalizable
Remarks
(a) The derivative of a a vector valued function is defined as xprime(t) =
xprime1(t)
xprimen(t)
(b) By the definition of the matrix-vector product Eq (511) can be written as
xprime1(t) = a11(t)x1(t) + middot middot middot+ a1n(t)xn(t) + b1(t)
xprimen(t) = an1(t)x1(t) + middot middot middot+ ann(t)xn(t) + bn(t)
(c) We recall that in sect 83 we say that a square matrix A is diagonalizable iff there existsan invertible matrix P and a diagonal matrix D such that A = PDPminus1
A solution of an n times n linear differential system is an n-vector valued function x thatis a set of n functions x1 middot middot middot xn that satisfy every differential equation in the systemWhen we write down the equations we will usually write x instead of x(t)
Example 511 The case n = 1 is a single differential equation Find a solution x1 of
xprime1 = a11(t)x1 + b1(t)
222 G NAGY ndash ODE november 29 2017
Solution This is a linear first order equation and solutions can be found with the inte-grating factor method described in Section 12 C
Example 512 Find the coefficient matrix the source vector and the unknown vector forthe 2times 2 linear system
xprime1 = a11(t)x1 + a12(t)x2 + g1(t)
xprime2 = a21(t)x1 + a22(t)x2 + g2(t)
Solution The coefficient matrix A the source vector b and the unknown vector x are
A(t) =
[a11(t) a12(t)a21(t) a22(t)
] b(t) =
[g1(t)g2(t)
] x(t) =
[x1(t)x2(t)
]
C
Example 513 Use matrix notation to write down the 2times 2 system given by
xprime1 = x1 minus x2
xprime2 = minusx1 + x2
Solution In this case the matrix of coefficients and the unknown vector have the form
A =
[1 minus1minus1 1
] x(t) =
[x1(t)x2(t)
]
This is an homogeneous system so the source vector b = 0 The differential equation canbe written as follows
xprime1 = x1 minus x2
xprime2 = minusx1 + x2
hArr[xprime1xprime2
]=
[1 minus1minus1 1
] [x1
x2
]hArr xprime = Ax
C
Example 514 Find the explicit expression for the linear system xprime = Ax + b where
A =
[1 33 1
] b(t) =
[et
2e3t
] x =
[x1
x2
]
Solution The 2times 2 linear system is given by[xprime1xprime2
]=
[1 33 1
] [x1
x2
]+
[et
2e3t
] hArr
xprime1 = x1 + 3x2 + et
xprime2 = 3x1 + x2 + 2e3t
C
Example 515 Show that the vector valued functions x(1) =
[21
]e2t and x(2) =
[12
]eminust
are solutions to the 2times 2 linear system xprime = Ax where A =
[3 minus22 minus2
]
Solution We compute the left-hand side and the right-hand side of the differential equationabove for the function x(1) and we see that both side match that is
Ax(1) =
[3 minus22 minus2
] [21
]e2t =
[42
]e2t = 2
[21
]e2t x(1)prime =
[21
] (e2t)prime
=
[21
]2 e2t
G NAGY ndash ODE November 29 2017 223
so we conclude that x(1) prime = Ax(1) Analogously
Ax(2) =
[3 minus22 minus2
] [12
]eminust =
[minus1minus2
]eminust = minus
[12
]eminust x(2) prime =
[12
] (eminust)prime
= minus[12
]eminust
so we conclude that x(2) prime = Ax(2) C
Example 516 Find the explicit expression of the most general 3times 3 homogeneous lineardifferential system
Solution This is a system of the form xprime = A(t) x with A being a 3times3 matrix Thereforewe need to find functions x1 x2 and x3 solutions of
xprime1 = a11(t)x1 + a12(t)x2 + a13(t)x3
xprime2 = a21(t)x1 + a22(t)x2 + a13(t)x3
xprime3 = a31(t)x1 + a32(t)x2 + a33(t)x3
C
512 Existence of Solutions We first introduce the initial value problem for lineardifferential equations This problem is similar to initial value problem for a single differentialequation In the case of an n times n first order system we need n initial conditions one foreach unknown function which are collected in an n-vector
Definition 512 An Initial Value Problem for an n times n linear differential system isthe following Given an ntimesn matrix valued function A and an n-vector valued function ba real constant t0 and an n-vector x0 find an n-vector valued function x solution of
xprime = A(t) x + b(t) x(t0) = x0
Remark The initial condition vector x0 represents n conditions one for each componentof the unknown vector x
Example 517 Write down explicitly the initial value problem for x =
[x1
x2
]given by
xprime = Ax x(0) =
[23
] A =
[1 33 1
]
Solution This is a 2times 2 system in the unknowns x1 x2 with two linear equations
xprime1 = x1 + 3x2
xprime2 = 3x1 + x2
and the initial conditions x1(0) = 2 and x2(0) = 3 C
The main result about existence and uniqueness of solutions to an initial value problemfor a linear system is also analogous to Theorem 212
Theorem 513 (Existence and Uniqueness) If the functions A and b are continuous onan open interval I sub R and if x0 is any constant vector and t0 is any constant in I thenthere exist only one function x defined an interval I sub I with t0 isin I solution of the initialvalue problem
xprime = A(t) x + b(t) x(t0) = x0 (512)
Remark The fixed point argument used in the proof of Picard-Lindelofrsquos Theorem 162can be extended to prove Theorem 513 This proof will be presented later on
224 G NAGY ndash ODE november 29 2017
513 Order Transformations There is a relation between solutions to ntimesn systems oflinear differential equations and the solutions of n-th order linear scalar differential equa-tions This relation can take different forms In this section we focus on the case of n = 2and we show two of these relations the first order reduction and the second order reduction
It is useful to have a correspondence between solutions of an ntimesn linear system and an n-th order scalar equation One reason is that concepts developed for one of the equations canbe translated to the other equation For example we have introduced several concepts whenwe studied 2-nd order scalar linear equations in sect 21 concepts such as the superpositionproperty fundamental solutions general solutions the Wronskian and Abelrsquos theorem Itturns out that these concepts can be translated to 2 times 2 (and in general to n times n) lineardifferential systems
Theorem 514 (First Order Reduction) A function y solves the second order equation
yprimeprime + a1(t) yprime + a0(t) y = b(t) (513)
iff the functions x1 = y and x2 = yprime are solutions to the 2times 2 first order differential system
xprime1 = x2 (514)
xprime2 = minusa0(t)x1 minus a1(t)x2 + b(t) (515)
Proof of Theorem 514(rArr) Given a solution y of Eq (513) introduce the functions x1 = y and x2 = yprime ThereforeEq (514) holds due to the relation
xprime1 = yprime = x2
Also Eq (515) holds because of the equation
xprime2 = yprimeprime = minusa0(t) y minus a1(t) yprime + b(t) rArr xprimeprime2 = minusa0(t)x1 minus a1(t)x2 + b(t)
(lArr) Differentiate Eq (514) and introduce the result into Eq (515) that is
xprimeprime1 = xprime2 rArr xprimeprime1 = minusa0(t)x1 minus a1(t)xprime1 + b(t)
Denoting y = x1 we obtain
yprimeprime + a1(t) yprime + a0(t) y = b(t)
This establishes the Theorem
Example 518 Express as a first order system the second order equation
yprimeprime + 2yprime + 2y = sin(at)
Solution Introduce the new unknowns
x1 = y x2 = yprime rArr xprime1 = x2
Then the differential equation can be written as
xprime2 + 2x2 + 2x1 = sin(at)
We conclude that
xprime1 = x2 xprime2 = minus2x1 minus 2x2 + sin(at)
C
Remark The transformation in Theorem 514 can be generalized to ntimesn linear differentialsystems and n-th order scalar linear equations where n gt 2
We now introduce a second relation between systems and scalar equations
G NAGY ndash ODE November 29 2017 225
Theorem 515 (Second Order Reduction) Any 2 times 2 constant coefficients linear system
xprime = Ax with x =
[x1
x2
] can be written as second order equations for x1 and x2
xprimeprime minus tr (A) xprime + det(A) x = 0 (516)
Furthermore the solution to the initial value problem xprime = Ax with x(0) = x0 also solvesthe initial value problem given by Eq (516) with initial condition
x(0) = x0 xprime(0) = Ax0 (517)
Remark In components Eq (516) has the form
xprimeprime1 minus tr (A)xprime1 + det(A)x1 = 0 (518)
xprimeprime2 minus tr (A)xprime2 + det(A)x2 = 0 (519)
First Proof of Theorem 515 We start with the following identity which is satisfied byevery 2times 2 matrix A (exercise prove it on 2times 2 matrices by a straightforward calculation)
A2 minus tr (A)A+ det(A) I = 0
This identity is the particular case n = 2 of the Cayley-Hamilton Theorem which holds forevery n times n matrix If we use this identity on the equation for xprimeprime we get the equation inTheorem 515 because
xprimeprime =(Ax
)prime= Axprime = A2 x = tr (A)Axminus det(A)Ix
Recalling that Ax = xprime and Ix = x we get the vector equation
xprimeprime minus tr (A) xprime + det(A) x = 0
The initial conditions for a second order differential equation are x(0) and xprime(0) The firstcondition is given by hypothesis x(0) = x0 The second condition comes from the originalfirst order system evaluated at t = 0 that is xprime(0) = Ax(0) = Ax0 This establishes theTheorem
Second Proof of Theorem 515 This proof is based on a straightforward computation
Denote A =
[a11 a12
a21 a22
] then the system has the form
xprime1 = a11 x1 + a12 x2 (5110)
xprime2 = a21 x1 + a22 x2 (5111)
We start considering the case a12 6= 0 Compute the derivative of the first equation
xprimeprime1 = a11 xprime1 + a12 x
prime2
Use Eq (5111) to replace xprime2 on the right-hand side above
xprimeprime1 = a11 xprime1 + a12
(a21 x1 + a22 x2
)
Since we are assuming that a12 6= 0 we can replace the term with x2 above using Eq (5110)
xprimeprime1 = a11 xprime1 + a12a21 x1 + a12a22
(xprime1 minus a11 x1
)a12
A simple cancellation and reorganization of terms gives the equation
xprimeprime1 = (a11 + a22)xprime1 + (a12a21 minus a11a22)x1
Recalling that tr (A) = a11 + a22 and det(A) = a11a22 minus a12a21 we get
xprimeprime1 minus tr (A)xprime1 + det(A)x1 = 0
226 G NAGY ndash ODE november 29 2017
The initial conditions for x1 are x1(0) and xprime1(0) The first one comes from the first compo-nent of x(0) = x0 that is
x1(0) = x01 (5112)
The second condition comes from the first component of the first order differential equationevaluated at t = 0 that is xprime(0) = Ax(0) = Ax0 The first component is
xprime1(0) = a11 x01 + a12 x02 (5113)
Consider now the case a12 = 0 In this case the system is
xprime1 = a11 x1
xprime2 = a21 x1 + a22 x2
In this case compute one more derivative in the first equation above
xprimeprime1 = a11 xprime1
Now rewrite the first equation in the system as follows
a22 (minusxprime1 + a11 x1) = 0
Adding these last two equations for x1 we get
xprimeprime1 minus a11 xprime1 + a22 (minusxprime1 + a11 x1) = 0
So we get the equation
xprimeprime1 minus (a11 + a22)xprime1 + (a11a22)x1 = 0
Recalling that in the case a12 = 0 we have tr (A) = a11 + a22 and det(A) = a11a22 we get
xprimeprime1 minus tr (A)xprime1 + det(A)x1 = 0
The initial conditions are the same as in the case a12 6= 0 A similar calculation gives x2
and its initial conditions This establishes the Theorem
Example 519 Express as a single second order equation the 2times 2 system and solve it
xprime1 = minusx1 + 3x2
xprime2 = x1 minus x2
Solution Instead of using the result from Theorem 515 we solve this problem followingthe second proof of that theorem But instead of working with x1 we work with x2 We startcomputing x1 from the second equation x1 = xprime2 + x2 We then introduce this expressioninto the first equation
(xprime2 + x2)prime = minus(xprime2 + x2) + 3x2 rArr xprimeprime2 + xprime2 = minusxprime2 minus x2 + 3x2
so we obtain the second order equation
xprimeprime2 + 2xprime2 minus 2x2 = 0
We solve this equation with the methods studied in Chapter 2 that is we look for solutionsof the form x2(t) = ert with r solution of the characteristic equation
r2 + 2r minus 2 = 0 rArr rplusmn =1
2
[minus2plusmn
radic4 + 8
]rArr rplusmn = minus1plusmn
radic3
Therefore the general solution to the second order equation above is
x2 = c+ e(1+radic
3)t + c- e(1minusradic
3)t c+ c- isin RSince x1 satisfies the same equation as x2 we obtain the same general solution
x1 = c+ e(1+radic
3)t + c- e(1minusradic
3)t c+ c- isin R
G NAGY ndash ODE November 29 2017 227
C
Example 5110 Write the first order initial value problem
xprime = Ax A =
[1 23 4
] x =
[x1
x2
] x(0) =
[56
]
as a second order initial value problem for x1 Repeat the calculations for x2
Solution From Theorem 515 we know that both x1 and x2 satisfy the same differentialequation Since tr (A) = 1 + 4 = 5 and det(A) = 4minus 6 = minus2 the differential equations are
xprimeprime1 minus 5xprime1 minus 2x1 = 0 xprimeprime2 minus 5xprime2 minus 2x2 = 0
From the same Theorem we know that the initial conditions for the second order differentialequations above are x(0) = x0 and xprime(0) = Ax0 that is
x(0) =
[x1(0)x2(0)
]=
[56
] xprime(0) =
[x1(0)x2(0)
]=
[1 23 4
] [56
]=
[1739
]
therefore the initial conditions for x1 and x2 are
x1(0) = 5 xprime1(0) = 17 and x2(0) = 6 xprime2(0) = 39
C
514 Homogeneous Systems Solutions to a linear homogeneous differential system sat-isfy the superposition property Given two solutions of the homogeneous system their linearcombination is also a solution to that system
Theorem 516 (Superposition) If the vector functions x(1) x(2) are solutions of
x(1)prime = Ax(1) x(2)prime = Ax(2)
then the linear combination x = ax(1) + bx(2) for all a b isin R is also solution of
xprime = Ax
Remark This Theorem contains two particular cases
(a) a = b = 1 If x(1) and x(2) are solutions of an homogeneous linear system so is x(1)+x(2)(b) b = 0 and a arbitrary If x(1) is a solution of an homogeneous linear system so is ax(1)
Proof of Theorem 516 We check that the function x = ax(1) + bx(2) is a solution ofthe differential equation in the Theorem Indeed since the derivative of a vector valuedfunction is a linear operation we get
xprime =(ax(1) + bx(2)
)prime= ax(1) prime + bx(2) prime
Replacing the differential equation on the right-hand side above
xprime = aAx(1) + bAx(2)
The matrix-vector product is a linear operation A(ax(1) + bx(2)
)= aAx(1) + bAx(2) hence
xprime = A(ax(1) + bx(2)
)rArr xprime = Ax
This establishes the Theorem
Example 5111 Verify that x(1) =
[11
]eminus2t and x(2) =
[minus1
1
]e4t and x(1) + x(2) are
solutions to the homogeneous linear system
xprime = Ax A =
[1 minus3minus3 1
]
228 G NAGY ndash ODE november 29 2017
Solution The function x(1) is solution to the differential equation since
x(1) prime = minus2
[11
]eminus2t Ax(1) =
[1 minus3minus3 1
] [11
]eminus2t =
[minus2minus2
]eminus2t = minus2
[11
]eminus2t
We then conclude that x(1) prime = Ax(1) Analogously the function x(2) is solution to thedifferential equation since
x(2) prime = 4
[minus11
]e4t Ax(2) =
[1 minus3minus3 1
] [minus11
]e4t =
[minus4
4
]e4t = 4
[minus1
1
]e4t
We then conclude that x(2) prime = Ax(2) To show that x(1) + x(2) is also a solution we coulduse the linearity of the matrix-vector product as we did in the proof of the Theorem 516Here we choose the straightforward although more obscure calculation On the one hand
x(1) + x(2) =
[eminus2t minus e4t
eminus2t + e4t
]rArr
(x(1) + x(2)
)prime=
[minus2eminus2t minus 4e4t
minus2eminus2t + 4e4t
]
On the other hand
A(x(1) + x(2)
)=
[1 minus3minus3 1
] [eminus2t minus e4t
eminus2t + e4t
]=
[eminus2t minus e4t minus 3eminus2t minus 3e4t
minus3eminus2t + 3e4t + eminus2t + e4t
]
that is
A(x(1) + x(2)
)=
[minus2eminus2t minus 4e4t
minus2eminus2t + 4e4t
]
We conclude that(x(1) + x(2)
)prime= A
(x(1) + x(2)
) C
We now introduce the notion of a linearly dependent and independent set of functions
Definition 517 A set of n vector valued functions x(1) middot middot middot x(n) is called linearlydependent on an interval I isin R iff for all t isin I there exist constants c1 middot middot middot cn not all ofthem zero such that it holds
c1 x(1)(t) + middot middot middot+ cn x(n)(t) = 0
A set of n vector valued functions is called linearly independent on I iff the set is notlinearly dependent
Remark This notion is a generalization of Def 216 from two functions to n vector valuedfunctions For every value of t isin R this definition agrees with the definition of a set of linearlydependent vectors given in Linear Algebra reviewed in Chapter 8
We now generalize Theorem 217 to linear systems If you know a linearly independentset of n solutions to an ntimesn first order linear homogeneous system then you actually knowall possible solutions to that system since any other solution is just a linear combination ofthe previous n solutions
Theorem 518 (General Solution) If x(1) middot middot middot x(n) is a linearly independent set ofsolutions of the ntimesn system xprime = Ax where A is a continuous matrix valued function thenthere exist unique constants c1 middot middot middot cn such that every solution x of the differential equationxprime = Ax can be written as the linear combination
x(t) = c1 x(1)(t) + middot middot middot+ cn x(n)(t) (5114)
Before we present a sketch of the proof for Theorem 518 it is convenient to state thefollowing the definitions which come out naturally from Theorem 518
G NAGY ndash ODE November 29 2017 229
Definition 519
(a) The set of functions x(1) middot middot middot x(n) is a fundamental set of solutions of the equationxprime = Ax iff the set x(1) middot middot middot x(n) is linearly independent and x(i)prime = Ax(i) for everyi = 1 middot middot middot n
(b) The general solution of the homogeneous equation xprime = Ax denotes any vector valuedfunction xgen that can be written as a linear combination
xgen(t) = c1 x(1)(t) + middot middot middot+ cn x(n)(t)
where x(1) middot middot middot x(n) are the functions in any fundamental set of solutions of xprime = Axwhile c1 middot middot middot cn are arbitrary constants
Remark The names above are appropriate since Theorem 518 says that knowing then functions of a fundamental set of solutions is equivalent to knowing all solutions to thehomogeneous linear differential system
Example 5112 Show that the set of functions
x(1) =
[11
]eminus2t x(2) =
[minus1
1
]e4t
is a
fundamental set of solutions to the system xprime = Ax where A =
[1 minus3minus3 1
]
Solution In Example 5111 we have shown that x(1) and x(2) are solutions to the dif-ferential equation above We only need to show that these two functions form a linearlyindependent set That is we need to show that the only constants c1 c2 solutions of theequation below for all t isin R are c1 = c2 = 0 where
0 = c1 x(1) + c2 x(2) = c1
[11
]eminus2t + c2
[minus1
1
]e4t =
[eminus2t minuse4t
eminus2t e4t
] [c1c2
]= X(t) c
where X(t) =[x(1)(t) x(2)(t)
]and c =
[c1c2
] Using this matrix notation the linear system
for c1 c2 has the form
X(t) c = 0
We now show that matrix X(t) is invertible for all t isin R This is the case since itsdeterminant is
det(X(t)
)=
∣∣∣∣eminus2t minuse4t
eminus2t e4t
∣∣∣∣ = e2t + e2t = 2 e2t 6= 0 for all t isin R
Since X(t) is invertible for t isin R the only solution for the linear system above is c = 0that is c1 = c2 = 0 We conclude that the set
x(1) x(2)
is linearly independent so it is a
fundamental set of solution to the differential equation above C
Proof of Theorem 518 The superposition property in Theorem 516 says that given anyset of solutions x(1) middot middot middot x(n) of the differential equation xprime = Ax the linear combinationx(t) = c1 x(1)(t) + middot middot middot + cn x(n)(t) is also a solution We now must prove that in the casethat x(1) middot middot middot x(n) is linearly independent every solution of the differential equation isincluded in this linear combination
Let x be any solution of the differential equation xprime = Ax The uniqueness statement inTheorem 513 implies that this is the only solution that at t0 takes the value x(t0) Thismeans that the initial data x(t0) parametrizes all solutions to the differential equation Wenow try to find the constants c1 middot middot middot cn solutions of the algebraic linear system
x(t0) = c1 x(1)(t0) + middot middot middot+ cn x(n)(t0)
230 G NAGY ndash ODE november 29 2017
Introducing the notation
X(t) =[x(1)(t) middot middot middot x(n)(t)
] c =
c1cn
the algebraic linear system has the form
x(t0) = X(t0) c
This algebraic system has a unique solution c for every source x(t0) iff the matrix X(t0)is invertible This matrix is invertible iff det
(X(t0)
)6= 0 The generalization of Abelrsquos
Theorem to systems Theorem 5111 says that det(X(t0)
)6= 0 iff the set x(1) middot middot middot x(n) is
a fundamental set of solutions to the differential equation This establishes the Theorem
Example 5113 Find the general solution to differential equation in Example 515 andthen use this general solution to find the solution of the initial value problem
xprime = Ax x(0) =
[15
] A =
[3 minus22 minus2
]
Solution From Example 515 we know that the general solution of the differential equa-tion above can be written as
x(t) = c1
[21
]e2t + c2
[12
]eminust
Before imposing the initial condition on this general solution it is convenient to write thisgeneral solution using a matrix valued function X as follows
x(t) =
[2e2t eminust
e2t 2eminust
] [c1c2
]hArr x(t) = X(t)c
where we introduced the solution matrix and the constant vector respectively
X(t) =
[2e2t eminust
e2t 2eminust
] c =
[c1c2
]
The initial condition fixes the vector c that is its components c1 c2 as follows
x(0) = X(0) c rArr c =[X(0)
]minus1x(0)
Since the solution matrix X at t = 0 has the form
X(0) =
[2 11 2
]rArr
[X(0)
]minus1=
1
3
[2 minus1minus1 2
]
introducing[X(0)
]minus1in the equation for c above we get
c =1
3
[2 minus1minus1 2
] [15
]=
[minus1
3
]rArr
c1 = minus1
c2 = 3
We conclude that the solution to the initial value problem above is given by
x(t) = minus[21
]e2t + 3
[12
]eminust
C
G NAGY ndash ODE November 29 2017 231
515 The Wronskian and Abelrsquos Theorem From the proof of Theorem 518 abovewe see that it is convenient to introduce the notion of solution matrix and Wronskian of aset of n solutions to an ntimes n linear differential system
Definition 5110
(a) A solution matrix of any set of vector functions x(1) middot middot middot x(n) solutions to a dif-ferential equation xprime = Ax is the ntimes n matrix valued function
X(t) =[x(1)(t) middot middot middot x(n)(t)
] (5115)
Xis called a fundamental matrix iff the set x(1) middot middot middot x(n) is a fundamental set(b) The Wronskian of the set x(1) middot middot middot x(n) is the function W (t) = det
(X(t)
)
Remark A fundamental matrix provides a more compact way to write the general solutionof a differential equation The general solution in Eq (5114) can be rewritten as
xgen(t) = c1x(1)(t) + middot middot middot+ cnx(n)(t) =
[x(1)(t) middot middot middot x(n)(t)
] c1cn
= X(t) c c =
c1cn
This is a more compact notation for the general solution
xgen(t) = X(t) c (5116)
Remark The definition of the Wronskian in Def 5110 agrees with the Wronskian ofsolutions to second order linear scalar equations given in Def 219 sect 21 We can seethis relation if we compute the first order reduction of a second order equation So theWronskian of two solutions y1 y2 of the second order equation yprimeprime + a1y
prime + a0y = 0 is
Wy1y2 =
∣∣∣∣y1 y2yprime1 yprime2
∣∣∣∣ Now compute the first order reduction of the differential equation above as in Theorem 514
xprime1 = x2
xprime2 = minusa0x1 minus a1x2
The solutions y1 y2 define two solutions of the 2times 2 linear system
x(1) =
[y1yprime1
] x(2) =
[y2yprime2
]
The Wronskian for the scalar equation coincides with the Wronskian for the system because
Wy1y2 =
∣∣∣∣y1 y2yprime1 yprime2
∣∣∣∣ =
∣∣∣∣∣x(1)1 x
(2)1
x(1)2 x
(2)2
∣∣∣∣∣ = det([
x(1)x(2)])
= W
Example 5114 Find two fundamental matrices for the linear homogeneous system inExample 5111
Solution One fundamental matrix is simple to find we use the solutions in Example 5111
X =[x(1)x(2)
]rArr X(t) =
[eminus2t minuse4t
eminus2t e4t
]
232 G NAGY ndash ODE november 29 2017
A second fundamental matrix can be obtained multiplying by any nonzero constant eachsolution above For example another fundamental matrix is
X =[2x(1) 3x(2)
]rArr X(t) =
[2eminus2t minus3e4t
2eminus2t 3e4t
]
C
Example 5115 Compute the Wronskian of the vector valued functions given in Exam-
ple 5111 that is x(1) =
[11
]eminus2t and x(2) =
[minus1
1
]e4t
Solution The Wronskian is the determinant of the solution matrix with the vectorsplaced in any order For example we can choose the order
[x(1)x(2)
] If we choose the
order[x(2)x(1)
] this second Wronskian is the negative of the first one Choosing the first
order for the solutions we get
W (t) = det([
x(1)x(2)])
=
∣∣∣∣eminus2t minuse4t
eminus2t e4t
∣∣∣∣ = eminus2t e4t + eminus2t e4t
We conclude that W (t) = 2e2t C
Example 5116 Show that the set of functions
x(1) =
[e3t
2e3t
] x(2) =
[eminust
minus2eminust
]is
linearly independent for all t isin R
Solution We compute the determinant of the matrix X(t) =
[e3t eminust
2e3t minus2eminust
] that is
w(t) =
∣∣∣∣ e3t eminust
2e3t minus2eminust
∣∣∣∣ = minus2e2t minus 2e2t rArr w(t) = minus4e2t 6= 0 t isin RC
We now generalize Abelrsquos Theorem 2112 from a single equation to an ntimesn linear system
Theorem 5111 (Abel) The Wronskian function W = det(X(t)
)of a solution matrix
X =[x(1) middot middot middot x(n)
]of the linear system xprime = A(t)x where A is an ntimesn continuous matrix
valued function on a domain I sub R satisfies the differential equation
W prime(t) = tr[A(t)
]W (t) (5117)
where tr (A) is the trace of A Hence W is given by
W (t) = W (t0) eα(t) α(t) =
int t
t0
tr(A(τ)
)dτ
where t0 is any point in I
Remarks
(a) In the case of a constant matrix A the equation above for the Wronskian reduces to
W (t) = W (t0) etr (A) (tminust0)
(b) The Wronskian function vanishes at a single point iff it vanishes identically for all t isin I(c) A consequence of (b) n solutions to the system xprime = A(t)x are linearly independent at
the initial time t0 iff they are linearly independent for every time t isin I
Proof of Theorem 5111 The proof is based in an identity satisfied by the determinantof certain matrix valued functions The proof of this identity is quite involved so we do not
G NAGY ndash ODE November 29 2017 233
provide it here The identity is the following Every ntimes n differentiable invertible matrixvalued function Z with values Z(t) for t isin R satisfies the identity
d
dtdet(Z) = det(Z) tr
(Zminus1 d
dtZ)
We use this identity with any fundamental matrix X =[x(1) middot middot middot x(n)
]of the linear homo-
geneous differential system xprime = Ax Recalling that the Wronskian w(t) = det(X(t)
) the
identity above saysW prime(t) = W (t) tr
[Xminus1(t)X prime(t)
]
We now compute the derivative of the fundamental matrix
X prime =[x(1) prime middot middot middot x(n) prime] =
[Ax(1) middot middot middot Ax(n)
]= AX
where the equation on the far right comes from the definition of matrix multiplicationReplacing this equation in the Wronskian equation we get
W prime(t) = W (t) tr(Xminus1AX
)= W (t) tr
(XXminus1A
)= W (t) tr (A)
where in the second equation above we used a property of the trace of three matricestr (ABC) = tr (CAB) = tr (BCA) Therefore we have seen that the Wronskian satisfiesthe equation
W prime(t) = tr[A(t)
]W (t)
This is a linear differential equation of a single function W Rrarr R We integrate it usingthe integrating factor method from Section 12 The result is
W (t) = W (t0) eα(t) α(t) =
int t
t0
tr[A(τ)
]dτ
This establishes the Theorem
Example 5117 Show that the Wronskian of the fundamental matrix constructed withthe solutions given in Example 513 satisfies Eq (5117) above
Solution In Example 515 we have shown that the vector valued functions x(1) =
[21
]e2t
and x(2) =
[12
]eminust are solutions to the system xprime = Ax where A =
[3 minus22 minus2
] The matrix
X(t) =
[2e2t eminust
e2t 2eminust
]is a fundamental matrix of the system since its Wronskian is non-zero
W (t) =
∣∣∣∣2e2t eminust
e2t 2eminust
∣∣∣∣ = 4et minus et rArr W (t) = 3et
We need to compute the right-hand side and the left-hand side of Eq (5117) and verifythat they coincide We start with the left-hand side
W prime(t) = 3et = W (t)
The right-hand side istr (A)W (t) = (3minus 2)W (t) = W (t)
Therefore we have shown that W (t) = tr (A)W (t) C
234 G NAGY ndash ODE november 29 2017
516 Exercises
511- 512-
G NAGY ndash ODE November 29 2017 235
52 Solution Formulas
We find an explicit formula for the solutions of linear systems of differential equations withconstant coefficients We first consider homogeneous equations and later on we generalizethe solution formula to nonhomogeneous equations with nonconstant sources Both solutionformulas for linear systems are obtained generalizing the integrating factor method for linearscalar equations used in sect 11 12 In this section we use the exponential of a matrix so thereader should read Chapter 8 in particular sect 83 and sect 84
We also study the particular case when the coefficient matrix of a linear differentialsystem is diagonalizable In this case we show a well-known formula for the general solutionof linear systems that involves the eigenvalues and eigenvectors of the coefficient matrix Toobtain this formula we transform the coupled system into an uncoupled system we solvethe uncoupled system and we transform the solution back to the original variables Lateron we use this formula for the general solution to construct a fundamental matrix for thelinear system We then relate this fundamental matrix to the exponential formula for thesolutions of a general linear system we found using the integrating factor method
521 Homogeneous Systems We find an explicit formula for the solutions of first orderhomogeneous linear systems of differential equations with constant coefficients This formulais found using the integrating factor method introduced in sect 11 and 12
Theorem 521 (Homogeneous Systems) If A is an n times n matrix t0 isin R is an arbitraryconstant and x0 is any constant n-vector then the initial value problem for the unknownn-vector valued function x given by
xprime = Ax x(t0) = x0
has a unique solution given by the formula
x(t) = eA(tminust0) x0 (521)
Remark See sect 84 for the definitions of the exponential of a square matrix In particularrecall the following properties of eAt for a constant square matrix A and any s t isin R
d
dteAt = AeAt = eAtA
(eAt)minus1
= eminusAt eAseAt = eA(s+t)
Proof of Theorem 521 We generalize to linear systems the integrating factor methodused in sect 11 to solve linear scalar equations Therefore rewrite the equation as xprimeminusAx = 0where 0 is the zero n-vector and then multiply the equation on the left by eminusAt
eminusAtxprime minus eminusAtAx = 0 rArr eminusAtxprime minusAeminusAt x = 0
since eminusAtA = AeminusAt We now use the properties of the matrix exponential to rewrite thesystem as
eminusAtxprime +(eminusAt
)primex = 0 rArr
(eminusAtx
)prime= 0
If we integrate in the last equation above and we denote by c a constant n-vector we get
eminusAtx(t) = c rArr x(t) = eAtc
where we used(eminusAt
)minus1= eAt If we now evaluate at t = t0 we get the constant vector c
x0 = x(t0) = eAt0c rArr c = eminusAt0x0
Using this expression for c in the solution formula above we get
x(t) = eAteminusAt0x0 rArr x(t) = eA(tminust0)x0
This establishes the Theorem
236 G NAGY ndash ODE november 29 2017
Example 521 Compute the exponential function eAt and use it to express the vector-valued function x solution to the initial value problem
xprime = Ax A =
[1 22 1
] x(0) = x0 =
[x01
x02
]
Solution The exponential of a matrix is simple to compute in the case that the matrixis diagonalizable So we start checking whether matrix A above is diagonalizable Theo-rem 838 says that a 2times2 matrix is diagonalizable if it has two eigenvectors not proportionalto each other In oder to find the eigenvectors of A we need to compute its eigenvalueswhich are the roots of the characteristic polynomial
p(λ) = det(Aminus λI2) =
∣∣∣∣(1minus λ) 22 (1minus λ)
∣∣∣∣ = (1minus λ)2 minus 4
The roots of the characteristic polynomial are
(λminus 1)2 = 4 hArr λplusmn = 1plusmn 2 hArr λ+ = 3 λ- = minus1
The eigenvectors corresponding to the eigenvalue λ+ = 3 are the solutions v+ of the linearsystem (Aminus 3I2)v+ = 0 To find them we perform Gauss operations on the matrix
Aminus 3I2 =
[minus2 2
2 minus2
]rarr[1 minus10 0
]rArr v+1 = v+2 rArr v+ =
[11
]
The eigenvectors corresponding to the eigenvalue λ- = minus1 are the solutions v- of the linearsystem (A+ I2)v- = 0 To find them we perform Gauss operations on the matrix
A+ I2 =
[2 22 2
]rarr[1 10 0
]rArr v-1 = minusv-2 rArr v- =
[minus1
1
]
Summarizing the eigenvalues and eigenvectors of matrix A are following
λ+ = 3 v+ =
[11
] and λ- = minus1 v- =
[minus11
]
Then Theorem 838 says that the matrix A is diagonalizable that is A = PDPminus1 where
P =
[1 minus11 1
] D =
[3 00 minus1
] Pminus1 =
1
2
[1 1minus1 1
]
Now Theorem says that the exponential of At is given by
eAt = PeDtPminus1 =
[1 minus11 1
] [e3t 00 eminust
]1
2
[1 1minus1 1
]
so we conclude that
eAt =1
2
[(e3t + eminust) (e3t minus eminust)(e3t minus eminust) (e3t + eminust)
] (522)
Finally we get the solution to the initial value problem above
x(t) = eAtx0 =1
2
[(e3t + eminust) (e3t minus eminust)(e3t minus eminust) (e3t + eminust)
] [x01
x02
]
In components this means
x(t) =1
2
[(x01 + x02) e
3t + (x01 minus x02) eminust
(x01 + x02) e3t minus (x01 minus x02) e
minust
]
C
G NAGY ndash ODE November 29 2017 237
522 Homogeneous Diagonalizable Systems A linear system xprime = Ax is diagonaliz-able iff the coefficient matrix A is diagonalizable which means that there is an invertiblematrix P and a diagonal matrix D such that A = PDPminus1 (See sect 83 for a review on diag-onalizable matrices) The solution formula in Eq (521) includes diagonalizable systemsBut when a system is diagonalizable there is a simpler way to solve it One transforms thesystem where all the equations are coupled together into a decoupled system One can solvethe decoupled system one equation at a time The last step is to transform the solutionback to the original variables We show how this idea works in a very simple example
Example 522 Find functions x1 x2 solutions of the first order 2times2 constant coefficientshomogeneous differential system
xprime1 = x1 minus x2
xprime2 = minusx1 + x2
Solution As it is usually the case the equations in the system above are coupled Onemust know the function x2 in order to integrate the first equation to obtain the function x1Similarly one has to know function x1 to integrate the second equation to get function x2The system is coupled one cannot integrate one equation at a time One must integratethe whole system together
However the coefficient matrix of the system above is diagonalizable In this case theequations can be decoupled If we add the two equations equations and if we subtract thesecond equation from the first we obtain respectively
(x1 + x2)prime = 0 (x1 minus x2)
prime = 2(x1 minus x2)
To see more clearly what we have done let us introduce the new unknowns y1 = x1 + x2and y2 = x1 minus x2 and rewrite the equations above with these new unknowns
yprime1 = 0 yprime2 = 2y2
We have decoupled the original system The equations for x1 and x2 are coupled but wehave found a linear combination of the equations such that the equations for y1 and y2 arenot coupled We now solve each equation independently of the other
yprime1 = 0 rArr y1 = c1
yprime2 = 2y2 rArr y2 = c2e2t
with c1 c2 isin R Having obtained the solutions for the decoupled system we now transformback the solutions to the original unknown functions From the definitions of y1 and y2 wesee that
x1 =1
2(y1 + y2) x2 =
1
2(y1 minus y2)
We conclude that for all c1 c2 isin R the functions x1 x2 below are solutions of the 2 times 2differential system in the example namely
x1(t) =1
2(c1 + c2 e
2t) x2(t) =1
2(c1 minus c2 e2t)
C
The equations for x1 and x2 in the example above are coupled so we found an appropriatelinear combination of the equations and the unknowns such that the equations for the newunknown functions y1 and y2 are decoupled We integrated each equation independentlyof the other and we finally transformed the solutions back to the original unknowns x1 andx2 The key step is to find the transformation from x1 x2 to y1 y2 For general systemsthis transformation may not exist It exists however for diagonalizable systems
238 G NAGY ndash ODE november 29 2017
Remark Recall Theorem 838 which says that an n times n matrix A diagonalizable iff Ahas a linearly independent set of n eigenvectors Furthermore if λi v(i) are eigenpairs ofA then the decomposition A = PDPminus1 holds for
P =[v(i) middot middot middot v(n)
] D = diag
[λ1 middot middot middot λn
]
For diagonalizable systems of homogeneous differential equations there is a formula forthe general solution that includes the eigenvalues and eigenvectors of the coefficient matrix
Theorem 522 (Homogeneous Diagonalizable Systems) If the n times n constant matrixA is diagonalizable with a set of linearly independent eigenvectors
v(1) middot middot middot v(n)
and
corresponding eigenvalues λ1 middot middot middot λn then the system xprime = Ax has a general solution
xgen(t) = c1 eλ1t v(1) + middot middot middot+ cn e
λnt v(n) (523)
Furthermore every initial value problem xprime(t) = Ax(t) with x(t0) = x0 has a uniquesolution for every initial condition x0 isin Rn where the constants c1 middot middot middot cn are solution ofthe algebraic linear system
x0 = c1 eλ1t0 v(1) + middot middot middot+ cn e
λ1t0 v(n) (524)
Remark We show two proofs of this Theorem The first one is just a verification thatthe expression in Eq (523) satisfies the differential equation xprime = Ax The second prooffollows the same idea presented to solve Example 522 We decouple the system we solvethe uncoupled system and we transform back to the original unknowns The differentialsystem is decoupled when written in the basis of eigenvectors of the coefficient matrix
First proof of Theorem 522 Each function x(i) = eλit v(i) for i = 1 middot middot middot n is solutionof the system xprime = Ax because
x(i)prime = λi eλit v(i) Ax(i) = A
(eλit v(i)
)= eλitA v(i) = λi e
λit v(i)
hence x(i)prime = Ax(i) Since A is diagonalizable the setx(1)(t) = eλ1t v(1) middot middot middot x(n)(t) = eλnt v(n)
is a fundamental set of solutions to the system Therefore the superposition property saysthat the general solution to the system is
x(t) = c1 eλ1t v(1) + middot middot middot+ cn e
λnt v(n)
The constants c1 middot middot middot cn are computed by evaluating the equation above at t0 and recallingthe initial condition x(t0) = x0 This establishes the Theorem
Remark In the proof above we verify that the functions x(i) = eλit v(i) are solutionsbut we do not say why we choose these functions in the first place In the proof below weconstruct the solutions and we find that they are the ones given in the proof above
Second proof of Theorem 522 Since the coefficient matrix A is diagonalizable thereexist an invertible matrix P and a diagonal matrix D such that A = PDPminus1 Introducethis expression into the differential equation and multiplying the whole equation by Pminus1
Pminus1xprime(t) = Pminus1(PDPminus1
)x(t)
Notice that to multiply the differential system by the matrix Pminus1 means to perform a veryparticular type of linear combinations among the equations in the system This is the linearcombination that decouples the system Indeed since matrix A is constant so is P and D
In particular Pminus1xprime =(Pminus1x
)prime hence
(Pminus1x)prime = D(Pminus1 x
)
G NAGY ndash ODE November 29 2017 239
Define the new variable y =(Pminus1x
) The differential equation is now given by
yprime(t) = D y(t)
Since matrix D is diagonal the system above is a decoupled for the variable y Transformthe initial condition too that is Pminus1x(t0) = Pminus1x0 and use the notation y0 = Pminus1x0 sowe get the initial condition in terms of the y variable
y(t0) = y0
Solve the decoupled initial value problem yprime(t) = D y(t)
yprime1(t) = λ1 y1(t)
yprimen(t) = λn yn(t)
rArr
y1(t) = c1 e
λ1t
yn(t) = cn eλnt
rArr y(t) =
c1 eλ1t
cn e
λnt
Once y is found we transform back to x
x(t) = P y(t) =[v(1) middot middot middot v(n)
] c1 eλ1t
cn e
λnt
= c1 eλ1t v(1) + middot middot middot+ cn e
λnt v(n)
This is Eq (523) Evaluating it at t0 we get Eq (524) This establishes the Theorem
Example 523 Find the vector-valued function x solution to the differential system
xprime = Ax x(0) =
[32
] A =
[1 22 1
]
Solution First we need to find out whether the coefficient matrix A is diagonalizable ornot Theorem 838 says that a 2 times 2 matrix is diagonalizable iff there exists a linearlyindependent set of two eigenvectors So we start computing the matrix eigenvalues whichare the roots of the characteristic polynomial
p(λ) = det(Aminus λI2) =
∣∣∣∣(1minus λ) 22 (1minus λ)
∣∣∣∣ = (1minus λ)2 minus 4
The roots of the characteristic polynomial are
(λminus 1)2 = 4 hArr λplusmn = 1plusmn 2 hArr λ+ = 3 λ- = minus1
The eigenvectors corresponding to the eigenvalue λ+ = 3 are the solutions v+ of the linearsystem (Aminus 3I2)v+ = 0 To find them we perform Gauss operations on the matrix
Aminus 3I2 =
[minus2 22 minus2
]rarr[1 minus10 0
]rArr v+1 = v+2 rArr v+ =
[11
]
The eigenvectors corresponding to the eigenvalue λ- = minus1 are the solutions v- of the linearsystem (A+ I2)v- = 0 To find them we perform Gauss operations on the matrix
A+ I2 =
[2 22 2
]rarr[1 10 0
]rArr v-1 = minusv-2 rArr v- =
[minus1
1
]
Summarizing the eigenvalues and eigenvectors of matrix A are following
λ+ = 3 v+ =
[11
] and λ- = minus1 v- =
[minus1
1
]
240 G NAGY ndash ODE november 29 2017
Once we have the eigenvalues and eigenvectors of the coefficient matrix Eq (523) gives usthe general solution
x(t) = c+ e3t
[11
]+ c- e
minust[minus1
1
]
where the coefficients c+ and c- are solutions of the initial condition equation
c+
[11
]+ c-
[minus11
]=
[32
]rArr
[1 minus11 1
] [c+c-
]=
[32
]rArr
[c+c-
]=
1
2
[1 1minus1 1
] [32
]
We conclude that c+ = 52 and c- = minus12 hence
x(t) =5
2e3t
[11
]minus 1
2eminust
[minus1
1
]hArr x(t) =
1
2
[5e3t + eminust
5e3t minus eminust]
C
Example 524 Find the general solution to the 2times 2 differential system
xprime = Ax A =
[1 33 1
]
Solution We need to find the eigenvalues and eigenvectors of the coefficient matrix ABut they were found in Example 834 and the result is
λ+ = 4 v(+) =
[11
]and λ- = minus2 v(-) =
[minus1
1
]
With these eigenpairs we construct fundamental solutions of the differential equation
λ+ = 4 v(+) =
[11
]rArr x(+)(t) = e4t
[11
]
λ- = minus2 v(-) =
[minus1
1
]rArr x(-)(t) = eminus2t
[minus11
]
Therefore the general solution of the differential equation is
x(t) = c+ e4t
[11
]+ c- e
minus2t
[minus1
1
] c+ c- isin R
C
The formula in Eq 523 is a remarkably simple way to write the general solution of theequation xprime = Ax in the case A is diagonalizable It is a formula easy to remember youjust add all terms of the form eλit vi where λi vi is any eigenpair of A But this formulais not the best one to write down solutions to initial value problems As you can see inTheorem 522 we did not provide a formula for that We only said that the constantsc1 middot middot middot cn are the solutions of the algebraic linear system in (524) But we did not writethe solution for the crsquos It is too complicated in this notation though it is not difficult todo it on every particular case as we did near the end of Example 523
A simple way to introduce the initial condition in the expression of the solution is witha fundamental matrix which we introduced in Eq (5110)
Theorem 523 (Fundamental Matrix Expression) If the ntimesn constant matrix A is diago-nalizable with a set of linearly independent eigenvectors
v(1) middot middot middot v(n)
and corresponding
eigenvalues λ1 middot middot middot λn then the initial value problem xprime = Ax with x(t0) = x0 has aunique solution given by
x(t) = X(t)X(t0)minus1 x0 (525)
where X(t) =[eλ1t v(1) middot middot middot eλnt v(n)
]is a fundamental matrix of the system
G NAGY ndash ODE November 29 2017 241
Proof of Theorem 523 If we choose fundamental solutions of xprime = Ax to bex(1)(t) = eλ1t v(1) middot middot middot x(n)(t) = eλnt v(n)
then the associated fundamental matrix is
X(t) =[eλ1t v(1) middot middot middot eλnt v(n)
]
We use this fundamental matrix to write the general solution of the differential system as
xgen(t) = c1 eλ1t v(1) + middot middot middot+ cn e
λnt v(n) = X(t) c c =
c1cn
The equation from the initial condition is now
x0 = x(t0) = X(t0) c rArr c = X(t0)minus1x0
which makes sense since X(t) is an invertible matrix for all t where it is defined Using thisformula for the constant vector c we get
x(t) = X(t)X(t0)minus1 x0
This establishes the Theorem
Example 525 Find a fundamental matrix for the system below and use it to write downthe general solution to the system
xprime = Ax A =
[1 22 1
]
Solution One way to find a fundamental matrix of a system is to start computing theeigenvalues and eigenvectors of the coefficient matrix The differential equation in thisExample is the same as the one given in Example 523 where we found that the eigenvaluesand eigenvectors of the coefficient matrix are
λ+ = 3 v+ =
[11
] and λ- = minus1 v- =
[minus1
1
]
We see that the coefficient matrix is diagonalizable so with the eigenpairs above we canconstruct a fundamental set of solutions
x(+)(t) = e3t
[11
] x(-)(t) = eminust
[minus1
1
]
From here we construct a fundamental matrix
X(t) =
[e3t minuseminuste3t eminust
]
Then we have the general solution xgen(t) = X(t)c where c =
[c+c-
] that is
xgen(t) =
[e3t minuseminuste3t eminust
] [c+c-
]hArr xgen(t) = c+ e
3t
[11
]+ c+ e
minust[minus11
]
C
242 G NAGY ndash ODE november 29 2017
Example 526 Use the fundamental matrix found in Example 525 to write down thesolution to the initial value problem
xprime = Ax x(0) = x0 =
[x01
x02
] A =
[1 22 1
]
Solution In Example 525 we found the general solution to the differential equation
xgen(t) =
[e3t minuseminuste3t eminust
] [c+c-
]
The initial condition has the form[x01
x02
]= x(0) = X(0) c =
[1 minus11 1
] [c+c-
]
We need to compute the inverse of matrix X(0)
X(0)minus1 =1
2
[1 1minus1 1
]
so we compute the constant vector c[c+c-
]=
1
2
[1 1minus1 1
] [x01
x02
]
So the solution to the initial value problem is
x(t) = X(t)X(0)minus1x0 hArr x(t) =
[e3t minuseminuste3t eminust
]1
2
[1 1minus1 1
] [x01
x02
]
If we compute the matrix on the last equation explicitly we get
x(t) =1
2
[(e3t + eminust) (e3t minus eminust)(e3t minus eminust) (e3t + eminust)
] [x01
x02
]
C
Remark In the Example 526 above we found that for A =
[1 22 1
] holds
X(t)X(0)minus1 =1
2
[(e3t + eminust) (e3t minus eminust)(e3t minus eminust) (e3t + eminust)
]
which is precisely the same as the expression for eAt we found in Eq (522) in Example 522
eAt =1
2
[(e3t + eminust) (e3t minus eminust)(e3t minus eminust) (e3t + eminust)
]
This is not a coincidence If a matrix A is diagonalizable then eA(tminust0) = X(t)X(t0)minus1 We
summarize this result in the theorem below
Theorem 524 (Exponential for Diagonalizable Systems) If an ntimesn matrix A has linearlyindependent eigenvectors
v(1) middot middot middot v(n)
with corresponding eigenvalues λ1 middot middot middot λn then
eA(tminust0) = X(t)X(t0)minus1
where X(t) =[eλ1t v(1) middot middot middot eλnt v(n)
]