Linked Questions

25
votes
5answers
5k views

Lower and upper Riemann sums

I am trying to create a few images for educational purposes. Therefore I need to be able to illustrate the area under various functions, using lower and upper riemann sums (rectangles) Reason for not ...
18
votes
2answers
3k views

Tikz-PGF: Draw integral test plot

So I'm doing a report on convergence tests in LaTeX, and would like to produce a diagram demonstrating the integral test for convergence. I am somewhat new to LaTeX, and a total n00b when it comes to ...
10
votes
2answers
2k views

Timing and integration with TikZ PGFlots

How do I set intervals or integration with TikZ PGFlots? Something similar to the figure below, but I want to define the function, the intervals of integration and the partitions. \documentclass{...
9
votes
2answers
853 views

Riemann Sum Conundrum

The following approach to Riemann Sums first draws an arbitrary curve (which may later be tweaked), then forms rectangles based upon intersections. Unfortunately, the filled rectangles hide portions ...
8
votes
2answers
1k views

Riemann sum with pgfplots — can't seem to make graph look right

I'm trying to reproduce something like this with the function x^-1, but no matter what options I try, I can't seem to make the graph look correct. This is my current code: \documentclass[border=5mm]{...
0
votes
2answers
988 views

Rectangular Approximation Method (Riemann Sums) Diagrams

Does anyone know how to make relatively simple diagrams like the images below? Is there a some sort of "template" I could use perhaps? I'd like to code my Calculus notes but I'm not sure how to make ...
6
votes
1answer
1k views

Riemann sum plot

I have a tikz-pgf-question. I'd like to draw an arbitrary Riemann sum for simple function to illustrate the definition of \int_{a}^{b} f(x) dx. My MWE is here \documentclass{article} \usepackage{...
7
votes
1answer
669 views

Riemann sum graph

What I'm trying to do is plot a function (defined using \newcommand{\f}[1]{expression}) using pgfplots Then draw N+1 lines. Each going from (axis cs: x,0) to (axis cs: x,f(x)), where x is in (0,1/N,2/...
2
votes
0answers
1k views

pgfplot or matplotlib? [closed]

The reason I ask this is because I was trying to draw multiple lines in pgfplots (I was trying to make a drawing showing how Riemann sums and integrals are connected). And after unsuccessfully trying ...
4
votes
1answer
98 views

Upper approximating rectangles with tikz?

For lower approximating rectangles, using this answer I was able to draw as many rectangles as I want \documentclass{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage{pgfplots} \...