\displaystyle needs a space or it interferes with stuff!

Test Plan:
Try x^y