00:01
Hi guys, this problem is to approximate the integral for the function sign of x squared from 0 to square root of half of pi.
00:13
So we know it's very hard to find the antiderivative for this function.
00:18
So the only way to evaluate this definite integral is to use a numerical method, like a trapezoid rule or simpson's rule.
00:27
So we are going to do these two rules respectively.
00:32
And first thing is we need to compute all the nodes of these sub -intervals.
00:46
So the left end point of the interval a is 0.
00:53
The right endpoint of this interval is square root of half of pi.
00:59
And the number of sub -intervals is n equal to 4.
01:08
That means we have an interval from 0 to half of square root of half of pi, and we need to divide this interval to four parts evenly.
01:28
So the first note, the left end point is x not, and the next one is x1.
01:34
So to get this the coordinates of x1, we need to know the length.
01:43
Of a sub -interval, which is b minus a over n, that is square root of half of pi over 8.
01:57
So the x1 is the x now plus square the length of sub interval, so it's square root of half of pi over 8, sorry, over 4.
02:19
And the next node x2 is x1 plus the length of sub interval, which is square root of half of pi over 2.
02:37
And then the x3 is the square root of half of pi over 2 plus the length of sub interval, which is 3 quarters of square root of half of pi...