A function is a rule, and a rule is invisible. Asking whether it ever repeats an output, or how many times it hits zero, or where it is largest, means grinding through algebra for answers that a picture would give away instantly.
The device that supplies the picture is the coordinate plane, and this lesson builds it and puts it to work on the two functions the course has met so far, the linear and the quadratic. It assumes only the algebra of the earlier lessons and the definition of a function.
Two numbers for one point
The idea appears in Descartes' La Géométrie of 1637, published as an appendix to the Discourse on Method, and independently in unpublished work of Fermat. Fix two perpendicular number lines crossing at a point called the origin. Any point in the plane is then named by two numbers, how far along and how far up, written .
The consequence is larger than the construction. Geometry becomes algebra and algebra becomes geometry: a curve is the set of points whose coordinates satisfy an equation, and an equation is a curve. Two thousand years of Greek geometry, done with compass and straightedge on figures, becomes computation with letters, and problems that needed a clever construction each time fall to routine.
For a function this pairing has a specific use. Plot the point for every in the domain, and the resulting set of points is the graph of . Everything the rule does is now laid out at once, which is why the rest of this course reasons about functions with one eye on their graphs.
Distance, and the first theorem to fall out
Take two points and . The horizontal gap between them is and the vertical gap is , and those two gaps are the legs of a right triangle whose hypotenuse joins the points. Pythagoras' theorem gives the length immediately:
The squares mean the order of subtraction does not matter, which is as it should be, since distance has no direction. The midpoint is even simpler, the average of the coordinates separately, .
Example. Find the distance between and , and their midpoint.
The gaps are and , so . The midpoint is .
Now you. Find the distance between and .
Answer
The gaps are and , so .
Circles come free from the same formula. The set of points at distance from is , which is a definition turned directly into an equation. Note that a circle is not the graph of a function: the input has two points above it on a circle centred at the origin, and a function must have exactly one output. This is the vertical line test: a set of points is the graph of a function precisely when no vertical line meets it twice.
The straight line
The defining feature of a line is that the ratio of vertical change to horizontal change is the same everywhere on it. That constant is the slope or gradient , and it is the rate at which the output changes per unit of input.
Given a slope and any point on the line, every other point satisfies , which rearranges to the point-slope form . Expanding gives , where is the value at , the intercept. Vertical lines are the exception: their slope is undefined, since the horizontal change is zero, and they are written and are not graphs of functions.
Two lines are parallel when their slopes are equal. They are perpendicular when , which can be seen by rotating a slope triangle a quarter turn: a rise of over a run of becomes a rise of over a run of . So the perpendicular to a line of slope has slope .
Example. Find the line through and .
The slope is . Using the first point, , so . Check the second point: .
Now you. Find the line through and , and check both points.
Answer
The slope is , so and . Checking: and .
A line through real data
Amos Dolbear noticed in 1897 that snowy tree crickets chirp faster when it is warmer, and that the relationship is close to linear over the range where the insects are active. His rule, still quoted, is that the temperature in degrees Fahrenheit is plus a quarter of the amount by which the chirp count per minute exceeds .
As a function that is , a line of slope through the point . At chirps per minute it predicts °F, at it predicts °F, and at it predicts °F. The slope carries the physical content: four extra chirps per minute for each additional degree, which is a statement about how insect metabolism responds to temperature.
The limits of the model are visible in the same equation, which is the point of writing it down. Set and it predicts °F, whereas silence in fact means only that the crickets have stopped, and below about °F they do. Extrapolating a fitted line outside the range of the data that produced it is the commonest abuse of a linear model, and the graph makes the abuse obvious: the line continues cheerfully into a region where no data ever existed.
What a graph shows at a glance
Draw a function and its algebraic properties become visual. The domain is the set of values under which the curve exists; the range is the set of values it reaches. Solutions of are the points where the curve crosses the horizontal axis, so the number of solutions can be counted rather than derived. Solutions of are the crossings of two curves, which is why the intersection of and at , is both a picture and the solution of a pair of simultaneous equations.
Injectivity, the condition for having an inverse from the previous lesson, becomes the horizontal line test: is injective exactly when no horizontal line meets its graph twice. The parabola fails it at every positive height, which is the visual form of the fact that and share a square.
The graph of an inverse is a reflection of the graph of the function in the line , because reflecting swaps the roles of the coordinates, and swapping input and output is exactly what the inverse does. This is a good check on any inverse computed algebraically.
The parabola, read off its vertex form
The graph of is a parabola, opening upward when and downward when . Its most useful feature is its turning point, and completing the square from the third lesson delivers it without further work.
Take . Factor out of the first two terms: . Complete the square inside: , so .
Now everything is visible. The squared term is never negative, so is smallest when it is zero, at , where . The vertex is , the curve is symmetric about the vertical line , and since the minimum is below zero the parabola crosses the axis twice, at the two roots computed in the earlier lesson, . The discriminant and the vertex are saying the same thing in two languages: the sign of the discriminant is the question of whether the vertex sits on the far side of the axis from the opening.
Example. Put into vertex form and describe the graph.
, so . The vertex is , opening upward, symmetric about . Since gives , the crossings are at and , and the vertex sits midway between them as symmetry requires.
Now you. Put into vertex form and give the vertex.
Answer
, so the vertex is . Check by substituting into the original: .
Shifting, stretching, reflecting
Vertex form is an instance of something general. Once the graph of is known, four modifications give a family of related graphs, and knowing them removes most of the work of plotting.
Replacing by moves the graph up by , which is obvious since every output gains . Replacing it by moves it right by , which surprises people, and the reason is that the new function at does what the old one did at : the input must be larger by to produce the same behaviour. Multiplying the output, , stretches vertically by a factor , and a negative also flips the graph upside down. Multiplying the input, , squeezes horizontally by a factor , again the opposite of what the symbol suggests, for the same reason as the shift.
So is the basic parabola moved three right, stretched by two, and dropped thirteen. Every quadratic is the same curve in a different position, which is a genuinely surprising fact: parabolas differ in scale and place but not in shape. Later lessons apply the same four moves to exponentials and to waves, where a horizontal shift becomes a phase and a horizontal squeeze becomes a frequency.
Where the picture misleads
A graph is evidence, not proof, and the honest limits are worth carrying. A plot shows a window, and behaviour outside it is invisible: looks like a rising line if plotted from to , and only a window a few units wide reveals its two turning points. Features can also be too small to see, and a curve that appears to touch the axis may cross it just below the resolution of the drawing.
Nor does a graph settle exact values. It shows that crosses the axis somewhere near ; it cannot tell you that the crossing is irrational, which took the argument sketched in the first lesson. Pictures are for finding out what is true. Algebra, and eventually proof, is for establishing it.
Both curves in this lesson are members of one family: the linear function is degree one and the quadratic degree two, and nothing in the definition of a polynomial stops at two. What degree three and beyond look like, and how their roots and their factors are the same information twice, is the next lesson.