Chapter 9
Calculus into Algebra
Can we turn calculus into algebra?
Chapter 9: Calculus into Algebra ↗
Slopes become multiplication
Mika: Remember the sticky note from Chapter 4? For , taking a slope was just . Now watch what the probe does with a slope.
New words
- and
- Short for , the slope of , and the slope of that slope. Chapter 7 wrote them with dots, and .
- "The transform of ": the same thing as , handy when is a whole expression.
- Capital letters
- A capital letter is the transform of its small letter: for , for the height , for .
Here's the property that makes the whole thing worth it. What happens to the transform when we take the slope of the signal? Try it with . Its slope is (Chapter 4), so
The slope turned into multiplying by , minus the starting value . Calculus became algebra!
Chapter 9: Calculus into Algebra ↗
Theo: Hold on. That's a trick that works for because is special. Next you'll tell me it's a lookup rule we're supposed to memorise. I don't buy it for any curve.
June: Then let's test it on the ugliest curve you can draw.
Draw any signal you like in the first plot (or pick a preset). We compute its slope, then work out both sides of the rule with the area machine: the transform of the slope, and . The second plot shows those two sides for every .
Chapter 9: Calculus into Algebra ↗
Theo: They match, even for my wobbly scribble. Not a lookup rule after all: it's what the area machine does to any slope.
Here is the missing algebra, as a picture. A product changes for two reasons. changes while the probe holds still, and the probe changes while holds still. Picture a rectangle with sides and : it grows along one side, then along the other. This move has a name: integration by parts.
Add up those changes from 0 to ∞ (Chapter 3: area undoes slope) and you get the value at the end minus the value at the start. That is what the bracket means:
At the far end the probe has squashed everything to zero (as long as beats the signal's growth), so the left side is just . Move across and there's the rule.
Theo: So isn't a fudge. It's the rectangle we started with.
Apply the same rule once more, this time to , whose starting value is , the starting speed:
Our own table
Textbooks print a "table of Laplace transforms" as if it came from the sky. We're going to earn ours, one row at a time. Each row is just the probe-and-area machine applied to one signal, with a check that the formula agrees with the actual area.
Chapter 9: Calculus into Algebra ↗
Mika: The sine row is my favourite. A sine is just two twin spinners, and each spinner's transform is the exponential row with . Chapter 6 added the twins to get a cosine. Subtract them instead and the along parts cancel, leaving . That's where the comes from! And multiplying the twins' bottoms is Chapter 7's mirror product, .
(For a complex , the exponential row still works as long as the left-right part of beats the left-right part of . For the twins that's simply .)
And the last row needed no new work at all: multiplying by simply shifts to . Four rows, all derived, all checked.
One more rule we've been using quietly. The area machine is fair: make a signal 3 times taller and every slice of its area is 3 times taller, so the whole area is too. Add two signals and their areas add. Mathematicians call this linearity.
Chapter 9: Calculus into Algebra ↗
June: That's what lets us transform an equation one term at a time, numbers in front and all. And the drone's equation is exactly that kind of sum. Let's use the table!
Undoing a common denominator
Theo: Every answer we'll get comes out as one big fraction. But our table only knows small ones: , , the sines. How do we break a big fraction into table pieces?
At school you added fractions by finding a common bottom. Here we go backwards: start from one fraction and find the small pieces that add up to it. That is called splitting into partial fractions:
What goes on top of each piece? **One unknown for every power of in its bottom.** A bottom like or gets a plain number. A quadratic bottom like gets : two unknowns, because a quadratic has room for two.
Chapter 9: Calculus into Algebra ↗
June: Each slider moves one piece, and the pieces just add up in time too. The piece is a step; the quadratic piece is a wiggle that dies away. And the big fraction on the right is what they add up to.
Finding the numbers has a shortcut for the first-power pieces, the cover-up trick. Multiply by the piece's bottom, then set to the value that makes it zero: every other piece vanishes and only its top is left.
A quadratic bottom needs one more move before the table can read it: push it into the shape by completing the square, halving the middle number and squaring it. So : a decaying cosine and sine with and .
Solving the drone with algebra
Here is the Chapter 2 drone under P control, with no free hover thrust this time, starting on a 1 m ledge. At we release it and ask for 2 m. In the calculation from that instant onward, the new setpoint and constant gravity force each transform like a step:
Step 1: transform every term. Because areas scale and add (the table section), we can transform each term on its own. A step of size becomes , and slopes become multiplication by . Here's what we wrote:
Step 2: it's algebra now. Collect on one side, then divide:
Mika: Look at that. No slopes left, just letters being shuffled around. Theo, your notebook has stopped smoking.
Step 3: split it into table pieces, as in the section above: one number on top of the piece, and on top of the quadratic one:
How do we find , , and ? Multiply both sides by the shared bottom :
Then compare both sides, one power of at a time. The plain numbers give , the terms give , and the terms give :
No new physics appears here: we have simply undone a common denominator to reach pieces our table can take back to time. Notice that doesn't care where the drone started.
Theo: And we never had to guess once. The table did the guessing for us.
Step 4: look each piece up in the table we just derived: is a step, and the second piece is a decaying cosine plus a decaying sine (the side trip below shows how it fits those rows). Read off .
June: Let's check it against the simulation!
Predict first! We start the drone on a 1 m ledge and run our formula next to the simulation. What will we see?
Chapter 9: Calculus into Algebra ↗
Mika: Uh-oh. The formula starts at zero, but the drone starts on the ledge at 1 m. The algebra is lying?
Theo: The algebra's fine. We lied. Look at Step 1: we wrote and , and dropped every . That's exactly the piece that remembers the ledge.
Flip the switch to put the starting-height terms back, and watch Steps 1 and 2 and the coefficients above change with it. The dashed formula and the blue simulation now sit exactly on top of each other: the biggest gap is less than a millionth of a metre, just rounding. Change or the ledge height and they still agree.
Chapter 9: Calculus into Algebra ↗
Theo: In Chapter 2 we had to fly the drone to find its droop. Here it just fell out of a fraction.
What we know now
What we figured out
- Slopes become multiplication: . The remembers where the signal started. Forget it and your answer starts in the wrong place.
- We derived our own table: , , , and the shifted version for decaying sines. Areas scale and add, so we can transform an equation term by term.
- Big fractions split into partial fractions: one unknown per power of in each bottom, found with the cover-up trick. A quadratic bottom becomes a shrinking cosine and sine.
- Transform, do algebra, split into table pieces, read off the answer. The piece is where the drone settles, droop and all. It matches the simulation exactly, as long as you keep the starting values.
June: "Every time we solved something, the answer was (something) ÷ (a polynomial in s), and the drone's behaviour came from where the bottom is zero. What if that fraction is the drone?"