5: First check that the curve does not intersect itself. Then you know that there is no problem and you can use the appropriate formula.
Next hint Answer