Show the bounds of an integral in LaTeX

In summary, the conversation discusses the notation for showing the bounds of an integral after taking the antiderivative. It is suggested to use curly brackets to enclose compound expressions and the use of \bigg| or \big| for a long vertical bar. The possibility of using \left and \right for tall expressions is also mentioned.
  • #1
kentm
16
1
Hey I'm typing out my math homework, and I've run into some notation that I'm kind of confused about:

I need to know how to show the bounds of an integral after you've taken the antiderivative. Kind of like this:

Integral (bounds: 0 to 2) of x^2 = [1/3x^3] (0 to 2).

The actual notation might look like this:

--------|2
1/3x^3|
--------|0


Sorry if I have this in the wrong forum; I didn't see any designated for LaTeX.
 
Physics news on Phys.org
  • #2
Something like:

[tex] \int_0^2 x^2 dx = \left[\frac{1}{3} x^3 \right]_0^2 [/tex]

Code:
\int_0^2 x^2 dx = \left[\frac{1}{3} x^3 \right]_0^2
 
  • #3
That's exactly what I needed...

Thanks.
 
  • #4
Okay, now I've got another question:

What if I want to have negative bounds like this:

\int_-3^3?

pdflatex doesn't seem to like that very well.
 
  • #5
Bound them with curly brackets {..}. What Latex package are you using? Most come with a PDF explaining the simple operations of Latex in the source folder.
 
  • #6
kentm said:
Okay, now I've got another question:

What if I want to have negative bounds like this:

\int_-3^3?
Compound expressions should be enclosed in curly braces:

\int_{-3}^3 dx

Also, as an alternate answer to your original question, if you just want a long vertical bar try \bigg|

For example,

[tex]\int_{-3}^3 dx = x \bigg|_{-3}^3 = 3 - (-3) = 6[/tex]

(if you think \bigg| looks too big you can drop down a size with \big| )
 
  • #8
Larne said:
[tex]\int_{-3}^3 dx = x \bigg|_{-3}^3 = 3 - (-3) = 6[/tex]

(if you think \bigg| looks too big you can drop down a size with \big| )

and if you have an expression which is tall enough of itself, you may just want to use left and right;
[tex]\int_{-3}^3 x^2 dx = \left. \frac{1}{3} x^3 \right|_{-3}^3 = \cdots [/tex]
(note the use of the \left. - otherwise LaTeX will complain!)
 

FAQ: Show the bounds of an integral in LaTeX

1. How do I display the bounds of an integral in LaTeX?

To display the bounds of an integral in LaTeX, you can use the \int_{lower}^{upper} command, where "lower" and "upper" represent the lower and upper limits of the integral respectively.

2. Can I change the position of the bounds in the integral display?

Yes, you can change the position of the bounds by using the \limits command after \int. This will display the bounds above and below the integral symbol instead of to the right and below.

3. How do I write multiple integrals with different bounds in one line?

To write multiple integrals with different bounds in one line, you can use the \iint, \iiint, or \iiiint commands for double, triple, or quadruple integrals respectively. Then, you can use the \limits command to specify the bounds for each integral.

4. Is it possible to customize the size and style of the integral symbol?

Yes, you can customize the size and style of the integral symbol by using various commands such as \smallint, \bigint, and \displaystyle. You can also use packages like "amsmath" or "amssymb" to access more options for customizing the integral symbol.

5. Can I add additional information to the bounds of the integral?

Yes, you can add additional information to the bounds of the integral by using the \substack command after the upper or lower bound. This will allow you to add text or equations to the bounds of the integral.

Similar threads

Replies
11
Views
3K
Replies
5
Views
1K
Replies
3
Views
867
Replies
16
Views
3K
Replies
1
Views
3K
Replies
2
Views
5K
Back
Top