[Tex/LaTex] How to align multiple equations

alignequationshorizontal alignment

I am trying to align three equations using align like this but I am not sure where to put the &.

p(k+1) = p(k) * P 
         p(k) = p(k-1) * P
                p(k-1) = p(k-2) * P 

Attempt:

\begin{align*}
p(k+1) = &p(k) \cdot P \\
p(k) = &p(k-1) \cdot P \\
&p(k-1) = p(k-2) \cdot P
\end{align*}

Best Answer

Here are two possible ways using aligned.

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{align*}
p(k+1) &= \begin{aligned}[t] p(k) &\cdot P \\
p(k) &= \begin{aligned}[t]p(k-1)& \cdot P \\
p(k-1) &= p(k-2) \cdot P
\end{aligned}
\end{aligned}
\end{align*}


\begin{equation*}
p(k+1) = \begin{aligned}[t] p(k) &\cdot P \\
p(k) &= \begin{aligned}[t]p(k-1)& \cdot P \\
p(k-1) &= p(k-2) \cdot P
\end{aligned}
\end{aligned}
\end{equation*}
\end{document}

enter image description here