original post as spoiler space (although evil googlegroups 2 will automatically hide this grrrrr)
I like this one! Even tho I can't use by beloved Excel
Set A as our origin. Define vector AB = i and vector AC = j as our two basis vectors. If ABC is a proper triangle then i and j are not parallel and so make a useful basis for the plane. This means that for any two points P and Q, if P = ai + bj and Q = ci + dj, P=Q <=> (a=c AND b=d), which will prove useful
In this post I can't use the usual handwriting conventions to denote a vector (an arrow over a line segment or a twiddle under a letter) so a little care will be required when reading. I will refer to points by capital letters and use the lowercase letter to denote the position vector of the point (the vector from A to the point).
We go straight to the general case where the magic ratio (initially 2/5) is denoted by k.
With terminology out of the way we can proceed. Let us first establish the positions of the points of interest.
By definition, a = 0, b = i and c = j.
p = k.AB = ki q = b + k.BC = i + k(b-c) = i + k(j-i) r = (1-k).AC = (1-k)j
To find x, we note that since X is a point on RB, then for some real m (between 0 and 1, although we don't use that)
x = r + m.RB = r + m(b-r) = (1-k)j + m(i - (1-k)j) = mi + (1-k-m+mk)j = mi + (1-k)(1-m)j
But X is also a point on CP so for some real n
x = c + n.CP = c + n(p-c) = j + n(ki - j) = kni + (1-n)j
Therefore we must have
m = kn and (1-m)(1-k) = 1-n
Substituting former in latter,
(1-kn)(1-k) = 1-n 1-k-kn+nk^2 = 1-n n(1-k+k^2) = k
n = k/(1-k+k^2)
so
m = k^2/(1-k+k^2)
[Sanity check: when k = 2/5 this gives n = 10/19 and m = 4/19 which looks vaguely like my diagram, so ok]
So letting g = 1-k+k^2, we have
x = k^2/g i + (1-k)^2/g j
Now reusing m and n we find y in a similar fashion:
y = mq = m(1-k)i + mkj
and
y = c + n.CP = c + n(p-c) = j + n(ki - j) = kni + (1-n)j
so
m(1-k) = kn and mk = 1-n
giving
m(1-k) = k(1-mk) m-mk = k-mk^2 m(1-k+k^2) = k m = k/g
so
y = k(1-k)/g i + k^2/g j
Reusing m and n once more we find z:
z = mq = m(1-k)i + mkj
and
z = r + n.RB = r + n(b-r) = (1-k)j + n(i - (1-k)j) = ni + (1-k-n+nk)j = ni + (1-k)(1-n)j
so
m(1-k) = n and mk = (1-k)(1-n)
giving
mk = (1-k)(1-m+mk) mk = 1-m+mk-k+mk-mk^2 m-mk+mk^2 = 1-k m = (1-k)/g
so
z = (1-k)^2/g i + k(1-k)/g j