You need surprisingly little to fix a line: a point and a slope will do, or two points, or the places where it cuts the axes. Each of these gives its own form of the equation, and we will write them all down. Then you will learn to turn the general equation Ax+By+C=0 into whichever form is handy, and to measure how far a point is from a line, and how far apart two parallel lines are.
Point–slope: if the line passes through (x0,y0) with slope m, then y−y0=m(x−x0).
Two-point:y−y1=x2−x1y2−y1(x−x1).
Slope–intercept:y=mx+c (c the y-intercept); or y=m(x−d) with x-intercept d.
Intercept form:ax+by=1, for a line cutting the axes at (a,0) and (0,b).
General form:Ax+By+C=0 (A,B not both 0): slope −BA, x-intercept −AC, y-intercept −BC.
Example 1. The line through (−1,4) with slope −3 is y−4=−3(x+1), i.e. 3x+y−1=0.
Example 2. For the line through (2,5) and (−4,−7), the slope works out to 2, so y−5=2(x−2), i.e. 2x−y+1=0.
Example 3. With intercepts 4 and −6 we get 4x−6y=1, i.e. 3x−2y=12.
Example 3: the line with intercepts 4 and -6
Example 4. A line through (3,2) making equal intercepts on the axes must satisfy ax+ay=1, which gives a=5, so the line is x+y=5.
Example 5. The perpendicular bisector of A(1,3), B(5,−1) must pass through the midpoint (3,1). Since slope of AB=−1, our line has slope 1 and its equation is y=x−2.
Example 5: the perpendicular bisector of AB is y = x - 2
The perpendicular distance of (x1,y1) from Ax+By+C=0 is
d=A2+B2∣Ax1+By1+C∣.
For two parallel lines Ax+By+C1=0 and Ax+By+C2=0:
d=A2+B2∣C1−C2∣.
Example 6. The distance of (2,−1) from 3x+4y−12=0 is 5∣6−4−12∣=2.
Example 6: the perpendicular distance from (2, -1) to the line is 2
Example 7. Distance between 6x−8y+5=0 and 3x−4y−5=0. Careful here: the coefficients must match first, so rewrite the second as 6x−8y−10=0. Then the distance is 1015=23.
Example 8. To find the foot of the perpendicular from (−1,3) to 3x−4y−16=0, first write the perpendicular through the point, 4x+3y−5=0. Solving the two equations together gives (2568,−2549).
Find the equation of each line: (a) through (0,−2) with slope 43; (b) through (−3,5) and (1,−3); (c) intercepts −2 and 5; (d) through (4,−3) parallel to the y-axis.
Write 5x−2y+10=0 in slope–intercept and intercept forms.
Find the line through (1,−2) perpendicular to 2x−3y+7=0.
Find the line through (2,3) parallel to x+4y=9.
Find the distance of (3,−5) from 4x−3y+8=0.
Find the distance between x+2y=3 and 2x+4y=11.
Find the equation of the line whose segment between the axes is bisected at (2,3).
Find k if the lines kx+2y=5 and 3x−6y=1 are perpendicular.
Find the equation of the altitude from A in triangle A(2,4), B(−1,1), C(5,−2).
The Fahrenheit temperature is a linear function of the Celsius temperature, with F=32 at C=0 and F=212 at C=100. Write the equation and find C when F=104.