7. Straight-line graphs
- Syllabus
- 0606–2028–2029
- Topic
- 7
- Level
- —
A non-vertical straight line has constant gradient m and equation y=mx+c. The gradient is the change in y per unit change in x, while c is the y-intercept.
m=x2−x1y2−y1,y−y1=m(x−x1)
From two points, calculate m, substitute either point into the point-gradient form, then rearrange only if another form is requested. To find where two lines meet, solve their equations simultaneously; the resulting ordered pair must satisfy both.
Through (4,23) and (−8,29), m=(29−23)/(−8−4)=−1/2, so y−23=−21(x−4) and y=−21x+25. Intersecting with y=2x+5 gives −21x+25=2x+5, hence (x,y)=(8,21).
A vertical line has equation x=k and undefined gradient, so it cannot be written as y=mx+c. Keep the order of subtraction consistent in the numerator and denominator when calculating m.
| Relationship | Gradient condition |
|---|---|
| parallel non-vertical lines | m1=m2 |
| perpendicular non-vertical lines | m1m2=−1, so m2=−1/m1 |
| vertical and horizontal lines | perpendicular to each other |
If AB has gradient −4/3, a perpendicular line has gradient 3/4. Through (−2,2) its equation is y−2=43(x+2), so y=43x+27. Substitute the given point to check the intercept.
Perpendicular gradients are negative reciprocals, not merely negatives. Equal gradients show the same direction; compare intercepts if you must distinguish two separate parallel lines from the same line.
M=(2x1+x2,2y1+y2),AB=(x2−x1)2+(y2−y1)2
The perpendicular bisector of AB passes through its midpoint and is perpendicular to AB. Find the midpoint, calculate the gradient of AB, take its negative reciprocal, then use point-gradient form through the midpoint. Every point on the resulting line is equidistant from A and B.
For A(−4,3) and B(6,−9), M=(1,−3) and mAB=(−9−3)/(6+4)=−6/5. Therefore m⊥=5/6 and the perpendicular bisector is y+3=65(x−1). Substitution or equal-distance calculations can verify any claimed point.
The perpendicular bisector usually passes through neither endpoint. If AB is horizontal, its perpendicular bisector is vertical through the midpoint; if AB is vertical, the bisector is horizontal. Preserve exact radicals unless a decimal accuracy is requested.
A transformed graph is straight when chosen variables X=f(x) and Y=g(y) satisfy Y=mX+c. Name the plotted variables first; then the graph's gradient and intercept can be matched to the original constants.
| Original relationship | Plot Y against X | Gradient / intercept |
|---|---|---|
| y=Axn | Y=lny, X=lnx | m=n, c=lnA |
| y=Abx | Y=lny, X=x | m=lnb, c=lnA |
| y2=Ax3+B | Y=y2, X=x3 | m=A, c=B |
| e2y=Ax2+B | Y=e2y, X=x2 | m=A, c=B |
| y3=Alnx+B | Y=y3, X=lnx | m=A, c=B |
If plotting lny against lnx gives points (6,5) and (8,9), then m=2 and c=−7. Thus lny=2lnx−7, so y=e−7x2. The gradient becomes the power and the intercept must be exponentiated to recover A.
The method also works from an already transformed graph. If Y=4y is plotted against X=1/x through (0.5,9) and (3,34), then Y=10X+4. Hence 4y=10/x+4 and y=(10/x+4)4.
Gradient and intercept belong to the transformed axes, not automatically to x and y. State logarithm-domain conditions, reverse every transformation, and distinguish c=lnA from c=A.