Learn on PengiOpenstax Intermediate Algebra 2EChapter 3: Graphs and Functions

Lesson 3.3: Find the Equation of a Line

New Concept This lesson covers how to determine a line's equation from various starting points: using slope and a point, two points, or its relationship (parallel/perpendicular) to another line. This skill is crucial for modeling real world linear relationships.

Section 1

πŸ“˜ Find the Equation of a Line

New Concept

This lesson covers how to determine a line's equation from various starting points: using slope and a point, two points, or its relationship (parallel/perpendicular) to another line. This skill is crucial for modeling real-world linear relationships.

What’s next

You've got the big picture. Now, you'll work through interactive examples and practice cards to master creating linear equations for any scenario.

Section 2

Equation from slope and y-intercept

Property

To find the equation of a line when given the slope and yy-intercept, use the slope-intercept form of a linear equation, y=mx+by = mx + b. Substitute the given slope for mm and the yy-coordinate of the yy-intercept for bb.

Examples

  • Find the equation of a line with slope m=5m = 5 and yy-intercept (0,2)(0, 2). We substitute the values into y=mx+by = mx + b to get y=5x+2y = 5x + 2.
  • Find the equation of a line with slope m=βˆ’12m = -\frac{1}{2} and yy-intercept (0,βˆ’3)(0, -3). We substitute the values into y=mx+by = mx + b to get y=βˆ’12xβˆ’3y = -\frac{1}{2}x - 3.
  • Find the equation of a line with slope m=0m = 0 and yy-intercept (0,7)(0, 7). We substitute the values into y=mx+by = mx + b to get y=0x+7y = 0x + 7, which simplifies to y=7y = 7.

Explanation

This is the most direct way to write a line's equation. If you know its steepness (slope) and where it crosses the vertical axis (y-intercept), you can plug those two values directly into the slope-intercept formula.

Section 3

Point-slope form

Property

The point-slope form of an equation of a line with slope mm and containing the point (x1,y1)(x_1, y_1) is:

yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1)

Examples

  • For a line with slope m=4m=4 passing through (2,5)(2, 5), the point-slope form is yβˆ’5=4(xβˆ’2)y - 5 = 4(x - 2).
  • For a line with slope m=βˆ’3m=-3 passing through (βˆ’1,6)(-1, 6), the point-slope form is yβˆ’6=βˆ’3(xβˆ’(βˆ’1))y - 6 = -3(x - (-1)), which simplifies to yβˆ’6=βˆ’3(x+1)y - 6 = -3(x + 1).
  • For a line with slope m=25m=\frac{2}{5} passing through (10,βˆ’3)(10, -3), the point-slope form is yβˆ’(βˆ’3)=25(xβˆ’10)y - (-3) = \frac{2}{5}(x - 10), which simplifies to y+3=25(xβˆ’10)y + 3 = \frac{2}{5}(x - 10).

Explanation

Think of the point-slope form as a recipe for a line's equation. It's incredibly useful when you don't know the y-intercept. All you need is the slope and any single point that the line passes through.

Section 4

Equation from slope and a point

Property

To find an equation of a line given a point (x1,y1)(x_1, y_1) and the slope mm:

  1. Identify the slope mm and the point (x1,y1)(x_1, y_1).
  2. Substitute the values into the point-slope form, yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1).
  3. Write the equation in slope-intercept form, y=mx+by = mx + b, by solving for yy.

Examples

  • Find the equation of a line with slope m=2m=2 that contains (3,4)(3, 4). Using point-slope form: yβˆ’4=2(xβˆ’3)y - 4 = 2(x - 3). Distributing gives yβˆ’4=2xβˆ’6y - 4 = 2x - 6. The final equation is y=2xβˆ’2y = 2x - 2.
  • Find the equation of a line with slope m=βˆ’14m = -\frac{1}{4} that contains (8,βˆ’1)(8, -1). Using point-slope form: yβˆ’(βˆ’1)=βˆ’14(xβˆ’8)y - (-1) = -\frac{1}{4}(x - 8). This becomes y+1=βˆ’14x+2y + 1 = -\frac{1}{4}x + 2. The final equation is y=βˆ’14x+1y = -\frac{1}{4}x + 1.
  • Find the equation of a horizontal line containing (βˆ’4,9)(-4, 9). A horizontal line has slope m=0m=0. Using point-slope form: yβˆ’9=0(xβˆ’(βˆ’4))y - 9 = 0(x - (-4)). This simplifies to yβˆ’9=0y - 9 = 0, so the equation is y=9y = 9.

Explanation

This method uses the point-slope form as a starting point. After plugging in the slope and the point's coordinates, you simplify and rearrange the equation to get it into the familiar y=mx+by = mx + b format.

Section 5

Equation from two points

Property

To find the equation of a line given two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

  1. Find the slope using the formula m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}.
  2. Choose one of the given points.
  3. Substitute the slope and the chosen point into the point-slope form, yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1).
  4. Write the equation in slope-intercept form.

Examples

  • Find the equation of a line containing (1,2)(1, 2) and (3,8)(3, 8). First, find the slope: m=8βˆ’23βˆ’1=62=3m = \frac{8 - 2}{3 - 1} = \frac{6}{2} = 3. Using point (1,2)(1, 2): yβˆ’2=3(xβˆ’1)y - 2 = 3(x - 1), which simplifies to y=3xβˆ’1y = 3x - 1.
  • Find the equation of a line containing (βˆ’2,5)(-2, 5) and (4,2)(4, 2). The slope is m=2βˆ’54βˆ’(βˆ’2)=βˆ’36=βˆ’12m = \frac{2 - 5}{4 - (-2)} = \frac{-3}{6} = -\frac{1}{2}. Using point (4,2)(4, 2): yβˆ’2=βˆ’12(xβˆ’4)y - 2 = -\frac{1}{2}(x - 4), which simplifies to y=βˆ’12x+4y = -\frac{1}{2}x + 4.
  • Find the equation of a line containing (5,1)(5, 1) and (5,βˆ’4)(5, -4). The slope is m=βˆ’4βˆ’15βˆ’5=βˆ’50m = \frac{-4 - 1}{5 - 5} = \frac{-5}{0}, which is undefined. This is a vertical line. The equation is x=5x=5.

Explanation

If you have two points, you can first determine the line's slope. Then, pick either of the two points and use the 'slope and a point' method to find the final equation in slope-intercept form.

Section 6

Equation of a parallel line

Property

To find the equation of a line parallel to a given line that contains a given point:

  1. Find the slope of the given line.
  2. The slope of the parallel line is the same, mβˆ₯=mm_{\parallel} = m.
  3. Use the point-slope form with the given point and this slope to find the new equation.
  4. Write the equation in slope-intercept form.

Examples

  • Find a line parallel to y=3x+1y = 3x + 1 that contains the point (2,7)(2, 7). The slope is m=3m=3. Using point-slope form: yβˆ’7=3(xβˆ’2)y - 7 = 3(x - 2). This simplifies to y=3x+1y = 3x + 1.
  • Find a line parallel to 4x+2y=84x + 2y = 8 that contains (1,βˆ’1)(1, -1). First, solve for y: 2y=βˆ’4x+82y = -4x + 8, so y=βˆ’2x+4y = -2x + 4. The slope is m=βˆ’2m=-2. Using point-slope form: yβˆ’(βˆ’1)=βˆ’2(xβˆ’1)y - (-1) = -2(x - 1). This simplifies to y=βˆ’2x+1y = -2x + 1.
  • Find a line parallel to y=5y = 5 that contains (4,βˆ’2)(4, -2). The line y=5y=5 is horizontal with slope m=0m=0. The parallel line is also horizontal, so its equation is y=βˆ’2y = -2.

Explanation

Parallel lines run in the same direction, so they have the exact same slope. Find the slope of the first line, then use that same slope with the new point to create the equation for the second line.

Section 7

Equation of a perpendicular line

Property

To find the equation of a line perpendicular to a given line that contains a given point:

  1. Find the slope of the given line, mm.
  2. The slope of the perpendicular line is the negative reciprocal, mβŠ₯=βˆ’1mm_{\perp} = -\frac{1}{m}.
  3. Use the point-slope form with the given point and the perpendicular slope.
  4. Write the equation in slope-intercept form.

Examples

  • Find a line perpendicular to y=2xβˆ’5y = 2x - 5 that contains (4,1)(4, 1). The original slope is m=2m=2. The perpendicular slope is mβŠ₯=βˆ’12m_{\perp} = -\frac{1}{2}. Using point-slope form: yβˆ’1=βˆ’12(xβˆ’4)y - 1 = -\frac{1}{2}(x - 4). This simplifies to y=βˆ’12x+3y = -\frac{1}{2}x + 3.
  • Find a line perpendicular to y=βˆ’13x+2y = -\frac{1}{3}x + 2 that contains (1,5)(1, 5). The original slope is m=βˆ’13m=-\frac{1}{3}. The perpendicular slope is mβŠ₯=3m_{\perp} = 3. Using point-slope form: yβˆ’5=3(xβˆ’1)y - 5 = 3(x - 1). This simplifies to y=3x+2y = 3x + 2.
  • Find a line perpendicular to the vertical line x=4x = 4 that contains (1,βˆ’2)(1, -2). A line perpendicular to a vertical line is a horizontal line, which has a slope of m=0m=0. The equation is simply y=βˆ’2y = -2.

Explanation

Perpendicular lines intersect at a right angle. Their slopes are 'negative reciprocals' – you flip the fraction and change the sign. Use this new slope with the given point to find the perpendicular line's equation.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 3: Graphs and Functions

  1. Lesson 1

    Lesson 3.1: Graph Linear Equations in Two Variables

  2. Lesson 2

    Lesson 3.2: Slope of a Line

  3. Lesson 3Current

    Lesson 3.3: Find the Equation of a Line

  4. Lesson 4

    Lesson 3.4: Graph Linear Inequalities in Two Variables

  5. Lesson 5

    Lesson 3.5: Relations and Functions

  6. Lesson 6

    Lesson 3.6: Graphs of Functions

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

πŸ“˜ Find the Equation of a Line

New Concept

This lesson covers how to determine a line's equation from various starting points: using slope and a point, two points, or its relationship (parallel/perpendicular) to another line. This skill is crucial for modeling real-world linear relationships.

What’s next

You've got the big picture. Now, you'll work through interactive examples and practice cards to master creating linear equations for any scenario.

Section 2

Equation from slope and y-intercept

Property

To find the equation of a line when given the slope and yy-intercept, use the slope-intercept form of a linear equation, y=mx+by = mx + b. Substitute the given slope for mm and the yy-coordinate of the yy-intercept for bb.

Examples

  • Find the equation of a line with slope m=5m = 5 and yy-intercept (0,2)(0, 2). We substitute the values into y=mx+by = mx + b to get y=5x+2y = 5x + 2.
  • Find the equation of a line with slope m=βˆ’12m = -\frac{1}{2} and yy-intercept (0,βˆ’3)(0, -3). We substitute the values into y=mx+by = mx + b to get y=βˆ’12xβˆ’3y = -\frac{1}{2}x - 3.
  • Find the equation of a line with slope m=0m = 0 and yy-intercept (0,7)(0, 7). We substitute the values into y=mx+by = mx + b to get y=0x+7y = 0x + 7, which simplifies to y=7y = 7.

Explanation

This is the most direct way to write a line's equation. If you know its steepness (slope) and where it crosses the vertical axis (y-intercept), you can plug those two values directly into the slope-intercept formula.

Section 3

Point-slope form

Property

The point-slope form of an equation of a line with slope mm and containing the point (x1,y1)(x_1, y_1) is:

yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1)

Examples

  • For a line with slope m=4m=4 passing through (2,5)(2, 5), the point-slope form is yβˆ’5=4(xβˆ’2)y - 5 = 4(x - 2).
  • For a line with slope m=βˆ’3m=-3 passing through (βˆ’1,6)(-1, 6), the point-slope form is yβˆ’6=βˆ’3(xβˆ’(βˆ’1))y - 6 = -3(x - (-1)), which simplifies to yβˆ’6=βˆ’3(x+1)y - 6 = -3(x + 1).
  • For a line with slope m=25m=\frac{2}{5} passing through (10,βˆ’3)(10, -3), the point-slope form is yβˆ’(βˆ’3)=25(xβˆ’10)y - (-3) = \frac{2}{5}(x - 10), which simplifies to y+3=25(xβˆ’10)y + 3 = \frac{2}{5}(x - 10).

Explanation

Think of the point-slope form as a recipe for a line's equation. It's incredibly useful when you don't know the y-intercept. All you need is the slope and any single point that the line passes through.

Section 4

Equation from slope and a point

Property

To find an equation of a line given a point (x1,y1)(x_1, y_1) and the slope mm:

  1. Identify the slope mm and the point (x1,y1)(x_1, y_1).
  2. Substitute the values into the point-slope form, yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1).
  3. Write the equation in slope-intercept form, y=mx+by = mx + b, by solving for yy.

Examples

  • Find the equation of a line with slope m=2m=2 that contains (3,4)(3, 4). Using point-slope form: yβˆ’4=2(xβˆ’3)y - 4 = 2(x - 3). Distributing gives yβˆ’4=2xβˆ’6y - 4 = 2x - 6. The final equation is y=2xβˆ’2y = 2x - 2.
  • Find the equation of a line with slope m=βˆ’14m = -\frac{1}{4} that contains (8,βˆ’1)(8, -1). Using point-slope form: yβˆ’(βˆ’1)=βˆ’14(xβˆ’8)y - (-1) = -\frac{1}{4}(x - 8). This becomes y+1=βˆ’14x+2y + 1 = -\frac{1}{4}x + 2. The final equation is y=βˆ’14x+1y = -\frac{1}{4}x + 1.
  • Find the equation of a horizontal line containing (βˆ’4,9)(-4, 9). A horizontal line has slope m=0m=0. Using point-slope form: yβˆ’9=0(xβˆ’(βˆ’4))y - 9 = 0(x - (-4)). This simplifies to yβˆ’9=0y - 9 = 0, so the equation is y=9y = 9.

Explanation

This method uses the point-slope form as a starting point. After plugging in the slope and the point's coordinates, you simplify and rearrange the equation to get it into the familiar y=mx+by = mx + b format.

Section 5

Equation from two points

Property

To find the equation of a line given two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

  1. Find the slope using the formula m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}.
  2. Choose one of the given points.
  3. Substitute the slope and the chosen point into the point-slope form, yβˆ’y1=m(xβˆ’x1)y - y_1 = m(x - x_1).
  4. Write the equation in slope-intercept form.

Examples

  • Find the equation of a line containing (1,2)(1, 2) and (3,8)(3, 8). First, find the slope: m=8βˆ’23βˆ’1=62=3m = \frac{8 - 2}{3 - 1} = \frac{6}{2} = 3. Using point (1,2)(1, 2): yβˆ’2=3(xβˆ’1)y - 2 = 3(x - 1), which simplifies to y=3xβˆ’1y = 3x - 1.
  • Find the equation of a line containing (βˆ’2,5)(-2, 5) and (4,2)(4, 2). The slope is m=2βˆ’54βˆ’(βˆ’2)=βˆ’36=βˆ’12m = \frac{2 - 5}{4 - (-2)} = \frac{-3}{6} = -\frac{1}{2}. Using point (4,2)(4, 2): yβˆ’2=βˆ’12(xβˆ’4)y - 2 = -\frac{1}{2}(x - 4), which simplifies to y=βˆ’12x+4y = -\frac{1}{2}x + 4.
  • Find the equation of a line containing (5,1)(5, 1) and (5,βˆ’4)(5, -4). The slope is m=βˆ’4βˆ’15βˆ’5=βˆ’50m = \frac{-4 - 1}{5 - 5} = \frac{-5}{0}, which is undefined. This is a vertical line. The equation is x=5x=5.

Explanation

If you have two points, you can first determine the line's slope. Then, pick either of the two points and use the 'slope and a point' method to find the final equation in slope-intercept form.

Section 6

Equation of a parallel line

Property

To find the equation of a line parallel to a given line that contains a given point:

  1. Find the slope of the given line.
  2. The slope of the parallel line is the same, mβˆ₯=mm_{\parallel} = m.
  3. Use the point-slope form with the given point and this slope to find the new equation.
  4. Write the equation in slope-intercept form.

Examples

  • Find a line parallel to y=3x+1y = 3x + 1 that contains the point (2,7)(2, 7). The slope is m=3m=3. Using point-slope form: yβˆ’7=3(xβˆ’2)y - 7 = 3(x - 2). This simplifies to y=3x+1y = 3x + 1.
  • Find a line parallel to 4x+2y=84x + 2y = 8 that contains (1,βˆ’1)(1, -1). First, solve for y: 2y=βˆ’4x+82y = -4x + 8, so y=βˆ’2x+4y = -2x + 4. The slope is m=βˆ’2m=-2. Using point-slope form: yβˆ’(βˆ’1)=βˆ’2(xβˆ’1)y - (-1) = -2(x - 1). This simplifies to y=βˆ’2x+1y = -2x + 1.
  • Find a line parallel to y=5y = 5 that contains (4,βˆ’2)(4, -2). The line y=5y=5 is horizontal with slope m=0m=0. The parallel line is also horizontal, so its equation is y=βˆ’2y = -2.

Explanation

Parallel lines run in the same direction, so they have the exact same slope. Find the slope of the first line, then use that same slope with the new point to create the equation for the second line.

Section 7

Equation of a perpendicular line

Property

To find the equation of a line perpendicular to a given line that contains a given point:

  1. Find the slope of the given line, mm.
  2. The slope of the perpendicular line is the negative reciprocal, mβŠ₯=βˆ’1mm_{\perp} = -\frac{1}{m}.
  3. Use the point-slope form with the given point and the perpendicular slope.
  4. Write the equation in slope-intercept form.

Examples

  • Find a line perpendicular to y=2xβˆ’5y = 2x - 5 that contains (4,1)(4, 1). The original slope is m=2m=2. The perpendicular slope is mβŠ₯=βˆ’12m_{\perp} = -\frac{1}{2}. Using point-slope form: yβˆ’1=βˆ’12(xβˆ’4)y - 1 = -\frac{1}{2}(x - 4). This simplifies to y=βˆ’12x+3y = -\frac{1}{2}x + 3.
  • Find a line perpendicular to y=βˆ’13x+2y = -\frac{1}{3}x + 2 that contains (1,5)(1, 5). The original slope is m=βˆ’13m=-\frac{1}{3}. The perpendicular slope is mβŠ₯=3m_{\perp} = 3. Using point-slope form: yβˆ’5=3(xβˆ’1)y - 5 = 3(x - 1). This simplifies to y=3x+2y = 3x + 2.
  • Find a line perpendicular to the vertical line x=4x = 4 that contains (1,βˆ’2)(1, -2). A line perpendicular to a vertical line is a horizontal line, which has a slope of m=0m=0. The equation is simply y=βˆ’2y = -2.

Explanation

Perpendicular lines intersect at a right angle. Their slopes are 'negative reciprocals' – you flip the fraction and change the sign. Use this new slope with the given point to find the perpendicular line's equation.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 3: Graphs and Functions

  1. Lesson 1

    Lesson 3.1: Graph Linear Equations in Two Variables

  2. Lesson 2

    Lesson 3.2: Slope of a Line

  3. Lesson 3Current

    Lesson 3.3: Find the Equation of a Line

  4. Lesson 4

    Lesson 3.4: Graph Linear Inequalities in Two Variables

  5. Lesson 5

    Lesson 3.5: Relations and Functions

  6. Lesson 6

    Lesson 3.6: Graphs of Functions