Hi,
I want a way to write down the steps of how I derived an equation. For example say I have to evaluate the equation 2x*3y where x=1 and y=2.
I write the derivation steps as follows.
2x*3y = 2*1*3*2 (From x=1, y=2)
........= 2*6
........= 12
Assume I want space in the place of the dots(.). (I put dots here because I couldn't align the "=" in all the lines as I wanted to in this post too)
I'm having a hard time aligning the "=" symbol in all the lines. Could someone please help me out?
I tried using \hspace but it doesn't work if I have only one element in the line.
Thanks in advance.
Math & Science ⇒ Depicting math equation derivation steps
Depicting math equation derivation steps
Last edited by ghantauke on Fri Mar 11, 2011 11:04 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Depicting math equation derivation steps
You should take a look at the amsmath package. Use the align environment for typesetting multiline equations.
Regards,
sridhar
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
2x \times 3y &= 2\times 1 \times 3\times 2 \;\;(\text{for } x=1,\; y=2) \\
&= 2*6 \\
&= 12
\end{align*}
\end{document}
sridhar
OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Re: Depicting math equation derivation steps
wow thanks u helped me out big time.