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

  • LaTeX
  • Thread starter phosgene
  • Start date
  • #1
phosgene
146
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
 

Answers and Replies

  • #2
AlephZero
Science Advisor
Homework Helper
7,025
297
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}
 
  • #3
phosgene
146
1
Oh, argh! Why didn't I think of that? Anyway, thanks :)
 
  • #6
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,568
774
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.
 
  • #7
whatlifeforme
219
0
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?
 
  • #9
jtbell
Mentor
15,932
4,574
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
36,335
8,294
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}

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
whatlifeforme
219
0
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.

[itex]\int_a^b {f(x) dx}[/itex]
 
  • #12
robphy
Science Advisor
Homework Helper
Insights Author
Gold Member
6,515
1,878
tex [tex] \int_a^b {f(x) dx}[/tex]

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

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

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

Replies
2
Views
150
  • Last Post
Replies
3
Views
224
Replies
1
Views
459
  • Last Post
Replies
0
Views
181
Replies
1
Views
542
  • Last Post
Replies
10
Views
210
  • Last Post
Replies
7
Views
2K
Replies
2
Views
249
Replies
7
Views
202
Top