แก้ไขปัญหาคณิตศาสตร์
สมการ ตัวแปร ส่วนรวม แมทริกซ์ สามเหลี่ยม ตัวเลขเฉพาะ สถิติ หรือคำที่ครูแยกออกเป็นส่วนๆ
Gradient of x·y + 1/y + 1/x
x y + \frac{1}{y} + \frac{1}{x}
ก้าวต่อก้าว
- f(x, y) = x y + \frac{1}{y} + \frac{1}{x}
The gradient is the vector of partial derivatives — differentiate with respect to each variable, holding the others constant.
- \frac{\partial f}{\partial x} = y - \frac{1}{x^{2}}
Treat every variable except x as a constant.
- \frac{\partial f}{\partial y} = x - \frac{1}{y^{2}}
Treat every variable except y as a constant.
- \nabla f = \left[\begin{matrix}y - \frac{1}{x^{2}}\\x - \frac{1}{y^{2}}\end{matrix}\right]
Assemble the gradient vector. It points in the direction of steepest ascent.
- (1, 1)
Critical points: where every partial derivative is zero.
เปิดเผยคำตอบ
\nabla f = \left[\begin{matrix}y - \frac{1}{x^{2}}\\x - \frac{1}{y^{2}}\end{matrix}\right]