<p><strong>sympy</strong> is a system for symbolic maths in python. It doesn't just compute, it also differentiates, integrates and automates common calculus steps. The documentation for it can be found <a href="https://www.sympy.org/en/index.html">here</a>.</p>
Remember that you may need to install sympy first!
pip install sympy
The code from this video is listed below.
import sympy as sp x = symbols('x') f = x ** 2 + 4 * x - 16 sp.solve(f, x)