Let $A$ and $B$ be opposite vertices of a cube with an edge length of $1$. Suppose S is a sphere which is tangent to the three faces meeting at A and the three edges meeting at $B$. What is the radius of $S$?
I honestly have no idea where to start. I tried imagining this as a cube with a sphere inside it. By doing so i got the radius of the sphere to be $\sqrt{6}$. I have no idea if that is correct. I simply used Pythagoras theorem.
Im not sure what it means to be a tangent to three faces meeting at$ A $ and tangent to three edges meeting at $B$. Please help.
Let us assume that the cube has its edges parallel to the coordinate axes with
$$A=(1,1,1) \ \ \text{and} \ \ B=(0,0,0).$$
The issue is symmetrical with respect to the 3 axes, therefore sphere (S) has its center $(x_0,y_0,z_0)$ along the first diagonal $x_0=y_0=z_0=a$;
A simple reasoning shows that $a=1-R$.
As a consequence the generic equation of (S) is:
$$(x-1+R)^2+(y-1+R)^2+(z-1+R)^2=R^2\tag{1}$$
The generic point of the $x$-axis can be described in the following way :
$$(x=X,y=0,z=0) \ \ \ \text{without constraint on} \ X\tag{2}$$
Plugging (2) into (1) gives an equation to be verified by abscissas of intersection points of (S) with $x$-axis :
$$(X-1+R)^2+(-1+R)^2+(-1+R)^2=R^2 \ \iff $$
$$X^2 + (2R - 2)X + (2R^2-6R+3)=0\tag{3}$$
The tangency condition is equivalent to the fact that quadratic equation (3) has a double root (this is classical : otherwise there would exist $2$ or $0$ solutions, i.e., $2$ or $0$ intersection points with the $x$ axis)
Having a double root for (2) is classically equivalent to the nullity of the discriminant :
$$\Delta=-R^2+4R-2=0$$
(yet another quadratic equation) with two solutions :
Only the first one is realistic for your question.
It took me a certain time before understanding the framework of validity of the second solution : (S) is tangent not to the edges issued from $B$ themselves, but on extensions of them (i.e., not between the vertices), not to the faces meeting in $A$ themselves, but to extensions of them.
A side remark : Due to the symmetry of this issue with respect to the different axes, we haven't had to consider the other tangency conditions, with $y$ or $z$ axes.
Here are two graphical illustrations for the 2 cases :
Fig. 1 : Case $R=2-\sqrt{2}$.
Fig. 2 : Case $R=2+\sqrt{2}$ : the sphere (S) is tangent to the extension of the edges and to the extension of the faces.