Lagrange Multipliers | Geometric Meaning & Full Example

Lagrange Multipliers solve constrained optimization problems. That is, it is a technique for finding maximum or minimum values of a function subject to some constraint, like finding the highest point on a mountain subject to the fact you can only walk along a trail. In this video we study the contour lines or level curves of a function and see geometrically why they are maximized when they are tangent to the constraint curve. That tangency condition leads to the algebraic formula that the gradient of f is equal to lambda times the gradient of g. In this video we will visualize the geometric meaning and then walk through a concrete example.
****************************************************
YOUR TURN! Learning math requires more than just watching videos, so make sure you reflect, ask questions, and do lots of practice problems!
****************************************************
►Full Multivariable Calculus Playlist: • Calculus III: Multivar...
****************************************************
Other Course Playlists:
►CALCULUS I: • Calculus I (Limits, De...
► CALCULUS II: • Calculus II (Integrati...
►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

Пікірлер: 443

  • @gamingmonts9737
    @gamingmonts97373 жыл бұрын

    by just seeing that graph, I immidiently understood something my professor talked about for 2 freakin hours 😂

  • @john.z3822

    @john.z3822

    3 жыл бұрын

    now i understood something my teacher talked about for 1 mounths lol

  • @hubenbu

    @hubenbu

    Жыл бұрын

    Stop it man, if you're no longer hungry after eating 2 pizzas, remember to pay respect to the first one.

  • @grapplerart6331

    @grapplerart6331

    Жыл бұрын

    @@hubenbu If the first pizza was a 5" when I ordered a 13", I wouldn't pay respect to the first one

  • @raptor2245

    @raptor2245

    Жыл бұрын

    😂lol

  • @themasstermwahahahah

    @themasstermwahahahah

    9 ай бұрын

    Bruh, ikr

  • @BloobleBonker
    @BloobleBonker2 жыл бұрын

    At the age of 66 after trying to understand Lagrange multipliers since the age of 18, I think I've finally got it. Conturs and gradients. Excellent graphics!

  • @raulsimon2218

    @raulsimon2218

    Жыл бұрын

    I could say practically the same. Thank you very much.

  • @asdfbaseqsfawefbaef7738

    @asdfbaseqsfawefbaef7738

    Жыл бұрын

    Hahaha! Such a great comment! You are amazing!

  • @KSM94K

    @KSM94K

    10 ай бұрын

    Wow that's absolutely satisfying

  • @fraserpye9667

    @fraserpye9667

    8 ай бұрын

    unlucky

  • @kevinbyrne4538

    @kevinbyrne4538

    8 ай бұрын

    Same is true for me -- but I'm 69.

  • @nathanborak2172
    @nathanborak21722 жыл бұрын

    This is not the way I have usually thought about it but it's equivalent. The way I've usually thought about it is that you imagine walking along the constraint and observing the gradient of f as you go. If the gradient of f has any component along the constraint, it means you can keep walking along the constraint and get higher (or lower) values of f, since the directional derivative is just the component of gradf(f) along the direction you're moving. Therefor you keep walking around the constraint until you reach a point where the gradient of f is normal to the constraint, since at this point f is instantaneously not changing. To me this is more intuitive than thinking the level curve of f should be tangent to the constraint, even though the gradient of f being normal to the constraint IS the level curve being tangent to it. Different strokes I guess.

  • @sandroelful

    @sandroelful

    2 жыл бұрын

    Genius answer, you helped me a lot. Thank you.

  • @nathanborak2172

    @nathanborak2172

    2 жыл бұрын

    @@sandroelful thanks! You made my day

  • @mackenziemurray9270

    @mackenziemurray9270

    2 жыл бұрын

    Wow I like the way your brain works!

  • @vishvakravichandran6797

    @vishvakravichandran6797

    Жыл бұрын

    Been trying to understand this for a while and you totally helped me!

  • @offtheleash6440

    @offtheleash6440

    10 ай бұрын

    This is genius

  • @Lawrance36
    @Lawrance364 жыл бұрын

    Mr. Bazett, I think this version of explanation is the best one in whole KZread, thank you very much!!!

  • @markbell8967

    @markbell8967

    3 жыл бұрын

    I agree

  • @Septumsempra8818

    @Septumsempra8818

    3 жыл бұрын

    By far

  • @cauchyschwarz3295

    @cauchyschwarz3295

    3 жыл бұрын

    3blue1brown`s one is way better. But it is hard to beat 3blue1brown. All in all a good video.

  • @shemsnow3711
    @shemsnow37113 жыл бұрын

    I think you're the first person I've ever heard explain math without either focusing too much on precise definitions and proofs that no one cares about or just expecting us to memorize formulas. Nice step by step relevant instructions. Very nice.

  • @lorentzianmanifold718

    @lorentzianmanifold718

    2 жыл бұрын

    Uhmm that describes pretty much all math channels on KZread lol

  • @yousafe007

    @yousafe007

    Жыл бұрын

    @@lorentzianmanifold718 All good ones, that is....

  • @marcourielmedinamandujano5872

    @marcourielmedinamandujano5872

    8 ай бұрын

    Definitions and proofs are important, you will never understand math without them

  • @Aruuuq
    @Aruuuq4 жыл бұрын

    Such a nice video. Very enthusiastic presentation. The graphics are some of the most explanatory one for Lagrangian Multipliers that I've ever seen.

  • @firsttnamee3883

    @firsttnamee3883

    4 жыл бұрын

    @@DrTrefor 5:54 could you explain why the gradient is always normal to the level curve ? you have any video on that ?

  • @sashamuller9743

    @sashamuller9743

    4 жыл бұрын

    @@firsttnamee3883 ya he has a video called gradient vector or something like that just search in his multivariable course

  • @firsttnamee3883

    @firsttnamee3883

    4 жыл бұрын

    @@sashamuller9743 yes. Thank you. i got that

  • @mathveeresh168
    @mathveeresh1684 жыл бұрын

    His beard is as good as his explanation

  • @fireemblem2770

    @fireemblem2770

    3 жыл бұрын

    YESSSS that is an amazing beard

  • @tedskins
    @tedskins4 жыл бұрын

    Thank you very much. I find that geometric interpretations of math concepts often make it significantly easier for me to understand

  • @zahraazad8441

    @zahraazad8441

    3 жыл бұрын

    me too

  • @THELORDVODKA

    @THELORDVODKA

    2 жыл бұрын

    I think Geometric interpretation is the whole point of it. The "discoverer" of it probably thought of it in this way itself, it is as if spirit joins othervise empty shell. Even though mathematicians like to portray these stuff on less visual basis, more "universal" logical one, this is how visionaries think in my opinion.

  • @mastershooter64

    @mastershooter64

    2 жыл бұрын

    @@THELORDVODKA complex analysis: *hello there*

  • @THELORDVODKA

    @THELORDVODKA

    2 жыл бұрын

    @@mastershooter64 It really isn't hahaha

  • @brucemurdock5358
    @brucemurdock53582 жыл бұрын

    The internet is a blessing, because of people like you

  • @ayushthada9544
    @ayushthada95443 жыл бұрын

    I feel whenever I need to brush up on my knowledge of calculus, I always end up on your channel. Your channel is a great learning resource. Thanks for posting these videos. Wish you were teaching Differential Geometry of Manifolds.

  • @abhinavsharma3188
    @abhinavsharma31882 жыл бұрын

    Every person who has ever taken an optimization course should see this short video! It gives you so much mathematical intuition to the concept of constraints and Lagrange multipliers!

  • @Love2ne1BigBang
    @Love2ne1BigBang4 жыл бұрын

    Thank you so much for this perfect visual representation of the Lagrange multipliers! I was so use to doing the same calculation techniques without really understanding what they mean and you just clarified everything!

  • @borannchanrathnak8256
    @borannchanrathnak82563 жыл бұрын

    Thanks for your explanation, Dr. Trefor Bazett. I was trying to imagine the stuffs in my head and it didn't work until I came here to see your graph visualization. Thumb up for your great work.

  • @kasyapdharanikota8570
    @kasyapdharanikota85703 жыл бұрын

    best professor teaching maths ,great explanation , very thankful to you

  • @slurperslurpslurp2670
    @slurperslurpslurp26704 жыл бұрын

    Absolutely wonderful, thank you!!! I saw other explanations without showing geometry and using too many jargon that are much longer and fail to explain the simple method. Thank you!

  • @parkjessica4444
    @parkjessica44443 жыл бұрын

    love your passion in math and it definitely motivates me! thank you, thank you, thank you!!

  • @marvellousngidi3765
    @marvellousngidi37653 жыл бұрын

    This is one of the "insane" videos I have ever seen on Lagrange multipliers🙌. You inspire me, keep saving the world 👏👏

  • @vishank7
    @vishank72 жыл бұрын

    Can’t thank you enough for this amazing explanation. Please keep up the good work!

  • @jrt6722
    @jrt67224 жыл бұрын

    Thank you so much, this is on my entrance exam to Japanese University

  • @nunopires2106
    @nunopires21064 жыл бұрын

    Was looking for this explanation for days and finally found it! Ty very much sir!

  • @bobbymcdingdong
    @bobbymcdingdong2 жыл бұрын

    First off Trefor : I want to say that you are beautiful and I love you! Second Off (ly) : Your series on Multivariable Calculus is a superb compliment to Denis Auroux's (also superb) MIT course on Multivariable Calculus. Your graphical representations of the problems are so much better than what was available in 2007. Many thanks

  • @briandwi2504
    @briandwi2504 Жыл бұрын

    A joy to listen to your explanations. Lovely bit of maths!

  • @lewiduressa
    @lewiduressa2 жыл бұрын

    Your videos are REALLLLLYYYY helping me understand my Calc 3 class concept, and you explain it way better than my teacher. Thank you!!

  • @denali9455
    @denali9455 Жыл бұрын

    my midterms tmr, thank u so much dude, made this intuitive

  • @GoutamDAS-ls1wb
    @GoutamDAS-ls1wb2 жыл бұрын

    Fantastic use of computer graphics to explain concepts. Lots of hard work. Thank you so much!

  • @bentaakinyi2248
    @bentaakinyi22483 жыл бұрын

    Thanks Dr for the clear and precise explanation.It is the best so far I have seen regarding Lagrange Multipliers.Very Intuitive!!This is what we need in Mathematics ,not just formula.Thanks once more!

  • @adrianrivero6104
    @adrianrivero61043 жыл бұрын

    That explanation about the tangent gradients was very clear and helped me a lot. Thanks

  • @johannesvanm.3467
    @johannesvanm.3467 Жыл бұрын

    Time and again you are so incredibly helpful, Dr. Bazett.

  • @xanderx8289
    @xanderx8289Ай бұрын

    man. you rock! finally, someone who actually TEACHES! not reads a precooked textbook rigid abracadabra.

  • @anish_cr
    @anish_cr4 жыл бұрын

    the great graphical representation made it very easy to understand. thanks for the enthusiastic explanation.

  • @Eric-xh9ee
    @Eric-xh9ee2 жыл бұрын

    I usually don't "like" videos but this is an excellent video, so I gave you a thumbs up! Thank you, Professor!

  • @yarenkaya7872
    @yarenkaya78722 жыл бұрын

    I honestly needed this great intuition, thank you sir for the demonstration

  • @emerald_eyes
    @emerald_eyes3 ай бұрын

    God bless you, I've been trying to understand this for hours. You explained it so elegantly.

  • @jamyllecarter3016
    @jamyllecarter30163 жыл бұрын

    Beautiful visualizations. Thank you!

  • @johnholme783
    @johnholme783 Жыл бұрын

    An explicit lecture on Lagrange multipliers! Thank you!

  • @abbieeagle5343
    @abbieeagle53434 жыл бұрын

    thank you, you explained what was going on greatly through the diagrams, really helped me out

  • @everelement1092
    @everelement10923 жыл бұрын

    Man, this video deserves more views and likes. I definitely need these 3D graph to understand it.

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    Glad the graphs helped!

  • @155mushfiqurrahman5
    @155mushfiqurrahman53 жыл бұрын

    Your explanation is really excellent ever i see on multi variable calculus....may Allah increase your knowledge more

  • @ankitparashar6370
    @ankitparashar63703 жыл бұрын

    The 3D visualization helped a lot. One of the best explainations on internet.

  • @user-ex6xc5ox3k
    @user-ex6xc5ox3k Жыл бұрын

    Damn, this is exactly what I was looking for. Wonderful explanation!

  • @Harry-ub2fv
    @Harry-ub2fv4 жыл бұрын

    Most beautiful explanation on Lagrange Multipliers.

  • @Cheeriot
    @Cheeriot4 жыл бұрын

    I love your teaching style, keep it up!

  • @nitika9769
    @nitika97695 ай бұрын

    you keep me motivated to do what i am doing, by showing how beautiful math is , im so grateful for having people like u

  • @sushantgarudkar211
    @sushantgarudkar2114 ай бұрын

    You are at maximum respect for me with constraint that I got entire concept so easily. Thanks a lot for the video and efforts you along with maybe your team if you have it put in to create such content along with matching and timed visuals! Superb Explanation!

  • @brianwilson3656
    @brianwilson3656 Жыл бұрын

    I second all these comments. Wonderful example and wonderful enthusiasm! Thank you

  • @mackenziemurray9270
    @mackenziemurray92702 жыл бұрын

    Thanks for this video! My calc teacher assigns us your videos to watch and we love your graphics!

  • @nathanzbrazil
    @nathanzbrazil2 жыл бұрын

    This is *extremely* well-explained!

  • @muhahaha153
    @muhahaha153 Жыл бұрын

    i already passed my analysis 2 exam but i never understood what i was doing when using langrange multipliers, i just learnt how to use it. Now i finally understand what i have been doing all the time thx

  • @irenepadre3352
    @irenepadre33522 жыл бұрын

    you are just the best math prof out there!!

  • @orangehat1924
    @orangehat1924 Жыл бұрын

    Explained Beautifully, bravo!

  • @SwabhimanTripathy4331
    @SwabhimanTripathy4331 Жыл бұрын

    Graphs help to visualise far better than asking to do self - imagination that may be error-riddened. I hope this video reaches to all those who truly want to learn this concept.

  • @themasstermwahahahah
    @themasstermwahahahah9 ай бұрын

    Jesus Christ, just seeing the two gradient vectors makes it immediately obvious why this works! I have been staring at equations when all I needed was teo pictures This is amazing!

  • @Z4yx
    @Z4yx3 жыл бұрын

    Thanks for the graphics, i understand better now.

  • @Festus2022
    @Festus20223 жыл бұрын

    This is the best explanation of the Lagrange multiplier I could find online. Thanks. Nice graphics!

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    Glad it helped!

  • @abhipriyeshukla5431
    @abhipriyeshukla54313 жыл бұрын

    this video definitely deserves nobel prize

  • @conintava514
    @conintava5144 жыл бұрын

    diagrams helped significantly! thanks for this

  • @albertesayas13
    @albertesayas134 жыл бұрын

    you amazed me, thanks

  • @freedomofmusic2112
    @freedomofmusic2112 Жыл бұрын

    for the algorithm! love your videos Dr. Bazett!

  • @hbbh
    @hbbh3 жыл бұрын

    dammn just discovered your videos, you are a hero.

  • @kartikshrivastava582
    @kartikshrivastava5824 жыл бұрын

    Very well explained with graphics...!! Thanks for making these videos

  • @edwarddi3833
    @edwarddi38334 жыл бұрын

    man, with the help of your video, simply save 50% of my study time for struggling in the textbook.

  • @edwarddi3833

    @edwarddi3833

    4 жыл бұрын

    Hi, Trefor, could you please explain in your 3D graph about the difference between the graph of f(x,y)=x²+y² and f(x,y,z)=x²+y²+z² ?

  • @Tweeteketje
    @Tweeteketje Жыл бұрын

    Extremely well explained!!

  • @alfcnz
    @alfcnz3 жыл бұрын

    This video is simply awesome! I understand now I can push further on mixing human + math animation videos. I understand you're using a green screen with a static blackboard photo on which you draw math and graphs. At the beginning I was thinking you were going to actually write on the board with a chalk. I didn't notice it was artificial.

  • @StratosFair
    @StratosFair8 ай бұрын

    You definitely have a gift for teaching, thank you for sharing it with the world

  • @chethanar8274
    @chethanar82743 жыл бұрын

    Such a wonderful explanation. You are the ones who prove that math is interesting. Thank you so much.

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    You're very welcome!

  • @timothypulliam2177
    @timothypulliam2177 Жыл бұрын

    Excellent video, perfectly explained. Thank you

  • @khyatitrivedi3360
    @khyatitrivedi3360 Жыл бұрын

    Thank You So much... your videos are very helpful. The visuals make it very easy to understand Mathematics

  • @AJ-et3vf
    @AJ-et3vf2 жыл бұрын

    Awesome video! Thank you!

  • @tommygokes
    @tommygokes8 ай бұрын

    This helped so much with my homework! Thank you! My professor in college is awful at teaching, but you're amazing at it

  • @mdmijanurrahman9695
    @mdmijanurrahman96953 жыл бұрын

    I wish I had watched your video 4 months ago. This would make my life a whole lot easier. Anyways, watching now will also help me in my exam. You are amazing. I wish you all the best.

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    Good luck on your exam!

  • @JFASACM
    @JFASACM3 жыл бұрын

    A natural professor! Thank you, sir!

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    Thank you kindly!

  • @knk8192
    @knk81923 жыл бұрын

    Sir, You are the greatest explainer I have ever seen.

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    Wow, thanks!

  • @ksheersagaragrawal9104
    @ksheersagaragrawal91043 жыл бұрын

    most appropriate video to get to know the idea behind this theorom

  • @shwephyusinmoe5068
    @shwephyusinmoe50682 ай бұрын

    Thank you for your explanation,Sir!😊

  • @Trangnguyenbookclub
    @Trangnguyenbookclub3 жыл бұрын

    you save my world Dr Trefor!

  • @TheGraftal
    @TheGraftal6 ай бұрын

    Thank you for this amazing video!

  • @continnum_radhe-radhe
    @continnum_radhe-radhe2 жыл бұрын

    Thank you so much sir... 🔥 before seen this video.. this topic looks so complex but now it is easy

  • @RespectThePouch1028
    @RespectThePouch10283 жыл бұрын

    My textbook had the same explanation, but your visuals and simultaneously lucid explanation finally helped me start to get it. Thank you!

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    Glad it helped!

  • @VietnamSteven
    @VietnamSteven2 жыл бұрын

    Just wow! Thank you sir!

  • @SK-ww5zf
    @SK-ww5zf2 жыл бұрын

    Great video -- Thanks a million!

  • @DaveFer
    @DaveFer2 жыл бұрын

    Thanks for doing this video. It's great. I'm only sad that I discovered it only after I've already understood it. I've been looking at these Lagrange explanations for years and yours is approximately the best. I love your graphics and your explanation. (Maybe the audio could be a bit better.) If anyone is curious as to a real-life application of this type of solution, think about a consumer that has a budget constraint of, say, $12,000 / year to spend on either food (f) or clothing (c) and the utility U they derive from that food and clothing is given by U = f * c + 1. Their (budget) constraint is the line given by $12000 = (Pf)(f) + (Pc)(c). This method helps us find the combination of food and clothing that maximizes the consumers utility given their budget constraint. Yay! :)

  • @glory6998
    @glory69982 жыл бұрын

    This channel is gold 💙💙💙

  • @plainfilth1126
    @plainfilth11263 жыл бұрын

    amazing..really. So helpful.Thank you!

  • @joaquinacevedo9332
    @joaquinacevedo93322 жыл бұрын

    Excellent explanation!

  • @sinasoltan.m4859
    @sinasoltan.m48594 жыл бұрын

    Thank you so much.one of your 10 minutes videos is better than 10 years of studying at university😀

  • @PiOu812
    @PiOu8122 жыл бұрын

    Fantastic job!

  • @catchphraseish
    @catchphraseish3 жыл бұрын

    Brilliant explanation. The visual aids help make it more intuitive. Thank you for this!

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    Glad they helped!

  • @debayanmitra3729
    @debayanmitra37292 жыл бұрын

    Brillinatly explained.

  • @umedina98
    @umedina983 жыл бұрын

    Amazing explanation!

  • @daggerdeadshot1694
    @daggerdeadshot16942 жыл бұрын

    Love from india sir keep on the good work ...education learning wisdom unites people

  • @oliviab6415
    @oliviab64153 жыл бұрын

    Dr. Bazett! Amazing work! Very concise and clear, graphics were incredibly helpful! My Calculus 3 teacher recommended this video on our lesson and I feel so enlightened. Thank you for your contribution, and keep up the great work.

  • @DrTrefor

    @DrTrefor

    3 жыл бұрын

    Thank you!! Can I ask what school you are at? Always love when I get a teacher recommendation:)

  • @todianmishtaku6249

    @todianmishtaku6249

    2 жыл бұрын

    @@DrTrefor First off, let me express my deep gratitude about this great explanation. Many tutorials seem to skip important moments in explaining the geometric intuition behind the main equation of scalar multipliers. Still I have something unclear. When we say that the gradients of f and g have the same direction, it seems to imagine them lying in the same plane; and, this plane is the same where the contour line of f lies in. Isn't it like this? If so, it is obvious that two vectors that lie in the same plane and are perpendicular to the same straight line, then they are parallel one to another. BUT, the gradient of f in fact does not lie on the plane defined by contour line; it is a vector in 3D space (which, for instance, points to the top of hill). How do we know that the gradient of g at the tangent point is parallel with the gradient of f? Or when you say that the contour line of f and the one of g are tangent, do you have in mind a common tangent line or a common tangent plane? You show that real gradients in 3D are "projected" into 2D. In other tutorials, people see just the ones in 2D and then the analysis that gradients are collinear is quite easy because the analysis about parallelism seems to be based on 2D, but as I mentioned above my concern is related to the fact that the real gradients we put in the equation are in 3D; hence showing their parallelism remains a bit unclear. In other words, when we say that the gradient of f is perpendicular to f, that can be true even if the gradient does not lie on the plane defined by the contour line. Could you please shed more light on these "paradoxes" (which may be only my paradoxes) ? Could you please draw both gradients (for the f and g) on the graph of the left side? Could you please pick up two or more g functions?

  • @yeast4529
    @yeast45292 жыл бұрын

    Great explanation as always, thanks

  • @thesnakednake
    @thesnakednake2 жыл бұрын

    This is an absolutely fantastic video

  • @sniperwolf50
    @sniperwolf502 жыл бұрын

    9:05 Not the focus of the video, but a slightly neater approach is to square the first and second equations and sum them up resulting in x² + y² = 4λ²(x² + y²). By the third equation, it follows immediately that λ² = 1/4. Then, proceed the same as before.

  • @ryanguo13
    @ryanguo1310 ай бұрын

    Thank you so much with the high equality graphs😊

  • @levinsonherman6777
    @levinsonherman67772 жыл бұрын

    this is so great sir ! thankyou !

  • @christophersmith8515
    @christophersmith85156 ай бұрын

    Very helpful, thank you!

  • @holyknighthodrick3614
    @holyknighthodrick36142 жыл бұрын

    Nice video helped a bunch, thanks.

  • @Cdosvirusexe
    @Cdosvirusexe2 жыл бұрын

    Ahhh, thanks man, superb video

  • @RajivSambasivan
    @RajivSambasivan2 жыл бұрын

    Wow! what a fantastic explanation of lagrangian multipliers. The best I have seen. Amazing.

  • @DrTrefor

    @DrTrefor

    2 жыл бұрын

    Thank you!!