## asnaseer 4 years ago How to align the equals signs on equations of the form: f(2) = 2*(2)^2 + 8 = 2*4 + 8 = 8 + 8 = 16

1. asnaseer

To achieve this you need to enclose your equations between \$$[$$\begin{align} and \end{align}\$$]$$. Each equal sign should be preceded with an '&' symbol, and each line should end with a double backslash (i.e. \\). So the sample equation in the question would be written out as: \$$[$$\begin{align} f(2) &= 2*(2)^2 + 8\\ &= 2*4 + 8\\ &= 8 + 8\\ &= 16 \end{align}\$$]$$ This will produce something like this:\begin{align} f(2) &= 2*(2)^2 + 8\\ &= 2*4 + 8\\ &= 8 + 8\\ &= 16 \end{align}

2. satellite73

$\begin{array} f(2) &= 2*(2)^2 + 8\\ &= 2*4 + 8\\ &= 8 + 8\\ &= 16 \end{array}$ just checking it works with "array" as well

3. Akshay_Budhkar

how did they write it?

4. myininaya

when asnaseer come back we should tackle him with the question

5. myininaya

oh

6. myininaya

this is it

7. myininaya

\begin{array} f(2) &= 2*(2)^2 + 8\\ &= 2*4 + 8\\ &= 8 + 8\\ &= 16 \end{array}

8. Akshay_Budhkar

??

9. myininaya

you know you can copy that code

10. myininaya

right click it

11. Akshay_Budhkar

\begin{align} f(2) &= 2*(2)^2 + 8\\ &= 2*4 + 8\\ &= 8 + 8\\ &= 16 \end{align}

12. myininaya

yep

13. Akshay_Budhkar

no but i want it in the equation editor

14. myininaya

you can do it in the equation editor

15. Akshay_Budhkar

\[\begin{align} f(2) &= 2*(2)^2 + 8\\ &= 2*4 + 8\\ &= 8 + 8\\ &= 16 \end{align}\]

16. myininaya

$\begin{array} new line \\ new line \\ new line \end{array}$

17. myininaya

i did that in equation editor

18. myininaya

i did a new line you have to do \begin{array} \\ newline\\ newline \end{array}

19. myininaya

oop

20. Akshay_Budhkar

? i mlost

21. Akshay_Budhkar

$\newline \newline$

22. myininaya

|dw:1327727286914:dw|

23. Akshay_Budhkar

$\begin{array} &akshay & myin \end{array}$

24. Akshay_Budhkar

:(

25. Akshay_Budhkar

what am i supposed to type in the equation editor?

26. myininaya

not &

27. myininaya

\\ .

28. myininaya

$\begin{array} \\akshay \\ myin \end{array}$

29. Akshay_Budhkar

$\begin {array} \\akshay \\myin \end {array}$

30. Akshay_Budhkar

cool!

31. myininaya

$\begin{array} \\akshay \\ myin \\ :) \end{array}$

32. waleed_kha

\begin{align} Thank &=you\\ &= Its gr8 \\&=\huge {For \cancel { Not }2 \cancel{forget} } \end{align}. its so cool ! ^_^

33. Mr.Math

TEST: $\begin{array} x&=2+3\times 4 \\ &=2+12 \\ &=14 \end{array}$

34. mkone

Il y a aussi l'environment eqnarray: begin{eqnarray} f(2) &=& 2*(2)^2 - 8\\ &= & 2*4 - 8\\ &=& 8 - 8 \\ &=& 0\end{eqnarray}, displays: $$\begin{eqnarray} f(2) &=& 2*(2)^2 - 8\\ &= & 2*4 - 8\\ &=& 8 - 8 \\ &=& 0\end{eqnarray}$$ Which is very similar indeed, but I'm sure there are some small difference that helps perfectionists smile. Here another example: $$\begin{eqnarray} f(2) = 2*(2)^2 - 8\\ = 2*4 - 8\\ = 8 - 8 \\ = 0\end{eqnarray}$$ begin{eqnarray} f(2) = 2*(2)^2 - 8\\ = 2*4 - 8\\ = 8 - 8 \\ = 0\end{eqnarray} and Pascal's triangle: $$\begin{eqnarray} &1\\ &1\ 1\\ &1\ 2\ 1 \\ &1\ 3\ 3\ 1 \\ & 1\ 4\ 6\ 4\ 1 \\ &1\ 5\ 10\ 10\ 5\ 1 \end{eqnarray}$$ begin{eqnarray} &1\\ &1\ 1\\ &1\ 2\ 1 \\ &1\ 3\ 3\ 1 \\ & 1\ 4\ 6\ 4\ 1 \\ &1\ 5\ 10\ 10\ 5\ 1 \end{eqnarray}

Find more explanations on OpenStudy