The Coordinate Plane
The coordinate plane is formed by two number lines that cross at the origin .
- The horizontal line is the -axis; the vertical line is the -axis.
- Every point is named by an ordered pair . The first number tells how far right () or left () you go; the second number tells how far up () or down ().
- The axes split the plane into four quadrants, numbered counterclockwise: @@BLOCK0@@
A linear function changes by the same amount for each unit step — that constant is the slope. Its graph is a line, and the three standard forms (slope-intercept, point-slope, standard) are the same information organized for different tasks: reading the intercept, building from a point, or spotting intercepts. Parallel lines share a slope; perpendicular slopes multiply to .
Two perpendicular number lines give every point of the plane exactly one address, and every address exactly one point. That two-way match is what lets algebra and geometry trade places for the rest of the course: an equation becomes a picture (its graph), and a geometric question (where do two lines meet?) becomes an equation.
Plot : from the origin go right , then up . This lands in Quadrant I.
Plot : go left , then up . This is in Quadrant II.
Name the point that is left and down : that is , which is in Quadrant III.
Plotting on the -axis because "it has a in it." The -coordinate is , so there is no sideways move at all; the point is up the -axis.
Order matters! and are different points. Always read : run first (left/right), then rise (up/down). Points on an axis (like or ) belong to no quadrant.
Name the quadrant or axis for , , , .
Show the answerHide the answer
: signs , Quadrant II. : , Quadrant IV. : , so it is on the -axis. : , Quadrant III.
Functions and Function Notation
A function is a rule that assigns to each input exactly one output. Think of it as a machine: put in , get out one value.
We write (read “ of ”) for the output when the input is . Here is the input and is the output. The letters , , are just names for the rule.
The "exactly one output" condition is what makes a function predictable: once you know the input, the output is settled. That is also why the vertical line test works. A vertical line is the set of points with one particular input; if the graph met it twice, that input would have two outputs, and the rule would not be a function.
Let . To evaluate, substitute the input in place of .
So the ordered pairs , , and all lie on the graph of .
Reading as " times ." Function notation names an output: means "the output of when the input is ," here . The parentheses hold the input; they do not mean multiply.
Vertical Line Test: a graph is a function if no vertical line crosses it more than once. This checks the rule “one input, one output.”
Let . Find , then find every input with .
Show the answerHide the answer
. For : , so or . Two inputs can share an output; what a function forbids is one input with two outputs.
Domain and Range
The domain is the set of all allowed inputs (the -values). The range is the set of all resulting outputs (the -values).
Drop each point straight onto the -axis and the shadows are the domain; slide each point onto the -axis and those shadows are the range. That picture explains why a repeated output is listed once (two points cast the same shadow on the -axis) and why a line with no restrictions has domain and range "all real numbers": its shadows cover both axes completely.
For the function :
- Domain (inputs): .
- Range (outputs): . We list only once even though it appears twice.
This is a function because each input has exactly one output.
Swapping the two: listing the range of as . The range is the set of outputs, the second coordinates: .
For a line like with no restrictions, the domain is all real numbers and so is the range. A horizontal line has range only.
Give the domain and range of . Is it a function? What about ?
Show the answerHide the answer
Domain (first coordinates): . Range (second coordinates): . It is a function: no input repeats. is not: the input has two outputs.
Rate of Change and Slope
Slope measures steepness: how much changes for each unit that increases. Given two points and ,
Slope is the rate of change of the line.
Why is the slope the same wherever you measure it? Any two slope triangles drawn on one line are similar: their horizontal sides are parallel, their slanted sides lie on the same line, so their angles match. Similar triangles have proportional sides, so rise divided by run comes out the same for every pair of points. That constant is what makes a line a line, and it is the rate at which changes per unit of .
Find the slope through and .
Each time goes up by , goes up by .
Mixing the order of the points: . The top starts with the point and the bottom starts with . Use the same point first in both: . A line that clearly rises cannot have a negative slope.
Find the slope through and .
The line falls: as increases by , decreases by .
Reading the sign of slope:
- Positive slope line goes up left-to-right.
- Negative slope line goes down left-to-right.
- Zero slope horizontal line (no rise): .
- Undefined slope vertical line (run is , and we can't divide by ).
Subtract the 's and the 's in the same order. Keep the points in the same order top and bottom!
A phone plan costs for GB of data and for GB. Find the rate of change and say what it means.
Show the answerHide the answer
Treat the plans as points and . Rate of change . Each extra gigabyte costs .
Slope-Intercept Form:
In slope-intercept form
the number is the slope and is the -intercept (the -value where the line crosses the -axis, at the point ).
Why are and exactly the slope and intercept? Put into and you get , so the line crosses the -axis at . Then every step of to the right adds to , because . A starting value and a constant change per step: that is all a line is.
For : the slope is and the -intercept is , so the line passes through .
To graph: start at . Use the slope (rise , run ): move right and up to reach . Connect the points.
Reading the intercept of as and the slope as , because of the order. Match the pieces to : the number multiplying is the slope, , and the constant is the intercept, .
A line has slope and passes through . Substitute into :
The equation is .
A whole-number slope like is really : rise , run . To go the other direction on a line, you may move left and down instead.
A tank holds liters and drains liters per minute. Write the amount after minutes in slope-intercept form, and find when the tank is empty.
Show the answerHide the answer
Start , change per minute: . Empty means : , so minutes. The -intercept is the moment it empties.
Point-Slope Form:
If a line has slope and passes through , its equation is
This is the fastest way to write a line when you know a point and the slope.
Point-slope form is the slope formula with one point left free. A point is on the line through with slope exactly when the slope from to is : . Multiply both sides by and you have . It uses the given point directly, so no intercept has to be found first.
Slope through :
Distribute and solve for to get slope-intercept form:
Using the point's coordinates with the wrong signs: for and , writing . The form subtracts the coordinates: . Check: must give , and works.
Watch the signs: with a point like , the form is . Subtracting a negative becomes adding.
Write the line with slope through in point-slope form and in slope-intercept form.
Show the answerHide the answer
Point-slope: . Distribute: , so . Check with : .
Standard Form:
Standard form is , where , , are integers. It is especially handy for finding both intercepts:
- -intercept: set and solve for . Point .
- -intercept: set and solve for . Point .
Intercepts are easy in standard form because each one sits on an axis where the other coordinate is . Setting wipes out the term and leaves ; setting leaves . Two points determine a line, so those two quick divisions are enough to graph it. The slope is hidden but recoverable: solving for gives .
For :
Plot and and draw the line through them.
Reading the slope of as . Solve for first: , so and the slope is . The graph confirms it: from to the line falls over a run of .
To convert to standard form, move the -term to the left and clear fractions. Example: .
Find the intercepts and the slope of .
Show the answerHide the answer
: , , point . : , , point . Slope from to : (and agrees).
Writing the Equation of a Line
- Slope point: plug into point-slope , then simplify.
- Two points: first find , then use point-slope with either point.
- From a graph: read (where it crosses the -axis) and count rise/run for ; write .
Every recipe here gathers the same two ingredients, a slope and one point, because those two facts determine a line: the point fixes where it is, the slope fixes which way it goes. Two points are enough because they give the slope; a graph is enough because it shows the intercept and a slope triangle.
Write the line through and .
Use point-slope with :
Check with the other point: . ✓
Finding the slope and then stopping: "the line through and is ." A slope alone describes a whole family of parallel lines. Use a point to choose the right one: gives , so .
Always check your equation by plugging in the point you did not use. If both points satisfy the equation, you can be confident it is right.
Write the equation of the line through and .
Show the answerHide the answer
Slope: . Point-slope with : , so . Check the other point: .
Parallel and Perpendicular Lines
- Parallel lines never meet: they have equal slopes, .
- Perpendicular lines meet at a right angle: their slopes are negative reciprocals, , so .
Parallel lines never meet, and two lines with different slopes always do (they separate at a steady rate, so they must cross somewhere), so parallel lines must share a slope. For perpendicular lines, turn a slope triangle with run and rise by a quarter turn: the run becomes a rise of and the rise becomes a run of in the opposite direction, so the new slope is . Flipping and changing the sign is that quarter turn.
A line has slope .
- Any parallel line also has slope .
- A perpendicular line has slope (flip and change the sign).
Write the line through perpendicular to : use .
Only flipping, or only changing the sign: calling perpendicular to , or perpendicular to . Test the product: and , neither is . The perpendicular slope is .
Negative reciprocal means do two things: (1) flip the fraction, (2) switch the sign. So , and .
Write the line through parallel to , and the line through the same point perpendicular to it.
Show the answerHide the answer
Solve for : , slope . Parallel: , so . Perpendicular slope : , so . Check: .
Horizontal and Vertical Lines
- A horizontal line has the form . Every point has the same -value. Slope .
- A vertical line has the form . Every point has the same -value. Slope is undefined. (A vertical line is not a function.)
On a horizontal line nothing rises, so the slope is and every point shares one -value: . On a vertical line nothing runs, so the slope would be , which has no value; and every point shares one -value: . The equation names the coordinate that never changes.
The horizontal line through is (the -value stays ).
The vertical line through is (the -value stays ).
The line passes through , , , all with height .
Writing the horizontal line through as ("horizontal, so use "). Along a horizontal line the -value is what stays fixed, so it is ; is the vertical line.
Mix-up alert: is horizontal (flat) and is vertical (straight up-and-down). Say it aloud: “ equals a number is a floor; equals a number is a wall.”
Write the line through that is (a) horizontal, (b) vertical, (c) perpendicular to .
Show the answerHide the answer
(a) Horizontal keeps . (b) Vertical keeps . (c) is horizontal, so a perpendicular line is vertical: .
Going Deeper: Advanced Linear Functions
Every non-vertical line can be written in three equivalent ways. Fluency means switching to whichever form a problem rewards.
- Slope-intercept — best for graphing and reading slope/intercept.
- Point-slope — best when you know a point and the slope.
- Standard (integers, ) — best for intercepts and for vertical lines .
Translation rules: to leave point-slope, distribute and solve for ; to reach standard form, collect and on one side and clear denominators; to leave standard form, solve for so that and .
Write the line through and in every form.
Check: for , . ✓ And agrees.
The distance from a point to the line is the length of the perpendicular segment from the point to the line:
Move everything to one side first so the line reads . The absolute value keeps the distance positive; the denominator scales for the line's slant.
Find the distance from to the line .
Rewrite as , so , , . Then
The point sits exactly unit from the line.
Three points , , form a triangle whose area is given by the shoelace formula
Collinearity test: the three points lie on one line exactly when this area is (a “flat” triangle). Equivalently, the slope equals the slope .
(a) Area of the triangle with vertices , , :
(b) Are , , collinear?
Area , so yes — they lie on the single line (each slope equals ).
Parallel lines have equal slopes. Take and . They intersect where , i.e. . If this has exactly one solution, so the lines cross. Parallel lines never cross, forcing .
Perpendicular lines have negative-reciprocal slopes. A line of slope points along the direction vector . Rotating a direction by sends , whose slope is . Hence a perpendicular line has slope , and .
Vertical/horizontal edge case. The negative-reciprocal rule assumes . A horizontal line () is perpendicular to a vertical line (undefined slope); their “product” rule breaks down, so handle this pair by geometry, not algebra.
A piecewise function uses different rules on different parts of the domain. Each rule is paired with the interval where it applies:
At the “seam” both pieces give , so the graph connects. A step function is a piecewise function whose pieces are constant, producing a staircase of flat segments (for example, a parking rate that jumps to the next whole-hour price).
The function above, drawn on a grid: a rising segment then a falling segment, meeting at .
Evaluate by choosing the rule for the input: (first piece), while (second piece).
Real data rarely lands perfectly on one line. A line of best fit (or trend line) is the straight line that passes as close as possible to all the points at once. The standard method, least squares, chooses and to make the total of the squared vertical gaps (the residuals) between the data and the line as small as possible.
- The slope estimates the average rate of change in the data.
- You can predict an unseen value by plugging its into .
- A fit is trustworthy only when the points genuinely cluster near a line; a strong straight-line pattern is called a strong (linear) correlation.
Correlation is not causation. A best-fit line can describe a pattern and forecast within the observed range, but it does not prove that causes , and predictions far outside the data (extrapolation) are unreliable.
Why It Works
Why do perpendicular slopes multiply to ? Take a slope triangle with run and rise , so the slope is . Turn it a quarter turn: the run becomes a rise of , and the rise becomes a run of in the opposite direction, . The new slope is , and . And a line has constant slope because all its slope triangles are similar: they share the angle the line makes with the horizontal.
Do not read a proof the way you read a rule. Cover the last line, ask what the previous line forces, and only then uncover it. If a step feels like magic, that is the step to work by hand with a concrete number.
Formulas, Proofs & Tips
What it means. Rise over run: how much changes for each that increases.
Example. Through and : .
Why it works. Between two points on a line the vertical change is and the horizontal change is . Similar triangles guarantee this ratio is the same wherever you measure it, so it is a property of the line itself.
Tip. Keep the points in the same order top and bottom. Reversing both gives the same slope; reversing only one flips the sign.
What it means. is the slope and is where the line crosses the -axis. Point-slope builds a line from a slope and any one point.
Example. Slope through : , i.e. .
Why it works. Start from the slope formula with a general point : . Multiplying up gives point-slope. Choosing the point gives , i.e. .
Tip. Given a point and a slope, use point-slope — no solving for needed. Rearrange at the end only if the answer must be in form.
What it means. The straight-line distance between two points, and the point exactly halfway between them.
Example. to : , midpoint .
Why it works. The two points are opposite corners of a right triangle with legs and ; the distance is the hypotenuse, so Pythagoras gives the formula. The midpoint is just the average of the coordinates, since averaging lands halfway along each axis.
Tip. Distance is the Pythagorean theorem in disguise. Squaring removes any sign worry, so you never need absolute values here.