Before tackling this one, take a look at
this one.
+D
/ /
/  / 
/  / 
/  / 
C+ 
   
 B+
 /  /
 /  /
 /  /
/ /
+A
A, B, C and D are nonadjacent vertices of a cube. There is a point P in space such that PA=3, PB=5, PC=7, and PD=6. Find the distance from P to the other four vertices and find the length of the edge of the cube.
There are two answers, one with P outside the cube and one with P inside the cube.
After a lot of math, I found that if we were to keep everything the same, PD has to be between sqrt(19) and 8. I'll go through every single step, which will solve the problem too.
Let d be the length of the cube and PD=L.
A(d,d,0)
B(0,0,0)
C(d,0,d)
D(0,d,d)
P(x,y,z)
Applying the distances
(xd)^2+(yd)^2+z^2=9 [1]
x^2+y^2+z^2=25 [2]
(xd)^2+y^2+(zd)^2=49 [3]
x^2+(yd)^2+(zd)^2=L^2 [4]
Take [2][1], [2][3], and [2][4]. Then divide by 2.
xd+ydd^2=8 [5]
xd+zdd^2=12 [6]
yd+zdd^2=(25L^2)/2 [7]
Then take [6][7], [5][7], and [5][6].
xdyd=12(25L^2)/2 [8]
xdzd=8(25L^2)/2 [9]
ydzd=20 [10]
Then [5]+[8], [7]+[10], and [6][9].
2xdd^2=4(25L^2)/2 [11]
2ydd^2=20+(25L^2)/2 [12]
2zdd^2=20+(25L^2)/2 [13]
Solving for x, y, and z.
x=[d^24(25L^2)/2]/(2d) [14]
y=[d^2+20+(25L^2)/2]/(2d) [15]
z=[d^220+(25L^2)/2]/(2d) [16]
Then plug it back into [2] And simplify to get:
3d^4(83+L^2)d^2+3*[(25L^2)/2]^2+9164L^2=0 [17]
Looking at the discriminant b^24ac:
D=(83+L^2)^24*3*(3*[(25L^2)/2]^2+9164L^2)
=8L^4+83L^21216
=(L^264)(L^219)>=0
> 19<=L^2<=64 (since L>0)
sqrt(19)<=L<=8.
If we're given an L in this range, we can solve for d from [17]. We can then plug d into [14], [15], and [16] to get x, y, and z.
I've checked the algebra numerous times. This should be correct.

Posted by np_rt
on 20040718 18:35:48 