Euler method
Example: Euler method with the trapezoidal rule.