so when clicking the answer button, when you can type, look at the bottom left,
you can see 4 symbols: B, pi, omega, and a paperclip
B is bold
pi is insert equation
omega is symbols
paperclip is attachment
you click on the pi symbol
then experiment
if you don't want nice script
use the ^ sign for x^4 (it is above teh 6 key for me, press shift)