Shaded Integral with a Draggable Bound
A psplot of sin(x) whose shaded region follows a draggable uservariable — visualizing the integral as you move the bound.
This diagram is interactive — use your mouse or touch to play with it.
Rendering LaTeX…
Source
\begin{pspicture}(-4,-3)(4,3)
\uservariable{alpha}(0,0){x}
\psplot[algebraic,linewidth=2pt,fillstyle=solid, fillcolor=lightblue]{-4}{alpha}{sin(x)}
\psplot[algebraic,linewidth=2pt]{-4}{4}{sin(x)}
\psline{->}(-4,0)(4,0)
\end{pspicture}