Lagrange Multiplier Method

Lagrange Multiplier Method

The End of Inequality: "Lagrange Multiplier Method"

Prerequisite knowledge - partial derivatives#

In a nutshell: principal element derivative.

For a function F(x,y), its partial derivative with respect to x = taking y as a constant to find the derivative of x.

For example: F(x,y)=x2+4yx+y2, its partial derivative with respect to x = 2x+4y.

Usage#

Given F(x,y)=0, find the G(x,y) maximum (note that for F(x,y)=k you need to make F(x,y)=F(x,y)k).

Let H(x,y,λ)=G(x,y)+λF(x,y) and find the partial derivatives of x,y,λ respectively x(x,y,λ),y(x,y,λ),λ(x,y,λ).

Let x(x,y,λ)=0,y(x,y,λ)=0,λ(x,y,λ)=0 respectively, we get three equations, according to these 3 equations solve x0,y0,λ0, then G(x0,y0) is the *extreme value of the function *.

Then some questions x,y may have restrictions, so throw them aside first and then count the values according to the restrictions at the end.

OK, so now use it for a question:

θR, find the maximum and minimum values of sinθ(1cosθ).

Let sinθ=y,cosθ=x, then the question becomes F(x,y)=x2+y21=0, G(x,y)=y(1x)=yxy, and find the maximum value of G(x,y).

Let H(x,y,λ)=yxy+λ(x2+y21) and list:

  • x(x,y,λ)=y+2λx=0 - y(x,y,λ)=1x+2λy=0 - λ(x,y,λ)=x2+y21=0

xy=12λ+1

x+y=12λ1

(12λ+1)2+(12λ1)2=2

λ=0 or λ=±32

Finally bring in and work out (x,y)=(12,32) or (12,32) or (0,0).

Maximum value is 334, minimum value is 334

Ex#

What about the three parameters (x,y,z)?

This requires two known equations, then set two parameters λ,μ and solve in the same way.

More parameters in the same way.

Summary#

  • When there is nothing can do, pull the multiplication of broken moves.

For some oddly tricky or computationally intensive problems, you can use the Lagrange multiplier method.

作者:Into_qwq

出处:https://www.cnblogs.com/into-qwq/p/lagrange-multiplier-method.html

版权:本作品采用「qwq」许可协议进行许可。

posted @   Into_qwq  阅读(15)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现
more_horiz
keyboard_arrow_up dark_mode palette
选择主题
menu
点击右上角即可分享
微信分享提示