Math ClubMath Club
v1 · padrão canônico

Lesson 22 — Equation of a Line

Slope-intercept form y = mx + n, general Ax + By + C = 0, parametric. Slope and y-intercept.

Used in: 1.º ano do EM (15–16 anos) · Equiv. Math I japonês §直線の方程式 · Equiv. Klasse 10 Analytische Geometrie alemã

y=mx+n    Ax+By+C=0y = mx + n \quad \iff \quad Ax + By + C = 0
Choose your door

Rigorous notation, full derivation, hypotheses

Forms of the line equation

Slope-intercept form

y=mx+ny = mx + n, where mm is the slope and nn is the y-intercept.

General form

Ax+By+C=0Ax + By + C = 0, with (A,B)(0,0)(A, B) \neq (0, 0). For non-vertical lines (B0B \neq 0): m=A/Bm = -A/B and n=C/Bn = -C/B.

Point-slope form

Line through (x0,y0)(x_0, y_0) with slope mm: yy0=m(xx0)y - y_0 = m(x - x_0)

Parametric form

Line with direction vector u=(a,b)\vec u = (a, b) through (x0,y0)(x_0, y_0): {x=x0+aty=y0+bt,tR\begin{cases} x = x_0 + at \\ y = y_0 + bt \end{cases}, \quad t \in \mathbb{R}

Equation through two points

Line through (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2): yy1xx1=y2y1x2x1\frac{y - y_1}{x - x_1} = \frac{y_2 - y_1}{x_2 - x_1}

Slope from two points

m=y2y1x2x1=ΔyΔx=tanαm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\Delta y}{\Delta x} = \tan\alpha

where α\alpha is the angle of the line with the xx-axis.

Table of the 5 forms

FormEquationWhen to use
Slope-intercepty=mx+ny = mx + ngraph, yy explicit
GeneralAx+By+C=0Ax + By + C = 0vertical lines, symmetry
Point-slopeyy0=m(xx0)y - y_0 = m(x - x_0)point + slope given
Parametric(x0+at,y0+bt)(x_0 + at, y_0 + bt)trajectory, animation
Interceptx/p+y/q=1x/p + y/q = 1intercepts (p,0),(0,q)(p, 0), (0, q)

Exercise list

35 exercises · 8 with worked solution (25%)

Application 19Understanding 1Modeling 11Challenge 3Proof 1
  1. Ex. 22.1ApplicationAnswer key
    Equation of the line through (0,3)(0, 3) with slope 2. (Ans: y=2x+3y = 2x + 3.)
  2. Ex. 22.2ApplicationAnswer key
    Equation of the line through (1,2)(1, 2) and (4,8)(4, 8).
  3. Ex. 22.3Application
    Convert 2x+3y6=02x + 3y - 6 = 0 to slope-intercept form.
  4. Ex. 22.4Application
    Convert y=3x+4y = -3x + 4 to general form.
  5. Ex. 22.5Application
    Slope of the line 5x2y+8=05x - 2y + 8 = 0. (Ans: m=5/2m = 5/2.)
  6. Ex. 22.6Application
    Where does the line y=2x6y = 2x - 6 cross the axes? (Ans: (3,0)(3, 0) and (0,6)(0, -6).)
  7. Ex. 22.7Application
    Equation of the vertical line through (3,5)(3, 5).
  8. Ex. 22.8Application
    Equation of the horizontal line through (2,4)(2, -4).
  9. Ex. 22.9Application
    Determine whether (2,5)(2, 5) lies on the line y=2x+1y = 2x + 1.
  10. Ex. 22.10Application
    Find the intersection of y=2x1y = 2x - 1 and y=x+5y = -x + 5. (Ans: (2,3)(2, 3).)
  11. Ex. 22.11Application
    Equation of the line with slope 2-2 through (3,1)(3, -1).
  12. Ex. 22.12Application
    Line through (0,0)(0, 0) and (3,4)(3, 4). Slope?
  13. Ex. 22.13Application
    Show that y5=3(x2)y - 5 = 3(x - 2) is equivalent to y=3x1y = 3x - 1.
  14. Ex. 22.14ApplicationAnswer key
    Parametric line x=1+2t,y=3tx = 1 + 2t, y = 3 - t. Slope-intercept form?
  15. Ex. 22.15Application
    Distance from the origin to the line 3x+4y25=03x + 4y - 25 = 0. (Ans: 5.)
  16. Ex. 22.16ModelingAnswer key
    Cost C(q)=200+8qC(q) = 200 + 8q — sketch the line in the (q,C)(q, C) plane. Slope = marginal cost.
  17. Ex. 22.17Modeling
    Celsius → Fahrenheit conversion: passes through (0,32)(0, 32) and (100,212)(100, 212). Equation? (Ans: F=1.8C+32F = 1.8C + 32.)
  18. Ex. 22.18Modeling
    Uniform motion: passes through (0,5)(0, 5) km and (2,25)(2, 25) km. Speed? (Ans: 10 km/h.)
  19. Ex. 22.19ModelingAnswer key
    Regression line through data (1,2),(2,3),(3,5),(4,7)(1,2), (2,3), (3,5), (4,7). (Visual estimate.)
  20. Ex. 22.20Modeling
    Internet plan: $50/month fixed + $5/GB. Equation C(g)C(g)?
  21. Ex. 22.21Application
    Line through (2,1)(2, 1) and (5,2)(5, -2).
  22. Ex. 22.22Application
    Line with slope 0 through (7,9)(7, 9).
  23. Ex. 22.23Application
    Find the line through (1,4)(-1, 4) parallel to the xx-axis.
  24. Ex. 22.24Application
    Find the line through (3,2)(3, -2) parallel to the yy-axis.
  25. Ex. 22.25Modeling
    On a map, initial position (0,0)(0, 0) and velocity (vx,vy)=(3,4)(\vec v_x, \vec v_y) = (3, 4). After tt minutes, position?
  26. Ex. 22.26Modeling
    Uber fare: flag $4 + $1.50/km. Cost of a 12-km ride?
  27. Ex. 22.27Modeling
    In economics, supply S(p)=10p50S(p) = 10p - 50 and demand D(p)=2005pD(p) = 200 - 5p. Equilibrium price? (Ans: p=503p = \frac{50}{3}.)
  28. Ex. 22.28Modeling
    Straight-line drone trajectory: starts at (2,5)(2, 5) and goes to (20,1)(20, -1) in 30s. Parametric equation?
  29. Ex. 22.29Modeling
    Capital Asset Pricing Model: Ri=0.03+β(Rm0.03)R_i = 0.03 + \beta (R_m - 0.03). Line with slope β\beta in the (Rm,Ri)(R_m, R_i) plane.
  30. Ex. 22.30Modeling
    In linear programming, the constraint 2x+3y122x + 3y \leq 12 defines a half-plane. Sketch the boundary.
  31. Ex. 22.31UnderstandingAnswer key
    Show that y=mx+ny = mx + n can be rewritten in general form mxy+n=0mx - y + n = 0.
  32. Ex. 22.32ProofAnswer key
    Prove that three points are collinear iff the slope between the first two equals the slope between the second and third.
  33. Ex. 22.33Challenge
    Find kk such that (1,k),(3,8),(5,14)(1, k), (3, 8), (5, 14) are collinear. (Ans: k=2k = 2.)
  34. Ex. 22.34Challenge
    Find all points (x,y)(x, y) such that the distance to the line y=xy = x equals 1.
  35. Ex. 22.35ChallengeAnswer key
    Show that every line in the plane admits a general form Ax+By+C=0Ax + By + C = 0 with (A,B)(0,0)(A, B) \neq (0,0).

Sources

Updated on 2026-04-30 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.