Steply

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

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

Step by step

The question

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

y″ + y = 0
y(0) = 1, y′(0) = 2

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″} + ℒ{y} = 0

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

(s2Y − 1s − 2) + Y = 0

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² + 1).

Y(s2 + 1) − (s + 2) = 0

Divide by s² + 1.

Y = s + 2(s² + 1)

3 Split it up

Split the top: the s part and the number part.

Y = ss2 + 1 + 2s2 + 1

4 Use the table backwards

Each piece is already a row of the table.

cos(bt) → ss² + b²
sin(bt) → bs² + b²

Read the table backwards, piece by piece: cos t + 2sin t.

y = cos t + 2sin t

5 Check

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

Right!

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

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

Right!

put in: −cos t − 2sin t + (cos t + 2sin t) = 0

Let's look back.

First: transform both sides.

Then: solve for Y.

Then: split it up.

Then: use the table backwards.

Last: check.

Answer
y = cos t + 2sin t

Your turn

Try this one yourself, then check:

Solve y″ + y = 0
Show the answer
y = cos t + 3sin t

More from Solving with Laplace

The whole lesson: Solving with Laplace →