gcd(2*x**2%20%2B%206*x%2C%2012*x)
Want to compute something more complicated? Try a full Python/SymPy console at SymPy Live.