iTutorzz

Free calculus tool

Calculus Visualizer

See calculus happen. Move a tangent line along any curve and watch a secant line close in on it as h shrinks, with the derivative worked out and the rules named (power, product, quotient, chain). Then shade Riemann sums under a curve (left, right, midpoint or trapezoid) and see them approach the exact integral. Free, no signup.

Try an example:

f(a)

−1.125

Tangent slope f′(a)

3.75
red line

Secant slope

9.25
blue line, through a and a + h

Rising or falling?

Rising

The limit definition, in numbers

f'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h}
h(f(a + h) − f(a)) / hgap to f′(a)
19.255.5
0.14.210.46
0.013.79510.0451
0.0013.7545010.0045
0.00013.750450.00045

As h shrinks, the secant slope closes in on the tangent slope: that limit is the derivative.

Rules used

  • sum rule
    (f \pm g)' = f' \pm g'
  • power rule
    \frac{d}{dx} x^n = n x^{n-1}
  • constant multiple rule
    (c f)' = c f'

Step by step

  1. 1
    Differentiate using the sum, power, constant multiple rules.
    f'(x) = 3x^{2} - 3
  2. 2
    The slope of the tangent at x = 1.5 is the derivative there.
    f'(1.5) = 3.75
  3. 3
    The tangent line goes through the point with that slope (point-slope form), which simplifies to slope-intercept form.
    y = 3.75(x - 1.5) - 1.125 \;\Rightarrow\; y = 3.75x - 6.75

Worked example: the tangent to y = x³ − 3x at x = 2

Differentiate with the power rule, then evaluate at the point:

f′(x)\displaystyle f'(x)
=3x2−3\displaystyle = 3x^{2} - 3
f′(2)\displaystyle f'(2)
=3(4)−3=9\displaystyle = 3(4) - 3 = 9

The point is (2,f(2))=(2,2)(2, f(2)) = (2, 2), so the tangent line is y−2=9(x−2)y - 2 = 9(x - 2), or y=9x−16y = 9x - 16. Set a = 2 in the visualizer to check.

Worked example: the area under y = x² from 0 to 2

With 4 left rectangles, each strip is 0.5 wide:

L4\displaystyle L_{4}
=0.5[f(0)+f(0.5)+f(1)+f(1.5)]\displaystyle = 0.5 [f(0) + f(0.5) + f(1) + f(1.5)]
=0.5(0+0.25+1+2.25)=1.75\displaystyle = 0.5 (0 + 0.25 + 1 + 2.25) = 1.75

The exact area is [x33]02=83≈2.667[\frac{x^{3}}{3}]_{0}^{2} = \frac{8}{3} \approx 2.667. The left sum is too small because x² is increasing, so every rectangle sits under the curve. Slide n up and watch the gap close.

The Fundamental Theorem of Calculus

Derivatives and integrals undo each other. If F is an antiderivative of f (so F′=fF' = f), then ∫abf(x) dx=F(b)−F(a)\int _{a}^{b} f(x) \,dx = F(b) - F(a). That is why an area found with thousands of rectangles matches the one found in two lines of algebra.

Frequently asked questions

What does a derivative mean on a graph?+

The derivative f′(a)f'(a) is the slope of the tangent line to the graph at x=ax = a: how fast y is changing there. Positive means the graph is rising, negative means falling, and zero means a flat spot, often a maximum or minimum.

What is the limit definition of the derivative?+

f′(a)=lim⁡h→0f(a+h)−f(a)hf'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h}. The fraction is the slope of the secant line through two points on the curve, h apart. As h shrinks to 0, the secant turns into the tangent line. The table in the visualizer shows the slopes closing in.

What is a Riemann sum?+

An estimate of the area under a curve made by splitting the interval into n strips and adding up the areas of rectangles (left, right or midpoint heights) or trapezoids. The strip width is Δx=b−an\Delta x = \frac{b - a}{n}. As n grows, the sum approaches the exact definite integral.

Which Riemann sum is most accurate?+

For most smooth functions the midpoint sum and the trapezoid rule are much more accurate than left or right sums with the same number of strips. Left and right sums over- or underestimate depending on whether the function is increasing or decreasing.

How is the exact integral worked out?+

For polynomials the visualizer uses the antiderivative and the Fundamental Theorem of Calculus, ∫abf(x) dx=F(b)−F(a)\int_{a}^{b} f(x)\,dx = F(b) - F(a). For other functions it uses Simpson's rule with 4,000 strips, which is accurate to many decimal places.

Taking calculus?

Derivatives and integrals are easier when the pictures and the algebra connect. Our calculus tutors work one-on-one, including AP Calculus, and your first trial lesson is free.

Get calculus, not just the answers

A 1-on-1 calculus tutor helps you see why the rules work, so tests feel familiar. Your first trial lesson is free.