Section 3.2 Transforms of derivatives and ODEs
Subsection 3.2.1 Transforms of derivatives
The Laplace Transform has a lot properties that mean it behaves nicely. In this video weβll explore three crucial ones: linearity, existence, and inverses.
Correction: The Laplace transform of derivatives is missing some negative signs. Correct expressions for the Laplace of the first, second and third derivatives, respectively are: \[L[fβ(t)]=sF(s)βf(0)\] \[L[fββ(t)]=s2F(s)βsf(0)βfββ²(0),\] \[L[fβββ(t)]=s3F(s)βs2f(0)βsfβ(0)βfββ(0)\]
Let us see how the Laplace transform is used for differential equations. First let us try to find the Laplace transform of a function that is a derivative. Suppose is a differentiable function of exponential order, that is, for some and So exists, and what is more, when Then
We repeat this procedure for higher derivatives. The results are listed in Table 3.2.1. The procedure also works for piecewise smooth functions, that is functions that are piecewise continuous with a piecewise continuous derivative.
Exercise 3.2.1.
Verify Table 3.2.1.
Subsection 3.2.2 Solving ODEs with the Laplace transform
Notice that the Laplace transform turns differentiation into multiplication by Let us see how to apply this fact to differential equations.
Video 3.2.2. How to solve ODEs with the Laplace Transform.
We finally know enough to go from start to finish. That is, we begin with an ODE. We transform it via the Laplace Transform. We manipulate it over in the world of Laplace Transforms. Then we translate it back to get a solution. Cool!
Example 3.2.2.
Take the equation
We will take the Laplace transform of both sides. By we will, as usual, denote the Laplace transform of
We plug in the initial conditions nowβthis makes the computations more streamlinedβto obtain
We solve for
We use partial fractions (exercise) to write
Now take the inverse Laplace transform to obtain
The procedure for linear constant coefficient equations is as follows. We take an ordinary differential equation in the time variable We apply the Laplace transform to transform the equation into an algebraic (non differential) equation in the frequency domain. All the and so on, will be converted to and so on. We solve the equation for Then taking the inverse transform, if possible, we find
It should be noted that since not every function has a Laplace transform, not every equation can be solved in this manner. Also if the equation is not a linear constant coefficient ODE, then by applying the Laplace transform we may not obtain an algebraic equation.
Video 3.2.3. Solving an ODE using Laplace Transforms Example.
In this video we put everything together. We start with an IVP we take the Laplace transform of. The solution to the algebraic equation has a partial fraction decomposition with multiple types of factors and we finally take the inverse Laplace Transform to get a solution to the original IVP.
Subsection 3.2.3 Using the Heaviside function
Video 3.2.4. The Laplace Transform of Piecewise Functions.
A major strength of Laplace Transforms is in how it deals with discontinuities whether piecewise defined functions but even more so periodic functions that repeat the same discontinuous pattern over and over. The Laplace Transform converts these into continuous functions that can often be easier to work with
Before we move on to more general equations than those we could solve before, we want to consider the Heaviside function. See Figure 3.1 for the graph.
This function is useful for putting together functions, or cutting functions off. Most commonly it is used as for some constant This just shifts the graph to the right by That is, it is a function that is 0 when and 1 when Suppose for example that is a βsignalβ and you started receiving the signal at time The function should then be defined as
Using the Heaviside function, can be written as
Similarly the step function that is 1 on the interval and zero everywhere else can be written as
The Heaviside function is useful to define functions defined piecewise. If you want to define such that when is in when is in and otherwise, then you can use the expression
Hence it is useful to know how the Heaviside function interacts with the Laplace transform. We have already seen that
This can be generalized into a shifting property or second shifting property.
Example 3.2.3.
The forcing function in our setup need not be periodic. Consider the mass-spring system
where if and zero otherwise. Imagine a rocket attached to the mass is fired for 4 seconds starting at Or perhaps imagine an RLC circuit, where the voltage is raised at a constant rate for 4 seconds starting at and then held steady again starting at
We can write We transform the equation and we plug in the initial conditions as before to obtain
We solve for to obtain
We leave it as an exercise to the reader to show that
Similarly
Hence, the solution is
The plot of this solution is given in Figure 3.2.
Video 3.2.5. Solving an IVP with a piecewise nonhomogeneity.
This video is a start to finish walkthrough of the process of going from an IVP, converting via Laplace, dealing with the piecewise part, and then converting back to a solution to the original IVP. This video thus includes many pieces weβve been developing so is probably your best check for comprehension yet. Feel free to try and work it out on your own first and skip to the end to check the solution.
TYPO: At about 4:00, in the red, I wrote the exponential with a t not an s. This typo persists in a few places in the video
Subsection 3.2.4 Transfer functions
The Laplace transform leads to the following useful concept for studying the steady state behavior of a linear system. Consider an equation of the form
where is a linear constant coefficient differential operator. Then is usually thought of as input of the system and is thought of as the output of the system. For example, for a mass-spring system the input is the forcing function and the output is the behavior of the mass. We would like to have a convenient way to study the behavior of the system for different inputs.
Let us suppose that all the initial conditions are zero and take the Laplace transform of the equation, we obtain the equation
In other words, We obtain an algebraic dependence of the output of the system based on the input. We can now easily study the steady state behavior of the system given different inputs by simply multiplying by the transfer function.
Example 3.2.4.
Given let us find the transfer function (assuming the initial conditions are zero).
First, we take the Laplace transform of the equation.
Now we solve for the transfer function
Subsection 3.2.5 Transforms of integrals
A feature of Laplace transforms is that it is also able to easily deal with integral equations. That is, equations in which integrals rather than derivatives of functions appear. The basic property, which can be proved by applying the definition and doing integration by parts, is
It is sometimes useful (e.g. for computing the inverse transform) to write this as
Example 3.2.5.
Example 3.2.6.
Subsection 3.2.6 Exercises
Exercise 3.2.2.
Compute the inverse Laplace transform of the function
Solution.
First we write and figure out the inverse Laplace transform of Using the property for Laplace transform of integrals, we write:
Now we write
Exercise 3.2.3.
Compute the inverse Laplace transform of the function
Solution.
Using the example from section above, we know that Using this and the property for Laplace transform of integrals, we write:
Exercise 3.2.4.
Solution.
Taking the Laplace transform
Solving for
Completing the square and noting that
Noting the shift we rewrite
Now taking the inverse Laplace transform we get
Exercise 3.2.5.
Exercise 3.2.6.
Exercise 3.2.7.
Exercise 3.2.8.
Solution.
Taking the Laplace transform
Taking the inverse Laplace transform
Exercise 3.2.9.
Exercise 3.2.10.
Exercise 3.2.11.
Show the second shifting property:
Solution.
Using the definition
Defining we get
Therefore
Exercise 3.2.12.
Let us think of the mass-spring system with a rocket from Example 3.2.3. We noticed that the solution kept oscillating after the rocket stopped running. The amplitude of the oscillation depends on the time that the rocket was fired (for 4 seconds in the example).
- Find a formula for the amplitude of the resulting oscillation in terms of the amount of time the rocket is fired.
- Is there a nonzero time (if so what is it?) for which the rocket fires and the resulting oscillation has amplitude 0 (the mass is not moving)?
Solution.
b) From this is zero when for a positive integer.
a) From the example
At
Where is the amplitude. Defining as the time the rocket stops firing, and as the duration the rocket fires, we can generalize this result
So the amplitude is given by
b) From
Exercise 3.2.13.
- Sketch the graph of
- Write down
using the Heaviside function.
Answer.
b)
c)
c)
Exercise 3.2.14.
Exercise 3.2.15.
Find the transfer function for (assuming the initial conditions are zero).
Exercise 3.2.16.
Find the transfer function for (assuming the initial conditions are zero).
Solution.
Taking the Laplace transform
The transfer function is
Exercise 3.2.17.
Show the differentiation of the transform property. Suppose then show
Hint: Differentiate under the integral sign.
Exercise 3.2.18.
Find the Laplace transform of (assuming the initial conditions are zero).
Exercise 3.2.19.
Find the Laplace transform of (assuming the initial conditions are zero).
Exercise 3.2.20.
Solution.
Taking the Laplace transform of the given differential equation, we get
This becomes Solving this, we get Taking the inverse Laplace of this we get