Basically, I want something like this:
$$ \overset{\qquad\quad\; 2}{\sqrt{x+x^2}} $$
where the expression above is (automatically) right-aligned, but I have no idea how to achieve this. (The example above is manually spaced, I want it to be automatic.)


\[...\]instead of$$...$$. See Why is \[ … \] preferable to $$ … $$? – Adam Liter Mar 16 '14 at 02:36