00:03
Let's take a problem in calculus.
00:05
So we have integral over x ln x plus 1 dx over minus 0 .6 to 0 .6.
00:21
So what i'm going to do here is i'm going to approximate this integral using trapezoidal rule where n is equal to where n is the number of subintervals.
00:54
So let's write down the formula first.
00:59
Integral of f of x dx over limits a to b is equal to del x by 2 f of x naught plus 2 f of x1 plus 2 f of x2 and this goes on like this.
01:29
We have 2 f of x n minus 1 plus f of x n where del x is equal to b minus a by n.
01:55
Now b is my upper limit.
02:02
A is my lower limit and n is the number of subintervals.
02:17
So we have 6 number of subintervals and the difference between each is del x which is 0 .6 minus of minus 0 .6 by 6 which is equal to 0 .2.
02:43
So difference is 0 .2.
02:47
So let me write down all my endpoints xi.
02:55
So x0, x1, x2, x3, x4, x5 and x6.
03:15
So my x0 becomes minus 0 .6.
03:20
My x1 is minus 0 .4...