Visualize derivatives and integrals graphically
The derivative of a function gives the instantaneous rate of change — the slope of the tangent line at each point. The integral gives the accumulated area under the curve. The Fundamental Theorem of Calculus connects them: differentiation and integration are inverse operations. These concepts underlie all of physics, from velocity/acceleration to electric flux.
Plus 148+ other Pro labs covering AP Physics, Biology, Chemistry, Earth Science, and Math — with unlimited simulation time, advanced parameters, and detailed analytics.
Already have an account?
Sign in →The Calculus Grapher lets you explore the two foundational operations of calculus — differentiation and integration — by drawing or selecting a function and watching its derivative and integral curves update in real time. The derivative of a function f(x) gives the instantaneous rate of change at every point: geometrically, it is the slope of the tangent line drawn to the curve. Where f rises steeply, f' is large and positive; for smooth local maxima or minima, f' is zero and often changes sign; where f falls, f' is negative. The integral of f(x) represents accumulated area under the curve — adding up infinitely thin slices from a starting point to x. The Fundamental Theorem of Calculus (FTC) links these two ideas: if F(x)=∫_a^x f(t)dt, then F'(x)=f(x). Antiderivatives of f differ by an additive constant. This relationship is not just symbolic — you can see it visually when the slope of the green integral curve at any x equals the height of the original function. These ideas underlie velocity, acceleration, electric flux, and virtually every quantitative model in science and engineering.
MisconceptionThe derivative of f(x)² is 2f(x).
CorrectThis confuses the power rule with the chain rule. The power rule d/dx[x²] = 2x applies when the base is the independent variable. For a composite function like [f(x)]², the chain rule gives d/dx[f(x)²] = 2·f(x)·f'(x) — you must multiply by the derivative of the inner function f(x). In the grapher, observe that scaling amplitude changes the derivative proportionally, not by squaring.
MisconceptionIntegration exactly undoes differentiation with no caveats.
CorrectIntegration is the inverse of differentiation, but only up to an arbitrary constant of integration C. When you differentiate any constant, it disappears — so the antiderivative of f'(x) is f(x) + C, not a unique function. In this simulation the integral curve is anchored at a specific starting value; different starting points shift the curve vertically without changing its shape.
MisconceptionA function's derivative is zero everywhere the function is zero.
CorrectThe derivative is zero where the function has a local maximum or minimum (a horizontal tangent), not where the function's value is zero. For example, sin(x) is zero at x = 0 and x = π, but its derivative cos(x) is zero at x = π/2. Watch the simulation: the blue derivative curve crosses zero at the peaks and troughs of the original, not where it crosses the x-axis.
MisconceptionA positive derivative means the function is concave up.
CorrectA positive derivative means the function is increasing — sloping upward. Concavity is determined by the second derivative (the derivative of the derivative). A function can be increasing and concave down at the same time, like the left half of an inverted parabola. In the grapher, look at the slope of the derivative curve itself to assess concavity of the original.
MisconceptionIncreasing the frequency of a sine function does not change its derivative's amplitude.
CorrectIt does. By the chain rule, d/dx[sin(ωx)] = ω·cos(ωx). Higher frequency (larger ω) makes the derivative oscillate with greater amplitude, even if the original sine's amplitude is unchanged. You can verify this in the simulation by raising the frequency parameter and observing the derivative curve grow taller.
The derivative of sin(x) is cos(x), which is just sin(x) shifted left by π/2 (90 degrees). Because sine and cosine have the same waveform shape — only their phase differs — the derivative appears visually similar but offset horizontally. This is a special property of sinusoidal functions and does not hold for other function families like polynomials or step functions.
A negative derivative at a point x means the original function is decreasing at that location — the tangent line slopes downward from left to right. In the simulation, regions where the original curve falls correspond exactly to regions where the blue derivative curve dips below zero. This geometric connection is one of the most important interpretations of the derivative in both mathematics and physics.
The integral curve's value at each x equals the signed area accumulated under the original function from the simulation's reference point up to that x. Positive area (function above the x-axis) makes the integral curve rise; negative area (function below the x-axis) makes it fall. The total height gained or lost over any interval equals the net signed area of the original curve over that interval — a direct visual demonstration of the definite integral.
Both the derivative and integral scale proportionally with amplitude — doubling amplitude doubles the height of both the derivative and integral curves. However, the overall shape (the pattern of rises and falls) remains the same because differentiation and integration are both linear operations. What changes is the vertical scale, not the topology of the curve.
The Fundamental Theorem of Calculus (FTC) states that differentiation and integration are inverse operations: the derivative of the integral of f(x) gives back f(x). In the simulation, you can check this by observing that the slope of the green integral curve at any x point equals the height of the original function at that same x. This visual verification is one of the most compelling ways to build intuition for the FTC before encountering its formal proof.
The simulation supports several preset function types including step-like functions. At a discontinuity or sharp corner, the derivative is technically undefined (or infinite), and the simulation typically displays a spike or gap in the derivative curve at those locations. This is mathematically correct behavior and provides a useful discussion point about differentiability vs. continuity for students ready to explore those distinctions.