I want to write two simple equations one below the other, but it seems that aligned environment aligns to the right and I want to align them to the left. Here is the code:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\begin{aligned}
S_1' (x_0) = S_n' (x_n) = 0 \quad \text{(clamped boundary conditions),} \quad \text{or} \\
S_1'' (x_0) = S_n'' (x_n) = 0 \quad \text{(natural boundary conditions)}
\end{aligned}
\end{equation*}
\end{document}
which produces
but I want S_1''(x_0) to appear directly below S_1'(x_0), not to be moved to the left. Do you please know the solution?




&, such that LaTeX knows how you wish to align. – Jan 01 '18 at 23:41amsmath(which definesalign), typetexdoc amsmathat a command line prompt. a lot of other good (many more general) suggestions can be found at What are good learning resources for a LaTeX beginner? – barbara beeton Jan 03 '18 at 00:03