Constrained optimization introduction

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Courses on Khan Academy are always 100% free. Start practicing-and saving your progress-now: www.khanacadem...
    See a simple example of a constrained optimization problem and start getting a feel for how to think about it. This introduces the topic of Lagrange multipliers.

Комментарии • 89

  • @preetkanwalsingh3532
    @preetkanwalsingh3532 6 лет назад +169

    13 textbook authors are upset at how informative this series is!

    • @WeissForlorn
      @WeissForlorn 5 лет назад +9

      3Blue1Brown is great

    • @suryahr307
      @suryahr307 3 года назад +4

      I only found this video. Could you share link of whole series/Playlist please

    • @TheDroidMate
      @TheDroidMate 3 года назад

      They dont want you to know ..

    • @samsungn1021
      @samsungn1021 3 года назад

      Sc Aggarwal

    • @RoyalYoutube_PRO
      @RoyalYoutube_PRO 13 часов назад

      @@suryahr307 Search for multivariable calculus by khan academy

  • @alexanderherbertkurz
    @alexanderherbertkurz 6 лет назад +44

    your animations are beautiful ... when I studied this 30 years ago nothing like this was available ... I can't tell you how much I enjoy going through this now again ... thanks so much

  • @robertwilsoniii2048
    @robertwilsoniii2048 6 лет назад +10

    Grant you are the man. You are making my startup possible.

  • @Alley00Cat
    @Alley00Cat 7 лет назад +56

    The voice is actually strangely close Khan's. I was confused at first. Awesome video!

    • @bunkerputt
      @bunkerputt 7 лет назад +9

      Alley00Cat Khan repeats when he writes.

  • @jamesgoodman5102
    @jamesgoodman5102 7 лет назад +52

    I just realised you're 3Blue1Brown from the sound of your voice. Nice to see you on different channels :)

    • @EDUARDO12348
      @EDUARDO12348 7 лет назад +1

      Good voice recognition system you got, I didn't make that connection at first but I think you are right.

    • @kalyanitewari
      @kalyanitewari 6 месяцев назад

      His visuals say it too!

  • @rishabhbhardwaj2873
    @rishabhbhardwaj2873 7 лет назад +38

    This guy is a legend!

  • @alijavadyfar3778
    @alijavadyfar3778 2 года назад +5

    truth be told, I've been using this method for solving optimization problems for some 6 years now, but I understood the concept only after I watched this playlist.
    MOST INFORMATIVE EVER !

  • @Tomahawk1999
    @Tomahawk1999 6 лет назад +26

    mathematics when explained this way is actually much more interesting.

    • @ufkun20
      @ufkun20 4 года назад +1

      And less confusing

    • @rayknn
      @rayknn 3 года назад

      You think it is. I prefer the books tho. I use these video's as an extra way of checking my knowledge about a certain subject.

  • @TheDroidMate
    @TheDroidMate Год назад +4

    When the two most appreciated educators team up. 😍

  • @hakeemnaa
    @hakeemnaa 2 года назад +3

    5:56
    the blue line ( contour) represents the z-axis or the height ( each line represents same height or z value or the output of f(x,y)
    so we need the max value but it must touch the circle ( touch= tangent), if it is not tangent, f will intersect the circle with two points
    which mean there will be a point between this point which has more f ( height, or z value)

  • @ericbischoff9444
    @ericbischoff9444 6 лет назад +7

    There would be (in this pecular case) a trick to make this a single-variable calculus problem : replace x with cos t and y with sin t, and whoops, you're done, the problem is now to maximize a function of t :-)

  • @Prism684
    @Prism684 4 года назад +1

    What an explanation!!! Marvelous. Starting from visualization going to formulation to algebraic equation to solve. You are amazing!!! Do I need to read thick book?? No. This is the time of fast learning and get on with action

  • @huynjinful
    @huynjinful 4 года назад +2

    I always enjoy your videos. In terms of this kind of math videos, however, i wish videos are aligned sorted under the categories ;)

  • @dimitrab6485
    @dimitrab6485 6 лет назад +5

    Not to undermine the amazing work, but perhaps it would be even more helpful if the videos were explicitly numbered, especially for someone looking up subjects covered in older videos. Sure there are ways to figure out the order, but it would be quicker if all video titles included the part number. Thanks!

    • @alexanderherbertkurz
      @alexanderherbertkurz 6 лет назад +2

      ruclips.net/p/PLSQl0a2vh4HC5feHa6Rc5c0wbRTx56nF7

    • @dimitrab6485
      @dimitrab6485 6 лет назад +1

      Thanks!

    • @RodrigoCastroAngelo
      @RodrigoCastroAngelo 6 лет назад +1

      You can also check the program on khan academy where, besides the lecture videos, they have lots of exercises:
      www.khanacademy.org/math/multivariable-calculus

  • @shkittle07
    @shkittle07 4 года назад +1

    This couldn't be more important at a time like this. #COVID19

  • @SohamChakraborty42069
    @SohamChakraborty42069 4 года назад +1

    We could think of parameterizing the given constraint in terms of a single parameter, say t, substitute in f(x,y) to get a single variable function f(t), and hence put f'(t)=0, find maxima, and back-substitute to get maximum value. Here, x=1cos(t), y=1sin(t) can be used to easily obtain maximum value under constraint.

  • @sathvikswaminathan7933
    @sathvikswaminathan7933 4 года назад +2

    but wouldn't this be the case only if the function is increasing with x and y?

  • @STgauss3268
    @STgauss3268 2 года назад

    Whoa...this guy's voice sounds gentle now completely different from Linear Algebra videos...i like the old voice better.

  • @albertres
    @albertres 6 лет назад +2

    Clear as crystal. Thanks.

  • @alfcnz
    @alfcnz 3 года назад

    Why there is no link to a playlist???

  • @Drganguli
    @Drganguli 2 года назад

    Nice video on Optimization

  • @fatemehentezari9779
    @fatemehentezari9779 4 года назад +1

    Ohhh thank you. Your videos on optimization and linear algebra has made life much easier for me :) Thank you so much. Could we ask you to make some videos about optimization with inequality constraints? The way you explain the math, makes math easy and enjoyable.

    • @shahzebansari6585
      @shahzebansari6585 3 года назад +1

      You can make inequality into equality by introducing a variable called fictitious variable.
      Like x + y < 10 can be converted to x + y + w = 10, here w is fictitious variable.

  • @yizhang7027
    @yizhang7027 3 года назад +1

    you can use the other two tangent points to find the minimum of f(x,y), right?

  • @dinator12
    @dinator12 7 лет назад +7

    why is the maximum/minimum achieved where the contour lines touch? what if there was a higher value where they intersects? i mean, how can u be sure that the highest value achieved when the contour lines kisses?

    • @dinator12
      @dinator12 7 лет назад +2

      only in these specific example the father u go from (0,0) the higher the function value is, what about other functions?

    • @TheGaryAir
      @TheGaryAir 7 лет назад

      The max value is achieved when the contour lines touch because the question is essentially asking you to find the greatest value for x^2y such that it is within the constraints. The highest value will be where the two graphs are tangent to one another because any greater would mean they're not intersecting and thus the function would not be within the constraint.

    • @alexanderherbertkurz
      @alexanderherbertkurz 6 лет назад

      if they arent tangent but meet, then they intersect twice (if you assume
      that the lines are smooth enough (if that was what you worried about
      you were right, there are some conditions on the functions for Lagrange
      multipliers to work)) and if you move now the line so that it intersect
      not twice but only once you get a bigger (or smaller, depending on the
      direction you move) value, ie the original one was not the one you were
      looking for

    • @joluju2375
      @joluju2375 3 года назад

      Just pour water into the 3D view, and it becomes obvious.

  • @kunwar2010
    @kunwar2010 5 лет назад +3

    Grant Sanderson for the president!

  • @renata8938
    @renata8938 3 года назад +2

    Can I ask what program you used to draw the 3d graph? It is really good.

    • @rikthecuber
      @rikthecuber 2 года назад +1

      Finally a comment that is less than a year old!

  • @justkarl2922
    @justkarl2922 4 года назад +1

    I don't really get the point here, why you build up these heavy weapons such as gradients and lagrange-multipliers. I can easily solve this problem with single variable calculus just by rewriting the constrain x^2 + y^2 =1 into x^2 = 1 - y^2 and substitute that in the original function f(x,y) =(x^2)*y so that f(y) = (1 - y^2)*y = -y^3 + y. Now I can optimize this with single vari. calc.
    et voilà!

    • @iatbo0503
      @iatbo0503 4 года назад +2

      justkarl it’s because the example here is very simple, almost trivial in a sense. Many expressions don’t have closed form solutions, and direct substitution is often very hard due to domain constraints, etc. Indeed, complex methods don’t make sense for this particular problem, but it lays groundwork for understanding more complex problems.

  • @yavarjn2055
    @yavarjn2055 2 года назад

    How this video was made? Which tool permits to project a curve on a surface and at the same time to write beside it?

  • @SolvingOptimizationProblems
    @SolvingOptimizationProblems 4 года назад

    How many ways to solve constrained optimization problems? Anyone knows?

  • @seungjunlee00
    @seungjunlee00 5 лет назад +1

    can I ask just one question:)
    If I want to know the ​difference of Lagrange multipliers between Transcendental function and Calculus, what Khan Academy videos should i watch?
    Thank you in advance :)

    • @mathematicalsmorgasbord762
      @mathematicalsmorgasbord762 5 лет назад

      Hey SeungJun, not quite sure I understand your question. Do you mean you want to know how lagrange multipliers are different when you're working with transcendental functions as opposed to polynomials?

  • @amjeda.a.7415
    @amjeda.a.7415 3 года назад

    Great explanation
    Thank you

  • @sduio89
    @sduio89 2 года назад

    Is it a convex or a non convex probelem due to the constraint?

  • @MuammarElKhatib
    @MuammarElKhatib 6 лет назад +1

    Excellent video. Thanks :).

  • @Dwika34
    @Dwika34 4 месяца назад

    men what is this software to graph ?

  • @tsungiriraimunhuwamambo4053
    @tsungiriraimunhuwamambo4053 4 года назад

    This is so informative

  • @surrealboy7453
    @surrealboy7453 6 лет назад +1

    What software was used?

  • @sammao8478
    @sammao8478 5 лет назад +1

    I love your video! Can I ask a question please? At 1:30 image, it seems that there are 6 local min/max points all together. The two in addition to the 4 you mentioned are at (0, 1) and (0, -1) with function value f(x, y) equals to zero. Now the question is weather can Lagrangian multiplier be zero? Thank you if you can help me to clarify this.

    • @hipstertrudy3658
      @hipstertrudy3658 10 месяцев назад

      I believe the most common context this is used in is economics, where resources cannot be negative, so youre probably right that there is 6 technically but for pragmatics hes just focused on the positive values

    • @PBPotter
      @PBPotter 6 месяцев назад

      This problem contains an implied (hidden) constraint that isn’t addressed in the video. Attending to this constraint will get you the other two optimization points. If you look at the original constraint x^2+y^2=1, that implies that 1 - y^2 >=0. So all the optimization point have to fall in that region. All the points found in the video do. But we also need to check the boundary of that region, y^2=1, or y= +/-1. Putting into the original f(x,y) equation and optimizing that will give you the two other optimization points that are missing in this video.

  • @bradleycollings8176
    @bradleycollings8176 7 лет назад +5

    anyone know what graphing utility is used here?

    • @luffyorama
      @luffyorama 7 лет назад +1

      I think he used same codes like his channel (3Blue1Brown). He wrote some python codes for that.

    • @jarednitta1934
      @jarednitta1934 7 лет назад

      It kinda looks like the grapher app that comes on macs.

    • @nestoreleuteriopaivabendo5415
      @nestoreleuteriopaivabendo5415 5 лет назад

      What about how he writes so smoothly on the screen...? Boy, there are plenty of people that want to write like this!

  • @kimiyak5255
    @kimiyak5255 4 года назад

    Who is this teacher and how do I reach him? his explanations are really good , I want to learn more from him.

  • @ArunKumar-yb2jn
    @ArunKumar-yb2jn 2 года назад

    Hey, are you the same guy from 3BlueBrown?

  • @yavarjn2055
    @yavarjn2055 3 года назад

    How do you project a circle on a surface in python?

  • @aishi99
    @aishi99 7 лет назад +1

    thank you so much!

  • @saurabhsingh-ow7ue
    @saurabhsingh-ow7ue 4 года назад

    thank you sir

  • @krishnapoduru8490
    @krishnapoduru8490 7 лет назад

    I don't understand. Why does the unit circle doesn't intersect the x^2y graph instead lie along it?

    • @LodrakFaust
      @LodrakFaust 7 лет назад

      That was just a projection of the intersection of the unit circle (cylinder) on the 3d graph of the x^2y formel.

  • @jadoonengr79
    @jadoonengr79 4 года назад

    Can anyone give an idea how I can create such 3D graph. There are plenty out there but I need to replicate the exact same thing as in this video.

  • @CederVeltman-ul8by
    @CederVeltman-ul8by Год назад +1

    His voice sounds exactly like 3b1b. Is it him?

  • @taraspokalchuk7256
    @taraspokalchuk7256 7 лет назад +2

    to good to be true

  • @Postermaestro
    @Postermaestro 6 лет назад

    Commenting to spread on the tubes!

  • @korwi7373
    @korwi7373 3 года назад

    Amazing

  • @g3452sgp
    @g3452sgp 6 лет назад

    Who is teaching?

  • @AvinashSingh-bk8kg
    @AvinashSingh-bk8kg 3 года назад

    Hat's off 🎩

  • @yazan2776
    @yazan2776 7 лет назад

    Is this differential or multivariable calculus?

  • @youyoudz4346
    @youyoudz4346 2 года назад

    Some one help me I want to use and solve this in Matlab

  • @proximaism
    @proximaism 3 года назад

    I knew it's Sandersons.

  • @YashGupta-sf1kn
    @YashGupta-sf1kn 4 года назад +1

    there's something on the red circle which made me wipe my screen

  • @tsungiriraimunhuwamambo4053
    @tsungiriraimunhuwamambo4053 4 года назад

    People who disliked this need serious help 😂

  • @jaspreet_kaur_pb02
    @jaspreet_kaur_pb02 4 года назад

    👍👍

  • @flaguser4196
    @flaguser4196 2 года назад

    the guy sounds like 3blue1brown