스칼라 함수의 모든 편미분을 모은 벡터. 함수가 가장 빠르게 증가하는 방향과 그 크기를 동시에 담는다.
2변수 함수 $f(x, y)$:
$f(x, y) = x^2 + y^2$
$$\nabla f = (2x,\; 2y)$$점 $(1, 2)$: $\nabla f = (2, 4)$, 크기 $= \sqrt{4 + 16} = 2\sqrt{5}$
등위선 $x^2 + y^2 = c$는 원 → $\nabla f$는 원의 반지름 방향 (수직 확인됨)
$f(x, y, z) = x^2 y + \sin(yz)$
$$\nabla f = \left(2xy,\;\; x^2 + z\cos(yz),\;\; y\cos(yz)\right)$$$f(x,y) = x^2 + 4y^2 = 4$ (타원) 위의 점 $(\sqrt{2}, \frac{1}{\sqrt{2}})$에서 법선 방향.
$$\nabla f = (2x, 8y) \;\Rightarrow\; \nabla f\big|_{(\sqrt{2},\,\frac{1}{\sqrt{2}})} = (2\sqrt{2},\; 4\sqrt{2})$$이 벡터가 타원에 수직인 법선 방향이다.
단위벡터 $\hat{u}$ 방향의 변화율은 그래디언트와의 내적이다.
$\theta = 0$ (같은 방향) 일 때 최대 → 그래디언트 방향이 최대 증가 방향임을 수학적으로 확인.
| $f$ | $\nabla f$ |
|---|---|
| $\mathbf{a}^T\mathbf{x}$ | $\mathbf{a}$ |
| $\mathbf{x}^T A\mathbf{x}$ ($A$ 대칭) | $2A\mathbf{x}$ |
| $\|\mathbf{x}\|^2$ | $2\mathbf{x}$ |
| $\|\mathbf{x}\|$ | $\dfrac{\mathbf{x}}{\|\mathbf{x}\|}$ |
| $\ln(\mathbf{a}^T\mathbf{x})$ | $\dfrac{\mathbf{a}}{\mathbf{a}^T\mathbf{x}}$ |