Ask a computer algebra system for the derivative of and it answers instantly with — not a decimal approximation near some point, but the exact formula, valid everywhere. How?
The trick is to stop thinking of a formula as text and start thinking of it as a tree. The expression is really a multiplication node with two children: a power node () and a sine node (). Every formula, no matter how nested, decomposes this way down to leaves that are just variables and constants.
Once you have a tree, differentiation stops being an art. It becomes a handful of mechanical rewriting rules — one for addition, one for multiplication, one for composition — applied recursively from the root down to the leaves. No calculus insight is needed at the moment of computing; all the insight was baked into the rules centuries ago by Newton, Leibniz and their successors. The machine just follows them, perfectly, every time.
Comments
Loading comments...