Problem: Find the surface of a torus with radius of a cross-section equal to r and the radius of rotation of the center of cross-section equal to R.
Solution: We start with a picture.
This torus is obtained by revolving a circle of radius r with center
The situation exactly fits the setting for which we have a formula and we
know the function describing the upper half-circle (it satisfies the
equation
Note that the integral after the substitution
In this setting one can express the whole circle using parametric equations