Solución

Sustituye los valores directamente en la fórmula de la distancia:

d(P1,P2)=(x2x1)2+(y2y1)2+(z2z1)2=(23)2+(1(1))2+(15)2=(1)2+22+(6)2=41\begin{aligned} d(P_1, P_2) &= \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}\\ &= \sqrt{(2 - 3)^2 + (1 - (-1))^2 + (-1 - 5)^2}\\ &= \sqrt{(-1)^2 + 2^2 + (-6)^2}\\ &= \sqrt{41} \end{aligned}