In [2]:
from sympy import *
from IPython.display import display
init_printing()
var('a:z')
eq = Eq(a*x**2+b*x+c,0)
display(eq)
solve(eq,x)
$$a x^{2} + b x + c = 0$$
Out[2]:
$$\left [ \frac{1}{2 a} \left(- b + \sqrt{- 4 a c + b^{2}}\right), \quad - \frac{1}{2 a} \left(b + \sqrt{- 4 a c + b^{2}}\right)\right ]$$