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

Differentiating Integrals

  1. Dec 3, 2003 #1

    My question has to do with differentiating an integral. We are given:

    [tex]f(x)=1/2\int_{0}^{x} (x-t)^2 g(t)dt[/tex]

    And we are asked to prove that:

    [tex]f'(x)=x\int_{0}^{x}g(t)dt - \int_{0}^{x}tg(t)dt[/tex]

    My Solution:

    I expanded [tex](x-t)^2[/tex] into [tex]x^2-2xt+t[/tex] and then expanded

    [tex]f(x)=x^2/2\int_{0}^{x}g(t)dt - x\int_{0}^{x}tg(t)dt + \int_{0}^{x}t/2g(t)dt[/tex]

    Then I differentiated using the product rule:

    [tex]f'(x)=x\int_{0}^{x}g(t)dt + g(t)x^2/2 - \int_{0}^{x}tg(t)dt - xtg(t) + t/2g(t)[/tex]

    This is close to what they want me to prove, but I have these extra terms:


    Which is basically [tex](t-x)^2/2g(t)[/tex].

    How do I eliminate that term? Does it evaluate to 0 somehow?

    Thanks for the help!
    Last edited: Dec 3, 2003
  2. jcsd
  3. Dec 3, 2003 #2


    User Avatar
    Science Advisor

    You can work out the details yourself, but what you overlooked, when you took the derivative, is that the integrals themselves are functions of x, since the upper limit is x. The derivatives are the integrands, g(t) or tg(t).
  4. Dec 3, 2003 #3
    Thank you so much for your help!

    I noticed a mistake in my expansion of [tex](x-t)^2[/tex]

    And once that was fixed, I was able to follow your advice and differentiate this correctly.



    [tex]f(x)=x^2/2\int_{0}^{x}g(t)dt - x\int_{0}^{x}tg(t)dt + \int_{0}^{x}t^2/2g(t)dt[/tex]

    [tex]f'(x)=x\int_{0}^{x}g(t)dt + g(x)x^2/2 - \int_{0}^{x}tg(t)dt - x^2g(x)+x^2/2g(x)[/tex]

    And then the [tex]x^2/2g(x)-x^2g(x)+x^2/2g(x)[/tex] cancel each other out, and

    [tex]f'(x)=x\int_{0}^{x}g(t)dt - \int_{0}^{x}tg(t)dt[/tex]

    Thanks again for your help!
  5. Dec 3, 2003 #4


    User Avatar
    Science Advisor

    LalPlace's formula

    d/dx (∫g(x)h(x)f(t,x)dt is

    ∫g(x)h(x)&partial;f(t,x)/&partial;xdt + dg/dx f(x,g(x))- df/dx f(x,h(x))
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook