LaTeX How do I write an integral from a to b in latex?

  • Thread starter Thread starter phosgene
  • Start date Start date
  • Tags Tags
    Integral Latex
AI Thread Summary
The discussion focuses on how to write integrals using LaTeX, specifically how to include subscripts and superscripts. Users are advised to use the notation \int_{a}^{b} for definite integrals, with the option to omit braces for single-character subscripts and superscripts. For multi-character expressions, braces are necessary. The conversation also touches on the appearance of the integral, noting that it may look smaller depending on the LaTeX settings. Users are encouraged to explore LaTeX resources and utilize right-click options to view the underlying code of examples.
phosgene
Messages
145
Reaction score
1
As the title suggests, I can only see how to write an integral like:

f295b3970fadc2992246787a7ca45c16.png


But how would I write an integral like the following?

1845918e723ad0b5874fa2fb77870925.png
 
Physics news on Phys.org
phosgene said:
As the title suggests, I can only see how to write an integral like:

f295b3970fadc2992246787a7ca45c16.png


But how would I write an integral like the following?

1845918e723ad0b5874fa2fb77870925.png
Put a subscript and a superscript on the \int, e.g. \int_{a}^{b}
 
Oh, argh! Why didn't I think of that? Anyway, thanks :)
 
Also, if you see an example of what you want to do, just right click on it and select to show math as Tex commands to see the code. You can copy/paste from that.
 
phosgene said:
As the title suggests, I can only see how to write an integral like:

f295b3970fadc2992246787a7ca45c16.png


But how would I write an integral like the following?

1845918e723ad0b5874fa2fb77870925.png

how do i make the size and font look like that iwth latex? is that latex or a link to an image?
 
whatlifeforme said:
how do i make the size and font look like that iwth latex? is that latex or a link to an image?

It's just an image.
 
Here's the actual LaTeX for phosgene's two integrals:

$$F = \int {f(x) dx}$$

$$\int_a^b {f(x) dx}$$

The right-click trick should work on those. Or control-click if you're using a Mac, like I am.
 
  • #10
phosgene said:
As the title suggests, I can only see how to write an integral like:

f295b3970fadc2992246787a7ca45c16.png


But how would I write an integral like the following?

1845918e723ad0b5874fa2fb77870925.png

AlephZero said:
Put a subscript and a superscript on the \int, e.g. \int_{a}^{b}

As long as the subscripts/superscripts are single characters, as in the above, you can omit the braces around the sub-/superscript. The following will render exactly the same:
\int_a^b

When there are two or more characters (e.g. 2x, -3, etc.) you need the braces around the entire expression, as in this example:
\int_{-2}^{3x}
 
  • #11
jtbell said:
Here's the actual LaTeX for phosgene's two integrals:

$$F = \int {f(x) dx}$$

$$\int_a^b {f(x) dx}$$

The right-click trick should work on those. Or control-click if you're using a Mac, like I am.

mine looks smaller for some reason.

\int_a^b {f(x) dx}
 
  • #12
tex \int_a^b {f(x) dx}

itex \int_a^b {f(x) dx}

itex with \displaystyle \displaystyle\int_a^b {f(x) dx}
 

Similar threads

Replies
13
Views
3K
Replies
3
Views
3K
Replies
4
Views
2K
Replies
12
Views
3K
Replies
3
Views
2K
Replies
1
Views
2K
Replies
5
Views
3K
Back
Top