7. Straight-line graphs

Syllabus
0606–2028–2029
Topic
7
Level

Learning objectives

Build and use a straight-line equation

A non-vertical straight line has constant gradient mm and equation y=mx+cy=mx+c. The gradient is the change in yy per unit change in xx, while cc is the yy-intercept.

m=y2y1x2x1,yy1=m(xx1)m=\frac{y_2-y_1}{x_2-x_1},\qquad y-y_1=m(x-x_1)

From two points, calculate mm, 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)(4,23) and (8,29)(-8,29), m=(2923)/(84)=1/2m=(29-23)/(-8-4)=-1/2, so y23=12(x4)y-23=-\tfrac12(x-4) and y=12x+25y=-\tfrac12x+25. Intersecting with y=2x+5y=2x+5 gives 12x+25=2x+5-\tfrac12x+25=2x+5, hence (x,y)=(8,21)(x,y)=(8,21).

A vertical line has equation x=kx=k and undefined gradient, so it cannot be written as y=mx+cy=mx+c. Keep the order of subtraction consistent in the numerator and denominator when calculating mm.

Recognise parallel and perpendicular lines

Relationship Gradient condition
parallel non-vertical lines m1=m2m_1=m_2
perpendicular non-vertical lines m1m2=1m_1m_2=-1, so m2=1/m1m_2=-1/m_1
vertical and horizontal lines perpendicular to each other

If ABAB has gradient 4/3-4/3, a perpendicular line has gradient 3/43/4. Through (2,2)(-2,2) its equation is y2=34(x+2)y-2=\tfrac34(x+2), so y=34x+72y=\tfrac34x+\tfrac72. 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.

Construct a perpendicular bisector from coordinates

M=(x1+x22,y1+y22),AB=(x2x1)2+(y2y1)2M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right),\qquad AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

The perpendicular bisector of ABAB passes through its midpoint and is perpendicular to ABAB. Find the midpoint, calculate the gradient of ABAB, take its negative reciprocal, then use point-gradient form through the midpoint. Every point on the resulting line is equidistant from AA and BB.

For A(4,3)A(-4,3) and B(6,9)B(6,-9), M=(1,3)M=(1,-3) and mAB=(93)/(6+4)=6/5m_{AB}=(-9-3)/(6+4)=-6/5. Therefore m=5/6m_{\perp}=5/6 and the perpendicular bisector is y+3=56(x1)y+3=\tfrac56(x-1). Substitution or equal-distance calculations can verify any claimed point.

The perpendicular bisector usually passes through neither endpoint. If ABAB is horizontal, its perpendicular bisector is vertical through the midpoint; if ABAB is vertical, the bisector is horizontal. Preserve exact radicals unless a decimal accuracy is requested.

Read relationships through straight-line form

A transformed graph is straight when chosen variables X=f(x)X=f(x) and Y=g(y)Y=g(y) satisfy Y=mX+cY=mX+c. Name the plotted variables first; then the graph's gradient and intercept can be matched to the original constants.

Original relationship Plot YY against XX Gradient / intercept
y=Axny=Ax^n Y=lnyY=\ln y, X=lnxX=\ln x m=nm=n, c=lnAc=\ln A
y=Abxy=Ab^x Y=lnyY=\ln y, X=xX=x m=lnbm=\ln b, c=lnAc=\ln A
y2=Ax3+By^2=Ax^3+B Y=y2Y=y^2, X=x3X=x^3 m=Am=A, c=Bc=B
e2y=Ax2+Be^{2y}=Ax^2+B Y=e2yY=e^{2y}, X=x2X=x^2 m=Am=A, c=Bc=B
y3=Alnx+By^3=A\ln x+B Y=y3Y=y^3, X=lnxX=\ln x m=Am=A, c=Bc=B

If plotting lny\ln y against lnx\ln x gives points (6,5)(6,5) and (8,9)(8,9), then m=2m=2 and c=7c=-7. Thus lny=2lnx7\ln y=2\ln x-7, so y=e7x2y=e^{-7}x^2. The gradient becomes the power and the intercept must be exponentiated to recover AA.

The method also works from an already transformed graph. If Y=y4Y=\sqrt[4]{y} is plotted against X=1/xX=1/x through (0.5,9)(0.5,9) and (3,34)(3,34), then Y=10X+4Y=10X+4. Hence y4=10/x+4\sqrt[4]{y}=10/x+4 and y=(10/x+4)4y=(10/x+4)^4.

Gradient and intercept belong to the transformed axes, not automatically to xx and yy. State logarithm-domain conditions, reverse every transformation, and distinguish c=lnAc=\ln A from c=Ac=A.