Assignment:
What are some methods to approximate the value of an integral when it cannot be calculated directly? Show how each method works on a problem that can be solved directly, and compare the results, including the error estimations of the approximation methods.
Provide complete and step by step solution for the question and show calculations and use formulas.