Computer algebra system for symbolic and numerical computation
Computer algebra system
maxima
maxima-batch
$ maxima
$ maxima -batch equation.mac
$ echo 'diff(x^3 + 2*x^2 + x, x);' | maxima -batch -