Math & Science ⇒ Depicting math equation derivation steps
Depicting math equation derivation steps
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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Depicting math equation derivation steps
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