Linear Equations & Functions

Study Sheet

Linear Equations & Functions

Everything you need: the coordinate plane, functions, slope, and the equations of lines

The Coordinate Plane

Concept
Axes, Origin, and Ordered Pairs

The coordinate plane is formed by two number lines that cross at the origin (0,0)(0,0).

  • [leftmargin=*]
  • The horizontal line is the xx-axis; the vertical line is the yy-axis.
  • Every point is named by an ordered pair (x,y)(x,y). The first number xx tells how far right (++) or left (-) you go; the second number yy tells how far up (++) or down (-).
  • The axes split the plane into four quadrants, numbered counterclockwise: @@BLOCK0@@
Example
Plotting and naming points

Plot A(3,2)A(3,2): from the origin go right 33, then up 22. This lands in Quadrant I.

Plot B(4,1)B(-4,1): go left 44, then up 11. This is in Quadrant II.

Name the point that is left 22 and down 55: that is (2,5)(-2,-5), which is in Quadrant III.

Tip

Order matters! (3,2)(3,2) and (2,3)(2,3) are different points. Always read (x,y)(x,y): run first (left/right), then rise (up/down). Points on an axis (like (0,4)(0,4) or (3,0)(-3,0)) belong to no quadrant.

Functions and Function Notation

Concept
What Is a Function?

A function is a rule that assigns to each input exactly one output. Think of it as a machine: put in xx, get out one value.

We write f(x)f(x) (read “ff of xx”) for the output when the input is xx. Here xx is the input and f(x)f(x) is the output. The letters ff, gg, hh are just names for the rule.

Example
Evaluating a function

Let f(x)=2x+5f(x)=2x+5. To evaluate, substitute the input in place of xx.

f(3)=2(3)+5=6+5=11,f(0)=2(0)+5=0+5=5,f(4)=2(4)+5=8+5=3.\begin{aligned} f(3) &= 2(3)+5 = 6+5 = 11,\\ f(0) &= 2(0)+5 = 0+5 = 5,\\ f(-4) &= 2(-4)+5 = -8+5 = -3. \end{aligned}

So the ordered pairs (3,11)(3,11), (0,5)(0,5), and (4,3)(-4,-3) all lie on the graph of ff.

Tip

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.”

Domain and Range

Concept
Inputs and Outputs

The domain is the set of all allowed inputs (the xx-values). The range is the set of all resulting outputs (the yy-values).

Example
Domain and range from a set of points

For the function {(1,4),(2,7),(5,7),(6,3)}\{(1,4),(2,7),(5,7),(6,-3)\}:

  • [leftmargin=*]
  • Domain (inputs): {1,2,5,6}\{1,2,5,6\}.
  • Range (outputs): {4,7,3}\{4,7,-3\}. We list 77 only once even though it appears twice.

This is a function because each input has exactly one output.

Tip

For a line like y=2x+1y=2x+1 with no restrictions, the domain is all real numbers and so is the range. A horizontal line y=3y=3 has range {3}\{3\} only.

Rate of Change and Slope

Concept
Slope = Rise over Run
xy

Slope mm measures steepness: how much yy changes for each unit that xx increases. Given two points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2),

m=riserun=y2y1x2x1.m=\frac{\text{rise}}{\text{run}}=\frac{y_2-y_1}{x_2-x_1}.

Slope is the rate of change of the line.

Slope is rise over run.

Example
Slope from two points

Find the slope through (1,2)(1,2) and (4,11)(4,11).

m=11241=93=3.m=\frac{11-2}{4-1}=\frac{9}{3}=3.

Each time xx goes up by 11, yy goes up by 33.

Example
A negative slope

Find the slope through (2,5)(-2,5) and (2,3)(2,-3).

m=352(2)=84=2.m=\frac{-3-5}{2-(-2)}=\frac{-8}{4}=-2.

The line falls: as xx increases by 11, yy decreases by 22.

Tip

Reading the sign of slope:

  • [leftmargin=*]
  • Positive slope \to line goes up left-to-right.
  • Negative slope \to line goes down left-to-right.
  • Zero slope \to horizontal line (no rise): m=0m=0.
  • Undefined slope \to vertical line (run is 00, and we can't divide by 00).

Subtract the yy's and the xx's in the same order. Keep the points in the same order top and bottom!

Slope-Intercept Form: y=mx+by=mx+b

Concept
Read the Slope and Intercept Directly
xy

In slope-intercept form

y=mx+b,y=mx+b,

the number mm is the slope and bb is the yy-intercept (the yy-value where the line crosses the yy-axis, at the point (0,b)(0,b)).

Slope is rise over run.

Example
Identify and graph

For y=34x2y=\tfrac{3}{4}x-2: the slope is m=34m=\tfrac{3}{4} and the yy-intercept is b=2b=-2, so the line passes through (0,2)(0,-2).

To graph: start at (0,2)(0,-2). Use the slope 34\tfrac{3}{4} (rise 33, run 44): move right 44 and up 33 to reach (4,1)(4,1). Connect the points.

Example
Finding bb when you know slope and a point

A line has slope m=5m=5 and passes through (2,3)(2,3). Substitute into y=mx+by=mx+b:

3=5(2)+b    3=10+b    b=7.3=5(2)+b \;\Rightarrow\; 3=10+b \;\Rightarrow\; b=-7.

The equation is y=5x7y=5x-7.

Tip

A whole-number slope like 44 is really 41\tfrac{4}{1}: rise 44, run 11. To go the other direction on a line, you may move left and down instead.

Point-Slope Form: yy1=m(xx1)y-y_1=m(x-x_1)

Concept
Build a Line from a Slope and Any Point
xy

If a line has slope mm and passes through (x1,y1)(x_1,y_1), its equation is

yy1=m(xx1).y-y_1=m(x-x_1).

This is the fastest way to write a line when you know a point and the slope.

Slope is rise over run.

Example
Point-slope, then simplify

Slope m=2m=2 through (3,4)(3,4):

y4=2(x3).y-4=2(x-3).

Distribute and solve for yy to get slope-intercept form:

y4=2x6    y=2x2.y-4=2x-6 \;\Rightarrow\; y=2x-2.
Tip

Watch the signs: with a point like (1,5)(-1,5), the form is y5=m(x(1))=m(x+1)y-5=m(x-(-1))=m(x+1). Subtracting a negative becomes adding.

Standard Form: Ax+By=CAx+By=C

Concept
Standard Form and Intercepts
xy

Standard form is Ax+By=CAx+By=C, where AA, BB, CC are integers. It is especially handy for finding both intercepts:

  • [leftmargin=*]
  • xx-intercept: set y=0y=0 and solve for xx. Point (x,0)(x,0).
  • yy-intercept: set x=0x=0 and solve for yy. Point (0,y)(0,y).

Slope is rise over run.

Example
Finding both intercepts

For 3x+2y=123x+2y=12:

x-intercept: 3x+2(0)=123x=12x=4, point (4,0).y-intercept: 3(0)+2y=122y=12y=6, point (0,6).\begin{aligned} x\text{-intercept: } & 3x+2(0)=12 \Rightarrow 3x=12 \Rightarrow x=4, \text{ point }(4,0).\\ y\text{-intercept: } & 3(0)+2y=12 \Rightarrow 2y=12 \Rightarrow y=6, \text{ point }(0,6). \end{aligned}

Plot (4,0)(4,0) and (0,6)(0,6) and draw the line through them.

Tip

To convert y=mx+by=mx+b to standard form, move the xx-term to the left and clear fractions. Example: y=23x+13y=2x+32x+3y=32x3y=3y=\tfrac{2}{3}x+1 \Rightarrow 3y=2x+3 \Rightarrow -2x+3y=3 \Rightarrow 2x-3y=-3.

Writing the Equation of a Line

Concept
Three Common Situations
  • [leftmargin=*]
  • Slope ++ point: plug into point-slope yy1=m(xx1)y-y_1=m(x-x_1), then simplify.
  • Two points: first find m=y2y1x2x1m=\dfrac{y_2-y_1}{x_2-x_1}, then use point-slope with either point.
  • From a graph: read bb (where it crosses the yy-axis) and count rise/run for mm; write y=mx+by=mx+b.
Example
Line through two points

Write the line through (1,3)(1,3) and (5,11)(5,11).

m=11351=84=2.m=\frac{11-3}{5-1}=\frac{8}{4}=2.

Use point-slope with (1,3)(1,3):   y3=2(x1)y3=2x2y=2x+1.\;y-3=2(x-1)\Rightarrow y-3=2x-2 \Rightarrow y=2x+1.

Check with the other point: 2(5)+1=112(5)+1=11. ✓

Tip

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.

Parallel and Perpendicular Lines

Concept
Comparing Slopes
xy
  • [leftmargin=*]
  • Parallel lines never meet: they have equal slopes, m1=m2m_1=m_2.
  • Perpendicular lines meet at a right angle: their slopes are negative reciprocals, m1m2=1m_1\cdot m_2=-1, so m2=1m1m_2=-\dfrac{1}{m_1}.

Slope is rise over run.

Example
Parallel and perpendicular slopes

A line has slope m=23m=\tfrac{2}{3}.

  • [leftmargin=*]
  • Any parallel line also has slope 23\tfrac{2}{3}.
  • A perpendicular line has slope 32-\tfrac{3}{2} (flip and change the sign).

Write the line through (6,1)(6,1) perpendicular to y=23x+4y=\tfrac{2}{3}x+4: use m=32m=-\tfrac{3}{2}.

y1=32(x6)y1=32x+9y=32x+10.y-1=-\tfrac{3}{2}(x-6)\Rightarrow y-1=-\tfrac{3}{2}x+9 \Rightarrow y=-\tfrac{3}{2}x+10.
Tip

Negative reciprocal means do two things: (1) flip the fraction, (2) switch the sign. So 3=31133=\tfrac{3}{1}\to -\tfrac{1}{3}, and 4554-\tfrac{4}{5}\to \tfrac{5}{4}.

Horizontal and Vertical Lines

Concept
Special Lines
  • [leftmargin=*]
  • A horizontal line has the form y=cy=c. Every point has the same yy-value. Slope =0=0.
  • A vertical line has the form x=cx=c. Every point has the same xx-value. Slope is undefined. (A vertical line is not a function.)
Example
Reading and writing special lines

The horizontal line through (2,3)(2,-3) is y=3y=-3 (the yy-value stays 3-3).

The vertical line through (2,3)(2,-3) is x=2x=2 (the xx-value stays 22).

The line y=5y=5 passes through (0,5)(0,5), (1,5)(1,5), (4,5)(-4,5), all with height 55.

Tip

Mix-up alert: y=cy=c is horizontal (flat) and x=cx=c is vertical (straight up-and-down). Say it aloud: “yy equals a number is a floor; xx equals a number is a wall.”

Going Deeper: Advanced Linear Functions

Concept
Moving Freely Among the Three Forms
xy

Every non-vertical line can be written in three equivalent ways. Fluency means switching to whichever form a problem rewards.

  • [leftmargin=*]
  • Slope-intercept y=mx+by=mx+b --- best for graphing and reading slope/intercept.
  • Point-slope yy1=m(xx1)y-y_1=m(x-x_1) --- best when you know a point and the slope.
  • Standard Ax+By=CAx+By=C (integers, A0A\ge 0) --- best for intercepts and for vertical lines x=cx=c.

Translation rules: to leave point-slope, distribute and solve for yy; to reach standard form, collect xx and yy on one side and clear denominators; to leave standard form, solve for yy so that m=ABm=-\tfrac{A}{B} and b=CBb=\tfrac{C}{B}.

Slope is rise over run.

Example
One line, all three forms

Write the line through (2,1)(-2,1) and (4,4)(4,4) in every form.

m=414(2)=36=12,point-slope:y1=12(x(2))=12(x+2),slope-intercept:y=12x+1+1=12x+2,standard form:2y=x+4    x+2y=4    x2y=4.\begin{aligned} m &= \frac{4-1}{4-(-2)} = \frac{3}{6} = \tfrac{1}{2}, \\ \text{point-slope:}\quad y-1 &= \tfrac{1}{2}\bigl(x-(-2)\bigr) = \tfrac{1}{2}(x+2), \\ \text{slope-intercept:}\quad y &= \tfrac{1}{2}x + 1 + 1 = \tfrac{1}{2}x + 2, \\ \text{standard form:}\quad 2y &= x + 4 \;\Rightarrow\; -x + 2y = 4 \;\Rightarrow\; x - 2y = -4. \end{aligned}

Check: for (4,4)(4,4),   42(4)=48=4\;4 - 2(4) = 4-8 = -4. ✓ And m=AB=12=12m=-\tfrac{A}{B}=-\tfrac{1}{-2}=\tfrac{1}{2} agrees.

Concept
Distance from a Point to a Line

The distance from a point (x0,y0)(x_0,y_0) to the line Ax+By+C=0Ax+By+C=0 is the length of the perpendicular segment from the point to the line:

d=Ax0+By0+CA2+B2.d=\frac{\lvert Ax_0+By_0+C\rvert}{\sqrt{A^2+B^2}}.

Move everything to one side first so the line reads Ax+By+C=0Ax+By+C=0. The absolute value keeps the distance positive; the denominator A2+B2\sqrt{A^2+B^2} scales for the line's slant.

Example
A perpendicular distance

Find the distance from (1,1)(1,1) to the line 3x+4y=123x+4y=12.

Rewrite as 3x+4y12=03x+4y-12=0, so A=3A=3, B=4B=4, C=12C=-12. Then

d=3(1)+4(1)1232+42=3+41225=55=55=1.d=\frac{\lvert 3(1)+4(1)-12\rvert}{\sqrt{3^2+4^2}} =\frac{\lvert 3+4-12\rvert}{\sqrt{25}} =\frac{\lvert -5\rvert}{5}=\frac{5}{5}=1.

The point sits exactly 11 unit from the line.

Concept
Collinearity and the Area of a Triangle

Three points A(x1,y1)A(x_1,y_1), B(x2,y2)B(x_2,y_2), C(x3,y3)C(x_3,y_3) form a triangle whose area is given by the shoelace formula

Area=12x1(y2y3)+x2(y3y1)+x3(y1y2).\text{Area}=\tfrac{1}{2}\bigl\lvert x_1(y_2-y_3)+x_2(y_3-y_1)+x_3(y_1-y_2)\bigr\rvert.

Collinearity test: the three points lie on one line exactly when this area is 00 (a “flat” triangle). Equivalently, the slope ABAB equals the slope BCBC.

Example
Area, then a collinearity check

(a) Area of the triangle with vertices A(1,1)A(1,1), B(5,2)B(5,2), C(3,6)C(3,6):

Area=121(26)+5(61)+3(12)=124+253=12(18)=9.\begin{aligned} \text{Area} &= \tfrac{1}{2}\bigl\lvert 1(2-6)+5(6-1)+3(1-2)\bigr\rvert \\ &= \tfrac{1}{2}\bigl\lvert -4+25-3\bigr\rvert = \tfrac{1}{2}(18)=9. \end{aligned}

(b) Are (1,2)(1,2), (3,6)(3,6), (5,10)(5,10) collinear?

121(610)+3(102)+5(26)=124+2420=0.\tfrac{1}{2}\bigl\lvert 1(6-10)+3(10-2)+5(2-6)\bigr\rvert =\tfrac{1}{2}\lvert -4+24-20\rvert = 0.

Area 00, so yes --- they lie on the single line y=2xy=2x (each slope equals 22).

Concept
Why the Slope Rules Are True (Two Short Proofs)

Parallel lines have equal slopes. Take y=m1x+b1y=m_1x+b_1 and y=m2x+b2y=m_2x+b_2. They intersect where m1x+b1=m2x+b2m_1x+b_1=m_2x+b_2, i.e. (m1m2)x=b2b1(m_1-m_2)x=b_2-b_1. If m1m2m_1\ne m_2 this has exactly one solution, so the lines cross. Parallel lines never cross, forcing m1=m2m_1=m_2.

Perpendicular lines have negative-reciprocal slopes. A line of slope mm points along the direction vector (1,m)(1,m). Rotating a direction by 9090^\circ sends (1,m)(m,1)(1,m)\mapsto(-m,1), whose slope is 1m=1m\dfrac{1}{-m}=-\dfrac{1}{m}. Hence a perpendicular line has slope 1m-\tfrac{1}{m}, and m(1m)=1m\cdot\left(-\tfrac{1}{m}\right)=-1.

Tip

Vertical/horizontal edge case. The negative-reciprocal rule assumes m0m\ne 0. A horizontal line (m=0m=0) is perpendicular to a vertical line (undefined slope); their “product” rule breaks down, so handle this pair by geometry, not algebra.

Concept
Piecewise and Step Functions

A piecewise function uses different rules on different parts of the domain. Each rule is paired with the interval where it applies:

f(x)={x+1,0x1,x+3,1<x3.f(x)= \begin{cases} x+1, & 0\le x\le 1,\\ -x+3, & 1< x\le 3. \end{cases}

At the “seam” x=1x=1 both pieces give 22, 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).

Example
Graphing a two-piece function

The function above, drawn on a grid: a rising segment then a falling segment, meeting at (1,2)(1,2).

Evaluate by choosing the rule for the input: f(0.5)=0.5+1=1.5f(0.5)=0.5+1=1.5 (first piece), while f(2)=2+3=1f(2)=-2+3=1 (second piece).

Concept
Line of Best Fit (Linear Regression)

Real data rarely lands perfectly on one line. A line of best fit (or trend line) is the straight line y=mx+by=mx+b that passes as close as possible to all the points at once. The standard method, least squares, chooses mm and bb to make the total of the squared vertical gaps (the residuals) between the data and the line as small as possible.

  • [leftmargin=*]
  • The slope mm estimates the average rate of change in the data.
  • You can predict an unseen value by plugging its xx into y=mx+by=mx+b.
  • A fit is trustworthy only when the points genuinely cluster near a line; a strong straight-line pattern is called a strong (linear) correlation.
Tip

Correlation is not causation. A best-fit line can describe a pattern and forecast within the observed range, but it does not prove that xx causes yy, and predictions far outside the data (extrapolation) are unreliable.

Formulas, Proofs & Tips

Tip
Slope of a line
m=y2y1x2x1m = \frac{y_2-y_1}{x_2-x_1}

What it means. Rise over run: how much yy changes for each 11 that xx increases.

Example. Through (1,2)(1,2) and (4,8)(4,8): m=8241=2m=\dfrac{8-2}{4-1}=2.

Why it works. Between two points on a line the vertical change is y2y1y_2-y_1 and the horizontal change is x2x1x_2-x_1. 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.

Tip
Slope-intercept and point-slope form
y=mx+bandyy1=m(xx1)y = mx + b \qquad\text{and}\qquad y - y_1 = m(x-x_1)

What it means. mm is the slope and bb is where the line crosses the yy-axis. Point-slope builds a line from a slope and any one point.

Example. Slope 33 through (2,1)(2,1): y1=3(x2)y-1=3(x-2), i.e. y=3x5y=3x-5.

Why it works. Start from the slope formula with a general point (x,y)(x,y): m=yy1xx1m=\tfrac{y-y_1}{x-x_1}. Multiplying up gives point-slope. Choosing the point (0,b)(0,b) gives yb=mxy-b=mx, i.e. y=mx+by=mx+b.

Tip. Given a point and a slope, use point-slope — no solving for bb needed. Rearrange at the end only if the answer must be in y=mx+by=mx+b form.

Tip
Distance and midpoint
d=(x2x1)2+(y2y1)2,M=(x1+x22, y1+y22)d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}, \qquad M=\left(\frac{x_1+x_2}{2},\ \frac{y_1+y_2}{2}\right)

What it means. The straight-line distance between two points, and the point exactly halfway between them.

Example. (1,2)(1,2) to (4,6)(4,6): d=32+42=5d=\sqrt{3^2+4^2}=5, midpoint =(2.5,4)=(2.5,\,4).

Why it works. The two points are opposite corners of a right triangle with legs x2x1|x_2-x_1| and y2y1|y_2-y_1|; 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.