Numerical Integration With Trapezoidal and Simpson's Rule

Professor Leonard
15 May 201427:07

Summary

TLDRThis educational video script delves into numerical integration, a method for approximating definite integrals that are difficult to solve analytically. It introduces two primary techniques: the trapezoidal rule and Simpson's rule. The trapezoidal rule is explained through a step-by-step process, emphasizing the calculation of Ξ”X, the use of function evaluations at incremental points, and the summation formula. The script then contrasts this with Simpson's rule, which alternates between multiplying function evaluations by four and two, requiring an even number of intervals for accuracy. Practical examples, including calculating integrals of 1/x from 1 to 2 and 1/√(x+1) from 0 to 2, demonstrate the application of these methods, showing how they can closely approximate true integral values, even when exact solutions are unknown.

Takeaways

  • πŸ”’ Numerical integration is a method used to approximate definite integrals that cannot be solved using traditional calculus techniques.
  • πŸ“ The Trapezoidal Rule is one such method, which approximates the area under a curve by dividing it into trapezoids rather than rectangles.
  • βˆ†x The Trapezoidal Rule formula involves calculating the sum of function values at intervals (βˆ†x) multiplied by their respective coefficients and then taking the average.
  • πŸ“‰ The Simpsons Rule is another numerical integration technique, which uses a more complex formula involving the sum of function values at intervals multiplied by coefficients that alternate between 4 and 2.
  • πŸ” Both the Trapezoidal and Simpsons Rules require the number of intervals (N) to be specified, with the Simpsons Rule needing an even number of intervals for accuracy.
  • πŸ“‹ The script provides a step-by-step example of how to apply the Trapezoidal Rule to approximate the integral of 1/x from 1 to 2 using 10 intervals.
  • πŸ“˜ The script also demonstrates the application of the Simpsons Rule using the function 1/√(x+1) from 0 to 2 with 7 intervals, emphasizing the need for even intervals.
  • πŸ” The accuracy of numerical integration methods improves as the number of intervals increases, leading to a better approximation of the actual integral.
  • πŸ“Š The script compares the results of the numerical integration methods with the actual integrals when possible, showcasing the closeness of the approximations.
  • πŸ’‘ The script serves as a tutorial for students who may not have covered certain integrals in their calculus courses, providing an alternative approach to finding area under curves.

Q & A

  • What is numerical integration?

    -Numerical integration is a method used to approximate definite integrals that cannot be solved analytically, providing a way to estimate the area under a curve when an exact formula is not known or available.

  • What are the two main methods of numerical integration discussed in the script?

    -The two main methods of numerical integration discussed in the script are the trapezoidal rule and Simpson's rule.

  • How does the trapezoidal rule work?

    -The trapezoidal rule works by approximating the area under a curve by dividing the area into trapezoids rather than rectangles. It sums the areas of these trapezoids to approximate the definite integral.

  • What is the formula for the trapezoidal rule?

    -The formula for the trapezoidal rule is given by \(\Delta x \frac{f(x_0) + 2f(x_1) + 2f(x_2) + \ldots + 2f(x_{n-1}) + f(x_n)}{2}\), where \(\Delta x\) is the width of each trapezoid, and \(f(x_i)\) represents the function evaluated at the points \(x_i\).

  • What is the significance of the term 'Delta X' in the context of numerical integration?

    -In numerical integration, 'Delta X' (\(\Delta x\)) represents the width of the subintervals into which the area under the curve is divided to approximate the integral using either the trapezoidal rule or Simpson's rule.

  • Why is the number of terms (N) important in numerical integration?

    -The number of terms (N) is important because it determines the accuracy of the approximation. A larger N results in more subintervals, which generally leads to a better approximation of the integral.

  • How does Simpson's rule differ from the trapezoidal rule?

    -Simpson's rule differs from the trapezoidal rule in that it approximates the area under a curve using parabolic segments instead of trapezoids. It uses a different weighting for the function evaluations, with the first and last terms having a coefficient of 1, the middle terms having a coefficient of 4, and every other term having a coefficient of 2.

  • What is the formula for Simpson's rule?

    -The formula for Simpson's rule is given by \(\frac{\Delta x}{3} [f(x_0) + 4f(x_1) + 2f(x_2) + 4f(x_3) + 2f(x_4) + \ldots + 2f(x_{n-2}) + 4f(x_{n-1}) + f(x_n)]\), where n must be an even number.

  • Why does Simpson's rule require an even number of terms (N)?

    -Simpson's rule requires an even number of terms because it relies on the parabolic shape that is formed between every two points, and this requires pairs of intervals to create the parabolic segments for the approximation.

  • How can one improve the accuracy of numerical integration using the trapezoidal or Simpson's rule?

    -The accuracy of numerical integration can be improved by increasing the number of terms (N), which results in smaller subintervals and a more detailed approximation of the curve's shape.

  • What is the practical application of numerical integration?

    -Numerical integration is used in various fields where exact integration formulas are not available or practical, such as in physics for calculating work done, in engineering for stress analysis, and in computer graphics for rendering.

Outlines

00:00

πŸ“š Introduction to Numerical Integration

The speaker begins by introducing numerical integration as a method to approximate definite integrals that cannot be solved using traditional calculus techniques. They mention that there are integrals that are not covered in a standard calculus curriculum, and numerical integration provides a way to estimate their values. Two main methods are discussed: the trapezoidal rule and Simpson's rule. The speaker emphasizes that these methods are approximations and are useful for integrals that are otherwise difficult to compute.

05:00

πŸ“ The Trapezoidal Rule Explained

The speaker delves into the trapezoidal rule, explaining it as a technique to approximate definite integrals by dividing the area under the curve into trapezoids instead of rectangles. The formula for the trapezoidal rule is introduced, which involves summing the function values at intervals and multiplying by a factor that includes the change in x (Ξ”x). The speaker clarifies the concept of Ξ”x and how it's calculated as the interval width divided by the number of intervals (N). An example is given to demonstrate the calculation process, where the integral of 1/x from 1 to 2 is approximated using N=10, resulting in 11 terms to be calculated.

10:03

πŸ”’ Applying the Trapezoidal Rule with an Example

The speaker applies the trapezoidal rule to the example of integrating 1/x from 1 to 2 with N=10. They calculate Ξ”x as 0.1 and then determine the x values for each term in the sum, incrementing by Ξ”x for each subsequent term. The formula is then applied by multiplying the sum of the function values at these x points by the appropriate coefficients and Ξ”x/2. The speaker emphasizes the importance of following the formula correctly, especially with the coefficients of 2 for all terms except the first and last.

15:03

πŸ“‰ Simpson's Rule: An Alternative Method

The speaker contrasts Simpson's rule with the trapezoidal rule, highlighting that Simpson's rule provides a more accurate approximation by using a different set of coefficients. Simpson's rule divides the interval into smaller pieces and uses a combination of 4s and 2s as coefficients, but it requires an even number of intervals. The speaker provides a new example using the function 1/√(x+1) from 0 to 2 with N=6, illustrating how the x values and the coefficients are determined and applied in the formula.

20:05

πŸ” Comparing Numerical Integration Methods

The speaker compares the results of the numerical integration methods with the actual integral values when possible. They show that the trapezoidal and Simpson's rules provide close approximations to the true integral values, with the accuracy improving as the number of intervals increases. The speaker concludes by emphasizing the utility of these numerical methods for approximating integrals that cannot be solved analytically.

25:56

πŸŽ“ Conclusion and Understanding Numerical Integration

In the final paragraph, the speaker wraps up the discussion on numerical integration, ensuring that the audience understands the concepts of the trapezoidal and Simpson's rules. They encourage the audience to practice these methods and to check their work against known integrals to gauge the accuracy of the approximations. The speaker's tone is light-hearted, indicating that the session was meant to be educational and interactive.

Mindmap

Keywords

πŸ’‘Numerical Integration

Numerical integration is a method used to approximate the value of a definite integral when an analytical solution is either too complex or impossible to obtain. In the context of the video, numerical integration is central to the theme as it's used to demonstrate how to approximate integrals that cannot be solved using traditional calculus techniques. The video discusses two specific methods for numerical integration: the trapezoidal rule and Simpson's rule.

πŸ’‘Trapezoidal Rule

The trapezoidal rule is a numerical integration technique that approximates the area under a curve by dividing the area into trapezoidal sections rather than rectangular ones. The video explains this concept by stating that the rule involves summing the function values at intervals and multiplying by the width of the interval divided by 2. It is used as a method to approximate integrals when exact solutions are not known, as illustrated by the example of approximating the integral of 1/x from 1 to 2 with N equals 10.

πŸ’‘Simpson's Rule

Simpson's rule is another numerical integration technique that provides a more accurate approximation than the trapezoidal rule by using parabolic sections instead of trapezoidal ones. The video highlights this method as an alternative to the trapezoidal rule, mentioning that it involves multiplying the function values by different coefficients (four and two) and summing them, using the formula Delta X divided by 3. It is noted that Simpson's rule requires an even number of intervals.

πŸ’‘Delta X

Delta X (βˆ†x) is a term used in numerical integration to represent the width of each subinterval when the area under a curve is divided into smaller sections for approximation. In the video, Delta X is calculated as (b - a) / N, where 'b' and 'a' are the bounds of integration and 'N' is the number of subintervals. It is a crucial component in both the trapezoidal rule and Simpson's rule, as it determines the granularity of the approximation.

πŸ’‘Definite Integral

A definite integral is an integral that has both an upper and lower limit, representing the signed area under a curve between two points. The video script discusses the concept of definite integrals as the quantities that numerical integration methods, such as the trapezoidal rule and Simpson's rule, are used to approximate. The definite integral is integral to the theme of the video as it sets the stage for the need of numerical approximation techniques.

πŸ’‘Approximation

Approximation in the context of the video refers to the process of estimating the value of a mathematical quantity, such as a definite integral, when an exact value cannot be easily computed. The video emphasizes the use of numerical integration techniques as a means of approximation, particularly when dealing with complex or unknown integrals. The trapezoidal rule and Simpson's rule are both presented as methods for approximating definite integrals.

πŸ’‘Integrals

Integrals are a fundamental concept in calculus that represent the area under a curve and are used to solve a variety of mathematical and real-world problems. The video script discusses integrals in the context of numerical integration, explaining how certain integrals cannot be solved using standard calculus techniques, thus necessitating the use of numerical methods like the trapezoidal rule and Simpson's rule.

πŸ’‘Calculus 1

Calculus 1 is typically the first course in a sequence of calculus classes and covers foundational concepts such as limits, derivatives, and integrals. The video script references 'Calculus 1 days' to set a context for the level of mathematical knowledge the audience might have, implying that the audience has a basic understanding of calculus but may not have encountered more advanced techniques like numerical integration.

πŸ’‘Late Transcendentals

Late transcendentals is a term used in some calculus courses to refer to the study of certain integrals that are covered later in the curriculum, often in a second semester or a more advanced class. The video script mentions 'late transcendentals' to explain why certain integrals, like the one involving 1/x, would not have been covered in a first-semester calculus course, thus justifying the use of numerical integration for approximation.

πŸ’‘Iterations

Iterations in the context of numerical integration refer to the individual steps or calculations performed within the process of approximating an integral. The video discusses the concept of increasing the number of iterations (increasing 'N') to improve the accuracy of the approximation. More iterations mean more subintervals and thus a finer approximation, as demonstrated by the comparison of results with different values of 'N'.

Highlights

Introduction to numerical integration as a method to approximate definite integrals that are difficult to calculate directly.

Explanation of the trapezoidal rule as the first method for numerical integration.

Description of the trapezoidal rule formula and its components, including Delta X and the sum of function values.

Clarification that Delta X is calculated as (B - A) / N, where B and A are the bounds of integration and N is the number of intervals.

Emphasis on the importance of N being a finite number for the trapezoidal rule to provide an approximation.

Introduction to the concept of X sub i, representing the points at which the function is evaluated.

Example calculation using the trapezoidal rule to approximate the integral of 1/x from 1 to 2 with N equals 10.

Step-by-step guide on how to calculate each X sub i and the corresponding function values.

Discussion on how increasing the number of terms (N) improves the accuracy of the trapezoidal rule approximation.

Introduction to Simpson's rule as an alternative method for numerical integration.

Explanation of the differences between Simpson's rule and the trapezoidal rule, including the use of Delta X / 3 and the alternating coefficients.

Requirement for N to be an even number when using Simpson's rule.

Example calculation using Simpson's rule to approximate the integral of 1/sqrt(x + 1) from 0 to 2 with N equals 6.

Comparison of the calculated approximations with the actual integral values to demonstrate the accuracy of numerical integration methods.

Conclusion on the effectiveness of numerical integration methods like the trapezoidal rule and Simpson's rule for approximating difficult integrals.

Transcripts

play00:00

okay for us our very last section

play00:02

talking about numerical integration kind

play00:04

of going back in time to our calculus 1

play00:06

days or first semester calculus here's

play00:08

what numerical integration is all about

play00:10

what it allows you to do is approximate

play00:14

integrals definite integrals that you

play00:17

couldn't otherwise do that we don't have

play00:19

a formula for that man we I don't know

play00:21

how to do this one or something we

play00:23

haven't covered because there are going

play00:24

to be some integrals that we have not

play00:26

covered even though we've done all our

play00:27

techniques integration there's somebody

play00:29

looking up I don't know as a possible

play00:31

action no it's a trick I don't know well

play00:33

we can approximate those definite

play00:35

integrals with these two processes one's

play00:38

called the trapezoidal rule and one code

play00:40

is called Simpsons rule so we're going

play00:41

to talk about trapezoidal rule first

play00:43

then Simpsons rule they're very similar

play00:45

and what you do what this is doing again

play00:47

it's giving you an approximation of a

play00:50

definite integral without having to even

play00:52

do the integral you with me okay so like

play00:56

I said I think I just mentioned this to

play00:58

you guys but put yourself back into your

play01:00

first semester calculus days when we

play01:02

haven't done a lot of integrals okay so

play01:04

the ones we're going to do on the board

play01:06

they would be something you learn in

play01:08

calculus two what we've all we've

play01:10

already learned them but back then these

play01:12

integrals would have not been really

play01:14

possible for us because we would not

play01:15

have learned them yet you with me okay

play01:18

so with that in mind let me introduce

play01:19

you the trapezoidal rule

play01:35

so the trapezoidal rule says this if you

play01:38

want to approximate a definite integral

play01:40

remember the definite integrals have

play01:42

bounds of integration they go from like

play01:44

an e to e they go somewhere of any

play01:47

function that you want we can

play01:52

approximate it hits our squiggly equals

play01:54

here we could we can approximate it by

play01:56

doing this and really interesting here's

play01:59

how it works

play01:59

it says I don't define these in just a

play02:02

minute but they should look familiar if

play02:04

you took calculus 1 this looks familiar

play02:07

Delta X you guys have seen Delta X

play02:09

before Epogen will talk without the

play02:11

finance second if you don't remember

play02:12

what it is you take Delta X u divided by

play02:14

2 and you multiply it by this sum by f

play02:18

of X sub 0 plus 2 times f of X sub 1

play02:24

plus 2 times f of X sub 2 plus and you

play02:30

keep all those twos and tell you get

play02:32

down to 2 times f of X sub n minus 1

play02:40

plus f of X sub n no - that's the

play02:48

trapezoidal rule now I'm going to define

play02:50

a couple of these things for you

play02:51

personally what Delta X is if you don't

play02:54

remember it's okay Delta X is B minus a

play02:58

where do I get my B minus a from do you

play03:00

know that's a certain iman say it's just

play03:03

your your integral so B minus a divided

play03:06

by N and it's going to be given to you

play03:08

so n is going to be some finite number

play03:10

because we're approximate right now now

play03:12

listen we can't let n go to infinity

play03:14

because if we did well we wouldn't have

play03:17

an approximation anymore and this is

play03:18

going to we would have a finite number

play03:19

of terms add up and one via

play03:21

approximation we can't actually do that

play03:22

we couldn't do this forever the idea of

play03:24

doing this forever is the actual

play03:26

integrals

play03:27

add so because do the integral well then

play03:29

we're left with a finite number of terms

play03:30

to approximate our value and then X sub

play03:34

I which means that X sub 0 X sub 1 X sub

play03:37

2 X sub 3 X + 4 X sub n minus 1 X sub n

play03:40

it's given by this

play03:42

you start with Eddie again a is just

play03:44

right here and you add to it your index

play03:47

times Delta X that might look a little

play03:51

confusing you get a treasure on this

play03:53

this is not that hard to do

play03:54

I'm going to prove that to you right now

play03:57

with an example so write down the

play03:59

formula I'm going to show you how to do

play04:00

it just make sure you write down

play04:01

correctly okay there's no two in front

play04:03

of this there's a 2 in front of every

play04:05

other term that you have until you get

play04:07

to the very very last one and then

play04:09

there's not a 2 there quick hit up

play04:11

you're ok with that so far okay so let's

play04:13

do our example so what we're going to do

play04:17

is we're going to approximate 1/2 - 1

play04:22

over X DX and what we want to do is

play04:29

approximate this with N equals 10 if N

play04:34

equals 10 what that's going to mean for

play04:36

us is that we're going to get 11 terms

play04:39

here we have an X sub 0 through X sub 10

play04:43

we're going to end on the X sub 10 term

play04:45

does that make sense to you so we need

play04:46

eleven terms stop it N equals 10 now if

play04:50

you look at that many of you're going to

play04:52

think well I'll just do the integral

play04:54

what's the integral of 1 over X would

play04:57

you know that in a late transcendentals

play05:00

class like we have for calculus 1 as I

play05:02

kept this one we don't cover that so

play05:04

that's why I said put yourself back into

play05:06

calculus want first semester calculus

play05:07

class at our College we have what's

play05:10

called late transcendental some people

play05:11

have early where they do this in

play05:12

calculus 1 we don't so we do it later so

play05:15

for us this would have been impossible

play05:17

back in calculus 1 so all we would have

play05:19

done is try to approximated here's how

play05:21

we're approximated the first thing we do

play05:23

we'll figure out Delta X of course

play05:25

that's going to be important for us so

play05:26

to figure out Delta X Delta X is B minus

play05:33

a over N all those things are going to

play05:35

be given to you if you have a definite

play05:38

in a roll what's our beat - over and

play05:42

perfect that's going to be 110 okay what

play05:48

we're close to place and putting this in

play05:51

our formula now we got to figure out our

play05:54

X sub 0 or X sub 1 X sub 2 - X sub 3 and

play05:57

X sub 4 blah blah blah in fact you can

play06:00

think of this is because I'm going to be

play06:01

some calculators you can think about

play06:03

this is 0.1 if you want to you might

play06:05

make things a little bit easier for you

play06:07

if you want so it looks kind of weird

play06:12

like how am I going to figure it's not

play06:13

that hard here's what it says if I want

play06:16

X sub 0 X sub 0 says start at a would

play06:23

say add 0 D X's so we're just going to

play06:28

have one does that make sense

play06:31

exit sorry X 1 1 missed one exit 1 says

play06:37

this started a what's what's a 1 and add

play06:40

1 Delta at one time is Delta X so it'd

play06:43

be one plus point 1 or just 1 point 1 X

play06:49

sub 2 says start a it's 1 plus 2 times

play06:53

Delta X well that would be 1 plus 0.2

play06:56

1.2 can you tell me what the next one's

play06:58

going to be

play06:59

going through what's the next one and

play07:04

then 1.5 and 1.6 then 1.7 1.8 and 1.9 at

play07:08

the very end we're going to get to X sub

play07:12

9 that's going to be one point and then

play07:20

X sub 10 gives you I wish so hands feel

play07:29

okay with where those are coming from

play07:30

can you follow that should be a little

play07:33

easier because it's back to factor this

play07:34

one stuff it just plug in numbers in it

play07:36

just says hey start here start whatever

play07:38

that is and just add Delta X so for X

play07:41

sub 0 yet none of them so just one and

play07:43

then add this one point one add it again

play07:46

one point two add it again

play07:47

1.3 1.4 1.5 1.6 1.7 1.8 1.9 and then to

play07:54

one point n - yeah so we get to now what

play07:59

the trapezoidal rule says is after

play08:01

you've all if you've done all that the

play08:04

integral can be approximated by doing

play08:05

this you take Delta X what's our Delta X

play08:13

so we have Delta x over 2

play08:19

and then you're going to do this you're

play08:21

going to have f of X sub 0 F of what

play08:28

plus what's the next thing I'm going to

play08:31

right now our to store two times F of

play08:36

what yeah plus 2 times 1 point 2 plus 2

play08:45

times F of 1 point 3 plus the reviews

play08:49

all the way down till we get to 2 times

play08:51

F of 1 point 9 and then we're going to

play08:54

have do we have a two on the very last

play08:56

term no oh just F of 2

play09:08

okay I want to do like a 20-second recap

play09:10

just to make sure that you give this so

play09:11

the idea behind these numerical

play09:13

integrations is sometimes we can't

play09:16

integrate or sometimes we don't know how

play09:17

to integrate it and this would be one of

play09:19

those cases where at the time we would

play09:21

not have known how to do this now I'm

play09:23

giving you a very simple example okay

play09:24

just so it makes our math easy so you

play09:26

get the idea you could do this with some

play09:28

pretty hardcore integration I know that

play09:30

you don't know how to integrate if it's

play09:32

a definite integral to understand that

play09:33

if it's not a definite integral this

play09:34

this doesn't work because I'm plugging

play09:36

numbers in alright so we say is all

play09:38

right now where's your integral starting

play09:40

whatever where it is stopping whatever

play09:42

you can find Delta X with that provided

play09:44

you're given the number of iterations

play09:46

and your your your rule so in this case

play09:49

we have N equals 10 that's 11 terms that

play09:52

we're going to be going through so it

play09:53

says okay cool well if that's my Delta X

play09:55

then I start with my a I just add my

play09:57

Delta X for every new term so I added

play09:59

them add it than that until I get up in

play10:02

my last one plug in the formula we have

play10:04

Delta x over 2 no problem f of X of 0 f

play10:08

of X sub 1 so 1 1 will point you all the

play10:11

way to the very end notice though into

play10:13

two terms that don't have two s on the

play10:15

first one and the last one you follow

play10:17

now what's nice about this do you have a

play10:20

function that you can plug these things

play10:21

into yeah that's right there it's just 1

play10:24

over X so we're going to do this we're

play10:27

going to start by taking our Delta X

play10:32

it's 0.1 divided by 2 and then we're

play10:36

going to have F of 1 so that's 1 over 1

play10:39

plus 2 times F of 2 so check it out it's

play10:43

going to be 2 times 1 over 1 point 1

play10:50

plus two times one over one point two

play10:53

plus two times one over one point three

play10:56

plus we do this for a while for a finite

play11:00

number of terms and we're going to end

play11:01

off with two times one over one point

play11:04

nine plus one over two I want you to see

play11:10

if you can you can go through that you

play11:12

mine data that actually makes sense to

play11:14

you so fans if that does make sense to

play11:15

you okay so here's what you're going to

play11:18

do on your calculators what you're going

play11:20

to do is you're going to figure out what

play11:22

all these things are I'm not writing all

play11:25

because it takes too long so but I'm

play11:27

hoping that I've made this clear on what

play11:28

this this is you guys see what what it

play11:30

is we're starting with just a function

play11:31

evaluated at whatever RNA is just one

play11:33

and then we add to 2 times F at one

play11:36

point 1/2 times F at 1 point 2 2 times F

play11:38

of whatever our exit 3 exit for X upon

play11:41

all the way up till we do our X sub n

play11:43

minus 1 look at that X is 1 is 9 some of

play11:46

you guys on your tested X sub n plus 1

play11:49

for this one you were counting further

play11:51

than you should have been counting

play11:52

before not after

play11:53

so X sub n minus 1 gives us our 9 and

play11:57

then our last one whatever it is in 10

play12:00

in this case no to here we plug them

play12:03

into our function that's what we have

play12:04

our one over this one over this one over

play12:06

X of 3 1 over X sub 10 and we just

play12:10

figured decimal equivalent so in our

play12:12

case on your calculator you get 1 plus 2

play12:14

over this it's 2 into this through that

play12:16

and then multiply that by 120

play12:28

now as you're doing that I'm going to go

play12:31

ahead on actually I did this on purpose

play12:33

I did the integral because we can

play12:35

actually do it I want to see how close

play12:37

this actually is so if we were to really

play12:39

do the integral so people work on this

play12:42

some of you guys really go through this

play12:43

okay I want I want an actual answer so

play12:46

but if we were to do an integral with

play12:50

what we know now we know the integral of

play12:52

1 or X is Ln X and we would evaluate

play12:55

that from 1 to 2 that's Ln of 2 minus Ln

play12:59

of 1 well ml element 1 is 0 so we get Ln

play13:03

of 2 + Ln 2 is about equal to someone

play13:09

who's not working on this can you tell

play13:10

me what Ln of 2 is about equal 2.6 died

play13:14

and 3 14.6 not saving in 6 9 31 or okay

play13:22

it keeps on going because it's it it

play13:24

consider a rational number it goes on

play13:26

forever without ever meeting have you

play13:33

got this one what you get

play13:37

yeah is it exactly the same is it close

play13:47

tenths hundredths step it's the same to

play13:49

the thousands it's off by a little over

play13:52

six ten thousandths so with if you but

play13:56

here's the point

play13:57

this was clicker because we know how to

play13:58

do it right if this was an integral that

play14:01

we did know how to do this would be the

play14:03

best way because you don't know how to

play14:05

do it so you okay we'll call let's

play14:07

evaluate this approximately let's use

play14:09

our trapezoidal rule and then we get

play14:11

something that's relatively close now

play14:13

question how do you make this better

play14:18

more terms na plus C cos is definite

play14:20

integral how do you make it better

play14:23

we're in Morgan's do that to like a

play14:27

hundred it's really close I don't mean

play14:30

very much but really close because

play14:33

what's happening is you're taking our

play14:34

interval and make it really really

play14:36

living bill it's the same idea with

play14:38

doing Vermont sounds with more and with

play14:42

N equals larger numbers you're making

play14:43

smaller rectangles smaller rectangles

play14:46

well hey if you have smaller rectangles

play14:48

that means you're missing less and less

play14:49

area when you add up those rectangles if

play14:51

you remember back to your your month

play14:53

sums that you did in calculus or that

play14:55

making sense to you so the major that is

play14:58

the more close this is going to be I

play15:00

just want to do this one to show you hey

play15:02

you know what you can actually

play15:03

proximately get it pretty darn close

play15:04

dividends if I explain that long for you

play15:06

okay this is it for trapezoid rule

play15:08

that's how it works I'm going to give

play15:09

you a super sense rule

play15:18

show you how Simpsons rule differs

play15:30

here's how Simpsons world works Simpsons

play15:33

rule is going to look really really

play15:35

similar here's only difference instead

play15:38

of taking Delta X divided by two

play15:41

you take Delta X you're going to divide

play15:42

by three then what you do yeah it's cool

play15:49

it's awesome electors - then what you do

play15:53

is you take and you start with the same

play16:01

f of X of zero but this becomes a four

play16:05

that stays in tune and you're going to

play16:07

go for two four two four two four two

play16:10

four two and end of the pole right there

play16:13

and then that last one doesn't get

play16:14

anything now this will only work if n is

play16:19

even and it's got to be even so you

play16:24

can't do this if n is five you could do

play16:27

it if n is six sort of ends eight or two

play16:29

or like what even numbers are you do it

play16:32

evens but other than that this small

play16:34

report make sure I wrote down right to

play16:38

it in from memory but yeah I think I got

play16:40

it

play16:47

years when do an example your real quick

play16:49

yes because this makes sense to you that

play16:53

we're going to alternate fours and twos

play16:55

just you don't end the to you that

play16:59

that's going to happen if you have an

play17:01

eating okay so it's going to be nothing

play17:03

then four two four two four two four two

play17:06

four nothing thank you for your very

play17:08

less terms will happen as me so let me

play17:11

change this just a little bit

play17:31

how about 1 over square root X plus 1

play17:39

from 0 to 2 with N equals 7 is that ok

play17:47

why not it has to be even find sticklers

play17:53

is 6 and 6 go through the same way that

play18:00

you would normally do the trapezoidal

play18:02

rule only now we're just going to plug

play18:04

into a different formula the Delta X is

play18:06

calculated the same way the X sub i's

play18:08

are calculated the same way and it just

play18:11

has to be satisfying the tens even ok so

play18:14

Delta egg what's nothing X is going to

play18:17

be going to be 1/3 that's right I'd

play18:22

probably leave that as a fraction 1/3

play18:24

because I don't want I do not do not

play18:26

want you to approximate in just 2.3 or

play18:29

0.33 because you're going to be losing

play18:31

something there ok and you're

play18:33

essentially going to be losing it every

play18:34

time you multiply every time you have a

play18:36

term because of that distribution

play18:37

property the approximation be way off so

play18:41

leave this as a fraction unless you can

play18:43

have a finite decimal you listening

play18:45

right now okay so leave it as a fraction

play18:46

okay well cool now let's do our X's so

play18:50

we want X sub 0 we want X sub 1

play18:58

like sub 2 and so on what's X sub 0

play19:02

going to be what's X sub 0 say it louder

play19:06

what you say 0 yeah you start with a 0 0

play19:11

no problem ok well now if I have X sub 0

play19:15

0 what's X sub 1 you know that one

play19:18

it's give me 1/3 because you guys see

play19:21

that the point in doing this well maybe

play19:23

you don't see the point in actually

play19:24

doing this we're trying to approximate

play19:25

intervals integrals without actually

play19:28

doing them we start with that number you

play19:30

just keep on adding this your Delta X

play19:34

per term that's what this says is that

play19:35

start with your a Judas NRA is 0 right

play19:38

now

play19:38

you get it you start with a just add

play19:41

Delta X that's it just add it every

play19:44

single time

play19:44

so what 0 plus 1/3 if we do know how to

play19:50

do fractions so what's 1/3 plus 1/3 2/3

play19:54

now 100 X sub 3 what's up 2/3 plus 1/3

play20:01

3/3 1

play20:04

what's X sub 4 4/3

play20:10

what's X sub 5 5 thirds and what's X sub

play20:16

6 6 thirds yay so it makes me locate

play20:24

with that one so what I don't have all

play20:26

the all the terms in this particular one

play20:27

just so we feel through it again

play20:29

sometime so our integral can be

play20:33

approximated by doing this we start with

play20:38

Delta X how much is done X 1/3 1/3 we

play20:44

divided by what people carry very good

play20:46

and then we have

play20:48

this wholesome we have how's it start we

play20:54

see the apps f of zero very good

play20:57

f of zero then we add oh what's the next

play21:00

thing for board starts before four times

play21:04

f of 117 plus what 2 2 goes you know it

play21:12

works

play21:13

starts with nothing then it goes for

play21:15

then it goes to F of 2/3

play21:18

then it goes to what for fo and then it

play21:26

goes back to 2 with a head for 4/3

play21:29

then it goes back to for F of 5/3 and

play21:35

then it is what please F of yeah but

play21:39

notice there's nothing here so see how

play21:42

it's going to work it's going to always

play21:43

start with a full clips are done they

play21:45

there with nothing start with 4 and with

play21:46

a 4 and we're going to have one extra

play21:49

force it's going to pair up

play21:51

Bam Bam with an extra 4 it's not going

play21:53

to go back to the deciding to get there

play21:54

we use our even ends you're going to be

play21:57

located with this one are you sure ok

play22:00

and you can see if I went to N equals 8

play22:04

what's going to happen is I'm going to

play22:05

have another tuna to the four go

play22:08

into tentative another children before

play22:10

it's always going to end with that 4 and

play22:11

then then that last term without

play22:13

anything in front of it so what do we do

play22:15

with all these numbers what are we to do

play22:17

with them look you pull you into what

play22:20

function yep right there so this is

play22:23

going to be approximately 1 9 3 okay

play22:36

1 over square root 0 plus 1 plus 4 over

play22:43

square root of 1 3 plus 1 plus 2 over

play22:49

square root of 2/3 plus 1 plus 4 over

play22:55

square root of 1 plus 1 plus 2 over

play22:59

square root of 4 thirds plus 1 plus 4

play23:04

over square root 5 30 plus 5 plus

play23:09

nothing 1 well not nothing 1 over square

play23:13

root of 2 plus 4 and if you do that and

play23:17

add them all up and then multiply by 1/9

play23:20

then we get an approximation what I'd

play23:24

like to know is a show fans if you

play23:25

understand where all these things are

play23:26

coming from 2 events if you do guys on

play23:28

the right are you guys ok with this

play23:29

ok so this is what I had to bring your

play23:31

calculate in your calculator because

play23:33

there's a what I can be able to do this

play23:34

in our heads very easily so we're

play23:37

approximate here where it's okay to get

play23:38

our decimals so we got one that you add

play23:41

that X square divide 4 by it and so on

play23:44

and so forth and so on and so forth and

play23:45

so on and so forth now I've already done

play23:47

it you guys can go ahead and see if you

play23:48

can check my work but just for the sake

play23:50

of time it's going to take a little

play23:52

while right so here's what it is what it

play23:55

ends up giving you is approximately one

play23:59

point four six four to one is what that

play24:05

is

play24:11

Japan's relocated with the idea now what

play24:14

I want to do I want you guys to do the

play24:16

interval because we do know how to do

play24:18

this one we were kind of pretended we

play24:19

did don't want you to do that integral

play24:21

over here and just see what how good

play24:23

that approximation is all right so go

play24:25

forward

play25:55

like you to check my work to make sure

play25:57

that we all got the same thing did you

play25:58

get about that I should just get exactly

play26:00

that shouldn't know you got the two

play26:03

square root of x plus one if you plug

play26:04

back in the X before you start

play26:06

evaluating perfect that's fantastic so

play26:08

we got two or three minus two how much

play26:12

is two times the square root of three

play26:13

minus two one point eight four six four

play26:18

101 is that one more time one point four

play26:23

six four one zero one six okay that's

play26:28

good enough that's our our decimal place

play26:31

is it exactly the same is it close it's

play26:36

really stinking close look at that this

play26:37

is a one point four six four one this is

play26:40

one point four six four two it's off by

play26:42

a little over one ten-thousandth after

play26:47

only six n equals six so six iterations

play26:50

that's that's not too bad so that's

play26:53

pretty darn close for approximately

play26:54

something if we didn't know how to do it

play26:56

so that's a lot of the trapezoidal rule

play26:58

works that's how Simpsons rule works

play26:59

have I explained it well enough for you

play27:01

guys to understand yeah

play27:02

oh wait no I'm just kidding

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Numerical IntegrationTrapezoidal RuleSimpson's RuleCalculus TechniquesIntegral ApproximationMathematical MethodsEducational ContentMath TutorialCalculus 1Definite Integrals