## Section 6.2 Transforms of derivatives and ODEs

¶### Subsection 6.2.1 Transforms of derivatives

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 \(g(t)\) is a differentiable function of exponential order, that is, \(\lvert g(t) \rvert \leq M e^{ct}\) for some \(M\) and \(c\text{.}\) So \(\mathcal{L} \bigl\{ g(t) \bigr\}\) exists, and what is more, \(\lim_{t\to\infty} e^{-st}g(t) = 0\) when \(s > c\text{.}\) Then

We repeat this procedure for higher derivatives. The results are listed in Table 7.2.1. The procedure also works for piecewise smooth functions, that is functions that are piecewise continuous with a piecewise continuous derivative.

\(f(t)\) | \(\mathcal{L} \bigl\{ f(t) \bigr\} = F(s)\) |

\(g'(t)\) | \(sG(s)-g(0)\) |

\(g''(t)\) | \(s^2G(s)-sg(0)-g'(0)\) |

\(g'''(t)\) | \(s^3G(s)-s^2g(0)-sg'(0)-g''(0)\) |

###### Exercise 6.2.1.

Verify Table 7.2.1.

### Subsection 6.2.2 Solving ODEs with the Laplace transform

Notice that the Laplace transform turns differentiation into multiplication by \(s\text{.}\) Let us see how to apply this fact to differential equations.

###### Example 6.2.1.

Take the equation

We will take the Laplace transform of both sides. By \(X(s)\) we will, as usual, denote the Laplace transform of \(x(t)\text{.}\)

We plug in the initial conditions now—this makes the computations more streamlined—to obtain

We solve for \(X(s)\text{,}\)

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 \(t\text{.}\) We apply the Laplace transform to transform the equation into an algebraic (non differential) equation in the frequency domain. All the \(x(t)\text{,}\) \(x'(t)\text{,}\) \(x''(t)\text{,}\) and so on, will be converted to \(X(s)\text{,}\) \(sX(s) - x(0)\text{,}\) \(s^2X(s) - sx(0) - x'(0)\text{,}\) and so on. We solve the equation for \(X(s)\text{.}\) Then taking the inverse transform, if possible, we find \(x(t)\text{.}\)

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.

### Subsection 6.2.3 Using the Heaviside function

Before we move on to more general equations than those we could solve before, we want to consider the Heaviside function. See Figure 7.2.4 for the graph.

This function is useful for putting together functions, or cutting functions off. Most commonly it is used as \(u(t-a)\) for some constant \(a\text{.}\) This just shifts the graph to the right by \(a\text{.}\) That is, it is a function that is 0 when \(t < a\) and 1 when \(t \geq a\text{.}\) Suppose for example that \(f(t)\) is a “signal” and you started receiving the signal \(\sin t\) at time \(t=\pi\text{.}\) The function \(f(t)\) should then be defined as

Using the Heaviside function, \(f(t)\) can be written as

Similarly the step function that is 1 on the interval \([1,2)\) and zero everywhere else can be written as

The Heaviside function is useful to define functions defined piecewise. If you want to define \(f(t)\) such that \(f(t) = t\) when \(t\) is in \([0,1]\text{,}\) \(f(t) = -t+2\) when \(t\) is in \([1,2]\text{,}\) and \(f(t) = 0\) 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 6.2.2.

Suppose that the forcing function is not periodic. For example, suppose that we had a mass-spring system

where \(f(t) = 1\) if \(1 \leq t < 5\) and zero otherwise. We could imagine a mass-spring system, where a rocket is fired for 4 seconds starting at \(t=1\text{.}\) Or perhaps an RLC circuit, where the voltage is raised at a constant rate for 4 seconds starting at \(t=1\text{,}\) and then held steady again starting at \(t=5\text{.}\)

We can write \(f(t) = u(t-1) - u(t-5)\text{.}\) We transform the equation and we plug in the initial conditions as before to obtain

We solve for \(X(s)\) to obtain

We leave it as an exercise to the reader to show that

In other words \(\mathcal{L} \{ 1 - \cos t \} = \frac{1}{s(s^2+1)}\text{.}\) So using (1) we find

Similarly

Hence, the solution is

The plot of this solution is given in Figure 7.2.6.

### Subsection 6.2.4 Transfer functions

Laplace transform leads to the following useful concept for studying the steady state behavior of a linear system. Suppose we have an equation of the form

where \(L\) is a linear constant coefficient differential operator. Then \(f(t)\) is usually thought of as input of the system and \(x(t)\) is thought of as the output of the system. For example, for a mass-spring system the input is the forcing function and 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

Solving for the ratio \(\nicefrac{X(s)}{F(s)}\) we obtain the so-called *transfer function* \(H(s) = \nicefrac{1}{A(s)}\text{.}\)

In other words, \(X(s) = H(s) F(s)\text{.}\) 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 6.2.3.

Given \(x'' + \omega_0^2 x = f(t)\text{,}\) 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 \(\nicefrac{X(s)}{F(s)}\text{.}\)

Let us see how to use the transfer function. Suppose we have the constant input \(f(t) = 1\text{.}\) Hence \(F(s) = \nicefrac{1}{s}\text{,}\) and

Taking the inverse Laplace transform of \(X(s)\) we obtain

### Subsection 6.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 6.2.4.

To compute \({\mathcal{L}}^{-1} \left\{\frac{1}{s(s^2+1)}\right\}\) we could proceed by applying this integration rule.

###### Example 6.2.5.

An equation containing an integral of the unknown function is called an *integral equation*. For example, take

where we wish to solve for \(x(t)\text{.}\) We apply the Laplace transform and the shifting property to get

where \(X(s) = \mathcal{L} \bigl\{ x(t) \bigr\}\text{.}\) Thus

We use the shifting property again

### Subsection 6.2.6 Exercises

###### Exercise 6.2.2.

Using the Heaviside function write down the piecewise function that is 0 for \(t < 0\text{,}\) \(t^2\) for \(t\) in \([0,1]\) and \(t\) for \(t > 1\text{.}\)

###### Exercise 6.2.3.

Using the Laplace transform solve

where \(m > 0\text{,}\) \(c > 0\text{,}\) \(k > 0\text{,}\) and \(c^2 - 4km > 0\) (system is overdamped).

###### Exercise 6.2.4.

Using the Laplace transform solve

where \(m > 0\text{,}\) \(c > 0\text{,}\) \(k > 0\text{,}\) and \(c^2 - 4km < 0\) (system is underdamped).

###### Exercise 6.2.5.

Using the Laplace transform solve

where \(m > 0\text{,}\) \(c > 0\text{,}\) \(k > 0\text{,}\) and \(c^2 = 4km\) (system is critically damped).

###### Exercise 6.2.6.

Solve \(x'' + x = u(t-1)\) for initial conditions \(x(0) = 0\) and \(x'(0) = 0\text{.}\)

###### Exercise 6.2.7.

Show the differentiation of the transform property. Suppose \(\mathcal{L} \bigl\{ f(t) \bigr\} = F(s)\text{,}\) then show

Hint: Differentiate under the integral sign.

###### Exercise 6.2.8.

Solve \(x''' + x = t^3 u(t-1)\) for initial conditions \(x(0) = 1\) and \(x'(0) = 0\text{,}\) \(x''(0) = 0\text{.}\)

###### Exercise 6.2.9.

Show the second shifting property: \(\mathcal{L} \bigl\{ f(t-a) \, u(t-a) \bigr\} = e^{-as} \mathcal{L} \bigl\{ f(t) \bigr\}\text{.}\)

###### Exercise 6.2.10.

Let us think of the mass-spring system with a rocket from Example 6.2.2. 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)?

###### Exercise 6.2.11.

Define

Sketch the graph of \(f(t)\text{.}\)

Write down \(f(t)\) using the Heaviside function.

Solve \(x''+x=f(t)\text{,}\) \(x(0)=0\text{,}\) \(x'(0) = 0\) using Laplace transform.

###### Exercise 6.2.12.

Find the transfer function for \(m x'' + c x' + kx = f(t)\) (assuming the initial conditions are zero).

###### Exercise 6.2.101.

Using the Heaviside function \(u(t)\text{,}\) write down the function

\(f(t) = (t-1)\bigl(u(t-1) - u(t-2)\bigr) + u(t-2)\)

###### Exercise 6.2.102.

Solve \(x''-x = (t^2-1) u(t-1)\) for initial conditions \(x(0)=1\text{,}\) \(x'(0) = 2\) using the Laplace transform.

\(x(t) = (2e^{t-1}-t^2-1) u(t-1) -\frac{1}{2}e^{-t}+\frac{3}{2}e^t\)

###### Exercise 6.2.103.

Find the transfer function for \(x' + x = f(t)\) (assuming the initial conditions are zero).

\(H(s) = \frac{1}{s+1}\)