Math ClubMath Club
v1 · padrão canônico

Lesson 23 — Relative Position of Lines

Parallelism, perpendicularity, intersection. Angle between lines. Point-to-line distance.

Used in: 1.º ano do EM (15–16 anos) · Equiv. Math I japonês cap. 3 · Equiv. Klasse 10 alemã (Analytische Geometrie)

rs    mr=ms,rs    mrms=1r \parallel s \iff m_r = m_s, \qquad r \perp s \iff m_r \cdot m_s = -1
Choose your door

Rigorous notation, full derivation, hypotheses

Criteria and formulas

Parallelism and perpendicularity

Given lines r:y=mrx+nrr: y = m_r x + n_r and s:y=msx+nss: y = m_s x + n_s:

PositionCriterion (slope-intercept)Criterion (general form)
Distinct parallelsmr=msm_r = m_s, nrnsn_r \neq n_sAr/As=Br/BsCr/CsA_r/A_s = B_r/B_s \neq C_r/C_s
Coincidentmr=msm_r = m_s, nr=nsn_r = n_sAr/As=Br/Bs=Cr/CsA_r/A_s = B_r/B_s = C_r/C_s
Concurrentmrmsm_r \neq m_sArBsAsBr0A_r B_s - A_s B_r \neq 0
Perpendicularmrms=1m_r \cdot m_s = -1ArAs+BrBs=0A_r A_s + B_r B_s = 0

Cases with vertical lines: x=ax = a is vertical, y=by = b is horizontal. Verticals to each other are parallel; vertical with horizontal are perpendicular.

Angle between lines

tanθ=mrms1+mrms\tan\theta = \left|\frac{m_r - m_s}{1 + m_r m_s}\right|

(Assuming neither line is vertical.)

Point-to-line distance

Point P0=(x0,y0)P_0 = (x_0, y_0) and line Ax+By+C=0Ax + By + C = 0:

d(P0,r)=Ax0+By0+CA2+B2d(P_0, r) = \frac{|A x_0 + B y_0 + C|}{\sqrt{A^2 + B^2}}

Distance between parallel lines

For r:Ax+By+C1=0r: Ax + By + C_1 = 0 and s:Ax+By+C2=0s: Ax + By + C_2 = 0: d(r,s)=C1C2A2+B2d(r, s) = \frac{|C_1 - C_2|}{\sqrt{A^2 + B^2}}

Perpendicular bisector

Set of points equidistant from AA and BB. It is the line perpendicular to AB\overline{AB} through the midpoint.

Exercise list

30 exercises · 7 with worked solution (25%)

Application 15Understanding 2Modeling 10Challenge 2Proof 1
  1. Ex. 23.1Application
    Check whether y=2x+1y = 2x + 1 and y=2x5y = 2x - 5 are parallel. (Ans: yes, equal mm.)
  2. Ex. 23.2Application
    Check whether y=3x+2y = 3x + 2 and y=x/3+4y = -x/3 + 4 are perpendicular. (Ans: yes.)
  3. Ex. 23.3Application
    Line parallel to y=5x2y = 5x - 2 through (0,7)(0, 7).
  4. Ex. 23.4Application
    Line perpendicular to y=x/2+3y = -x/2 + 3 through (4,1)(4, 1).
  5. Ex. 23.5Application
    For which kk are the lines y=kx+1y = kx + 1 and y=4x3y = 4x - 3 parallel? (Ans: k=4k = 4.)
  6. Ex. 23.6ApplicationAnswer key
    For which kk are the lines y=kx+1y = kx + 1 and y=4x3y = 4x - 3 perpendicular? (Ans: k=1/4k = -1/4.)
  7. Ex. 23.7ApplicationAnswer key
    Intersection of 2x+y=52x + y = 5 and xy=1x - y = 1. (Ans: (2,1)(2, 1).)
  8. Ex. 23.8Application
    Distance from (2,3)(2, 3) to the line 3x+4y12=03x + 4y - 12 = 0.
  9. Ex. 23.9Application
    Distance between y=2x+3y = 2x + 3 and y=2x5y = 2x - 5.
  10. Ex. 23.10Application
    Angle between y=xy = x and y=xy = -x. (Ans: 90°.)
  11. Ex. 23.11Application
    Angle between y=xy = x and the xx-axis. (Ans: 45°.)
  12. Ex. 23.12ApplicationAnswer key
    Show that the diagonals of the unit square (0,0),(1,0),(1,1),(0,1)(0,0), (1,0), (1,1), (0,1) are perpendicular.
  13. Ex. 23.13Application
    Perpendicular bisector of (2,3)(8,11)\overline{(2,3)(8,11)} — equation?
  14. Ex. 23.14Application
    Line with slope tan60°\tan 60° through (0,0)(0, 0).
  15. Ex. 23.15Application
    Determine whether (1,2),(3,4),(5,6)(1,2), (3,4), (5,6) lie on the same line.
  16. Ex. 23.16Modeling
    On a city map, parallel streets have equation 3x+4y=c3x + 4y = c for various cc. Distance between c=0c = 0 and c=25c = 25? (Ans: 5.)
  17. Ex. 23.17ModelingAnswer key
    Two pricing plans: A costs $60 fixed and B costs $30 + $0.10 per minute. For what number of minutes xx are the costs equal? (Ans: 300 min.)
  18. Ex. 23.18Modeling
    Plane 1 trajectory: y=3x+100y = 3x + 100. Plane 2 trajectory: y=2x+500y = -2x + 500. Where do they cross? (Important for traffic control.)
  19. Ex. 23.19Modeling
    Perpendicular bisector as decision: 2 antennas at (0,0)(0, 0) and (10,0)(10, 0). Points closer to the second form what region?
  20. Ex. 23.20Modeling
    You are at the origin. Enemy at (10,0)(10, 0). Shot trajectory: y=mxy = mx. The enemy can move along the line x+y=10x + y = 10. For which mm does it block exactly?
  21. Ex. 23.21ModelingAnswer key
    A robot moves in a straight line from (0,0)(0, 0) in direction (3,4)(3, 4). Obstacle at (8,1)(8, 1), radius 2. Does the trajectory pass through the obstacle?
  22. Ex. 23.22ModelingAnswer key
    In CG, polygon clipping by the line x=5x = 5 — points with x<5x < 5 stay, x>5x > 5 exit. Sutherland-Hodgman algorithm.
  23. Ex. 23.23Modeling
    In GPS, your position (2,3)(2, 3). Road modeled by 4x3y+6=04x - 3y + 6 = 0. Orthogonal distance to the road?
  24. Ex. 23.24Modeling
    In ML, decision boundary of a linear classifier: w1x1+w2x2+b=0w_1 x_1 + w_2 x_2 + b = 0. Distance of a new point to the boundary indicates "confidence".
  25. Ex. 23.25Modeling
    In economics, supply and demand curves are lines; equilibrium is the intersection. For S(p)=2p4S(p) = 2p - 4 and D(p)=162pD(p) = 16 - 2p, equilibrium?
  26. Ex. 23.26Understanding
    Verify the formula tanθ=(m1m2)/(1+m1m2)\tan\theta = |(m_1 - m_2)/(1 + m_1 m_2)| for lines y=xy = x and y=2xy = 2x.
  27. Ex. 23.27Understanding
    Show that two lines with m1m2=1m_1 m_2 = -1 form a 90° angle via the tan\tan formula.
  28. Ex. 23.28Challenge
    Find the lines through (0,5)(0, 5) that form a 45° angle with y=xy = x.
  29. Ex. 23.29Challenge
    Equations of the two tangent lines to the circle x2+y2=1x^2 + y^2 = 1 from the point (2,0)(2, 0).
  30. Ex. 23.30ProofAnswer key
    Prove the point-to-line distance formula. (Use vector projection — preview Lesson 27.)

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.