I set the margins of the document but if I write a too long equation only using $$...$$, align*, or equation* and then aligned environments centers the equation, but from the left margin.
So the question is, How to center an equation considering only the width of the document, and not the margins?
Here is my MWE:
\documentclass{article}
\usepackage{amsmath}
\usepackage{vmargin}
\setpapersize{A4}
\setmargins{2.2cm}
{0.5cm}
{16.5cm}
{23.42cm}
{30pt}
{1cm}
{0pt}
{2cm}
\begin{document}
% With $$...$$ there is less spacing. I definitely do not want to use this option.
$$
a_n=\sqrt[n]{n}=1+h\Rightarrow n={(1+h)}^n\underbrace{=}_{\substack{\text{Por binomio de Newton}\\\text{(Ver \textbf{OBSERVACI\'ON})}}}1+nh+\dfrac{n(n-1)}{2!}h^2+\cdots +h^n\underbrace{\geq}_{\substack{\text{Como todos los sumandos son}\\\text{positivos, se puede acotar}\\\text{inferiormente con uno solo}\\\text{de ellos}}} \dfrac{n(n-1)}{2!}h^2.
$$
% With equation* and aligned environments space properly, but center from the left margin.
\begin{equation*}
\begin{aligned}
a_n=\sqrt[n]{n}=1+h\Rightarrow n={(1+h)}^n\underbrace{=}_{\substack{\text{Por binomio de Newton}\\\text{(Ver \textbf{OBSERVACI\'ON})}}}1+nh+\dfrac{n(n-1)}{2!}h^2+\cdots +h^n\underbrace{\geq}_{\substack{\text{Como todos los sumandos son}\\\text{positivos, se puede acotar}\\\text{inferiormente con uno solo}\\\text{de ellos}}} \dfrac{n(n-1)}{2!}h^2.
\end{aligned}
\end{equation*}
% With align* environment it is the same as with equation* and aligned environments.
\begin{align*}
a_n=\sqrt[n]{n}=1+h\Rightarrow n={(1+h)}^n\underbrace{=}_{\substack{\text{Por binomio de Newton}\\\text{(Ver \textbf{OBSERVACI\'ON})}}}1+nh+\dfrac{n(n-1)}{2!}h^2+\cdots +h^n\underbrace{\geq}_{\substack{\text{Como todos los sumandos son}\\\text{positivos, se puede acotar}\\\text{inferiormente con uno solo}\\\text{de ellos}}} \dfrac{n(n-1)}{2!}h^2.
\end{align*}
\end{document}
And the result is:
Thanks!



\substacks aren't at all even. if you add a\strutin each line, these will even out and look better. – barbara beeton Jan 17 '18 at 17:51:(. – manooooh Jan 17 '18 at 18:15\substack{\text{Como todos los sumandos son\strut}\\\text{positivos, se puede acotar\strut}\\\text{inferiormente con uno solo\strut}\\\text{de ellos\strut}}-- this is most obvious in the second line of your examples. – barbara beeton Jan 17 '18 at 19:46