[Math] Commonly used Vector derivatives.

2022. 5. 5. 21:02·.../Math
728x90
728x90

많이 사용되는 vector 도함수들을 정리함.

Numeartor Layout 과 Denominator Layout을 구분하여 살펴야 함.

$$f(\textbf{x})$$ $$\frac{\partial f(\textbf{x})}{\partial \textbf{x}}$$ Convention $$f(x)$$ $$\frac{df(x)}{dx}$$
$$\textbf{x}^T \textbf{b}$$ $$\textbf{b}^T$$ Numerator Layout $$bx$$ $$b$$
$$\textbf{b}^T \textbf{x}$$ $$\textbf{b}^T$$ Numerator Layout $$bx$$ $$b$$
$\textbf{b}\cdot \textbf{x}$ or $\textbf{x}\cdot \textbf{b}$ $$\textbf{b}^T$$ Numerator Layout $$bx$$ $$b$$
$$\textbf{x}^T A$$ $$A^T$$ Numerator Layout $$ax$$ $$a$$
$$A\textbf{x}$$ $$A$$ Numerator Layout $$ax$$ $$a$$
$\textbf{x}^T \textbf{x}$ or $\|\textbf{x}\|_2^2$ or $\textbf{x} \cdot \textbf{x}$ $$2\textbf{x}^T$$ Numerator Layout $$x^2$$ $$2x$$
$$\|\textbf{x}\|_2$$ $$\frac{\textbf{x}^T}{\|\textbf{x}\|_2}$$ Numerator Layout    
$$\textbf{x}\textbf{x}^T$$ $$\textbf{x}\otimes I+ I \otimes \textbf{x}$$ Numerator Layout $$x^2$$ $$2x$$
$$\textbf{x}^TS\textbf{x}$$ $$2\textbf{x}^TS(=\textbf{x}^T(S^T+S))$$ Numerator Layout $$sx^2$$ $$2sx$$
$$\textbf{x}^TA\textbf{x}$$ $$\textbf{x}^T(A^T+A)$$ Numerator Layout $$ax^2$$ $$2ax$$
$$\textbf{y}^TA\textbf{z}$$ $$\textbf{z}^TA^T\frac{\partial\textbf{y}}{\partial x}+\textbf{y}^TA\frac{\partial\textbf{z}}{\partial x}$$ Numerator  Layout $$sy(x)z(x)$$ $$s(y^\prime(x)z(x)+y(x)z^\prime(x))$$
$\textbf{x}^T\textbf{b}$ or $\textbf{b}^T\textbf{x}$ or $\textbf{x}\cdot\textbf{b}$ or $\textbf{b}\cdot \textbf{x}$ $$\textbf{b}$$ Denominator Layout $$bx$$ $$b$$
$$\textbf{x}^TA$$ $$A$$ Denominator Layout $$ax$$ $$a$$
$$A\textbf{x}$$ $$A^T$$ Denominator Layout $$ax$$ $$a$$
$\textbf{x}^T \textbf{x}$ or $\|\textbf{x}\|_2^2$ or $\textbf{x} \cdot \textbf{x}$ $$2\textbf{x}$$ Denominator Layout $$x^2$$ $$2x$$
$$\textbf{x}^TA\textbf{x}$$ $$(A+A^T)\textbf{x}$$ Denominator Layout $$ax^2$$ $$2ax$$
$$\textbf{y}^TA\textbf{z}$$ $$\frac{\partial\textbf{y}}{\partial x}A\textbf{z}+\frac{\partial\textbf{z}}{\partial x}A^T\textbf{y}$$ Denominator Layout $$sy(x)z(x)$$ $$s(y^\prime(x)z(x)+y(x)z^\prime(x))$$
  • $A$ : matrix
  • $\textbf{x}$ : vector
  • $\textbf{b}$ : $\textbf{x}$와 상관없는 vector (i.e. constant vector)
  • $S$ : symmetric matrix
  • $a,b,s,x$ : scalar
  • $\|\cdot\|_2$ : L2-norm
  • $\textbf{y}$,$\textbf{z}$ : $\textbf{x}$를 입력으로하고 vector 출력을 갖는 함수. (vector field)

References

  • http://www.matrixcalculus.org/
  • Ref1 for Denominator Layout Convention
  • Ref2 for Denominator Layout Convention (very simple)

 

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

[Math] Matrix Calculus : Numerator Layout  (0) 2022.05.08
[Math] Jacobian : Summary  (0) 2022.05.07
[Statistics] Covariance vs. Correlation  (0) 2022.05.01
[Statistics] Sample Point Method  (0) 2022.05.01
Closed-form solution and Closed-form expression  (0) 2022.04.29
'.../Math' 카테고리의 다른 글
  • [Math] Matrix Calculus : Numerator Layout
  • [Math] Jacobian : Summary
  • [Statistics] Covariance vs. Correlation
  • [Statistics] Sample Point Method
dsaint31x
dsaint31x
    반응형
    250x250
  • dsaint31x
    Dsaint31's blog
    dsaint31x
  • 전체
    오늘
    어제
    • 분류 전체보기 (740)
      • Private Life (13)
      • Programming (56)
        • 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
    • 기타 방사능관련.
  • 인기 글

  • 태그

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

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
dsaint31x
[Math] Commonly used Vector derivatives.
상단으로

티스토리툴바