For those with a technical background, the following section explains how the Derivative
Calculator works.
First, a parser analyzes the mathematical function. It transforms it into a form that is
better understandable by a computer, namely a tree (see figure below). In doing this,
the Derivative Calculator has to respect the order of operations. A specialty in
mathematical expressions is that the multiplication sign can be left out sometimes, for
example we write "5x" instead of "5*x". The Derivative Calculator has to detect these
cases and insert the multiplication sign.
The parser is implemented in JavaScript, based on the Shunting-yard algorithm, and
can run directly in the browser. This allows for quick feedback while typing by
transforming the tree into LaTeX code. MathJax takes care of displaying it in the
browser.
When the "Go!" button is clicked, the Derivative Calculator sends the mathematical
function and the settings (differentiation variable and order) to the server, where it is
analyzed again. This time, the function gets transformed into a form that can be
understood by the computer algebra system Maxima.