Lagrange Multipliers with TWO constraints | Multivariable Optimization

  Рет қаралды 58,683

Dr. Trefor Bazett

Dr. Trefor Bazett

Күн бұрын

In our introduction to Lagrange Multipliers we looked at the geometric meaning and saw an example when our goal was to optimize a function (i.e. find maximums and minimums) subject to ONE constraint: • Lagrange Multipliers |...
Now we are upgrading to the case of optimizing with two constraints. We will look at how to interpret the lagrange multiplier method geometrically for two constrains, and then see a full example. We will also look at the geometry of the special case of optimization function: the distance.
Geogebra Link for the animations at the end: www.geogebra.org/classic/p3nn...
0:00 Intro
0:38 Lagrange Multiplier Method
4:50 Example
12:30 Visulization
Click Multivariable Calculus playlist below for the rest of the series.
****************************************************
COURSE PLAYLISTS:
►CALCULUS I: • Calculus I (Limits, De...
► CALCULUS II: • Calculus II (Integrati...
►MULTIVARIABLE CALCULUS (Calc III): • Calculus III: Multivar...
►DIFFERENTIAL EQUATIONS (Calc IV): • How to solve ODEs with...
►DISCRETE MATH: • Discrete Math (Full Co...
►LINEAR ALGEBRA: • Linear Algebra (Full C...
***************************************************
► Want to learn math effectively? Check out my "Learning Math" Series:
• 5 Tips To Make Math Pr...
►Want some cool math? Check out my "Cool Math" Series:
• Cool Math Series
****************************************************
►Follow me on Twitter: / treforbazett
*****************************************************
This video was created by Dr. Trefor Bazett. I'm an Assistant Teaching Professor at the University of Victoria.
BECOME A MEMBER:
►Join: / @drtrefor
MATH BOOKS & MERCH I LOVE:
► My Amazon Affiliate Shop: www.amazon.com/shop/treforbazett

Пікірлер: 73
@SolaceAndBane
@SolaceAndBane Жыл бұрын
The only guy on KZbin who gives an explanation for the expanded Lagrange Multiplier, even my professor just threw the formula out and told us to use it
@atakan716
@atakan716 2 ай бұрын
i wish all classes were like this, all we need is just a touch of intuition and visualization to set the concepts clear in our mind!
@tasninnewaz6790
@tasninnewaz6790 4 жыл бұрын
I love Trefor for Math and his personality.
@joaomattos9271
@joaomattos9271 Жыл бұрын
I've watched many classes on youtube and I can say that Professor Trefor's classes stand out. Simply awesome!
@cesarnunezrios5595
@cesarnunezrios5595 Ай бұрын
Dr. you are amazing! You just earned a new follower. This video really helped me
@nguyentuanminh5330
@nguyentuanminh5330 Жыл бұрын
What an awesome explainations and cool visualization. Thanks you Prof, keep doing.
@arinoba492
@arinoba492 2 жыл бұрын
Nice energy and even better teaching! I also found that website and seeing it here makes me happy :D
@Speak4Yourself2
@Speak4Yourself2 10 ай бұрын
Outstanding tutorial. Thanks a lot!
@rajat4260
@rajat4260 3 жыл бұрын
Thanks man ...you just made my life easier...gr8 work..
@josecarlosferreira4942
@josecarlosferreira4942 2 жыл бұрын
Thank you man! You are very helpful =D
@briandwi2504
@briandwi2504 Жыл бұрын
That was beautiful. I suddenly noticed while watching the video that I too was wearing a checked shirt! Morphing into Dr Trefor!
@nirajgujarathi6796
@nirajgujarathi6796 2 жыл бұрын
thanks professor, it is really great explanation !
@abmohit3117
@abmohit3117 2 жыл бұрын
Just amazing ❤️
@ar3568row
@ar3568row 3 жыл бұрын
This course/playlist is extremely great , wish I found it earlier , now my exam is tomorrow itself 😕
@grapplerart6331
@grapplerart6331 Жыл бұрын
After reading your comment, I can infer why you didn't find it earlier.
@ar3568row
@ar3568row Жыл бұрын
@@grapplerart6331 and yes, you are inferring correctly
@grapplerart6331
@grapplerart6331 Жыл бұрын
@@ar3568row 🤣🤣🤣 How did it go?
@devashishshah9021
@devashishshah9021 3 жыл бұрын
Your explanation, math, handwriting, 3d graphs.... all are super good
@devashishshah9021
@devashishshah9021 3 жыл бұрын
But your mu looks like a hook :-)
@FranFerioli
@FranFerioli Жыл бұрын
11:50 How satisfying when you catch the Professor making a clerical sign mistake. 11:58 How disappointing when such clerical sign mistake gets squared off leaving the correct result 😁 Great video as usual!
@continnum_radhe-radhe
@continnum_radhe-radhe 2 жыл бұрын
Thanks a lot sir 🔥🔥🔥
@milanrai6988
@milanrai6988 Жыл бұрын
Really really helpful for me
@fernandojackson7207
@fernandojackson7207 3 ай бұрын
Excelent, as usual. Why not just find the intersection of the two constraints and use the standard method on that intersection?
@Eric-gc3gh
@Eric-gc3gh 8 ай бұрын
Thanks from Korea
@user-lh5xs6xn9s
@user-lh5xs6xn9s 4 ай бұрын
Thank you sir you saved me.
@schizoframia4874
@schizoframia4874 Жыл бұрын
This is very cool
@crimfan
@crimfan 4 жыл бұрын
Zed's dead, baby, Zed's dead. ;) Nicely done. I really like the visualizations, too. I'll have to check out the software you mentioned in one of these vids.
@user-og7lf9oe7x
@user-og7lf9oe7x 9 ай бұрын
thank you so much
@steveying1305
@steveying1305 2 ай бұрын
great video
@Lets_MakeItSimple
@Lets_MakeItSimple 2 жыл бұрын
Your channel is so underrated.
@DrTrefor
@DrTrefor 2 жыл бұрын
I appreciate that!
@sdnavghare
@sdnavghare Жыл бұрын
Thank you sir
@vallurusudheerbabu8294
@vallurusudheerbabu8294 3 жыл бұрын
i became a big fan to ur intention.
@tiandao1chouqin
@tiandao1chouqin 3 жыл бұрын
Great video. But I'm wondering if there is a better explanation than just by extension of the 1 constraint case? If del f is orthogonal to both del g1 and del g2, then should del f be the cross product of the two?
@NubaPrincigalli
@NubaPrincigalli 3 жыл бұрын
Thanks for the excelent content! Found a small typo: at 11:50, it should be f(-3,0,-3), not f(-3,0,3), as z was squared the typo went unnoticed.. :)
@mathman2170
@mathman2170 Жыл бұрын
Nice.
@suhailawm
@suhailawm 4 жыл бұрын
tnx aLot prof.
@Darkev77
@Darkev77 3 жыл бұрын
Genius
@Saminnik
@Saminnik Жыл бұрын
hi, thank you for this video. I want to know if distance optimization is basically distance minimisation?
@user-gc9hn8yw4d
@user-gc9hn8yw4d 3 ай бұрын
@3:03 "single variable function" -> single constraint case
@srikanthk1276
@srikanthk1276 3 жыл бұрын
Hi Trefor, you made it look easy. Thank you👍 I didn't understand why grad f is a linear combination of gradients of the two constraints. Shouldn't grad f be perpendicular to the line of intersection of constraints? Can't one find the gradient of the intersection line and then proceed the same way as Lagrange multiplier case for a single constraint?
@DrTrefor
@DrTrefor 3 жыл бұрын
This is a fine method, but often finding a nice description for that line of intersection is highly non trivial
@user-xw4lu9py9r
@user-xw4lu9py9r 8 ай бұрын
The Graphical Approach in 3-D. You could possibly draw the surfaces by hand and compare the drawing to Geogebra. I tried this course with my 2-D calculator, and of course I could not visualize 3-D well.
@user-zu3hc2jn4l
@user-zu3hc2jn4l 4 ай бұрын
really appreciate your lesson. i just finished the high school math lessons and didnt major in math when in college. i tried lagrange multipliers on the following question, but was still stocked. too hard to solve the equation. abc=23, ab+bc+ca=27, what is the max and min of a^2+b^2+c^2 really appreciate if you can help......thank you.
@bzboii
@bzboii 4 жыл бұрын
I have that shirt! Nice!
@piotrfranczak8757
@piotrfranczak8757 Жыл бұрын
Thanks
@DrTrefor
@DrTrefor Жыл бұрын
Thank you so much!
@Aim4sixmeals
@Aim4sixmeals 4 жыл бұрын
Hi sir could u make videos on statistics? Like t tests, nullhypotheses
@marcellozanardelli7713
@marcellozanardelli7713 3 жыл бұрын
Nice video, but I didn't get how do you get to the linear combination of the gradients of the constraints? I get the 1 constraint case, but cannot understand the extension to this case
@HermanToMath
@HermanToMath 3 жыл бұрын
me neither. I understood gradient f and gradient g are parallel. However, if gradient g1 and gradient g2 form a plane, and gradient f is normal to the plane, it means gradient f is at the same time perpendicular to both gradients of g1 and g2.
@youssefdirani
@youssefdirani 2 жыл бұрын
@@HermanToMath no, the grad is perpendicular to both curves not to their grads
@aashsyed1277
@aashsyed1277 2 жыл бұрын
what about 3 constraints and 4 variables? are the equations gonna be same with one more constraint and one more variable like delta? and at 9:51 why is the case not possible?
@eldhopaul683
@eldhopaul683 8 ай бұрын
Which software you used to generate all the animations? Is it Geogebra?
@sayanjitb
@sayanjitb 3 жыл бұрын
Wow, this kinda interpretation is pretty handsome. Dear sir I had a question, i have seen in some places circle is indicated as S1 and sphere in 3d as S2. What do they mean anyway? TIA
@DrTrefor
@DrTrefor 3 жыл бұрын
it is just shorthand for a "1 dimensional sphere" and a "2 dimensional sphere" and you could go further o an n dimensional sphere which are all he points in n+1 dimensions of equal length fro the origin.
@abzshaker
@abzshaker 4 жыл бұрын
your videos are amazing but maybe you could get a better mic....and your channel would be perfect in all points!!
@Han-ve8uh
@Han-ve8uh 3 жыл бұрын
Im completely lost from the statement "the normal to g2 surface is gradient of g1". At 2:35 that vector really looks normal to g1 surface rather than g2, which is inconsistent with the audio saying that's the normal to g2? Is there a video in the playlist explaining this? My understanding of gradient vectors stopped at the "Geometric Meaning of the Gradient Vector", where it lives in the x-y plane and points to direction of steepest ascent on the surface. It seems that the gradients in this video do not stay flat on x-y plane. How can they be visualized and is there a video in playlist on gradients that don't live in just x-y plane and their geometric meaning? How would these g1 g2 and f gradients look on the geogebra example in last part of video? I wish the later example referred back to the theory in the first part of video.
@KidsCastable
@KidsCastable 7 ай бұрын
same here, no clue how those words are true and confused by the pic not following the words nor the math I understand
@dhyanprasad5611
@dhyanprasad5611 3 жыл бұрын
i wish you were my teacher
@HelloThere-lo3qi
@HelloThere-lo3qi 3 жыл бұрын
but how to solve it if all the x, y,z equation has 2 variable constraints and some of em even has the xyz variable on it, hence i cant make the same solution like yours sir, since i cant assume anything T.T
@ar3568row
@ar3568row 3 жыл бұрын
11:13 is it necessary that points we get with the help of Lagrange Multipliers , are either max or min . Why don't we consider the possibility of saddle point ?
@robinbernardinis
@robinbernardinis 2 жыл бұрын
The intersection of the restraints is 1 dimensional, so there can't be saddle points. In general, though, Lagrange Multipliers give you candidates for extremes, you have to manually verify whether they actually are maximums or minimums.
@ar3568row
@ar3568row 2 жыл бұрын
@@robinbernardinis yeah right, thank you.
@Maxwell_Integral
@Maxwell_Integral Жыл бұрын
Great video sir, question. At 11:10 why is it 1,0,-1 but for the second point it’s -3,0,-3 why is that?
@FranFerioli
@FranFerioli Жыл бұрын
There are two cases: 1) x = - z; when you put this in the other equations you find x = 1 ==> z = -1 2) x = z; when you put this in the other equations you find x = - 3 ==> z = - 3
@Maxwell_Integral
@Maxwell_Integral Жыл бұрын
@@FranFerioli Thank you so much
@amrithpurandhar9882
@amrithpurandhar9882 3 ай бұрын
why can't we take sqrt(x^2+y^2+z^2) it minimum distance rite
@thomasblok2120
@thomasblok2120 2 жыл бұрын
Is it possible to avoid the Lagrange multipliers altogether by saying that the determinant of all the gradients is zero? This plus however many constraints you have should be enough to make it work as long as you have exactly one less constraint than the number of variables.
@ysj143
@ysj143 Жыл бұрын
I'm not a mathematician, so please filter my answer. I solve this problem like what you said. 1st, make an equation that the determinant of all the gradient(g1, g2) is zero. 2nd, dot product of grad f and determint of (grad g1, grad g2) is 0. It can be solved with this method.
@TheVincent0268
@TheVincent0268 Жыл бұрын
why do so many video's have a poor sound quality
@bevanash7683
@bevanash7683 3 жыл бұрын
I prefer the previous animations as opposed to the handwriting.
@milanrai6988
@milanrai6988 Жыл бұрын
why are you taking such an easy function during tutorial? Can you just take f(x)= x^2y^4z^6 or like so?
@lgbtthefeministgamer4039
@lgbtthefeministgamer4039 8 ай бұрын
the complexity from choosing a "harder" function means that the skillset needed to solve it goes deeper into things not directly related to Lagrange multipliers. it's better to introduce new information by focusing specifically on the new information
Defining Double Integration with Riemann Sums | Volume under a Surface
9:41
Lagrange Multipliers | Geometric Meaning & Full Example
12:24
Dr. Trefor Bazett
Рет қаралды 271 М.
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 62 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 77 МЛН
Intuition and Examples for Lagrange Multipliers (Animated)
14:59
Casual Science
Рет қаралды 31 М.
What is differentiability for multivariable functions??
14:35
Dr. Trefor Bazett
Рет қаралды 96 М.
Understanding Lagrange Multipliers Visually
13:18
Serpentine Integral
Рет қаралды 323 М.
The Dirichlet Integral is destroyed by Feynman's Trick
8:15
Dr. Trefor Bazett
Рет қаралды 146 М.
The derivative isn't what you think it is.
9:45
Aleph 0
Рет қаралды 692 М.
In 2003 We Discovered a New Way to Generate Primes
22:17
Eric Rowland
Рет қаралды 393 М.
Lagrange Multipliers : Data Science Basics
10:01
ritvikmath
Рет қаралды 53 М.
What's a Tensor?
12:21
Dan Fleisch
Рет қаралды 3,6 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 62 МЛН