# format

• Dec 14th 2008, 12:54 PM
polymerase
format
Lets say i have a question, for example, $\displaystyle \int_0^5 (x^2-9)^2\;dx$

Now if i wanted to show my entire work for this question, i would start off like this:

$\displaystyle \int_0^5 (x^2-9)^2\;dx=\int_0^5 x^4-18x^2+81\;dx$

Now lets assume i want to show every single step afterwards...how do i use latex such that all my further work will start with an equal sign but IN LINE my first equal sign so such that i WOULDNT need to repeat the original question everytime (for it to align)

I hope this is understandable :P

Thanks

PS. I know this shouldn't be here...but lets face it...placing it in the right sections get little/no attention. :D
• Dec 14th 2008, 01:03 PM
Mathstud28
Quote:

Originally Posted by polymerase
Lets say i have a question, for example, $\displaystyle \int_0^5 (x^2-9)^2\;dx$

Now if i wanted to show my entire work for this question, i would start off like this:

$\displaystyle \int_0^5 (x^2-9)^2\;dx=\int_0^5 \x^4-18x^2+81;dx$

Now lets assume i want to show every single step afterwards...how do i use latex such that all my further work will start with an equal sign but IN LINE my first equal sign so such that i WOULDNT need to repeat the original question everytime (for it to align)

I hope this is understandable :P

Thanks

PS. I know this shouldn't be here...but lets face it...placing it in the right sections get little/no attention. :D

\displaystyle \begin{aligned}\int_{-1}^{1}(x^2+9)^2dx&=2\int_0^1(x^2+9)^2dx\\ &=2\int_0^1\left\{x^4-18x^2+81\right\}dx\\ &=\frac{872}{5}\end{aligned}

\begin{aligned}\int_{-1}^{1}(x^2+9)^2dx&=2\int_0^1(x^2+9)^2dx\\ &=2\int_0^1\left\{x^4-18x^2+81\right\}dx\\ &=\frac{872}{5}\end{aligned}
• Dec 14th 2008, 01:17 PM
Jhevon
Quote:

Originally Posted by polymerase
Lets say i have a question, for example, $\displaystyle \int_0^5 (x^2-9)^2\;dx$

Now if i wanted to show my entire work for this question, i would start off like this:

$\displaystyle \int_0^5 (x^2-9)^2\;dx=\int_0^5 x^4-18x^2+81\;dx$

Now lets assume i want to show every single step afterwards...how do i use latex such that all my further work will start with an equal sign but IN LINE my first equal sign so such that i WOULDNT need to repeat the original question everytime (for it to align)

I hope this is understandable :P

Thanks

PS. I know this shouldn't be here...but lets face it...placing it in the right sections get little/no attention. :D

see posts #78 and #79 here. they show two ways of doing it. mathstud gave one