Laplace Transforms to solve simple ODEs
DOCX · 26.4 KB
Open DOCX file
Personal notes by Phil, dated 1.17.11 with additions on 4.6.11, applying the Laplace transform to [∂t²+B∂t+C]f(t)=g(t). They cover the pole decomposition, initial-condition (transient) terms, real and complex pole cases with damped sin/cos solutions, a check by direct homogeneous solution, and a first-order analogue. An appendix treats damping-force physics; some algebra is flagged as possibly erroneous.
AI-written summary; may contain errors.
Extracted text (machine-read; may contain errors)
Laplace Transforms to solve simple ODEs PhL 1.17.11
This is not something I ever did much of, but I have an example on the whiteboard today and will write it down here (this became the first section of this document which then grew a bit)
Laplace Transform method of solving a 2nd order ODE with constant coefficients. 1
More details added 4.6.11. 2
Main Point of this Entire Discussion 4
The First Order Analogous Situation 5
Appendix on Damping Force Physics. 5
Laplace Transform method of solving a 2nd order ODE with constant coefficients.
Consider this ODE where we set the ∂t2 coefficient to 1 without loss of generality. We are only talking constant coefficients here.
[ ∂t2+B∂t+C ] f(t) = g(t)
We know the following Laplace facts, which you prove with simple parts integration,
!Syntax Error, Ids e-stf(t) = F(s) // Schaum page 162
!Syntax Error, Ids e-st∂tf(t) = sF(s)-f(0)
!Syntax Error, Ids e-st∂t2 f(t) = s2F(s)-sf(0)-f'(0)
Thus, if we apply !Syntax Error, Ids e-st to both sides of our ODE we get
[s2F(s)-sf(0)-f'(0)] + B [sF(s)-f(0)] + C F(s) = G(s)
We want to solve this thing for F(s), so:
(s2 + Bs + C)F(s) = G(s) + sf(0) + [ f'(0) +Bf(0) ]
The solution is then
F(s) = G(s)/ (s2 + Bs + C) + { sf(0) + [ f'(0) +Bf(0) ]}/ (s2 + Bs + C) (1)
One can factor (s2 + Bs + C) = (s-s1)(s-s2) and then write s1+s2 = -B
1/(s2 + Bs + C) = 1/[(s-s1)( s-s2)] = 1/(s1- s2) * [ 1/(s-s1) – 1/(s-s2) ]
which is the sum of two poles. In this way we write F(s) as a sum of terms, and we look each term up in a Laplace transform table to get f(t).
A standard problem might have a driving function g(t) = cos(ωt) so G(s) = s/(s2+ω2).
If g(t)= 0, there is still a non-zero answer which describes a motion of the system caused by the initial conditions. In a damped system, these always die out in time, so these terms are called the transient response, and then the term G(s)/ (s2 + Bs + C) is the significant response.
More details added 4.6.11.
The pole positions for s1 and s2 are these
s1,2 = -B/2 ±/2 = -B/2 ±
If B is positive and B2 > 4C, both poles are negative real. In a particle motion problem in which the two terms ∂t2 + B∂t appear on the same side of the ODE, we are in effect saying F = ma ~ -B∂t . As shown in the Appendix below, we must have B>0 to have such a friction/damping problem. Therefore, both or our poles s1,2 will be in the left half s-plane. And then each pole causes a term e+st in the solution of our problem, which is an expo damping factor. So go back to our general solution to the driven equation shown above
F(s) = G(s)/ (s2 + Bs + C) + { sf(0) + [ f'(0) +Bf(0) ]}/ (s2 + Bs + C) (1)
= G(s) 1/(s1- s2) * [ 1/(s-s1) – 1/(s-s2) ]
+ { sf(0) + [ f'(0) +Bf(0) ]} 1/(s1- s2) * [ 1/(s-s1) – 1/(s-s2) ]
If G(s) = 0, which means there is no driving term g(t), our solution is just the second line. If you think about the inverse Laplace transform, you see that ( I do this since not in any table)
L-1 [ s/(s-s1) ] = L-1 [ s1/(s-s1) ] = s1 L-1 [ 1/(s-s1) ] = s1 est
so basically the entire second line gives these time domain results
{ s1f(0) + [ f'(0) +Bf(0) ]} 1/(s1- s2) * est
- { s2f(0) + [ f'(0) +Bf(0) ]} 1/(s1- s2) * est
But B = -(s1+s2) so rewrite as
= { s1f(0) + [ f'(0) -(s1+s2)f(0) ]} 1/(s1- s2) * est
- { s2f(0) + [ f'(0) -(s1+s2)f(0) ]} 1/(s1- s2) * est
= { [ f'(0) -s2f(0) ]} 1/(s1- s2) * est
- { [ f'(0) -s1f(0) ]} 1/(s1- s2) * est
so you see there are two different possible characteristic decay times implicit in the problem. These damped solutions are solutions to the homogeneous problem [ ∂t2+B∂t+C ] f(t) = 0 so we claim that the nullspace of this operator has two dimensions assuming s1 ≠ s2.
Let's try to duplicate the above results in a simpler manner. We can write our homo ODE as
(∂t-s1) (∂t-s2) f(t) = 0
so at once we see what the two solutions are and our general solution is then
f(t) = α est + β est f(0) = α+β
f'(t) = s1α est + s2 β est f'(0) = s1α + s2β
So we have a little Cramer's problem here
s1 f(0) = s1α + s1β
f'(0) = s1α + s2β
s1f(0) - f'(0) = (s1- s2)β β = [s1f(0) - f'(0)]/(s1- s2)
Then of course
α = f(0)- β = f(0)- [s1f(0) - f'(0)]/(s1- s2)
and then our homo problem solution is:
f(t) = α est + β est
= { f(0)- [s1f(0) - f'(0)]/(s1- s2)} est
+ { [s1f(0) - f'(0)]/(s1- s2)} est
= { f(0)(s1-s2)- [s1f(0) - f'(0)]} 1/(s1- s2) *est
+ [s1f(0) - f'(0)] 1/(s1- s2) *est
= [ -s2f(0)+f'(0)] 1/(s1- s2) *est
- [-s1f(0) + f'(0)] 1/(s1- s2) *est
which agrees with the Laplace method result.
Now earlier we assumed that B > 0 and B2 > 4C. If C<0 we are fine, but if C > 0, then we have a different type of solution if B2 < 4C. In this case we get
s1,2 = -B/2 ±i /2 now s1 = s2* s1-s2 = s1-s1* = 2Im(s1)
The poles still have negative real part so our transient terms still damp out exponentially, but they oscillate as they do so at frequency ω= /2 . We can express our solution in this case as
s1,2 = -B/2± iω
f(t) = [ -s2f(0)+f'(0)] 1/(s1- s2) *est
- [-s1f(0) + f'(0)] 1/(s1- s2) *est
= [ -s1*f(0) + f'(0)] 1/2Im(s1) *exp(s1t)
- [-s1 f(0) + f'(0)] 1/2Im(s1) *exp(s1*t)
= [ -s1*f(0) + f'(0)] 1/2Im(s1) *exp(s1t) - c.c
= 2 Re { [ -s1*f(0) + f'(0)] 1/2Im(s1) *exp(s1t)}
= (1/Im(s1)) Re { [ -s1*f(0) + f'(0)] exp(s1t)}
= (1/Im(s1)) Re { [-(B/2- iω) f(0) + f'(0)] exp(-Bt/2) eiωt }
= (1/ω) {-(B/2) f(0) + f'(0)} exp(-Bt/2) } cos(ωt)
+ (1/ω) {- ωf(0) } exp(-Bt/2) sin(ωt)
= (1/ω) {-(B/2) f(0) + f'(0)} exp(-Bt/2) cos(ωt)
+ {- f(0) } exp(-Bt/2) sin(ωt)
OK, I may have made some algebra errors, but the point is clear. I have assumed that f(t) is a real solution and what we get is two terms each having the same damping expo envelope but different phase. We could combine them into a single term of the form cos(ωt+φ).
So the point is that in this case the homo equation has two possible damped solutions, but they damp at the same rate, but one is sin(ωt) and the other cos(ωt) as they die out. Again the nullspace has dimension 2 since these two solutions are linearly independent.
Main Point of this Entire Discussion
We consider the 2nd order ODE
[ ∂t2+B∂t+C ] f(t) = g(t)
where B > 0. We find that there is a particular solution + a homogeneous solution. The particular solution will be the inverse Laplace of
F(s) = G(s)/ (s2 + Bs + C) = G(s) 1/(s1- s2) * [ 1/(s-s1) – 1/(s-s2) ]
If g(t) = cos(ω1t) then G(s) = s/(s2+ω12), so this F(s) will have four poles in the s plane. The two on the imaginary axis at ± ω1 will cause an endless sinusoidal solution of f(t), while the other poles which are in the left half plane will give rise to some transients which don't last long. So the particular solution has a long term sine result in this case, plus two transient pieces. But in addition to all this, the problem also has a homogeneous solution which also has two transient pieces with the same decay rates. This homo solution is the Laplace inverse transform of
{ sf(0) + [ f'(0) +Bf(0) ]} 1/(s1- s2) * [ 1/(s-s1) – 1/(s-s2) ]
So to get the total transient pieces of the solution, you have to add those of the particular solution to those of the homo solution. The upshot is that the amplitudes of the transient solutions will then be a function of the initial conditions f(0) and f'(0), and also of the nature of the driving function g(t).
The First Order Analogous Situation
If instead we have the equation
(∂t + C) f(t) = g(t)
our Fourier analysis will go like this:
[sF(s)-f(0)] + CF(s) = G(s)
(s + C)F(s) = G(s) +f(0)
F(s) = G(s)/(s+C) + f(0)/(s+C)
If C > 0, the pole at s = -C is in the left half plane and the homo solution is just a decaying transient of the form e-Ct . The particular solution might also have a long term piece and its own contribution to the decaying transient.
Now, Stakgold page 242 vol II (Chap 7) presents a different equation (a 1D heat conduction PDE equation) where the second term of page 242 C is a continuum of decaying transients, something that does not happen in an ODE with constant coefficients as we have seen in this little section.
Appendix on Damping Force Physics. In a physics problem F = ma we might have (B>0)
F = ma = m∂t2x(t) = -B∂tx(t) // the only force is that of friction or damping F=-bv
We can integrate once from t=0 to t to get
!Syntax Error, Idt m∂t2x(t) = !Syntax Error, Idt [-B∂tx(t)]
!Syntax Error, Idt ∂t[m∂tx(t)] = !Syntax Error, Idt ∂t [-Bx(t)]
[m∂tx(t)]|t0 = [-Bx(t)]|t0
mv(t)- mv(0) = -Bx(t) + Bx(0) c = B/m
v(t) - v(0) = -cx(t) + cx(0)
∂tx(t) + cx(t) = cx(0) + v(0) LHS = RHS
As a candidate solution we try
x(t) = Ae-ct + D
∂tx(t) = -cAe-ct
LHS = -cAe-ct + c [Ae-ct + D] = cD
RHS = cx(0) + v(0)
cD = cx(0) + v(0) D = x(0) + v(0)/c
Our solution is then
x(t) - x(0) = Ae-ct + v(0)/c
If we start our particle with 0 velocity, if does not move. But if it has some v(0), then this tells how far it moves in time t. When t = ∞, it has moved a total distance of v(0)/c = v(0)m/B. More mass and it moves farther. More friction and it moves less far.
m∂tx(t) = -Bx(t) + Bv(0)
The solution to this first order ODE is given by
x(t) = e-(B/m)t + (B/m) v(0)t + x(0) =>
m∂tx(t) = m (-B/m) e-(B/m)t + m(B/m) v(0) = -B e-(B/m)t + Bv(0) = -B
=> m ∂tx = -Bx + mv(0)
=> x(t) = e-Bt + v(0)t + x(0)
∂tx(t) = -B e-Bt + v(0)
∂t2x(t) = B2 e-Bt + v(0)