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

  • Context: LaTeX 
  • Thread starter Thread starter phosgene
  • Start date Start date
  • Tags Tags
    Integral Latex
Click For Summary

Discussion Overview

The discussion centers around writing integrals in LaTeX, specifically how to format integrals with limits from a to b. Participants explore various methods and share tips on achieving the desired appearance in LaTeX.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Homework-related

Main Points Raised

  • Some participants suggest using \int_{a}^{b} to denote integrals with limits.
  • Others mention that for single character subscripts and superscripts, the braces can be omitted, as in \int_a^b.
  • A participant provides examples of LaTeX code for integrals, including $$F = \int {f(x) dx}$$ and $$\int_a^b {f(x) dx}$$.
  • There is a suggestion to right-click on rendered math to view the underlying LaTeX code.
  • Some participants express confusion about the appearance of their integrals, noting differences in size and font.
  • One participant clarifies that an example they referenced is an image, not LaTeX code.
  • Another participant provides variations of LaTeX commands for displaying integrals, including using itex and \displaystyle for different formatting.

Areas of Agreement / Disagreement

Participants generally agree on the methods for writing integrals in LaTeX, but there are varying opinions regarding the appearance and formatting of the integrals, indicating some unresolved issues about size and font consistency.

Contextual Notes

Some participants express uncertainty about the appearance of their LaTeX output, suggesting potential limitations in their understanding of formatting options or differences in rendering across platforms.

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 ·
Replies
13
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K