Skip to main content
course review

Honors Pre-Calculus Unit 2 Review: Linear Functions

Unit 2 is about functions that change at a constant rate, which is why their graphs are straight lines. By the end, you should be able to write a line's equation when you have enough information, such as two distinct points, graph it, model a real situation with it, and fit a line to messy data.

Read the overview first, then work through each topic's notes and try the checkpoint question before moving on.

start unit practicereview topicsReview with a tutorFree, 24/7, real people, from UPchieve

What is Honors Pre-Calculus unit 2?

Linear functions are the simplest functions you'll study in pre-calculus, and they set up ideas you'll reuse all year. Slope is the first version of "rate of change," which becomes the central idea of calculus. This unit moves from pure algebra to modeling real data.

Honors Pre-Calculus Unit 2 covers linear functions of the form f(x)=mx+bf(x) = mx + b. You calculate slope from two points, write equations in slope-intercept, point-slope, and standard form, and graph lines using intercepts and slope. You identify parallel and perpendicular lines using their slopes, including the special case of vertical and horizontal lines, and you solve systems of two linear equations. The second half applies all of this to modeling. You build linear models from word problems, interpret slope and intercept in context, choose a sensible domain, and fit a line of best fit to scatter plot data, then use residuals and the correlation coefficient to assess the model.

A linear function has the same rate of change between any two points.

The slope m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1} gives the same value for any two points with different x-values. That constant slope is what makes the graph a straight line. If a table gives you different slopes for different pairs, the data is not linear.

Slope and y-intercept have real meanings in a model.

In a model like C=3x+5C = 3x + 5 for a taxi fare, the slope 3 is the cost per mile and the intercept 5 is the starting fee. When you interpret these numbers, include their units. The domain should also match the situation, since you can't ride negative miles.

Real data is rarely perfectly linear, so you fit the best line you can.

A line of best fit summarizes the trend in a scatter plot. Residuals show how far each point sits from the line. The correlation coefficient tells you how strong the linear pattern is.

Slope is a constant rate of change, and everything in this unit builds on it.

Writing equations, graphing, checking for parallel or perpendicular lines, and building models all depend on finding and reading the slope. When you fit a line to data, you're estimating the rate of change that best describes the trend. Later units will study functions whose rate of change is not constant, so this is the baseline you'll compare everything to.

Honors Pre-Calculus unit 2 topics

Unit 2 review notes

2.1

Linear Functions

A linear function has the form f(x)=mx+bf(x) = mx + b. The slope mm tells you how much the output changes when the input goes up by 1. The y-intercept bb is the output when x=0x = 0.

For two points with different x-values, you find slope with m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}. A positive slope means the function increases, a negative slope means it decreases, and a slope of 0 means it stays constant.

The form you write depends on what you know. If you know the slope and intercept, use slope-intercept form y=mx+by = mx + b. If you know a point and the slope, use point-slope form y−y1=m(x−x1)y - y_1 = m(x - x_1). Standard form Ax+By=CAx + By = C is useful for finding intercepts quickly.

Distinct nonvertical parallel lines have equal slopes. When both perpendicular lines have defined slopes, their slopes are negative reciprocals, so their product is −1-1. For example, a line with slope 23\frac{2}{3} is perpendicular to a line with slope −32-\frac{3}{2}. Vertical lines are parallel to each other and perpendicular to horizontal lines.

Worked example. Write the equation of the line through (2,5)(2, 5) and (6,−3)(6, -3). The slope is m=−3−56−2=−84=−2m = \frac{-3 - 5}{6 - 2} = \frac{-8}{4} = -2. Point-slope form gives y−5=−2(x−2)y - 5 = -2(x - 2). Distribute to get y−5=−2x+4y - 5 = -2x + 4, so y=−2x+9y = -2x + 9. Check with the other point. −2(6)+9=−3-2(6) + 9 = -3, which matches.

  • Slope: The constant rate of change of a line, found by dividing the change in yy by the change in xx.
  • Point-slope form: The equation y−y1=m(x−x1)y - y_1 = m(x - x_1), used when you know one point on the line and its slope.
  • Negative reciprocal: For a nonzero number, the number you get by flipping its fraction and changing its sign. It gives the slope of a perpendicular line when both slopes are defined.

Check yourself: What is the slope of a line perpendicular to y=−4x+1y = -4x + 1? (Answer: 14\frac{1}{4}, because the negative reciprocal of −4-4 is 14\frac{1}{4}, and −4⋅14=−1-4 \cdot \frac{1}{4} = -1.)

FormEquationUse it when
Slope-intercept$y = mx + b$You know the slope and y-intercept, or you want to graph quickly
Point-slope$y - y_1 = m(x - x_1)$You know one point and the slope, or two points
Standard$Ax + By = C$You want both intercepts fast or are setting up a system for elimination
2.2

Graphs of Linear Functions

To graph y=mx+by = mx + b, plot the y-intercept (0,b)(0, b), then use the slope as rise over run to find a second point. For m=32m = \frac{3}{2}, move right 2 and up 3. Draw the line through both points.

The x-intercept is where y=0y = 0. For 2x+5y=102x + 5y = 10, setting y=0y = 0 gives x=5x = 5, and setting x=0x = 0 gives y=2y = 2. Plot (5,0)(5, 0) and (0,2)(0, 2) and connect them.

Two special lines show up often. A horizontal line like y=4y = 4 has slope 0 and is a constant function. A vertical line like x=4x = 4 has undefined slope, because the run is 0 and you can't divide by 0. A vertical line fails the vertical line test, so it is not a function.

A system of two linear equations asks where two lines meet. The lines can cross once (one solution), be parallel (no solution), or be the same line (infinitely many solutions). You can solve by graphing, substitution, or elimination.

Worked example. Solve y=2x+1y = 2x + 1 and y=−x+7y = -x + 7. Both equal yy, so set them equal. 2x+1=−x+72x + 1 = -x + 7 gives 3x=63x = 6, so x=2x = 2. Then y=2(2)+1=5y = 2(2) + 1 = 5. The lines cross at (2,5)(2, 5).

  • x-intercept: A point where a graph intersects the x-axis, found by setting y=0y = 0 and solving for xx.
  • Undefined slope: The slope of a vertical line, which has zero run and so cannot be calculated.
  • Inconsistent system: A system with no solution, which happens when the two lines are parallel.

Check yourself: How many solutions does the system y=3x−2y = 3x - 2 and y=3x+5y = 3x + 5 have? (Answer: None. The slopes are equal and the intercepts are different, so the lines are parallel and never meet.)

What the lines look likeSlopes and intercepts for nonvertical linesNumber of solutions
Cross at one pointDifferent slopesOne
ParallelSame slope, different interceptsNone
Same lineSame slope, same interceptInfinitely many
2.3

Modeling with Linear Functions

A linear model turns a word problem into y=mx+by = mx + b. Start by naming the independent variable (the input, like time or miles) and the dependent variable (the output, like cost). The slope is the rate, usually a "per" quantity such as dollars per mile. The intercept is the starting amount when the input is 0.

Interpret every number with units. In C=3x+5C = 3x + 5, the slope means each mile adds 3 dollars, and the intercept means the fare starts at 5 dollars before you go anywhere.

Pick a domain that fits the situation. Miles can't be negative, so x≥0x \geq 0, and there may be an upper limit too. The range is the set of outputs produced by the allowed inputs. For a closed, bounded interval, you can use its endpoints to find the range of a linear model.

Predictions within the range of your known data are interpolation, but they can still be unreliable if the model fits poorly or the data has large gaps. Predictions outside that range are extrapolation and can fail, because real rates rarely stay constant forever.

Worked example. A taxi ride of 2 miles costs 11 dollars and a ride of 5 miles costs 20 dollars. The slope is m=20−115−2=93=3m = \frac{20 - 11}{5 - 2} = \frac{9}{3} = 3 dollars per mile. Substitute (2,11)(2, 11) into y=3x+by = 3x + b to get 11=6+b11 = 6 + b, so b=5b = 5. The model is C=3x+5C = 3x + 5. With 35 dollars, solve 3x+5=353x + 5 = 35 to get 3x=303x = 30, so you can ride 10 miles.

  • Independent variable: The input quantity in a model, graphed on the x-axis.
  • Dependent variable: The output quantity that responds to the input, graphed on the y-axis.
  • Extrapolation: Using a model to predict values outside the range of the data it was built from.

Check yourself: A gym charges a 40-dollar sign-up fee plus 25 dollars per month. What linear model gives the total cost after xx months, and what does the slope mean? (Answer: C=25x+40C = 25x + 40. The slope 25 means each additional month adds 25 dollars.)

2.4

Fitting Linear Models to Data

Real data rarely falls on a perfect line, so you start with a scatter plot. Look for direction (positive, negative, or none), strength (tight or spread out), form (straight or curved), and outliers. If the points show a clear curve, consider a nonlinear model.

The line of best fit, also called the least squares regression line, is the line that makes the sum of the squared residuals as small as possible. A calculator finds it for you. Your job is to interpret the slope and intercept in context, using phrases like "predicted" or "on average."

A residual is actual minus predicted, y−y^y - \hat{y}. A positive residual means the point is above the line. Random scatter in a residual plot supports a linear model, but it does not guarantee accurate predictions. A curved pattern suggests that a linear model misses part of the relationship.

The correlation coefficient rr runs from −1-1 to 11 and measures how strong the linear pattern is. Values near ±1\pm 1 are strong. Its square, r2r^2, tells you the fraction of the variation in yy that the line explains.

Worked example. A regression based on study times from 0 to 8 hours gives the predicted test score y^=5.2x+48\hat{y} = 5.2x + 48. Someone who studied 4 hours scored 75. The prediction is 5.2(4)+48=68.85.2(4) + 48 = 68.8, so the residual is 75−68.8=6.275 - 68.8 = 6.2. That score is 6.2 points above the line. Predicting 12 hours gives 110.4, which is impossible on a 100-point test, showing why extrapolation is risky.

  • Residual: The actual value minus the predicted value, y−y^y - \hat{y}, showing how far a point is from the line.
  • Correlation coefficient: The number rr between −1-1 and 11 that measures the direction and strength of a linear relationship.
  • Coefficient of determination: The value r2r^2, the fraction of the variation in yy that the linear model accounts for.

Check yourself: A line of best fit predicts 52 for a data point whose actual value is 47. What is the residual, and is the point above or below the line? (Answer: 47−52=−547 - 52 = -5. It is negative, so the point is 5 units below the line.)

Key terms

TermDefinition
Linear functionA function of the form $f(x) = mx + b$ that has a constant rate of change and a straight-line graph.
SlopeThe rate of change of a nonvertical line, calculated as $\frac{y_2 - y_1}{x_2 - x_1}$ using two points with different x-values. A vertical line has undefined slope.
y-interceptThe value of $y$ when $x = 0$. The corresponding point $(0, y)$ is where the line intersects the y-axis.
Slope-intercept formThe equation $y = mx + b$, where $m$ is the slope and $b$ is the y-intercept.
Parallel linesDistinct lines in the same plane that never intersect. Nonvertical parallel lines have equal slopes; vertical lines are also parallel to each other.
Perpendicular linesLines that meet at a right angle. If both slopes are defined, their product is $-1$. A vertical line and a horizontal line are also perpendicular.
System of linear equationsTwo or more linear equations solved together to find the point or points they share.
Line of best fitThe line that minimizes the sum of squared residuals for a set of data points.
ResidualThe difference between an actual data value and the value the model predicts.
InterpolationUsing a model to predict values within the range of the data it was built from.

Mistakes to avoid in Linear Functions

Subtracting the coordinates in a different order on top and bottom

Computing y2−y1x1−x2\frac{y_2 - y_1}{x_1 - x_2} flips the sign of your slope. Whichever point you start with in the numerator, start with the same point in the denominator. Labeling the points as (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) before plugging in prevents this.

Forgetting the negative in a negative reciprocal

Flipping 22 to 12\frac{1}{2} gives a line that is not perpendicular. You need to flip the fraction and change the sign, so the perpendicular slope is −12-\frac{1}{2}. Check by multiplying the slopes, which should give −1-1.

Mixing up zero slope and undefined slope

A horizontal line like y=3y = 3 has slope 0 because there is no rise. A vertical line like x=3x = 3 has undefined slope because there is no run, and dividing by 0 is impossible. Picture which one you could walk along without climbing.

Treating a regression prediction as a sure thing far outside the data

A model only describes the trend it was built from. Predicting well beyond the data can produce impossible results, like a test score over 100. A strong correlation also doesn't prove that the input causes the output, so describe the relationship as an association.

Study unit 2 other ways

Ready to review Unit 2?Start with the notes, check the topic cards, and use the practice or resource links when they are available for this course.