SymPy is Python's library for symbolic mathematics — instead of computing numeric approximations, it manipulates exact mathematical expressions, just like doing algebra by hand.
1-A 2-A 3-A 4-A | 5 x**2 - 9 6 [-3, 3] 7 = x**2 - 9 8 = [-3, 3] 9 = 4*x**3 | 10 = x**3/3