
Math & Science ⇒ another problem with lining up the equation
another problem with lining up the equation

- Attachments
-
- integral.jpg (26.25 KiB) Viewed 3433 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: another problem with lining up the equation
Stefan
another problem with lining up the equation
Stefan_K wrote:Put the & before the = in the first row, and before the alignment place in the other rows. Perhaps post your code for that equations here, for seeing how you did it and for fixing.
Stefan
Oh yes, I totally forgot here is my latex code
Code: Select all
\int\limits_{S}f=\int\limits_{S}\frac{1}{2}f_{\mu\nu}(x(u))J^{\mu\nu}(x(u))du^{1}\wedge du^{2}\\
&=\int\limits_{S}\frac{E}{4\pi}\frac{Rsin\theta cos\phi}{R^3}J^{yz}(\theta,\phi)d\theta\wedge d\phi+\\
&+\int\limits_{S}\frac{E}{4\pi}\frac{Rsin\theta sin\phi}{R^3}J^{zx}(\theta,\phi)d\theta\wedge d\phi\\
&+\int\limits_{S}\frac{E}{4\pi}\frac{Rcos\theta}{R^3}J^{xy}(\theta,\phi)d\theta\wedge d\phi\\
&=\frac{E}{4\pi}\int_{0}^{2\pi}d\theta\int_{0}^{\pi}d\theta sin\theta=-\frac{E}{2}cos\theta|_{0}^{\pi}\\
&=E
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
another problem with lining up the equation
Just use code instead of latex, I edited it. I'll have a look.rayman wrote:P.S Why latex does not work here?
Stefan
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
another problem with lining up the equation
Code: Select all
\begin{align*}
\int\limits_{S}f&=\int\limits_{S}\frac{1}{2}f_{\mu\nu}(x(u))J^{\mu\nu}(x(u))du^{1}\wedge du^{2}\\
&=\int\limits_{S}\frac{E}{4\pi}\frac{R\sin\theta\cos\phi}{R^3}J^{yz}(\theta,\phi)d\theta\wedge d\phi\\
&\quad+\int\limits_{S}\frac{E}{4\pi}\frac{R\sin\theta\sin\phi}{R^3}J^{zx}(\theta,\phi)d\theta\wedge d\phi\\
&\quad+\int\limits_{S}\frac{E}{4\pi}\frac{R\cos\theta}{R^3}J^{xy}(\theta,\phi)d\theta\wedge d\phi\\
&=\frac{E}{4\pi}\int_{0}^{2\pi}d\theta\int_{0}^{\pi}d\theta\sin\theta=-\frac{E}{2}\cos\theta|_{0}^{\pi}\\
&=E
\end{align*}