Math & ScienceLimits after an Integral

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Willie
Posts: 42
Joined: Sat Aug 27, 2011 3:43 am

Limits after an Integral

Post by Willie »

Hello. I was trying to write an "expression after integration between to limits", but the result doesn't look good. For example in the following integral and expression after the integral:

Code: Select all

\int_0^9 x^2\,dx = \frac{x^3}{3}|_0^9
the expression |_0^9 doesn't produce a good looking result.

Does anyone know how to write it neatly?
Last edited by Willie on Mon Aug 29, 2011 10:25 am, edited 1 time in total.

Recommended reading 2024:

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

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

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Limits after an Integral

Post by Frits »

I'm not sure if I understand your problem, but I assume you want a bigger vertical delimiter at the end of the right hand side of your equation. If so, try this:

Code: Select all

\int_0^9 x^2\,dx = \frac{x^3}{3}\biggl|_0^9
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Limits after an Integral

Post by localghost »

You can adjust this kind of delimiter manually.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}

\begin{document}
  \[
    \int_0^9 x^2\,dx = \frac{x^3}{3}\Big|_0^9
  \]
\end{document}
For further information about math typesetting refer to the excellent »Math mode« document.


Thorsten
Willie
Posts: 42
Joined: Sat Aug 27, 2011 3:43 am

Re: Limits after an Integral

Post by Willie »

Hi. Thank you very much for your answers, this is what I wanted.
Sahas
Posts: 8
Joined: Wed Aug 31, 2011 10:59 am

Limits after an Integral

Post by Sahas »

You also can use \left and \right commands (as I understand your problem).
Try this:

Code: Select all

\left.\int_0^9 x^2\,dx = \frac{x^3}{3}\biggl\right |_0^9
Post Reply