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:

    f295b3970fadc2992246787a7ca45c16.png

    But how would I write an integral like the following?

    1845918e723ad0b5874fa2fb77870925.png
     
  2. jcsd
  3. Sep 20, 2012 #2

    AlephZero

    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

    micromass

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2016 Award

  7. Sep 21, 2012 #6

    LCKurtz

    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

    jtbell

    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

    Mark44

    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:
    \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}
     
  12. Mar 7, 2013 #11
    mine looks smaller for some reason.

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

    robphy

    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]
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: How do I write an integral from a to b in latex?
  1. How do I? (Replies: 3)

  2. How do i (Replies: 1)

  3. How do i unsubscribe? (Replies: 6)

Loading...