Math & Scienceproblem with \begin{align}

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

problem with \begin{align}

Post by rayman »

Hello! I am having some problems with setting up a nice equation with \begin{align*}. This is the equation

Code: Select all

\begin{align*}\int\limits_{P}\alpha(x,y)=\int\limits_{0}^{1}\alpha(t,t^2)\\
= \int\limits_{0}^{1}[2dt+3td(t^2)]\\
= \int\limits_{0}^{1} (2+6t^2)dt\\
= 4 \end{align*}
But it does not look nice. I would like this to look like that (please see the attachment) and it should not be numbered

Thank you!
Attachments
integral.jpg
integral.jpg (8.03 KiB) Viewed 1805 times
Last edited by rayman on Mon May 16, 2011 7:31 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

problem with \begin{align}

Post by Stefan Kottwitz »

Hi,

use the ampersand & to mark the place for the alignment:

Code: Select all

\begin{align*}
  \int\limits_{P}\alpha(x,y) &= \int\limits_{0}^{1}\alpha(t,t^2)\\
  &= \int\limits_{0}^{1}[2dt+3td(t^2)]\\
  &= \int\limits_{0}^{1} (2+6t^2)dt\\
  &= 4
\end{align*}
Btw. the forum has a code environment which makes LaTeX code more readable. You can click the Code button above the edit field when writing or editing. I just did that for you.

Stefan
LaTeX.org admin
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

Re: problem with \begin{align}

Post by rayman »

Looks great! Danke schön
Post Reply