MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Correction to "Fundamental Theorem of Calculus and

Works in my version.


7.0 for Mac OS X x86 (64-bit) (February 19, 2009)

f[x_] := Integrate[Sin[t^2], {t, 0, x}]

D[f[x], x]


g[x_] := Integrate[Exp[-t^2], {t, 0, x}]

D[g[x], x]


Bob Hanlon

---- Len <lwapner2 at> wrote: 


I define a function (using f[x_]:=) as the definite integral (from 0
to x) of sin(t^2).  When I differentiate using Mathematica I get the
correct answer of sin(x^2).

But when I define a function (using g[x_]:=) as the definite integral
(from 0 to x) of e^(-t^2) and differentiate, I get the incorrect
answer of 0.  (The correct answer is e^(-x^2).)

Why the inconsistency?

Oddly, if I define the function g above using "=" instead of ":=", all
works well.

Can someone explain the odd behavior?



  • Prev by Date: Re: Re: mathematica tutor for NYC high school student
  • Next by Date: Re: Dependent dynamic controls
  • Previous by thread: Magnification inconsistency
  • Next by thread: Re: Re: Correction to "Fundamental Theorem of