Consider the surface of the sphere given by the equation $$(x − 3)^2 + (y − 4)^2 + z^2 = 25.$$ You shoot a ray from the point $(8, 4, 0)$ along the vector $v = \langle1, 0, 1\rangle$.
What are the outward unit vectors normal to the surface of the sphere at the intersection points of the ray and the sphere?
I found the two intersection points, which are $(8, 4, 0)$ and $(3, 4, −5)$. The answer to this question are the vectors $\langle 1, 0, 0\rangle$ and $\langle 0, 0, -1\rangle$, but I don't know how they got here from the two intersection points.
$$\nabla ((x − 3)^2 + (y − 4)^2 + z^2 - 25)$$ $$=[2(x-3),2(y-4),2z]$$ Substitute the coordinates of the points of intersection into this expression. Remove the surplus factor of "2" from the vectors and then divide each vector by its norm.