You have been doing it since you first found the value of an integral.
In the old days, your "line" was always the x-axis. The "area under the curve" was the surface area of the very thin curtain between the x-axis and the curve.
Now, you just need a new path. First, create a suitable parameterization for your curve within the given limits.