Solving initial value problems
Transform a linear constant-coefficient initial value problem into an algebraic equation for Y(s), split Y(s) by partial fractions and invert each piece with the table.
It opens on
Our first method for y'' + 3y' + 2y = 0 was to find ert, then fit two constants to the two initial values. Can the initial values go in first, so that no fitting is left at the end?
Why it matters
Circuits and springs are almost always given with starting values; the Laplace method builds those values into the algebra, so a whole initial value problem is solved in one pass with no constants to fit afterwards.
Good to know first
- The Laplace transform: L{y'} = sY − y(0), L{eat} = 1/(s − a), linearity
- partial fractions with distinct linear factors
Step by step
Transform the equation
Transform y'' + 3y' + 2y = 0 with y(0) = 1 and y'(0) = 0 and solve for Y(s).
Apply the derivative rule twice: L{y''} = sL{y'} − y'(0) = s(sY − y(0)) − y'(0) = s²Y − sy(0) − y'(0).
A common mix-up
The transform of y'' is just s²Y.
In fact: Each derivative leaves initial-value terms behind: s²Y − sy(0) − y'(0).
Partial fractions and inversion
Split Y(s) into 1/(s − a) pieces and invert to get y(t).
Set (s + 3)/((s + 1)(s + 2)) = A/(s + 1) + B/(s + 2); multiplying out, s + 3 = A(s + 2) + B(s + 1).
A common mix-up
Y(s) can be inverted whole.
In fact: The table has only simple pieces; the whole fraction has to be split first.
Other starting values and a forcing
Solve the same equation with y(0) = 0 and y'(0) = 1, then with a constant forcing, and compare.
Change one thing, y(0) = 0 and y'(0) = 1: L{y''} = s²Y − 1 and L{y'} = sY, so (s² + 3s + 2)Y = 1.
A common mix-up
A different starting value changes the decay rate.
In fact: The rates come from the poles of the denominator, which the starting values do not touch.
Try it
Transform y' + 2y = 0 with y(0) = 3 and solve for Y.Answer
sY − 3 + 2Y = 0, so Y = 3/(s + 2)
Hint: L{y'} = sY − y(0)
Find the partial fractions of (3s + 5)/((s + 1)(s + 3)) and invert them.Answer
1/(s + 1) + 2/(s + 3), so y = e−t + 2e−3t
Hint: Put s = −1, then s = −3
Solve y'' − 3y' + 2y = 0 with y(0) = 0 and y'(0) = 1.Answer
y = e2t − et
Hint: (s − 1)(s − 2)Y = 1, so Y = 1/(s − 2) − 1/(s − 1)
Collect the Y terms and solve for Y(s).Answer
(s² + 3s + 2)Y = s + 3, so Y = (s + 3)/((s + 1)(s + 2)).
Check y(0) and y'(0).Answer
y(0) = 2 − 1 = 1 and y'(0) = −2 + 2 = 0, as required.
