Function graphs

Introduction

There are four ways to create graphs in the Geometry & Graphs question type:

  1. Plotting a formula
  2. Freehand drawing a curve through the Freehand Graphs tool.
  3. Using a standard graph
  4. Drawing a polynomial through a set of points with the polynomial tool.

Plotting a formula

The Formula button in the toolbar

Use the Formula button in the bottom line of the toolbar to enter the formula you want to display. The expected form is y=expressiony=expression, where expressionexpression depends on xx.

Note

Implicit formulas, like x2+y2=1x^2 + y^2 = 1, are currently not supported.

Figure: A graph used as part of a construction to illustrate the concept of finite differences and tangents.

You can work with the graph like any other element in the canvas. For instance, you can adjust the style of the graph line in the element panel. You can also position glider points on the graph or put a point on the intersection of the graph with other elements.

Freehand Graphs Tool

The Freehand Graphs tool in the toolbar

When students first encounter function graphs, it is important to practice drawing graphs by hand. By doing so, students learn the connections between the symbolic formula and the graph's shape.

The Freehand Graphs tool allows you to draw a smooth curve through a sequence of points. We discussed this tool in the Geometrical Constructions section.

Figure: A graph created with the Freehand Graphs tool. You can drag the points or use the Freehand Graphs tool to add additional points to the graph.

Standard Graphs

The Standard Graphs button in the toolbar

Algebrakit also supports graphing standard relations using the Standard Graphs tool. This tool provides a quick, easy way to draw and evaluate such graphs. Standard graphs are ideal for exercises involving function transformations or reasoning about the properties of functions, such as minimums, maximums, asymptotes, amplitudes, and equilibria. You can draw each standard graph by defining two points that lie on the graph, or an asymptote and one or two points where applicable.

You can use the Standard Graphs tool to draw the following functions:

  • Parabolas
  • Hyperbolas
  • Sines and Cosines
  • Tangents
  • Roots
  • Logarithms
  • Exponential Functions

Figure: Several standard graphs. You can drag the points to edit the graphs, or use the various standard graph tools to add new graphs.

Another advantage of standard graphs is that you can use them to evaluate exercises easily. A guide to evaluating standard graphs can be found here.

Polynomial tool

The Polynomial button in the toolbar

With the Polynomial tool, you can draw polynomials of any degree. The Polynomial tool interpolates nn points into a polynomial with a degree of n1n-1.

Figure: A third-degree polynomial created with the Polynomial tool. You can drag the points to edit the polynomial, or use the Polynomial tool to add a new polynomial.

Note

Graphs created with the Freehand Graphs tool sometimes look similar to polynomials, but freehand graphs are not polynomials. You can clearly see the difference if you overlay the two.

A comparison between a graph created with the Polynomial tool and a graph created with Freehand Graphs Figure: A comparison between a polynomial and a freehand graph. The freehand graph is in red, the polynomial is in black.

Tip

When using the Freehand Graph tool, one point is required to be the parabola's vertex. There are didactic reasons to use different points to plot a parabola, such as the x-axis intersections. The polynomial tool allows you to draw parabolas using any arbitrary points.

A parabola drawn with the polynomial tool

Tip

You can hide control points or control lines to create special graphs with fixed points. For example, try dragging the points in the exercise below.

Figure: A third-degree polynomial with two hidden fixed points and two free points.