Steply

Solve y'' + 9y = 18, y(0) = 1, y'(0) = 0 using Laplace

Step by step, with the reason for every step · Solving with Laplace · Differential Equations

Step by step

The question

Question: solve y″ + 9y = 18, with y(0) = 1 and y′(0) = 0, using the Laplace transform.

y″ + 9y = 18
y(0) = 1, y′(0) = 0

1 Transform both sides

Call the transform of y, Y.

The derivative rules bring in the starting values: that is why Laplace is so handy here.

ℒ{y} = Y
ℒ{y′} = sY − y(0)
ℒ{y″} = s2Y − sy(0) − y′(0)

Take the transform of both sides, term by term.

ℒ{y″} + 9ℒ{y} = ℒ{18}

Use the rules with y(0) = 1 and y′(0) = 0.

On the right, the table: 18 over s.

(s2Y − 1s − 0) + 9Y = 18s

Careful!

Don't forget the starting value: ℒ{y′} is sY minus y(0).

Careful: not ℒ{y′} = sY ✗

2 Solve for Y

Put the Y terms together: Y(s² + 9).

Y(s2 + 9) − s = 18s

Move the starting part to the right.

Y(s2 + 9) = 18s + s

One fraction on the right: times s by s over itself.

Y(s2 + 9) = s2 + 18s

Divide by s² + 9.

Y = s2 + 18s(s² + 9)

3 Partial fractions

Split it into simple fractions, one for each factor at the bottom.

Over s² + b², the top can have an s.

s2 + 18s(s² + 9) = As + Bs + Cs2 + 9

Times both sides by the whole bottom s(s² + 9).

Each letter keeps the factors it does not have.

s2 + 18 = A(s² + 9) + (Bs + C)s

Put s = 0: every other letter is multiplied by 0.

18 = 9 × A.

s = 0: 18 = 9 × A

So A = 2.

A = 2

Now compare the s² parts on both sides.

s² parts: 1 = A + B

So B = −1.

B = −1

And the s parts.

s parts: 0 = C

So C = 0.

C = 0

So it splits into 2/s − s/(s² + 9).

s2 + 18s(s² + 9) = 2s − ss2 + 9

4 Use the table backwards

Each piece is already a row of the table.

1 → 1s
cos(bt) → ss² + b²

Read the table backwards, piece by piece: 2 − cos(3t).

y = 2 − cos(3t)

5 Check

Let's check the starting values: y(0) = 1 and y′(0) = 0.

Right!

y(0) = 1, y′(0) = 0

And put y into the equation: it gives 18, the right side.

Right!

put in: 9cos(3t) + 9(2 − cos(3t)) = 18

Let's look back.

First: transform both sides.

Then: solve for Y.

Then: partial fractions.

Then: use the table backwards.

Last: check.

Answer
y = 2 − cos(3t)

Your turn

Try this one yourself, then check:

Solve y″ + 9y = 9
Show the answer
y = 1 + sin(3t)

More from Solving with Laplace

The whole lesson: Solving with Laplace →