# Functions and calculus

> Graphs of functions on coordinate axes, areas under curves, Riemann sums, and tangent lines, in plain TikZ. 5 examples with complete LaTeX source to copy.

A package in the TeXeR TikZ library: https://texer.org/library/calculus

Category: Mathematics. On CTAN: https://ctan.org/pkg/pgf

Tags: calculus, functions, integrals, derivatives

## Examples

- [Axes and a function](https://texer.org/library/calculus/simple-axes.md): Two arrows for the axes and one plotted function: the plainest graph to start from.
- [Function on coordinate axes](https://texer.org/library/calculus/function-graph.md): A cubic on a grid with tick marks, labels, and its two turning points marked.
- [Area under a curve](https://texer.org/library/calculus/integral-area.md): The definite integral of f from a to b, shaded under the curve.
- [Riemann sum](https://texer.org/library/calculus/riemann-sum.md): Eight left-endpoint rectangles under a curve, approximating its integral.
- [Secant and tangent lines](https://texer.org/library/calculus/tangent-secant.md): The secant through P and Q, and the tangent at P that it approaches as Q moves toward P.
