Which point of the sphere x2+y2+z2=1 is at the maximum distance from the point (2,1,3)?
Technique
Geometric: farthest point on a sphere from an external point lies on the line joining the external point to the centre, on the opposite side of the centre. Distance = ∣PC∣+r.
Solution
Geometric fact. Let S be a sphere with centre C and radius r, and P an external point. The line PC meets the sphere in two antipodal points; the one on the far side from P is the farthest point on S from P, and the one on the near side is the nearest. So this is geometry, not Lagrange multipliers.
Step 1 — Identify centre and external point
Centre C=(0,0,0), radius r=1. External point P=(2,1,3).
∣PC∣=4+1+9=14. Since 14>1, P is outside.
Step 2 — Unit vector from P to C
PC=C−P=(−2,−1,−3). Unit: u^=141(−2,−1,−3).
Step 3 — Farthest point on sphere from P
Start at C and step a distance r=1 in the direction away fromP. Direction away from P at the centre is v^=−u^=141(2,1,3).
Farthest point:
Q=C+rv^=141(2,1,3).
Equivalently, the line through P and C meets the sphere where v^ exits, i.e. at C+rv^.
Step 4 — Maximum distance (sanity)
∣PQ∣=∣PC∣+r=14+1. (Farthest along the line through P and C.)
Verify: ∣Q−P∣=141(2,1,3)−(2,1,3)=(2,1,3)(141−1)=14⋅∣1−1/14∣⋅ — careful with sign. Since 14>1, 1−1/14>0, so ∣PQ∣=14(1−1/14)=14−1.
Wait — that contradicts the geometric claim. Let me recheck Step 3.
Recheck.P=(2,1,3), C=(0,0,0). The line PC parametrised as r(t)=P+t(C−P)=(2,1,3)+t(−2,−1,−3). At t=0: P. At t=1: C. The line continues for t>1 to points beyond C from P. The sphere is {∣r∣=1}. Intersection: ∣(2−2t,1−t,3−3t)∣2=1, i.e. (1−t)2(4+1+9)=1, (1−t)2⋅14=1, 1−t=±1/14, t=1∓1/14.
The two intersections:
t1=1−1/14 (near side, between P and C): r=(2−2t1,1−t1,3−3t1)=(2(1−t1),1−t1,3(1−t1))=(1−t1)(2,1,3)=(1/14)(2,1,3).
So the farther point is at t2, which is at 14−1(2,1,3)=(14−2,14−1,14−3).
Corrected Step 3. The farthest point from P on the sphere is on the opposite side of the centre from P — direction from C pointing away from P is −u^P→C, but u^P→C=PC^/∣PC∣=(−2,−1,−3)/14 points from P to C. The direction from C away from P is the same direction (continuing past C), i.e. PC^/∣PC∣=(−2,−1,−3)/14.