Allday Education

Equations of Linear Functions

Given a point and a slope, you can write the exact equation of a line. Point-slope form does it in one step, and a little algebra converts it to the familiar y=mx+by = mx + b.

This is the workhorse skill behind modeling with lines: a rate of change (slope) plus one known value (a point) pins down the whole relationship.

Point-slope to slope-intercept

Point-slope form is yy1=m(xx1)y - y_1 = m(x - x_1), where mm is the slope and (x1,y1)(x_1, y_1) is the known point. Plug those in, then distribute and solve for yy to reach slope-intercept form.

For slope 12\dfrac{1}{2} through (4,1)(4, -1): y+1=12(x4)y + 1 = \dfrac{1}{2}(x - 4), which simplifies to y=12x3y = \dfrac{1}{2}x - 3.

Parallel and perpendicular slopes

Parallel lines have equal slopes. Perpendicular lines have slopes that are negative reciprocals — flip and change the sign, so 22 pairs with 12-\dfrac{1}{2}.

To write a parallel or perpendicular line through a point, choose the right slope by this rule, then use point-slope form as usual.

Below, a line of slope 22 (blue) and a line of slope 12-\dfrac{1}{2} (red) cross at a right angle — negative-reciprocal slopes always do.

-4-3-2-11234-4-3-2-11234xy

Worked examples

Example 1: from a point and slope

Write the slope-intercept equation of the line through (4,1)(4, -1) with slope 12\dfrac{1}{2}.

Point-slope formy(1)=12(x4)y - (-1) = \tfrac{1}{2}(x - 4)
Distributey+1=12x2y + 1 = \tfrac{1}{2}x - 2
Solve for yy=12x3y = \tfrac{1}{2}x - 3

Answer: y=12x3y = \dfrac{1}{2}x - 3

Example 2: a perpendicular slope

What slope is perpendicular to a line with slope 33?

Negative reciprocal13-\dfrac{1}{3}

Answer: 13-\dfrac{1}{3}

Try one yourself

Common questions

What is point-slope form good for?

Writing a line's equation directly from any one point and the slope, without first finding the yy-intercept. Convert to y=mx+by = mx + b afterward if needed.

How do perpendicular slopes relate?

They are negative reciprocals: flip the fraction and change the sign. A slope of 23\tfrac{2}{3} is perpendicular to 32-\tfrac{3}{2}.

Do parallel lines ever share a point?

No — distinct parallel lines never intersect because they have the same slope but different intercepts.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1