Solve any maths problem
Equations, derivatives, integrals, matrices, triangles, primes, statistics, or a word problem the tutor breaks into parts.
Gradient of x^2 - 2x + y^2 - 4y
x^{2} - 2 x + y^{2} - 4 y
Step by step
- f(x, y) = x^{2} - 2 x + y^{2} - 4 y
The gradient is the vector of partial derivatives. Differentiate with respect to each variable, holding the others constant.
- \frac{\partial f}{\partial x} = 2 x - 2
Treat every variable except x as a constant.
- \frac{\partial f}{\partial y} = 2 y - 4
Treat every variable except y as a constant.
- \nabla f = \left[\begin{matrix}2 x - 2\\2 y - 4\end{matrix}\right]
Assemble the gradient vector. It points in the direction of steepest ascent.
- (1, 2)
Critical points: where every partial derivative is zero.
Reveal the answer
\nabla f = \left[\begin{matrix}2 x - 2\\2 y - 4\end{matrix}\right]