My Math Forum  

Go Back   My Math Forum > Math Forums > LaTex Help

LaTex Help Help with LaTex and writing math equations


Reply
 
LinkBack Thread Tools Display Modes
July 8th, 2014, 03:37 PM   #1
Senior Member
 
Chikis's Avatar
 
Joined: Jan 2012

Posts: 745
Thanks: 7

How do I align equation or simplification?

When posting lines of simplification or equation using latex, how do I align the lines of simplification or equation in a single column such that the equal signs or arrow signs will be on side- left side ?

For example, I want align this:$\displaystyle
\frac{2a+b}{a^2-ab}-\frac{2b+a}{ab-b^2}
=\frac{2a+b}{a(a-b)}-\frac{(2b+a)a}{b(a-b)}
=\frac{(2a+b)b}{ab(a-b)}-\frac{(2b+a)a}{ab(a-b)}
=\frac{(2a+b)b-(2b+a)a}{ab(a-b)}
=\frac{\cancel{2ab}+b^2-\cancel{2ab}+a^2}{ab(a-b)}

=\frac{b^2+a^2}{ab(a-b)}$

Last edited by Chikis; July 8th, 2014 at 03:44 PM.
Chikis is offline  
 
July 9th, 2014, 02:26 AM   #2
Senior Member
 
Joined: Dec 2013
From: Russia

Posts: 327
Thanks: 108

\begin{align*}
\frac{2a+b}{a^2-ab}-\frac{2b+a}{ab-b^2}
&=\frac{2a+b}{a(a-b)}-\frac{(2b+a)a}{b(a-b)}\\
&=\frac{(2a+b)b}{ab(a-b)}-\frac{(2b+a)a}{ab(a-b)}\\
&=\frac{(2a+b)b-(2b+a)a}{ab(a-b)}\\
&=\frac{\cancel{2ab}+b^2-\cancel{2ab}+a^2}{ab(a-b)}\\
&=\frac{b^2+a^2}{ab(a-b)}
\end{align*}

Theoretically, this should be surrounded by [math]...[/math] or \ [...\ ] or \$...\$, (in LaTeX, the environment align* can be used only in math mode), but on the forum it works like this. The star means not to number the equations. There is also the environment aligned, which can be used as a part of a larger formula. For more display math environments, see Wikibooks.
Evgeny.Makarov is offline  
July 10th, 2014, 11:02 PM   #3
Senior Member
 
Chikis's Avatar
 
Joined: Jan 2012

Posts: 745
Thanks: 7

Quote:
Theoretically, this should be surrounded by one of these:[math]...[/math] or \ [...\ ] or \$...\$,
When you were tying to align the line of simplification which I gave as an example, why didn't you surround it by one of these :[math]...[/math] or \ [...\ ] or \$...\$,,

Last edited by Chikis; July 10th, 2014 at 11:18 PM.
Chikis is offline  
July 11th, 2014, 01:54 AM   #4
Senior Member
 
Joined: Dec 2013
From: Russia

Posts: 327
Thanks: 108

I have no better answer than: the forum software is programmed in such a way as to not require math tags for display equation environments. And that's probably good since it allows users typing less.
Evgeny.Makarov is offline  
Reply

  My Math Forum > Math Forums > LaTex Help

Tags
align, equation, simplification



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sin Wave Equation Simplification? TastyLemons Linear Algebra 0 February 2nd, 2014 09:54 PM
Differential equation simplification Smeg Differential Equations 2 November 12th, 2011 07:25 PM
Simplification of an Equation MathForFun Advanced Statistics 1 September 1st, 2009 10:05 PM
simplification Delta Algebra 3 May 18th, 2009 12:52 PM
simplification arron1990 Calculus 1 December 31st, 1969 04:00 PM





Copyright © 2019 My Math Forum. All rights reserved.