Evaluating a double integral and demonstrating Fubini's Theorem with MATLAB
In the last video we quickly go through the nuts and bolts of evaluating this algebraically, comparing it to what we had in CP3D, and here we'll evaluated the integral with MATLAB and use MATLAB to demonstrate Fubini's Theorem
First we define our x and y symbolic variables
syms x y
Then we define our function
f(x,y)=24-x^2-3*y^2;
And now we use the integrate command nested within another integrate command,
So our inner integral is wrt y between 0 and 2
And our outer integral is wrt x between 0 and 3
int(int(f,y,[0 2]),x,[0 3])
And there we have our answer of 23 confirmed
Finally, we can also compare this to our Reimann sum from CP3D
And if we go back to that and ratchet up our increments in the x and y directions we see that our Reimann sum gets pretty close to 102, further confirming our answer.
But one final question here, what if we switch around the order of integration, will that give us a different answer?
Well, I would encourage you to do just using the calculus steps above, but since hopefully you trust MATLAB now that we’ve confirmed our answer, let’s try it there..
And… we see this does in fact give us the same answer,
This illustrates ‘Fubini’s Theorem’
So we can freely switch our order of integration as long as we keep the bounds consistent and as long as those bounds are just numbers. In the next video, we’ll discuss what happens when those bounds are actually functions rather than numbers, but until then, take care
-
1:46:28
TheAlecLaceShow
5 hours agoGuests: Alex Jones | Alex Stein | Biden Deepfakes | Chicago Shootings | The Alec Lace Show
24.2K6 -
27:17
Neil
3 hours agoTheir Sinister PLAN To Eliminate ALL Meat Was Just Released!
26.5K16 -
1:19:33
Spittin' Chiclets
5 hours agoSpittin’ Chiclets Episode 508: Game 4 Recap
27.8K5 -
58:45
The Dan Bongino Show
5 hours agoYes! This Is How We Fight Back (Ep. 2273) - 06/18/2024
446K1.67K -
1:45:18
Steven Crowder
6 hours ago🔴 Magical Mystery Faith Healing with Tumor Toucher Cori Bush
245K341 -
1:10:59
Benny Johnson
4 hours agoIT'S HAPPENING: The PLOT To REPLACE Joe Biden Has Been Put Into ACTION | DNC In Panic As Trump ROLLS
66.8K121 -
25:04
Breaking Points
5 hours ago6/18/24: LIVE AMA!
40.9K10 -
1:52:35
jeffahern
4 hours agoTrending Tuesday With Jeff Ahern (9am Pacific)
21K9 -
9:45
Dr Steve Turley
4 hours agoIT’S OVER! Reports Coming Out Biden Will Be REPLACED!!!
41.9K41 -
1:12:04
Graham Allen
7 hours agoREVEALED: Plan To REPLACE Biden! + US on high alert for terror threat!
64.7K101