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

  • LaTeX
  • Thread starter phosgene
  • Start date
  • #1
144
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
6,994
293
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
144
1
Oh, argh! Why didn't I think of that? Anyway, thanks :)
 
  • #6
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,557
767
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
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,755
3,965
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
34,900
6,644
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
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
5,850
1,159
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]
 

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

Replies
5
Views
2K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
1
Views
64K
  • Last Post
Replies
7
Views
1K
Replies
6
Views
5K
Replies
2
Views
953
Replies
1
Views
937
  • Last Post
Replies
4
Views
2K
Replies
2
Views
980
Replies
8
Views
24K
Top