Find the shortest distance between the surfaces $$\frac{x^2}{25}+\frac{y^2}{16}+\frac{z^2}{9}=1 \qquad\text{and}\qquad x^2+y^2+z^2=4.$$
I tried to solve this problem as follows:
The problem reduces to testing for an extremum of the function
$$v[y(x),z(x)]=\int_{x_0}^{x_1} \sqrt{1+y'^2+z'^2}\;dx.....\tag{1}$$ Let $F=\sqrt{1+y'^2+z'^2}$.
Let $S_1$ be the surface $\displaystyle{\frac{x^2}{25}+\frac{y^2}{16}+\frac{z^2}{9}=1}$ and $S_2$ be the surface $x^2+y^2+z^2=4$. Consider the point of contact of the extremals of the functional on the surface $S_1$ as $A(x_0,y_0,z_0)$ and the point of contact of the extremals on $S_2$ as $B(x_1,y_1,z_1)$.
The extremals of the functional in Equation (1) are
$y=C_1x+C_2 \qquad...\tag{2}$ and $z=C_3x+C_4 \qquad...\tag{3}$
Since the ends of these extremals move on the surfaces $S_1$ and $S_2$, we get the following equations
$C_1x_0+C_2=y_0 \qquad .... \tag{4}$
$C_3x_0+C_4=z_0 \qquad .... \tag{5}$
$C_1x_1+C_2=y_1 \qquad .... \tag{6}$
$C_3x_1+C_4=z_1 \qquad .... \tag{7}$
The transversality conditions are
$F-y'F_{y'}+(\phi_x -z')F_{z'} \Bigg \vert_{x=x_0}=0 \qquad ....\tag{9}$
$F_{y'}+\phi_y F_{z'} \Bigg \vert_{x=x_0}=0 \qquad ....\tag{10}$
$F-y'F_{y'}+(\psi_x -z')F_{z'} \Bigg \vert_{x=x_1}=0 \qquad ....\tag{11}$
$F_{y'}+\psi_y F_{z'} \Bigg \vert_{x=x_1}=0 \qquad ....\tag{12}$
where $\phi(x,y)$ is the surface defining $S_1$ and $\psi(x,y)$ is the surface defining $S_2$.
Solving $S_1$ and $S_2$ for $z$, we get
$$\phi(x,y)=3\sqrt{1-\frac{x^2}{25}-\frac{y^2}{16}}$$ and $$\psi(x,y)=\sqrt{4-x^2-y^2}$$. Differentiating $\phi$ and $\psi$ partially with respect to $x$ and $y$, we get
$$\phi_x=-\frac{3x}{25\displaystyle{\sqrt{1-\frac{x^2}{25}-\frac{y^2}{16}}}}=-\frac{9x}{25z},$$
$$\phi_y=-\frac{3y}{16\displaystyle{\sqrt{1-\frac{x^2}{25}-\frac{y^2}{16}}}}=-\frac{9y}{16z},$$
$$\psi_x=-\frac{x}{\sqrt{4-x^2-y^2}}=-\frac{x}{z},$$
$$\psi_y=-\frac{y}{\sqrt{4-x^2-y^2}}=-\frac{y}{z},$$
Now substituting for $F$, $\phi_x$, $\phi_y$, $\psi_x$, $\psi_y$, $y'=C_1$ and $z'=C_3$ in Equations (9) - (12), we get the following equations.
$25z_0-9x_0C_3=0 \qquad .... \tag{13}$
$16z_0C_1-9y_0C_3=0 \qquad .... \tag{14}$
$z_1-C_3x_1=0 \qquad .... \tag{15}$
$C_1z_1-C_3y_1=0 \qquad .... \tag{16}$
Now we have to solve Equations (4) - (7) and Equations (13) - (16) for the eight unknowns $x_0$, $y_0$, $x_1$, $y_1$, $C_1$, $C_2$, $C_3$ and $C_4$, which I could not.
Hence, I request to verify whether the procedure adopted in solving this problem is correct and if there is any mistake, please point out. Thank you in advance.