As I understand it, when doing a surface integral we have,
$$\iint_S F\cdot ndS=\iint_D r~\frac{r_a \times r_b}{|r_a \times r_b|}|r_a \times r_b|dA$$ and this is true because $$ndS=\frac{r_a \times r_b}{|r_a \times r_b|}|r_a \times r_b|dA$$ (A unit normal vector multiplied by the differential of the surface).
But looking online I see $$\iint_S F\cdot ndS=\iint_Dr~\frac{\nabla f}{|\nabla f|}|\nabla f|dA$$ why is this true though? I don't see how we switch from a surface to a double integral in the second case.
I suppose I should link the problem where I saw the second method. It is the last example on this page: http://tutorial.math.lamar.edu/Classes/CalcIII/StokesTheorem.aspx