Plot a function and shade the area under it
Graph y = f(x), add Riemann rectangles, and slide a tangent line.
Plot and layer on calculus visuals.
Set the expression
- Add a
function_graphobject (or pick one of the classic-function presets in its Geometry tab). - Edit f(x) = using numpy syntax, e.g.
np.sin(x),x**2 - 1,np.exp(-x**2). - Set Axes to attach the graph to an
axesobject already in the scene — the graph is plotted in that axes' coordinate space. - Set the plotted domain (X− / X+).
Shade the area under the curve
Toggle Area under curve (showArea), then set From/To (areaFrom/areaTo) to bound the shaded region:
Riemann rectangles
Toggle Riemann rectangles (showRiemann) for approximation rectangles over the same From/To region, and set Δx (riemannDx) for the rectangle width — smaller Δx means more, thinner rectangles approximating the integral more closely.
Area and Riemann rectangles share the same From/To bounds, so you can toggle between them (or show both) without re-entering the interval.
Tangent line
Toggle Tangent line (showTangent), then set at x (tangentX) for where it touches the curve. tangentX is keyframeable — animate it with record mode or a ◆ diamond to slide the tangent line along the curve as the scene plays.
Tracked point
Toggle Tracked point (showTracker), then set at x (trackerX) for where the dot sits on the curve — needs Axes attached, since the dot's position is computed via that axes' coordinate system. Like tangentX, trackerX is keyframeable: animate it to sweep the dot along the curve for the classic "watch the point trace the function" or "watch a limit approach" moment. Turn on Show (x, f(x)) label to display the dot's live coordinates next to it.
Derivative curve
Toggle Derivative curve f′(x) (dashed) (showDerivative) to plot alongside as a dashed curve.
Numeric readouts
Under Graph Analyzer, each of these is computed numerically from and prints a live readout on the canvas:
| Readout | Property | Shows |
|---|---|---|
| Roots | showRoots | Every x-axis crossing, marked with a dot and its x-value |
| Maximum | showMaximum | The highest point on the domain |
| Minimum | showMinimum | The lowest point on the domain |
| Domain readout | showDomain | The plotted domain |
| Range readout | showRange | The numeric range over the domain |
| Integral value | showIntegralValue | over the area/Riemann From..To region |
See Animation reference for how tangentX and the other numeric fields behave once keyframed.