Here's my code:
$$\begin{aligned}
h_t &= ca_t + &2c^2a_{t+1} + 3c^3&a_{t+2}+\ldots \\
h_{t+1} &= &ca_{t+1} + 2c^2&a_{t+2} + 3c^3a_{t+3}+\ldots \\
h_{t+2} &= & c&a_{t+2} + 2c^2a_{t+3} + 3c^3a_{t+4}+\ldots
\end{aligned}$$
- What's with the weird space between ca_t + and 2c^2a_{t+1}? How can I get rid of it?
- Although it looks correct, I don't understand why the picture has the a_{t+1} terms aligned when in the code I write that the 2c^2 and c should be aligned. Again, it looks right (and I should fix my code), but I'm just confused about why the picture looks the way it does.




aligned, likealign, is intended for having multiple equalities (or similar) next to each other (e.g. https://tex.stackexchange.com/q/159723/), not for what you're doing. Perhaps https://tex.stackexchange.com/q/493625/ is useful. Side note: don't use$$ ... $$: https://tex.stackexchange.com/q/503/ – Torbjørn T. Nov 03 '19 at 20:29