Calculus 3 Lecture 13.9: Constrained Optimization with LaGrange Multipliers

Sdílet
Vložit
  • čas přidán 6. 07. 2024
  • Calculus 3 Lecture 13.9: Constrained Optimization with LaGrange Multipliers: How to use the Gradient and LaGrange Multipliers to perform Optimization, with constraints, on Multivariable Functions.

Komentáře • 271

  • @pdog44450
    @pdog44450 Před 7 lety +823

    forget calculus, this dude should upload his workout routine

    • @phenotypealpha
      @phenotypealpha Před 6 lety +63

      Probably uses calculus to design his routine ;p

    • @Peter_1986
      @Peter_1986 Před 5 lety +27

      I have actually made up a unit for weightlifting, which I call "Arnold".
      It's simply the product of the number of sets, the number of reps, and the weight in kilograms.
      So for example if you lift 20 kg and do 3×8 sets and reps, then you lift 480 Arnold, or, I guess, "480 Ar".
      It seems to me that any sets, reps and weights that have the same value for Arnold give roughly the same effect.

    • @narutouzumakix9201
      @narutouzumakix9201 Před 5 lety +1

      that's pretty interesting actually

    • @hamstrung22
      @hamstrung22 Před 5 lety +11

      @@Peter_1986 Interesting, but flawed. Doing 3x5 100kg BP would give you 1500 Ar, and doing 30x5 10kg BP will also give you 1500 Ar. You definitely aren't going to make any progress doing the latter tho. Hypertrophy works at the 8-12 rep range generally. Strength gains at the 3-5 rep range. You're not putting enough stress for hypertrophy, nor enough weight for strength gains. Might see some minimal results, but you know for sure you'd gain with the former.

    • @diegol4452
      @diegol4452 Před 5 lety

      that'd be biceps 100000 series 10000 reps

  • @aubreeswart2206
    @aubreeswart2206 Před 6 lety +75

    26:37 - “I don’t wanna lose you now; you’ve learned too much.” The way he said that so seriously is so funny and sweet at the same time omg. 😂😭💚

    • @danieljulian4676
      @danieljulian4676 Před 2 lety

      You haven't learned too much if you could have learned twice as much in half the time.

  • @victorkotov7502
    @victorkotov7502 Před 2 lety +21

    best teaching style for ADHD students!

  • @johnathonsnipes8132
    @johnathonsnipes8132 Před rokem +7

    3 minutes in and this guy already healed my lack of intuition of level curves.

  • @skylerpretto1221
    @skylerpretto1221 Před 4 lety +40

    Hands down the most intuitive explanation of Lagrange multipliers I've ever heard!

  • @Alley00Cat
    @Alley00Cat Před 7 lety +177

    Thank god I can rewind. I tend to blink

    • @kscottvarga9606
      @kscottvarga9606 Před 7 lety +23

      It's for comments like these that have me reading em.

    • @eliya3424
      @eliya3424 Před 3 lety

      😂 Funny and original

  • @rachelrigsbee6650
    @rachelrigsbee6650 Před 4 lety +9

    I don't understand why calc teachers will sometimes just teach you plug and chug. Understanding the underlying concept is so important. Thank you so much for this video!!

  • @ejp7360
    @ejp7360 Před 5 lety +6

    There's a special place in heaven for people like this guy.

  • @Chemasaurus
    @Chemasaurus Před rokem +8

    The excitement at 5:16 is the energy we need in a calc 3 lecture

  • @brendancleaver93
    @brendancleaver93 Před 4 lety +5

    His excitement from 6:30-8:30 is why I love math so much: it's a beautiful thing when everything falls into place so perfectly.

  • @user-db2lx6tu9t
    @user-db2lx6tu9t Před 4 lety +68

    If you are familiar with the concept
    Examples will strat at 22:18
    Good luck with your exam! And wish me luck too!

  • @sneha.........
    @sneha......... Před 3 lety +2

    I did my engineering 7years ago....came to b5rush my concepts...all I can say is I love this guy...

  • @elisiandchrissy
    @elisiandchrissy Před rokem +3

    Honestly hands down the best at teaching this, not only do you love what you do, but helps others love math as well. Thank you for not making any assumed knowledge but breaking it all down for the students. Really helped me understand

  • @starryecliipse
    @starryecliipse Před 6 lety +7

    This video saved my life, I missed my lecture on lagrange multipliers because I was sick and the textbook was no help at all... this video explained things super clearly and I understand lagrange multipliers now, thank you SO MUCH!!

  • @vaidehichennubhotla7887
    @vaidehichennubhotla7887 Před 7 lety +9

    superman teaching calculus!! This is the most awesome lecture I have ever had in Calculus. Thank you very much professor.

  • @EvaSlash
    @EvaSlash Před 8 lety +51

    You are a good teacher. The professor I had just blew threw everything without even seeming to care if we learned or not. There was absolutely no care or anything in his method of teaching, unlike yours.

    • @danieljulian4676
      @danieljulian4676 Před 2 lety

      I think you're probably the one who should care whether you learn or not. Don't give the instructor responsibility for pouring knowledge into your thick head.

    • @vvictorg123
      @vvictorg123 Před 2 lety +9

      @@danieljulian4676 its his literal job bruh lmao

    • @Mikebigmike94
      @Mikebigmike94 Před rokem +2

      I agree we should all take a little responsibility but for one, there's no need for the insults and 2, people pay vast sums of money to be educated by some of the best in the world, not to have a book worth a few quid thrown at them and say there you go. those sort of people shouldn't be teachers. they just want an easy wage with zero passion.

    • @danieljulian4676
      @danieljulian4676 Před rokem

      @@Mikebigmike94 fair enough, mike. I will add that one can pay a lot of money to take a degree at a research university and as you say, get pretty poor classroom experience. Even at universities that are second rank, but still use the "publish or perish" model for their faculty ladder. There are only a very few elite universities for the entire planet. The lectures we're watching here are being presented in a community-college environment. The comment to which I responded is just a crass complaint from someone who gave no substantive comment on the teaching methods. It's hard to tell whether Gib Gob is a thoughtful student or a numbskull. I decided it was the latter. If you look in the comment threads for lecture videos on this platform, it is not uncommon for someone to say pretty much the same thing as Gib Gob. What Professor Leonard is doing largely consists of working examples on the whiteboard. I have no idea what kind of problems these students will be prepared to tackle once they have strayed outside the framework of the examples. I see very little in the way of mathematical background, and a hard focus on the results of the theorems. There are many other video lectures on Calc 3 to be found, particularly the ones from MIT Open Courseware. The exercises presented there are much more difficult than the formulaic application of results we see here.

    • @Mikebigmike94
      @Mikebigmike94 Před rokem

      @@danieljulian4676 well these students also follow along with a university level textbook and achieve the same degree as any other university, there’s a few articles/videos explaining these “elite” or top universities are not what they seem. Most degree holders end up on the same salary and are still very highly employable. If somebody wants to become an expert on calculus or whatever other topic you can do so by years of studying textbooks in your own time if you have the passion. But while you’re an undergraduate, it doesn’t have to be the most difficult thing in the world. Knowing the concepts and being able to solve most of the textbook problems should be enough.
      Btw I’ve found most of these communities college professors can explain concepts a lot better than other universities, like MIT. A lot of the time the latter seem to just put on a “show” of how fast and how good they are at going through concepts/problems without caring if students understand.

  • @pedroinacio_maths
    @pedroinacio_maths Před 2 lety +2

    Excellent lesson.
    You do a great job of not just showing how to solve the problems you present, but showing where it all connects together.
    Thanks

  • @UROOZFATIMA190
    @UROOZFATIMA190 Před 24 dny +1

    Love his passion and incredible ENTHUSIASM for teaching maths.

  • @MaxRollison
    @MaxRollison Před 4 lety +3

    45:50 Was a great example for understanding for anyone needing to learn Lagrange Multipliers. Explained well too

  • @swordoflorn
    @swordoflorn Před 6 lety +216

    I can't believe I'm paying someone hundreds of dollars to teach me calc 3 when I can learn it far easier for free online from you.

    • @hocho1717
      @hocho1717 Před 5 lety +8

      Im in the same boat my friend. I currently do go to class and watch this instead. we will see how it goes

    • @tristanbrown1995
      @tristanbrown1995 Před 5 lety

      @@hocho1717 howd it go?

    • @noahaguilar8766
      @noahaguilar8766 Před 3 lety

      @@hocho1717 yeah how'd it go?

    • @hocho1717
      @hocho1717 Před 3 lety +10

      @@noahaguilar8766 failed the first time. Took it again and did extremely well! If you are in the same boat, don't give up like I did the first time haha!

    • @regularlyirregular8876
      @regularlyirregular8876 Před 3 lety +9

      I'm paying hundreds of dollars to do online homework with no instruction from my professor in this required course when I could be learning about my actual major.

  • @thebossification101
    @thebossification101 Před 4 lety +1

    Great explanations and extremely engaging. My hat goes off to you Professor Leonard.

  • @nikolas_ohler
    @nikolas_ohler Před 4 lety +2

    Thank you very much for such a profound and at the same time comprehensive explanation. Was stuck with this concept for a while and wanted to understand the logic behind the concept and not just memorize the formula.
    Thank you!

  • @rashedkhaled7375
    @rashedkhaled7375 Před 6 lety +2

    Thank you so much Professor I was near to be hopeless about the Lagrange multipliers but with you , you've explained it like a piece of cake . Sending greetings from Kuwait

  • @georgesadler7830
    @georgesadler7830 Před 2 lety +2

    Professor Leonard ,thank you for a short and in depth video/lecture on Constrained Optimization with LaGrange Multipliers in Multivariable Calculus. This topic is simple to follow, however, the algebra can get messy in order to find correct solutions.

  • @strange6973
    @strange6973 Před 3 lety +2

    I think Johnny Bravo just taught me constrained optimisation... Is this what pure joy feels like?

  • @alvinarevalo9378
    @alvinarevalo9378 Před 2 lety +1

    you're the best math teacher EVERRRRR and I'm from Canada your method of teaching is the best I ever experienced in my life thank you very much

  • @alexmaclellan1983
    @alexmaclellan1983 Před 3 lety

    Very useful as I get ready for my comprehensive exam. Much appreciated, Prof. Leonard!

  • @nouman8639
    @nouman8639 Před 7 lety +11

    Proff. Tomorrow is my calculus final exam hope so I will be manage to get A+ grade just because of you. Your attempt for class participation is really great. As Einstein said, " Education is not the learning of fact but the training of the mind to think". You are doing same. (Thank Proff)

  • @ibrahimelosta7422
    @ibrahimelosta7422 Před 8 lety +139

    44:38 z=1/4 when landa = -1 not z=-1/4

  • @anangelsdiaries
    @anangelsdiaries Před rokem +23

    I think there's a mistake at 44:38 since the second z should have been positive. The result is correct though. Thanks a ton for this video Prof Leonard, carrying me through my Calc 3!

  • @user-jt2xb1tq4b
    @user-jt2xb1tq4b Před 4 lety +1

    أحسنت يا غلام ...........اسلوب جيد لتعليم

  • @jovannic_h6859
    @jovannic_h6859 Před 7 lety +13

    been watching ur vids since calc 2 really helped me for finals.. spent countless monster and rockstar fueled all nighters studying my weak points with ur vids.. taking calc3 over the summer and watching ur lectures after my lecture really helps me understand my notes and homework... you're the best.. I'm hopeful for differential equations lectures next xD

    • @mann8283
      @mann8283 Před 8 měsíci

      does monster help?

  • @tiagocoelho7642
    @tiagocoelho7642 Před 7 lety

    You are a great teacher, always motivated and concerned if the students are understanding the fundamentals of the subject in question before they actually start solving problems...
    Thank you for your lectures, its because of you I will pass Calculus 3 :)

  • @GueVonez
    @GueVonez Před 7 lety +2

    Those first 10mins pumped me up so much

  • @drewski91
    @drewski91 Před 6 lety +1

    Professor, you are the best teacher of calculus i have ever seen

  • @rebeccanery_
    @rebeccanery_ Před 5 lety

    Amazing class! Please never stop teaching!

  • @zaidradwan4000
    @zaidradwan4000 Před 5 lety +2

    You are very active and enthusiastic doctor

  • @danielleg6915
    @danielleg6915 Před 5 lety +2

    I love his passion for the math and for teaching!

  • @dahe1352
    @dahe1352 Před 7 lety +33

    this dude is jacked

  • @chidiejiofor6224
    @chidiejiofor6224 Před 5 lety

    Prof. Leonard, you are the GREATEST!

  • @Himawari_.
    @Himawari_. Před 4 lety +2

    Thank You so much sir. I really appreciate your lectures. No professor able to teach like you. So humble teacher. tq

  • @canman5060
    @canman5060 Před 6 lety +1

    Congratulation. You've made LaGrange Mulitpliers a lot more understandable than LaGrange made for himself ! He didn't have much confidence when he started this !

  • @leensameer6805
    @leensameer6805 Před 3 lety +5

    Thank you very much for your great efforts .... And I hope you will put Arabic subtitles in all your videos...
    You are an amazing person 🙏🏼💙

  • @haniehsoleimani6096
    @haniehsoleimani6096 Před 7 lety

    Just perfect. Now I know the idea behind it:)) Great help. Thank you so much.

  • @aleynadoven
    @aleynadoven Před 5 lety +1

    I got AA from my calc 3 class thanks to you and ur videos , thank you so so much

  • @kevvonkev
    @kevvonkev Před 2 lety

    DUDE HES THE BEST!!! He has helped me gain to much insight and intuition!

  • @nickcooley2857
    @nickcooley2857 Před 7 lety +29

    LOVE IT, BUY THAT MAN A BEER!

  • @user-oy7ut2dc2o
    @user-oy7ut2dc2o Před 4 měsíci +1

    The best channel for calculus

  • @Demonface54
    @Demonface54 Před 5 lety +2

    Honestly, if any of my teachers had the enthusiasm that you do for teaching, i would be doing a lot better in class.

  • @mthokozisisiphiwe7655
    @mthokozisisiphiwe7655 Před 5 lety +1

    wow that was awesome i love the energy you have Sir salute

  • @imamalam4971
    @imamalam4971 Před 6 lety +4

    Wouldn't it be the best thing ever of Prof L covered ODE AND PDE

  • @viveknsharma
    @viveknsharma Před 7 lety

    Sir is absolutely amazing... I bow to him...

  • @shani2114
    @shani2114 Před 5 lety +1

    Thank you, Prof... I have the exam in 2 hours... Great Help...

  • @marouanemaachou7875
    @marouanemaachou7875 Před 3 lety

    So passionate , keep it coming !!

  • @markpascual100
    @markpascual100 Před 4 lety +1

    "i need job security. ya'll find something else to do" cracks me up

  • @Mrbeastifed
    @Mrbeastifed Před 5 lety +5

    Also, does anyone know if he uploads his class notes anywhere?

  • @ademolaadebowale2723
    @ademolaadebowale2723 Před 3 lety +1

    Definitely going to need to practice this a lot more. The systems of equations always mess with me and leave me scratching my head.

  • @matthewzarate9116
    @matthewzarate9116 Před 5 lety +10

    28:34 "I need job security, find something else to do!" lmao

  • @juanvilla5613
    @juanvilla5613 Před 4 lety +2

    For the last example, you could also set ‘ 2x+y = lamda2x and 2y+x = lamda2y ‘ equal to lamda and then set them equal to each other and once you simplify you end up with x^2=y^2 so that way you solve directly for x nd y

  • @agusssia111
    @agusssia111 Před 7 lety

    Amazing lectures, great help for me, thank you :)

  • @breakingmath1
    @breakingmath1 Před 4 lety

    Wow! Good work Jhonny Bravo!

  • @elle694
    @elle694 Před 7 lety +43

    Hi Professor Leonard! I think the "z" in 43:19 should be equal to ¼ instead of -¼ though the answer is still the same. :)

    • @Iceage31580
      @Iceage31580 Před 3 lety +2

      1+2+1 = 4lambda^2 then 4 = 4lambda^2 divide 4 from both sides you get, 1 = lambda^2 and finally you take a root from both sides therefore lambda equals plus or minus 1. I got confused too, and did the math.

  • @kabulkhan2245
    @kabulkhan2245 Před 4 lety

    I enjoy my holidays by watching your lectures..💓

  • @15997359
    @15997359 Před 4 lety

    U are real blessing sir, thank you so much for all u videos🙏🙏🙏🙏

  • @Nico-vj7jc
    @Nico-vj7jc Před 5 lety

    great lecture. I did not blink once :)

  • @mariasako5408
    @mariasako5408 Před 6 lety

    What a great teacher!

  • @lowroar5127
    @lowroar5127 Před 7 lety

    Thank you very much! You're the best

  • @SuperiorWare
    @SuperiorWare Před 8 lety

    This channel is SUPERB! 60FPS WE MEET AGAIN!

  • @nalviduro3832
    @nalviduro3832 Před 5 lety

    You deserve a medal.

  • @anniedrew4440
    @anniedrew4440 Před 6 lety +1

    If Professor Leonard taught my calc class, I'd have perfect attendance

  • @nandhinin799
    @nandhinin799 Před 4 lety

    great explanation. Thank you!

  • @audymashal2214
    @audymashal2214 Před 8 lety

    great professor
    you are a genus

  • @Peter_1986
    @Peter_1986 Před 2 lety

    I have to try this method for that box problem at the end of the previous video.

  • @sivadasanet7966
    @sivadasanet7966 Před 2 lety

    Thank you Professor. It helped a lot...

  • @wonjunlee5413
    @wonjunlee5413 Před 7 lety

    Your lecture is super easy to understand and really funny.
    I envy your students

  • @EeDymonNij
    @EeDymonNij Před 7 lety +21

    45:00 shouldn't z=1/4 instead of z= -1/4 (for lambda = -1)? ..

  • @Timebomb1010
    @Timebomb1010 Před 7 lety

    for the last example, couldnt you have just gone back to your g(x,y) equation and used the x^2+y^2=0 to find x=y as a substitution? or is there a reason that i cant do that

  • @businessman1060
    @businessman1060 Před 6 lety

    I m looking forward to kkt conditions or inequality constrained optimisation ... haven't you make a lecture for it ?

  • @alextsvetkov3211
    @alextsvetkov3211 Před rokem

    Oh my god. I get it. I’m literally on my midterm and we only have chapter 16 of James Stewart left to cover LMAO. I just got it. I love this thank you

  • @soumithnalli5169
    @soumithnalli5169 Před 7 lety

    brilliant sir ! thank you very much

  • @bruceWayne19993
    @bruceWayne19993 Před 2 lety

    brilliant explanation, you are amazing.

  • @robertleo3561
    @robertleo3561 Před rokem

    You are an incredible teacher

  • @JuiceBoxBoiii
    @JuiceBoxBoiii Před 4 lety +1

    This is an amazing video but I have a doubt, I am not able to understand why taking the gradient produces the normal. The gradient is the rate of change in a specific direction, so how did it become normal to the curves? Thank you.

  • @commensalist
    @commensalist Před 6 lety

    Professor Leonard, why don’t you just x/4x for finding lambda in last example. It gives lamda-1- = neg or pos 1/2. Does making this cause a miscalculation?

  • @ThePatelprateek
    @ThePatelprateek Před 3 lety

    do gradients have to be same direction or negative scalar works too ?

  • @JM-ty6uq
    @JM-ty6uq Před rokem +1

    33:30 How can you conclude a maximum? I did the second derivative test to get D(x,y) = -1, so I got a saddle point.
    I took the directional derivative of f in the direction of the normal n = (2,3), and got a value greater than zero telling us that the function is increasing in that direction. Wouldn't that mean that (3/2,1) is a minimum?

  • @jackbirnbaum4379
    @jackbirnbaum4379 Před 4 lety

    excellent presentation

  • @davidg3298
    @davidg3298 Před 4 měsíci +1

    0:50- The idea
    6:25- Level Curves
    11:53- Constrained Optimization
    45:41- Hard Problem

  • @dawnlee3867
    @dawnlee3867 Před 8 lety

    have to say YOU ARE AWESOME!

  • @queenstrategy904
    @queenstrategy904 Před 3 lety

    This guy is spectacular

  • @RohanDutt31
    @RohanDutt31 Před 5 lety +26

    11 dislikes coming from your angry calc 3 profs who can't teach!

  • @businessman1060
    @businessman1060 Před 5 lety

    hi professor ...
    I hope you continue the constrained optimisation and teach the KKT inequality constraint problems asap

  • @ranam
    @ranam Před 2 lety

    My question may be strange but I have no one to ask this can you tell me a Lagrange algorithm to find a minimum arbitrary volume within another volume which can contain it by maximum of it inside it or minimum of it out side 🙏🙏🙏

  • @rileymenter6095
    @rileymenter6095 Před 2 lety

    "Solve for Lamba" 28:44 that was all I needed

  • @leohuo4263
    @leohuo4263 Před měsícem

    If my professor gone through the theory behind lagrange multipliers, it would have made constrained optimisation much easier to understand

  • @sabhrant5533
    @sabhrant5533 Před 4 lety

    what should we do when there are multiple constraints. ?

  • @whateverchannel92
    @whateverchannel92 Před 6 lety +1

    From the original equalities you can see that y/(2x)=(Lambda-1)=x/(2y). Then, 2y^2 = 2x^2 and x^2=y^2 which avoids using substitution. Also Thank you so much for the videos, I rather watching them than reading the book

  • @prashantsharma-yr7mi
    @prashantsharma-yr7mi Před 5 lety +1

    Hello sir can you please make a video on constraint optimization with inequality constraints...

  • @wilandhugs
    @wilandhugs Před 5 lety

    god this really saved me for my test tomorrow

  • @Akash-rs2yp
    @Akash-rs2yp Před rokem +1

    In the last problem, with the two equations we get after taking gradient and equating, from both the equations, we can calculate the value of lambda and equate that, that will directly give us x^2 = y^2