[Math] Directional Derivative (방향도함수)

2023. 6. 23. 23:40·.../Math
728x90
728x90

정의

Function $f:\mathbb{R}^n\to \mathbb{R}$에 대해서
unit vector $\textbf{u}=\begin{bmatrix}u_1 & \cdots & u_n\end{bmatrix}^\top$의 방향으로
function $f$의 순간변화율이 바로 Directional Derivative임.


수식

$$\nabla_{\textbf{u}}f(\textbf{x})=\underset{h \to 0}{\lim}\frac{f(\textbf{x}+h\textbf{u})-f(\textbf{x})}{h}=\frac{\partial f(\textbf{x})}{\partial \textbf{u}}$$

 

  • Directional Derivative에서 방향을 결정하기 위해서 unit vector $\textbf{u}$가 주어짐.
  • 해당 방향으로 아주 작은 크기로 input이 변화하면 $f$의 출력이 어떻게 변하는지를 나타냄.

 

Partial derivative가 각 축에서의 변화가 함수 결과값에 어떤 영항을 주는지 정도(scalar, 비율로 나옴)를 나타낸 것과 달리

Directional derivative는 특정 방향(unit vector로 주어짐)으로의 변화가 얼마나 영향을 주는지를 보여줌.
역시 scalar를 값으로 가짐.


Graph와 Example

그래프로 그리기 위해 vector $\textbf{x}=\begin{bmatrix}x_0 & y_0\end{bmatrix}^\top$에서

  • unit vector $\textbf{u}=\begin{bmatrix}u_1& u_2\end{bmatrix}^\top$의 방향의
  • $z=f(\textbf{x})=f(x,y)$의 Directional Derivative를 수식으로 기재하면 다음과 같음.

$$\nabla_{\textbf{u}}f(x_0,y_0)=D_u f(x_0,y_0)=\frac{\partial f(x_0,y_0)}{\partial \textbf{u}}=\underset{h \to 0}{\lim}\frac{f(x_0+hu_1,y_0+hu_2) - f(x_0,y_0)}{h}$$

아래 그림은 Directional Derivative가 결국

  • $\textbf{u}$ 방향에 대한
  • $(x_0, y_0)$에서의 slope of $f(x,y)$임을 도식적으로 보여줌.

위의 Directional Derivative는

  • $\textbf{x}=(x_0,y_0)$에서의 각 partial derivative들을
  • 대응하는 $\textbf{u}$의 각 component $u_i$와 곱한 후
  • 모두 더한 값이다.

$$\nabla_{\textbf{u}}f(\textbf{x})=\sum_{i=1}^{n} \left(\frac{\partial f(\textbf{x})}{\partial x_i}\cdot u_i\right)$$

 

$f(x,y)=xy$라는 함수에서 $\textbf{u}=\frac{\sqrt{3}}{2} \textbf{i}+ \frac{1}{2} \textbf{j}$ 에 대한 $\nabla_{\textbf{u}}f(1,2)$를 구하면 다음과 같음.

$$\nabla_{\textbf{u}}f(1,2)=\left.y\cdot\frac{\sqrt{3}}{2}\right|_{y=2} + \left.x\cdot\frac{1}{2}\right|_{x=1}=\sqrt{3}+\frac{1}{2}\approx2.23$$ 

 

2023.06.23 - [.../Math] - [Math] Partial Derivatives (편도함수)

 

[Math] Partial Derivatives (편도함수)

Multi-variate Function (or Scalar Field)에서는 input variable이 여러개, 즉 input이 vector이기 때문에 각각의 input variable의 변화량에 따라 output이 어떻게 변화하는지를 고려하여 Derivative (도함수)를 구해야함.

dsaint31.tistory.com


참고 : Gadient와의 inner product

앞서 살펴본 특정 unit vector $\textbf{u}$에 대한 Directional Derivative를 구하는 방법을 살펴보면,

gradient와 해당 unit vector $\textbf{u}$의 inner product(내적)임을 알 수 있다. 

즉, 다음이 성립함.

 

$$\nabla_{\textbf{u}}f(\textbf{x})=\textbf{u}\cdot\nabla f(\textbf{x})$$

 

  • $\textbf{u}$의 방향에서의 gradient의 magnitude (=해당 방향 성분의 크기)가 바로 Directional derivative임.
  • inner product(내적)이니 결과도 scalar임.

위 식에서 inner product되는

  • vector $\textbf{u}$는 unit vector이기 때문에 magnitude가 1이며,
  • 이는 directional derivative에서 가장 큰 값을 가지는 경우는
  • gradient와 같은 방향의 unit vector $\textbf{u}$임을 의미한다.

 

결국, 이는 Gradient가 가장 큰 기울기로 증가하는 방향을 나타내고 있음을 다시 한번 확인시켜준다.


References

https://youtu.be/4tdyIGIEtNU

https://dsaint31.github.io/math/math-week03/

 

[Math] Week 03

Limit and Continuity

dsaint31.github.io


 

'... > Math' 카테고리의 다른 글

[Math] Chain Rule (연쇄법칙)  (0) 2023.06.24
[Math] Gradient (구배, 기울기, 경사, 경도) Vector  (0) 2023.06.24
[Math] Partial Derivatives (편도함수)  (0) 2023.06.23
[Math] Differentiation (or Differential, 미분)과 Difference (차분)  (0) 2023.06.23
[Math] Differentiability of MultivariableFunctions  (0) 2023.06.23
'.../Math' 카테고리의 다른 글
  • [Math] Chain Rule (연쇄법칙)
  • [Math] Gradient (구배, 기울기, 경사, 경도) Vector
  • [Math] Partial Derivatives (편도함수)
  • [Math] Differentiation (or Differential, 미분)과 Difference (차분)
dsaint31x
dsaint31x
    반응형
    250x250
  • dsaint31x
    Dsaint31's blog
    dsaint31x
  • 전체
    오늘
    어제
    • 분류 전체보기 (740)
      • Private Life (13)
      • Programming (186)
        • DIP (104)
        • ML (26)
      • Computer (119)
        • CE (53)
        • ETC (33)
        • CUDA (3)
        • Blog, Markdown, Latex (4)
        • Linux (9)
      • ... (351)
        • Signals and Systems (103)
        • Math (172)
        • Linear Algebra (33)
        • Physics (42)
        • 인성세미나 (1)
      • 정리필요. (54)
        • 의료기기의 이해 (6)
        • PET, MRI and so on. (1)
        • PET Study 2009 (1)
        • 방사선 장해방호 (4)
        • 방사선 생물학 (3)
        • 방사선 계측 (9)
        • 기타 방사능관련 (3)
        • 고시 (9)
        • 정리 (18)
      • RI (0)
      • 원자력,방사능 관련법 (2)
  • 블로그 메뉴

    • Math
    • Programming
    • SS
    • DIP
  • 링크

    • Convex Optimization For All
  • 공지사항

    • Test
    • PET Study 2009
    • 기타 방사능관련.
  • 인기 글

  • 태그

    Probability
    linear algebra
    Vector
    인허가제도
    SS
    signal_and_system
    Convolution
    signals_and_systems
    검사
    fourier transform
    Programming
    numpy
    SIGNAL
    Python
    opencv
    Optimization
    Term
    function
    random
    math
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
dsaint31x
[Math] Directional Derivative (방향도함수)
상단으로

티스토리툴바