Line Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Line.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A perfectly straight path extending infinitely in both directions through two distinct points, with no thickness.

A perfectly straight edge that goes on forever in both directions.

Read the full concept explanation β†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: Lines are one-dimensionalβ€”they have infinite length in both directions but zero width or thickness.

Common stuck point: Line vs segment vs ray: line goes forever; segment has endpoints; ray has one endpoint.

Sense of Study hint: Draw arrows on both ends to remind yourself a line never stops. Then draw a segment and a ray next to it to compare all three.

Worked Examples

Example 1

easy
Write the equation of a line with slope m = 2 and y-intercept b = -3.

Solution

  1. 1
    Step 1: The slope-intercept form of a line is y = mx + b.
  2. 2
    Step 2: Substitute m = 2 and b = -3.
  3. 3
    Step 3: The equation is y = 2x - 3.

Answer

y = 2x - 3
In y = mx + b, m is the slope (rise over run) and b is where the line crosses the y-axis. A line extends infinitely in both directions β€” every point on it satisfies this equation.

Example 2

medium
Find the slope of the line passing through points (1, 3) and (4, 9).

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
What is the slope of a horizontal line? What is the slope of a vertical line?

Example 2

hard
Line \ell_1: y = 3x + 1. Line \ell_2: y = -\frac{1}{3}x + 4. Are these lines perpendicular? Justify your answer.

Related Concepts

Background Knowledge

These ideas may be useful before you work through the harder examples.

point