Differential Equations 4.1: The Laplace Transform

Differential Equations

Units and Topics

Unit 4. The Laplace Transform

4.1 The Laplace Transform

The Laplace transform changes a function of the time t into a function of a new variable s. It changes a derivative into a multiplication by s, so a differential equation becomes an algebraic equation. This topic covers the definition, the transforms of the common functions, the rules for derivatives, and the shift rule.

You need Topics 3.2 and 3.3 for this topic. The topic uses improper integrals and integration by parts.

1. The Definition

Let f(t) be a function that is defined for t ≥ 0. Its Laplace transform is the function F(s) that is given by the integral

F(s) = ∫0∞ e−st f(t) dt

The integral has the upper limit ∞, so it is an improper integral. It is the limit of the integral from 0 to b as b grows without limit. The variable of integration is t, and the result depends only on s.

The Laplace transform. The Laplace transform of f(t) is F(s) = ∫0∞ e−st f(t) dt, for the values of s for which the integral has a finite value. It is also written ℒ{f(t)}.

A function of t is written with a small letter, and its transform is written with the same capital letter. The transform of y(t) is Y(s), and the transform of g(t) is G(s).

The factor e−st decreases quickly when s is positive. It makes the integral finite for many functions f(t) that do not approach 0, and also for functions that grow.

2. The Transforms of 1 and of eat

The first example is the constant function f(t) = 1.

ℒ{1} = ∫0∞ e−st dtthe definition with f(t) = 1∫0b e−st dt = (1 − e−sb)/sthe integral from 0 to be−sb → 0 as b → ∞when s is positiveℒ{1} = 1/sfor s greater than 0

When s is 0 or negative, the integral has no finite value. The transform of 1 exists for s greater than 0.

The second example is the exponential function f(t) = eat with a constant a.

ℒ{eat} = ∫0∞ e−st eat dtthe definitionℒ{eat} = ∫0∞ e−(s − a)t dtadd the exponentsℒ{eat} = 1/(s − a)the first example with s − a in the place of s, for s greater than a

The transform of e3t is 1/(s − 3), and the transform of e−2t is 1/(s + 2).

Try it: the transform as an area

The blue curve is the product e−st f(t). The shaded area under it, from 0 to ∞, is the value of the transform F(s). The first slider chooses the function f(t), and the second slider sets s.

3. Linearity

The integral of a sum is the sum of the integrals, and a constant factor can be moved in front of an integral. The Laplace transform has the same two properties.

Linearity. For constants a and b, ℒ{af(t) + bg(t)} = aF(s) + bG(s).

For example, the transform of 3 + 2e−4t is

ℒ{3 + 2e−4t} = 3ℒ{1} + 2ℒ{e−4t}linearityℒ{3 + 2e−4t} = 3/s + 2/(s + 4)the two transforms of Part 2

The transform of a product is not the product of the transforms. Topic 4.5 covers the function that has the product F(s)G(s) as its transform.

4. The Transforms of the Powers of t

The transform of f(t) = t is found with integration by parts, with u = t and dv = e−st dt.

ℒ{t} = ∫0∞ te−st dtthe definition∫ te−st dt = −te−st/s + 1/s ∫ e−st dtintegration by partste−sb → 0 as b → ∞for s greater than 0, the exponential function decreases faster than b growsℒ{t} = 1/s ℒ{1}the first term is 0 at both limitsℒ{t} = 1/s²because ℒ{1} = 1/s

The same step with tⁿ in the place of t gives ℒ{tⁿ} = (n/s) ℒ{tⁿ⁻¹}. Each use of this step lowers the power by 1.

ℒ{t²} = 2/s(1/s²)the step with n = 2ℒ{t²} = 2/s³multiplyℒ{t³} = 3/s(2/s³)the step with n = 3ℒ{t³} = 6/s⁴multiply

Powers of t. For n = 0, 1, 2, 3, and so on, ℒ{tⁿ} = n!/(sn + 1) for s greater than 0. The number n! is the product of the whole numbers from 1 to n, and 0! is 1.

5. The Transform of a Derivative

This rule is the reason that the Laplace transform is used for differential equations. Let f(t) have the transform F(s). The transform of f′(t) is found with integration by parts, with u = e−st and dv = f′(t) dt.

ℒ{f′(t)} = ∫0∞ e−st f′(t) dtthe definition∫0b e−st f′(t) dt = e−sbf(b) − f(0) + s ∫0b e−st f(t) dtintegration by partse−sbf(b) → 0 as b → ∞for large s, when f does not grow faster than an exponential functionℒ{f′(t)} = sF(s) − f(0)the remaining terms

The transform of the second derivative follows by using the rule two times, first for the function f′.

ℒ{f″(t)} = sℒ{f′(t)} − f′(0)the rule for the derivative of f′ℒ{f″(t)} = s[sF(s) − f(0)] − f′(0)the rule for the derivative of fℒ{f″(t)} = s²F(s) − sf(0) − f′(0)multiply out

Derivatives. ℒ{f′(t)} = sF(s) − f(0) and ℒ{f″(t)} = s²F(s) − sf(0) − f′(0).

A derivative with respect to t becomes a multiplication by s, and the initial values f(0) and f′(0) appear in the result. An initial value problem therefore becomes one algebraic equation that already contains the initial conditions.

6. The Transforms of the Sine and the Cosine

The rule for the second derivative gives the transform of f(t) = sin ωt without an integral. The second derivative of this function is −ω² sin ωt, and the initial values are f(0) = 0 and f′(0) = ω.

ℒ{f″(t)} = s²F(s) − sf(0) − f′(0)the rule for the second derivative−ω²F(s) = s²F(s) − ωbecause f″ = −ω²f, f(0) = 0, and f′(0) = ω(s² + ω²)F(s) = ωcollect the terms with F(s)F(s) = ω/(s² + ω²)divide by s² + ω²

For f(t) = cos ωt, the second derivative is −ω² cos ωt, and the initial values are f(0) = 1 and f′(0) = 0.

−ω²F(s) = s²F(s) − sthe rule with f″ = −ω²f, f(0) = 1, and f′(0) = 0(s² + ω²)F(s) = scollect the terms with F(s)F(s) = s/(s² + ω²)divide by s² + ω²

Sine and cosine. ℒ{sin ωt} = ω/(s² + ω²) and ℒ{cos ωt} = s/(s² + ω²), for s greater than 0.

The transform of sin 3t is 3/(s² + 9), and the transform of cos 3t is s/(s² + 9).

7. The Shift Rule for s

Multiplying f(t) by eat changes the transform in a simple way.

ℒ{eatf(t)} = ∫0∞ e−st eat f(t) dtthe definitionℒ{eatf(t)} = ∫0∞ e−(s − a)t f(t) dtadd the exponentsℒ{eatf(t)} = F(s − a)the transform of f, with s − a in the place of s

The shift rule for s. If f(t) has the transform F(s), then eatf(t) has the transform F(s − a).

The rule gives the transforms of the functions that appear in damped oscillations and with repeated roots.

f(t)F(s)eatf(t)F(s − a)
t1/s²teat1/((s − a)²)
sin ωtω/(s² + ω²)eat sin ωtω/((s − a)² + ω²)
cos ωts/(s² + ω²)eat cos ωt(s − a)/((s − a)² + ω²)

For example, the transform of e−2t cos 3t is (s + 2)/((s + 2)² + 9). The denominator is s² + 4s + 13 when it is multiplied out.

8. Which Functions Have a Transform

The integral of the definition has a finite value when f(t) does not grow faster than an exponential function. The precise condition is that numbers M and c exist with |f(t)| ≤ Mect for all large t. The transform then exists for s greater than c. Such a function is said to be of exponential order.

The constants, the powers of t, the exponential functions, the sine, the cosine, and their sums and products all satisfy this condition. The function et² does not satisfy it, because t² is larger than ct for large t, whatever the value of c is. The function et² has no Laplace transform.

The function f(t) may have jumps. A function with a finite number of jumps in each finite interval still has a transform when it is of exponential order. Topic 4.3 uses this property for forces that switch on and off.

9. A First Equation

The rules of this topic already solve a simple initial value problem. Solve y′ + 2y = 0 with y(0) = 3.

ℒ{y′} + 2ℒ{y(t)} = 0transform both sides, with linearitysY(s) − 3 + 2Y(s) = 0the rule for the derivative, with y(0) = 3(s + 2)Y(s) = 3collect the terms with Y(s)Y(s) = 3/(s + 2)divide by s + 2y = 3e−2tthe function with this transform, from Part 2

The result agrees with the solution that the methods of Unit 2 give. The steps did not use integration. The differential equation became an algebraic equation for Y(s), and the last step read the function y(t) from the table of transforms. Topic 4.2 uses the same steps for equations of the second order.

Common Mistakes

  • Writing the transform of eat with the wrong sign. The transform of eat is 1/(s − a), and the transform of e−at is 1/(s + a).
  • Mixing up the transforms of the sine and the cosine. The sine has ω in the numerator, and the cosine has s in the numerator.
  • Writing the transform of a product as the product of the transforms. The transform of teat is 1/(s − a)², which is not the product of 1/s² and 1/(s − a).
  • Leaving out the initial values in the rules for derivatives. The transform of y′ is sY(s) − y(0), and it equals sY(s) only when y(0) = 0.
  • Writing the transform of tⁿ with the power n in the denominator. The denominator is sn + 1, and the numerator is n!.
  • Leaving the variable t in a transform. The integration removes t, and the transform depends only on s.

Summary

f(t)F(s)
11/s
tⁿn!/(sn + 1)
eat1/(s − a)
sin ωtω/(s² + ω²)
cos ωts/(s² + ω²)
eatf(t)F(s − a)
af(t) + bg(t)aF(s) + bG(s)
f′(t)sF(s) − f(0)
f″(t)s²F(s) − sf(0) − f′(0)

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Find the transforms of 5, of e−3t, and of t².

ℒ{5} = 5/s, by linearity and ℒ{1} = 1/s.

ℒ{e−3t} = 1/(s + 3), by the rule for eat with a = −3.

ℒ{t²} = 2/s³, by the rule for tⁿ with n = 2.

2. Find the transform of 4 − 2t + 3 sin 2t.

ℒ{4} = 4/sthe transform of a constantℒ{2t} = 2/s²the rule for tℒ{3 sin 2t} = 6/(s² + 4)the rule for the sine with ω = 2F(s) = 4/s − 2/s² + 6/(s² + 4)linearity

3. Find the transform of e2t sin 5t and the transform of t³e−t.

ℒ{sin 5t} = 5/(s² + 25)the rule for the sineℒ{e2t sin 5t} = 5/((s − 2)² + 25)the shift rule with a = 2ℒ{t³} = 6/s⁴the rule for tⁿ with n = 3ℒ{t³e−t} = 6/((s + 1)⁴)the shift rule with a = −1

4. Calculate the transform of the function that is 1 for t between 0 and 2 and 0 for t greater than 2. Use the definition.

F(s) = ∫02 e−st dtthe function is 0 for t greater than 2F(s) = (1 − e−2s)/sthe integral of e−st from 0 to 2

Topic 4.3 gives this result with the unit step function.

5. The function y(t) satisfies y(0) = 2 and y′(0) = −1. Write the transform of y″ + 4y′ + 3y in terms of Y(s).

ℒ{y″} = s²Y(s) − 2s + 1the rule for the second derivative, with y(0) = 2 and y′(0) = −1ℒ{4y′} = 4sY(s) − 8the rule for the first derivative, with y(0) = 2ℒ{3y(t)} = 3Y(s)linearityℒ{y″ + 4y′ + 3y} = (s² + 4s + 3)Y(s) − 2s − 7add the three results

6. Solve y′ − 3y = 0 with y(0) = 4 by the Laplace transform.

sY(s) − 4 − 3Y(s) = 0transform the equation, with y(0) = 4(s − 3)Y(s) = 4collect the terms with Y(s)Y(s) = 4/(s − 3)divide by s − 3y = 4e3tthe function with this transform

Python Practice

Step 1. A transform as an integral

The code below calculates the integral of e−stf(t) for f(t) = 1 and s = 2. The integral stops at t = 40, because the product is very small after that time. The instruction np.trapezoid calculates an integral from a list of values. The second number is the formula 1/s.

Python

Both numbers are 0.5. Now calculate the transform of f(t) = e−3t at s = 2. The result should be 0.2, which is 1/(s + 3).

Python

Step 2. The sine and the cosine

The code below calculates the transform of sin 3t at s = 1 and compares it with the formula of Part 6.

Python

Both numbers are 0.3. Now calculate the transform of cos 3t at s = 1 and print the formula for the cosine next to it. Both numbers should be 0.1.

Python

Step 3. The powers of t

The code below calculates the transform of t² at s = 2. The formula of Part 4 gives 2/s³, which is 0.25.

Python

Now calculate the transform of t³ at s = 2. The formula gives 6/s⁴, which is 0.375.

Python

Step 4. The shift rule

The shift rule of Part 7 says that the transform of eatf(t) at s equals the transform of f(t) at s − a. The code below checks the rule for f(t) = cos 3t with a = −2 and s = 1. The first number is the integral, and the second number is the formula (s − a)/((s − a)² + 9).

Python

Both numbers are 0.1667. Now check the rule for a = −1 and s = 3. Both numbers should be 0.16.

Python

Step 5. The rule for a derivative

The rule of Part 5 says that the transform of f′(t) is sF(s) − f(0). The code below checks it for f(t) = t² + 1 at s = 2. The derivative is typed by hand.

Python

Both numbers are 0.5. Now check the rule for f(t) = cos 3t at s = 2. Two lines need a change. Both numbers should be −0.6923.

Python

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. What is the Laplace transform of e−5t?

2. The transform of t³ is c/s⁴. Find the number c.

3. Which function has the transform s/(s² + 16)?

4. The function y(t) satisfies y(0) = 3 and y′(0) = 5. The transform of y″ is s²Y(s) − as − b. Find the numbers a and b.

5. The transform of e−t sin 2t is F(s). Calculate F(1).

Next: Topic 4.2, Solving Initial Value Problems