For exponents, use ^ (shift 6) and then type your exponent. Ex: 3x^2, 6x^2. Also, do not put any spaces in your answer.
Made in 1 morning. This was a real pain to code. FR no tutorials.