[Tex/LaTex] Large space between text and equations when I \begin{equation}

equationsspacing

When I do this, there is a large space between the text and the equations. I was wondering if there was a way to solve this. I am using amsmath. Thanks a lot

\textbf{Solution}

\begin{center}
    \begin{equation*}
        (1+x)(1+y)\geqslant{4}
    \end{equation*}
\end{center}

Best Answer

The large space is due to the center environment, which adds vertical unneeded space and does nothing useful, since equation center its contents by default.

So, simply remove the center environment.

MWE

\documentclass{article}
\usepackage{amsmath,amssymb}

\begin{document}
\textbf{Solution}

\begin{equation*}
    (1+x)(1+y)\geqslant{4}
\end{equation*}
\end{document} 

Output

enter image description here

I would also suggest to remove the blank line before the equation environment, so to have the following result:

enter image description here