i am trying to generate pdf file from latex document with formula below
\documentclass[border=2pt]{standalone}
\usepackage{amsmath}
\usepackage{varwidth}
\begin{document}
\begin{varwidth}{\linewidth}
\begin{equation}
-\frac{\sqrt{2{{x}^{2}}-5x+2}}{3}\le x<0 \Leftrightarrow \left\{ \begin{align}
& x<0 ,\\
& -3x\le \sqrt{2{{x}^{2}}-5x+2}
\end{align} \right. \Leftrightarrow \left\{ \begin{align}
& x<0 ,\\
& 9{{x}^{2}}\le 2{{x}^{2}}-5x+2
\end{align} \right. \Leftrightarrow \left\{ \begin{align}
& x<0 ,\\
& 7{{x}^{2}}+5x-2\le 0
\end{align} \right. \Leftrightarrow
\end{equation}
\end{varwidth}
\end{document}
and got error message
! Package amsmath Error: Erroneous nesting of equation structures; (amsmath) trying to recover with `aligned'.
See the amsmath package documentation for explanation. Type H for immediate help. ...
l.10 \end{align} \right. \Leftrightarrow \left{ \begin{align}
any other formulas work fine. Please help
align
insideequation
. Usealigned
instead.varwidth
environment is a bit useless, ase you are usingstandalone