Recently I had answered a question.
I had used the $\rm\LaTeX$ command \begin{align}...\end{align}
but the equations are not perfectly aligned. This is the code I used
$\begin{align}
f(x)&=\lim_{n\to\infty} \frac{ax} {n}\left(\sum_{k=1}^n \frac{[k^2-e^{-x}+k-1]}{k(k+1)}\right)+\lambda\\
&=\lim_{n\to\infty} \frac{ax}{n}\left(\sum_{k=1}^n \frac{k^2+k-2}{k(k+1)}\right)+\lambda\\
&=\lim_{n\to\infty} \frac{ax}{n}\left(\sum_{k=1}^n 1-2\left(\frac{1}{k}-\frac{1}{k+1}\right)\right)+\lambda\\
&=\lim_{n\to\infty} \frac{ax}{n}\left(n+\frac{1}{n+1}-2\right)+\lambda\\
&=ax+\lambda
\end{align}$
What's wrong with the code? Or how can I fix it so that the equations are properly aligned?
\begin{align}
and\end{align}
all on its own; you don't need (or want) to put this environment into another math environment; (2) it is possible that the "responsive design" is causing problems---phone screens are quite narrow, and it may be that your lines are too long to render nicely on a phone screen. $\endgroup$