# How would I write up an integral symbol, along with the two numbers to the right of it, in LaTeX?

Title says it all (I think). I just want to replicate math which would normally be done in Year 11/12, and got sorta stuck here.

Any help?

-
 @cmhughes Hey, that works. Post that as an answer, and the award's yours. – think123 Feb 10 at 3:07 You might find this useful: write what you want and it converts to LaTeX. Then copy/paste in. – DJP Feb 10 at 3:14

You can use one of a few options- the examples below are in in-line mathmode- if you're in display-math mode, then there's no need for \displaystyle

\documentclass{article}

\begin{document}

\begin{itemize}
\item $\int_a^b f(x)\mathrm{d}x$
\item $\int\limits_a^b f(x)\mathrm{d}x$
\item $\displaystyle\int_a^b f(x)\mathrm{d}x$
\end{itemize}
\end{document}


For future reference, have a look at The Not So Short Introduction to LaTeX which covers this, and a lot more.

-
 Here you go, as promised. – think123 Feb 10 at 4:33 Note that the convention in most parts of the US is to have the "d" in italics, but preceded by a thin space: \int_a^b f(x) \, dx – Kundor Feb 10 at 13:17