# How to left align the element when usig begin align, not the whole equation?

I am using begin align command and want to left align my equation. I learned that using flalign I can left align the whole equation. But this is not what I need now. I want to left align my equation "componentwisely". The following is what I have typed. and the right hand sides are automatically right-aligned. How can I fix this?

\begin{align*}
\frac{\partial f}{\partial v^j}&=&\frac{\partial f}{\partial u^l}\frac{\partial u^l}{\partial v^j}\\
\frac{\partial^2f}{\partial v^j\partial v^i}&=&\frac{\partial^2 f}{\partial u^l\partial u^m}\frac{\partial u^m}{\partial v^i}\frac{\partial u^l}{\partial v^j}+\frac{\partial f}{\partial u^l}\frac{\partial^2u^l}{\partial v^j\partial v^i}
\end{align*}


Pictorial description. I want to change 1 to appear like 2.

1.(right aligned right hand side)
_________________________
aa= aaaaaaaaaaa

aa=        aaaa
_________________________
2.(left aligned right hand side)
_________________________
aa= aaaaaaaaaaa

aa= aaaa


• Welcome to TeX.SE. It is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill May 23 '14 at 3:34

## 1 Answer

Remove the second & in

&=&


so that it becomes

&=


Code:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\frac{\partial f}{\partial v^j} &=\frac{\partial f}{\partial u^l}\frac{\partial u^l}{\partial v^j}\\
\frac{\partial^2f}{\partial v^j\partial v^i} &=\frac{\partial^2 f}{\partial u^l\partial u^m}\frac{\partial u^m}{\partial v^i}\frac{\partial u^l}{\partial v^j}+\frac{\partial f}{\partial u^l}\frac{\partial^2u^l}{\partial v^j\partial v^i}
\end{align*}
\end{document} Always remember that & (the alignment specifier inside align and friends) has right and left alignment pairs i.e., left hand side of & is right aligned and right hand side is left aligned in pairs.

• Thank you very much for your answer and comment! But why would the second ampersand mark make the right hand side of my equation right aligned if it "left-aligns" everything on its right side? – texlearner23 May 23 '14 at 3:46
• @texlearner23 - &=& is syntax from the badly-deprecated eqnarray environment. In environments such as align, it is possible to have multiple blocks, each with their own alignment point specified by an &. However, that's not what you're after here, right? For more information on aligning single and multiple blocks of equations using the tools of the amsmath package, see section 3 of that package's user guide. – Mico May 23 '14 at 5:17
• @texlearner23 right align & left align makes one pair. Another & will start another right left  pair. So right align & left align & right align is what is happening in your case. – user11232 May 23 '14 at 22:29