Skip to main content

Section 9 Graphics in Exercises

It is natural to want to write exercises that rely on graphics. For example, an exericse might produce a chart of some kind, and ask the reader to extract some information from that chart.

If your WeBWorK server is version 2.16 or later, WeBWorK problems can process tikz code. Here is an example.

This image is a visual proof that \(\sum_{k=1}^{n}k\) equals what?

Answer

\(\frac{n\!\left(n+1\right)}{2}\)

These images can be “dynamic” and depend on the random seed. In this problem, the height and width of the rectangle are randomized.

Find the area of the rectangle.

Answer

\(40\ {\rm cm^{2}}\)

You may also use an older mechanism that WeBWorK has for making dymanic images called WWPlot.

The graph below is a graph of \(y=f(x)\text{.}\) Use the graph to solve the equation \(f(x)=1\text{.}\)

\(x=\)

Answer

\(3\)