MathorynMathematical Formula Database

Analytic Geometry

General Form of a Line

Every line in the plane can be written as Ax+By+C=0Ax+By+C=0, including vertical lines, which have no slope-intercept form. It is used in distance formulas, for intersections and as the standard output of many geometric constructions.

Ax+By+C=0,m=−ABAx+By+C=0,\qquad m=-\frac AB
LaTeXAx+By+C=0,\qquad m=-\frac AB

Variables

A, BA,\ B
coefficients, not both zero
CC
constant
mm
slope (if B ≠ 0)

Example

Find the slope and intercepts of 3x+4y−12=03x+4y-12=0.

  1. m=−34=−0.75m=-\frac34=-0.75.
  2. xx-intercept: y=0⇒x=4y=0\Rightarrow x=4; yy-intercept: x=0⇒y=3x=0\Rightarrow y=3.

Answer: Slope −0.75-0.75, intercepts (4,0)(4,0) and (0,3)(0,3).

Related formulas