Skip to main content
VirginiaMathsSyllabus dot point

How do you write the equation of a linear function from a graph, a slope and a point, or two points, and what are the relationships for parallel and perpendicular lines?

Write equations of linear functions in slope-intercept and point-slope form given a graph, a slope and a point, or two points, and apply the slope relationships for parallel and perpendicular lines (A.F.4).

A Virginia SOL Algebra I answer on A.F.4: writing linear equations in slope-intercept and point-slope form, building from a slope and a point or two points, and parallel and perpendicular slope relationships.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The three forms of a line
  3. Writing from a slope and a point
  4. Writing from two points
  5. Parallel and perpendicular slopes
  6. Why perpendicular slopes are opposite reciprocals
  7. How the SOL examines this topic
  8. Try this

What this topic is asking

A.F.4 asks you to write the equation of a linear function from a graph, a slope and a point, or two points, and to apply the parallel and perpendicular slope relationships. On the Virginia Algebra I SOL these are Functions items: write a line in slope-intercept or point-slope form, or find a parallel or perpendicular slope. They appear as fill-in-the-blank, multiple choice, and coordinate-plane items.

The three forms of a line

The Algebra I formula sheet gives three forms, each useful for a different job:

  • Slope-intercept y=mx+by = mx + b: best for reading the slope and yy-intercept, and for graphing.
  • Point-slope yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1): best for building a line from a slope and a point.
  • Standard Ax+By=CAx + By = C: a tidy integer form, useful for intercepts.

Writing from a slope and a point

If the point is the yy-intercept (on the yy-axis, x=0x = 0), read bb directly. Otherwise, use point-slope or substitute the point into y=mx+by = mx + b and solve for bb.

Writing from two points

Find the slope first with m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}, then use either point in point-slope form (or solve for bb). For (1,2)(1, 2) and (3,8)(3, 8): m=8βˆ’23βˆ’1=3m = \frac{8 - 2}{3 - 1} = 3, then yβˆ’2=3(xβˆ’1)y - 2 = 3(x - 1), giving y=3xβˆ’1y = 3x - 1.

Parallel and perpendicular slopes

The slope encodes a line's direction, so the relationships between lines are relationships between slopes:

  • Parallel lines never meet, so they have the same slope (and different yy-intercepts). A line parallel to y=23x+1y = \frac{2}{3}x + 1 has slope 23\frac{2}{3}.
  • Perpendicular lines meet at a right angle, and their slopes are opposite reciprocals: flip the fraction and change the sign. A line perpendicular to slope 23\frac{2}{3} has slope βˆ’32-\frac{3}{2}. The product of perpendicular slopes is βˆ’1-1.

Why perpendicular slopes are opposite reciprocals

The opposite-reciprocal rule is not arbitrary, it comes from rotating a line by a right angle. A slope of ab\frac{a}{b} means "go bb across and aa up." Rotating that direction 9090 degrees turns "across" into "up" and "up" into "across," and one of them reverses direction, so the new step is "go aa across and bb down" (or up), a slope of βˆ’ba-\frac{b}{a}. Flipping ab\frac{a}{b} to ba\frac{b}{a} is the reciprocal, and the sign change is the opposite, together the opposite reciprocal. The product test abβ‹…(βˆ’ba)=βˆ’1\frac{a}{b} \cdot \left(-\frac{b}{a}\right) = -1 falls straight out of this. Understanding the rotation, rather than memorizing the phrase, helps you avoid the frequent error of flipping without changing the sign (which gives a steeper parallel-ish line, not a perpendicular one).

How the SOL examines this topic

  • Fill-in-the-blank. Write a line in slope-intercept form from given information and type it.
  • Multiple choice. Find a parallel or perpendicular slope, or pick the correct equation.
  • Coordinate-plane items. Graph a line from an equation, or build the equation of a drawn line.

Try this

Q1. Write the line with slope βˆ’2-2 through (0,5)(0, 5). [1 point]

  • Cue. b=5b = 5, so y=βˆ’2x+5y = -2x + 5.

Q2. What slope is parallel to y=4xβˆ’1y = 4x - 1? [1 point]

  • Cue. The same slope, 44.

Exam-style practice questions

Practice questions written in the style of VDOE exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

SOL (style)2 marksFill in the blank. Write the slope-intercept equation of the line with slope 44 that passes through (0,βˆ’3)(0, -3).
Show worked answer β†’

The equation is y=4xβˆ’3y = 4x - 3.

Slope-intercept form is y=mx+by = mx + b. The slope is m=4m = 4. Because the point (0,βˆ’3)(0, -3) has x=0x = 0, it is the yy-intercept, so b=βˆ’3b = -3. Substitute: y=4xβˆ’3y = 4x - 3. When the given point is on the yy-axis, bb is read directly; otherwise you would solve for bb using the point.

SOL (style)1 marksMultiple choice. What is the slope of a line perpendicular to y=12x+6y = \frac{1}{2}x + 6? (A) βˆ’2-2 (B) 22 (C) 12\frac{1}{2} (D) βˆ’12-\frac{1}{2}
Show worked answer β†’

The correct answer is (A).

Perpendicular slopes are opposite reciprocals: flip the fraction and change the sign. The slope 12\frac{1}{2} flips to 22 and negates to βˆ’2-2. Their product is 12β‹…(βˆ’2)=βˆ’1\frac{1}{2} \cdot (-2) = -1, the test for perpendicularity. A parallel line would keep the same slope, 12\frac{1}{2}.

Related dot points

Sources & how we know this