Calculus/Graphing linear functions
It is sometimes difficult to understand the behavior of a function given only its definition; a visual representation or graph can be very helpful. A graph is a set of points in the Cartesian plane, where each point (x,y) indicates that f(x) = y. In other words, a graph uses the position of a point in one direction (the vertical-axis or y-axis) to indicate the value of f for a position of the point in the other direction (the horizontal-axis or x-axis).
Functions may be graphed by finding the value of f for various x and plotting the points (x, f(x)) in a Cartesian plane. For the functions that you will deal with, the parts of the function between the points can generally be approximated by drawing a line or curve between the points. Extending the function beyond the set of points is also possible, but becomes increasingly inaccurate.
Contents |
[edit] Example
Plotting points like this is laborious. Fortunately, many functions' graphs fall into general patterns. For a simple case, consider functions of the form

The graph of f is a single line, passing through the point (0,2) with slope 3. Thus, after plotting the point, a straightedge may be used to draw the graph. This type of function is called linear and there are a few different ways to present a function of this type.
[edit] Slope-intercept form
When we see a function presented as

we call this presentation the slope-intercept form. This is because, not surprisingly, this way of writing a linear function involves the slope, m, and the y-intercept, b.
[edit] Point-slope form
If someone walks up to you and gives you one point and a slope, you can draw one line and only one line that goes through that point and has that slope. Said differently, a point and a slope uniquely determine a line. So, if given a point (x0,y0) and a slope m, we present the graph as

We call this presentation the point-slope form. The point-slope and slope-intercept form are essentially the same. In the point-slope form we can use any point the graph passes through. Where as, in the slope-intercept form, we use the y-intercept, that is the point (0,b).
[edit] Calculating slope
If given two points, (x1,y1) and (x2,y2), we may then compute the slope of the line that passes through these two points. Remember, the slope is determined as "rise over run." That is, the slope is the change in y-values divided by the change in x-values. In symbols,

So now the question is, "what's Δy and Δx?" We have that Δy = y2 − y1 and Δx = x2 − x1. Thus,

[edit] Two-point form
Two points also uniquely determine a line. Given points (x1,y1) and (x2,y2), we have the equation

This presentation is in the two-point form. It is essentially the same as the point-slope form except we substitute the expression
for m.
This page may need to be