Lagrange multipliers | MIT 18.02SC Multivariable Calculus, Fall 2010

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น •

  • @eduardoduarte9230
    @eduardoduarte9230 5 ปีที่แล้ว +3

    You could use the symmetry of the ellipse at 2:00 and just solve for the first quadrant and maximize x+y, everything will be the same after the gradient.

  • @15lindacutie
    @15lindacutie 10 ปีที่แล้ว +11

    At 3:00 you say that the gradient of P needs to be parallel to the gradient of g. Would you mind explaining why exactly the gradient of the original function needs to parallel to the gradient of the constraint function?

    • @derherrdirektor9686
      @derherrdirektor9686 5 ปีที่แล้ว

      It follows from the analytical solution. Try to solve this without Lagrange-Multipliers:
      The constraint function G(x,y)=c really can be seen as a statement saying y=Y(x). You can then go and input this function into your measurement function - the function to be maximized - F(x, Y(x)). Now the extremes of F are at the points (d/dx)F (x, Y (x) )=0. Using implicit differentiation this resolves to fx + yx * fy = 0. You can now get to yx by implicitly differentiating G(x, Y(x))=c - the constraint function - yielding gx + yx*gy = 0 => yx = -gx/gy.
      Put them together to get fx - fy * gx/gy = 0 => fx/fy = gx/gy.
      You can now seperate these into two equations by introducing a multiplier which will keep them arithmetically connected:
      fx/fy = gx/gy => fx/gx = fy/gy = L => fx = gx*L , fy = gy*L which is equivalent to (d/dx)F(x,y) = L*(d/dx)G(x,y). This means these vectors are parallel.
      If you cancel out all the steps, you arrive at Lagrange-Multipliers.

    • @sathvikswaminathan7933
      @sathvikswaminathan7933 5 ปีที่แล้ว

      If you look at the contour lines for both the functions and try to compute the gradient vectors, you'll notice that the gradient vectors are perpendicular to the contour lines as progressing in that direction would help the function increase most rapidly. The maximum value of the function can be obtained when the contour lines of both the functions are touching each other. Hence their gradient vectors will be in the same direction in such a case and hence proportional. This proportionality value is what is known as the Lagrange Multiplier.

  • @Oskoreii
    @Oskoreii 12 ปีที่แล้ว +2

    This is really good; articulate and easy to understand.

  • @RealNameIndeed
    @RealNameIndeed 7 ปีที่แล้ว +3

    there is some connection with the number 4 and the lecturer at 3:56

  • @AbelianGroup
    @AbelianGroup 11 ปีที่แล้ว

    The gradient is a vector. Two vectors can point in the same direction yet vary in length. That's what lambda is. One vector is lambda times the other.

  • @nbonham593
    @nbonham593 9 ปีที่แล้ว +1

    @Betty Gao This is because when he took the square root, only the positive values satisfied the point in the first quadrant that he was looking for

  • @derherrdirektor9686
    @derherrdirektor9686 5 ปีที่แล้ว

    It just hit me, how simple the idea behind this is. The two functions touch at a point where both have the same tangent. That meaning that their gradient must be pointing in the same direction. The solution is a cohort of points for all possible level lines. Just check it against the constraint function and boom. Not very hard to put into words.

  • @17jasonrice
    @17jasonrice 9 ปีที่แล้ว +7

    Best video I've seen on Lagrange multipliers so far. Thanks for keeping the video short by explaining things like y≠negative and x=4y instead of writing it all down.

  • @jpr422
    @jpr422 11 ปีที่แล้ว

    I like this guy. He's cool in a nerdy sort of way. Very smart, though and helpful. Thanks Joel.

  • @ranam
    @ranam 3 ปีที่แล้ว

    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 🙏🙏🙏

  • @Svenskivsk
    @Svenskivsk 12 ปีที่แล้ว

    Its very similar to checking the endpoints when splitting up a function of one variable on intervals and finding max/min values. He splits up the curve because the first quadrant of the ellipse is basically and identical copy of the other three(with the exception of some sign changes for x and y)

  • @Rayquesto
    @Rayquesto 11 ปีที่แล้ว

    English + Math Languages gets a robotic tone! That's why there are two classes for each of those subjects.

  • @kamitube1059
    @kamitube1059 4 ปีที่แล้ว

    can anyone help? got lost at 8:01

  • @bobkameron
    @bobkameron 4 ปีที่แล้ว +1

    Great content and explanation!

  • @bashaelkebir
    @bashaelkebir 13 ปีที่แล้ว

    I find it funny that the MIT channel has less views than PatrickJMT. PATRICK FTW!

  • @sheebashrivastava3042
    @sheebashrivastava3042 5 ปีที่แล้ว

    There is an easier way to the solution where we can consider the parametric form of the ellipse and take a general point on the ellipse as (2cosk,sink) where k is some constant and due to the symmetrical nature of the problem we can easily find function of perimeter as a trigonometric function of the form Acosk+Bsink whose value can be maximised using sqrt(A^2+B^2).

  • @ndianzon
    @ndianzon 7 ปีที่แล้ว +4

    Ah ok i got it now why p = 4x + 4y is because L = 2x, W = 2y so P = 2(2x) +2(2y).

  • @abcdef2069
    @abcdef2069 8 ปีที่แล้ว

    whats the difference between the lagrange multiplier in the euler lagrange equation and the lagrange multiplier in the maximization that your are teaching now?

  • @BoraB681
    @BoraB681 11 ปีที่แล้ว

    in this case it is just a constant that equates the parallel vectors of the constraint and the gradient.

  • @comprehensiveboycomprehens8786
    @comprehensiveboycomprehens8786 8 ปีที่แล้ว +5

    That's a good lecture!

  • @ghassansiregar1376
    @ghassansiregar1376 8 ปีที่แล้ว

    How did you know the endpoint coordinate?

  • @omjnrg111
    @omjnrg111 10 ปีที่แล้ว

    Where does he get the p(0,1) and P(2,0)? Also do we need to find the value of lamda?

    • @agentlee
      @agentlee 10 ปีที่แล้ว +1

      The two points are from the figure that he has. You just have to set the values of lambda together to solve for either x or y.

  • @OoerBostanci
    @OoerBostanci 8 ปีที่แล้ว +1

    Why is he even considering x=0 or y=0? Either of those values yields a contradiction; it yields 4=0 from his first two equations...

    • @ajmartin942
      @ajmartin942 6 ปีที่แล้ว

      They are boundaries for the perimeter of the rectangle. It can be squished in the x or the y direction. Since they are boundary values, and specifically not critical points, they don't need to satisfy the constraints of (the system of equations of) the Lagrange multiplier. Checking the boundary points tells us if the critical point is a min or max.

  • @rodjaknajbolji3349
    @rodjaknajbolji3349 7 ปีที่แล้ว

    How did you take x=4y, if we calculate for lambda from first 2 eqn we got x=2 ...

    • @ameerhamza4816
      @ameerhamza4816 5 ปีที่แล้ว

      You don't know how to solve equations!!

  • @andrewh996
    @andrewh996 11 ปีที่แล้ว

    How can a gradient be parallel? Arent parallel gradients just equal?

  • @sobbo123
    @sobbo123 11 ปีที่แล้ว

    What does the lambda represent?

  • @sobbo123
    @sobbo123 11 ปีที่แล้ว +1

    Thank you, that makes a lot of sense.

  • @apples113
    @apples113 9 ปีที่แล้ว

    How come when you take the squareroot of x. There isn't a plus minus?

    • @codingwithmat
      @codingwithmat 9 ปีที่แล้ว +2

      +Betty Gao He's only doing it for the first quarter of the xy-axis so x>0, y>0

  • @ndianzon
    @ndianzon 7 ปีที่แล้ว

    why perimeter 4x + 4y and not 2x + 2y which is based on geometry formula for perimeter of rectangle???

    • @ajmartin942
      @ajmartin942 6 ปีที่แล้ว

      The origin is at (0,0), and x and y are specified as the top right corner. So a long edge is 2x and a short edge is 2y. Hence 2(2x) + 2(2y) = 4x + 4y.

  • @imegatrone
    @imegatrone 13 ปีที่แล้ว

    I Really Like The Video Lagrange multipliers From Your

  • @batrarohit1
    @batrarohit1 12 ปีที่แล้ว

    the multiplier is most useful

  • @iamparitosh
    @iamparitosh 7 ปีที่แล้ว

    I don't think the answer is right coz I have found a rectangle with perimeter 6root2.check out the four points
    viz (+-root2,+-1/root2)

  • @AdamHemi
    @AdamHemi 9 ปีที่แล้ว +12

    zz top - la grange

  • @karimkhan1312
    @karimkhan1312 10 ปีที่แล้ว

    pls define what is p [x] and p [y] ? -- whether p[x] is contribution 4x to perimeter p
    thanking u sir

  • @Pooh0Bear8
    @Pooh0Bear8 11 ปีที่แล้ว

    in Physics generally wavelength

  • @00971509971121
    @00971509971121 11 ปีที่แล้ว

    what if he asked for the minimum ?!

  • @董等等
    @董等等 9 ปีที่แล้ว +1

    Super helpful! Thank you ^^

  • @sobbo123
    @sobbo123 11 ปีที่แล้ว

    Oh I know that, I meant in the context of this video.

  • @ايمنالامير-ظ5خ
    @ايمنالامير-ظ5خ 6 ปีที่แล้ว

    سوزان تفعل عندك النت

  • @drngng99
    @drngng99 7 ปีที่แล้ว +1

    WOW, Wonderful, tnx a lot

  • @MIAfishing1
    @MIAfishing1 11 ปีที่แล้ว

    In this case just a constant.

  • @JoshHansen1
    @JoshHansen1 10 ปีที่แล้ว

    It really doesn't seem necessary to separately check the boundary points. There was nothing in the math that excluded them from consideration, and they did not provide a solution to the system of equations, therefore they have already in a sense been checked, right?

    • @damianrivas
      @damianrivas 9 ปีที่แล้ว

      Josh Hansen You have to check the boundary points after solving the system of equations because sometimes the x and y values that you get are not in fact maximums nor minimums.

  • @RealNameIndeed
    @RealNameIndeed 7 ปีที่แล้ว

    Μαλλίδη, βλέπε να μαθαίνεις....