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

  • Topic: LaTeX 
  • Thread starter phosgene
  • Start date
  • Tags Tags
    Integral Latex
11 replies · 6K views · last reply
phosgene
Messages
145
Reaction score
1
As the title suggests, I can only see how to write an integral like:

Rendered equation: F = integral of f(x) dx, shown as a plain indefinite integral with no limits.


But how would I write an integral like the following?

Definite integral of f(x) dx with lower limit a and upper limit b.
 
phosgene said:
As the title suggests, I can only see how to write an integral like:

Equation F = integral of f(x) dx, with no limits shown on the integral sign.


But how would I write an integral like the following?

Definite integral from a to b of f(x) dx, rendered as typeset mathematics.
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:

Rendered equation: F = integral of f(x) dx, with the integral sign written as a standard typeset integral.


But how would I write an integral like the following?

Rendered integral from a to b of f(x) dx, with the limits a and b placed below and above the integral sign.

how do i make the size and font look like that iwth latex? is that latex or a link to 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.
 
phosgene said:
As the title suggests, I can only see how to write an integral like:

Rendered equation F = integral of f(x) dx, with the integral sign and the integral from no limits shown; plain indefinite integral notation.


But how would I write an integral like the following?

Integral sign with lower limit a and upper limit b, integrating f(x) dx, rendered as a typeset mathematical expression.

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}
 
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.

[itex]\int_a^b {f(x) dx}[/itex]
 
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]