Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. Sep 20, 2012 #1
    As the title suggests, I can only see how to write an integral like:


    But how would I write an integral like the following?

  2. jcsd
  3. Sep 20, 2012 #2


    User Avatar
    Science Advisor
    Homework Helper

    Put a subscript and a superscript on the \int, e.g. \int_{a}^{b}
  4. Sep 20, 2012 #3
    Oh, argh! Why didn't I think of that? Anyway, thanks :)
  5. Sep 20, 2012 #4
  6. Sep 20, 2012 #5
  7. Sep 21, 2012 #6


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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.
  8. Mar 7, 2013 #7
    how do i make the size and font look like that iwth latex? is that latex or a link to an image?
  9. Mar 7, 2013 #8
    It's just an image.
  10. Mar 7, 2013 #9


    User Avatar

    Staff: Mentor

    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.
  11. Mar 7, 2013 #10


    Staff: Mentor

    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:

    When there are two or more characters (e.g. 2x, -3, etc.) you need the braces around the entire expression, as in this example:
  12. Mar 7, 2013 #11
    mine looks smaller for some reason.

    [itex]\int_a^b {f(x) dx}[/itex]
  13. Mar 7, 2013 #12


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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]
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook