Solution:
Concept: Section formula: the point P that divides the join of A(x1,y1) and B(x2,y2) internally in the ratio m1:m2 (so that AP : PB =m1:m2) is P(m1+m2m1x2+m2x1,m1+m2m1y2+m2y1). Notice that m1 multiplies the FAR end B and m2 the near end A. The slope of the line through (x1,y1) and (x2,y2) is m=x2−x1y2−y1. The line through (x1,y1) with slope m is y−y1=m(x−x1). Two lines with slopes m1, m2 are perpendicular when m1×m2=−1.
Given: A on the x-axis, B on the y-axis (from the graph), AP : PB = 3 : 1.
Step 1 — Read A and B from the graph.
A is on the x-axis at 4, so A is (4, 0). B is on the y-axis at 4, so B is (0, 4).
Step 2 — Find P by the section formula.
AP : PB = 3 : 1, so m1=3 goes with B(0, 4) and m2=1 goes with A(4, 0):
xP=3+13(0)+1(4)=44=1
yP=3+13(4)+1(0)=412=3
So P is (1, 3).
Step 3 — Find the slope of AB and of the perpendicular.
The slope of AB comes from A(4, 0) and B(0, 4). The required line is perpendicular to AB, so its slope m satisfies m×mAB=−1:
mAB=0−44−0=−1
m=mAB−1=−1−1=1
Step 4 — Write the equation of the line through P.
We use the point-slope form with P(1, 3) and slope 1, then tidy it up:
y−3=1(x−1)
y=x+2
x−y+2=0
Check: P(1, 3) satisfies x−y+2=0, because 1−3+2=0. ✓
Watch out: AP : PB = 3 : 1 puts P nearer to B, so P must be closer to (0, 4) than to (4, 0). Check that your P is.
Therefore, (a) A(4, 0) and B(0, 4); (b) P(1, 3); (c) the line is x−y+2=0.