Premium Only Content
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:12:45
The Quartering
6 hours agoTerror In New Orleans, Attacker Unmasked, Tesla BLOWS UP At Trump Tower! Are We Under Attack?
85.2K107 -
1:32:08
Robert Gouveia
7 hours agoNew Year TERROR; Trump Speaks at Mar-a-Lago; Speaker Johnson FIGHT
75.2K69 -
22:21
Russell Brand
1 day agoVaccines Don't Cause Autism*
152K705 -
2:05:27
The Dilley Show
7 hours ago $20.92 earnedNew Years Agenda, New Orleans Terror Attack and More! w/Author Brenden Dilley 01/01/2025
88.1K34 -
25:45
Outdoor Boys
3 days ago3 Days in Arctic Survival Shelter - Solo Bushcraft Camping & Blacksmithing
65.5K22 -
2:59:05
Wendy Bell Radio
14 hours agoAmerica Is Back
113K116 -
1:45:57
Tucker Carlson
5 days agoAaron Siri: Everything You Should Know About the Polio Vaccine, & Its Link to the Abortion Industry
148K185 -
1:46:38
Real Coffee With Scott Adams
9 hours agoEpisode 2707 CWSA 01/01/25
54.3K36 -
14:06
Stephen Gardner
9 hours ago🔥Trump FIGHTS BACK: Biden White House BUSTED in MAJOR SCANDAL!
62K193 -
6:08:13
MissesMaam
21 hours agoCelebrating New Years 2025 💚✨
96.7K16