I wrote this symbolic derivator that takes a mathematical expression and derives/derivates/whatever-its-called it.
Note that it's not as clever as a human mind so the result may not be in its most optimized form.
http://magos.thejefffiles.com/SymbolicDerivator.zip
Source code included (C++)!