Is there a way to align the numerator and the denominator of a fraction? Consider two fractions (from a SIAM paper)
The denominator (k!) is nicely centred in the first fraction. However in the second fraction the brackets in the numerator and the denominator are not aligned. As the exponent of the numerator gets bigger, the misalignment gets worse. In general, the strategy of centring numerator and denominator is correct. However, it would be good to have the option of aligning brackets in specific instances like this.
MWE:
\documentclass[preview]{standalone}
\usepackage{amsmath}
\begin{document}
$\dfrac{(x_i - x)^{N+1}}{(N+1)!}$
\end{document}
mathtools
package providing the\mathrlap
macro you could do (in the denominator)(N+1)\mathrlap{!}\hphantom{^{N+1}}
or, in this simple case,(N+1)^{N+1}\hfill
. For the latter already exist a then-abused macro:\cfrac[l]{(x_i - x)^{N+1}}{(N+1)^{N+1}}
.\frac{1-z^{n+1}}{1-z}
doesn't look very good …