Plotting with TikZ, Part III: Plotting a function defined by a formula, and plotting functions that go through certain points

In the last post, I described how I use TikZ to create a graph that might otherwise be created freehand: In this post, I will describe one method for using TikZ to to plot a function defined by a formula, such as $$y = \left(2x^2 - x - 1\right)e^{-x}.$$ Then I will show two ways to make a function go through a certain point. Plotting from a formula Simple example There are a number of ways to achieve this, and PGF actually includes the functionality to perform calculations in TeX.

View of the Mississippi from Levee Park

(Levee Park, Winona, Minnesota, this morning at 11:02 a.m. CDT.)

Plotting with TikZ, Part II: Functions without formulæ

In the last post, I explained why TikZ is awesome for making plots. One good use case for handmade TikZ plots is to typeset a question like this: (2 points each) A plot of the graph of the function $f$ is below: For each of the following expressions, either evaluate the expression or state that it is undefined: a. $\lim_{x \rightarrow 2^{-}} f(x)$ b. $\lim_{x \rightarrow 2^{+}} f(x)$

Plotting with TikZ, Part I: Why?

This is the first part of a three-part series of posts on generating plots of graphs with TikZ. Last year, I left my position as a mathematics professor, after teaching mathematics at the college level for 15 years (nine years as a faculty member, and six years as a graduate teaching fellow). In that time, I picked up a lot of tricks using LaTeX to produce teaching materials (handouts and slides).

Migrated to Hugo

When I set up this blog in 2012, WordPress was a natural choice for content management system. However, I recently decided to investigate using Hugo to generate this blog, and after some playing around, I made the leap. The biggest reason: I wanted the benefits of a statically-generated site. (Hugo is also more compatible with version control systems.) For the actual migration, I used Cyrill Schumacher’s WordPress to Hugo Exporter plug-in.