The algorithm for differentiation relies on some pretty obscure mathematics, but it works! Mark Williams demonstrates Forward Mode Automatic Differentiation.
Computerphile is supported by Jane Street. Learn more about them (and exciting career opportunities) at: https://jane-st.co/computerphile
This video was filmed and edited by Sean Riley.
Computerphile is a sister project to Brady Haran's Numberphile. More at https://www.bradyharanblog.com