[LA] Quadratic Form and Positive/Negative Definite

2025. 1. 24. 00:19·.../Linear Algebra
728x90
728x90
Quadratic Form :
Scalar 에서 이차식 (Quadratic Expression) $a x^2$의 일반형.

 

Definition of Quadratic Form

$x\in \mathbb{R}^n$ 일 때, $\mathbb{R}^n$에서의 Quadratic Form (이차형식) 은 다음과 같음.

$$\mathbf{x}^\top A \mathbf{x}$$

where,

  • $A$: Matrix of Quadratic Form. 이차항에서의 coefficient에 해당함.
    • 항상 Symmetric Matrix임.
    • $n=1$인 경우, $a x^2$가 이차형식으로 scalar가 됨: $1 \times 1$.

Hessian 의 부호: Concave, Convex

$f(x)=a x^2$ 와 같은 이차식은 concave, convex 이냐에 따라 최대값 및 최소값을 가짐.

이는 $a$의 부호에 의해 결정됨.

이를 vector $\mathbf{x}$로 확장한 경우(단, $f(\mathbf{x})$는 여전히 scalar)에도
Quadratic Form의 coefficient 에 해당하는 matrix $A$에 의해 concave, convex가 결정됨.

$A$는
Quadratic Form의 2nd Derivative인
Hessian에 해당.

 

2022.06.05 - [Programming/DIP] - [Math] Hessian: Summary

 

[Math] Hessian: Summary

이 문서는 Numerator Layout Convention 을 사용함.Hessian : Summary 2nd order derivative of multivariable function.여기서 multivariable function은 입력은 vector, 출력은 scalar 인 함수를 의미함: ML에서의 loss function을 생각

dsaint31.tistory.com

2023.07.10 - [.../Math] - [Math] Second Order Condition : Convexity

 

[Math] Second Order Condition : Convexity

First order condition과 함께 convexity를 판정하는 조건. Second Order ConditionReal Vector Space $\mathbb{R}^n$에서 $f:\mathbb{R}^n \to \mathbb{R}$이 second derivative 를 구할 수 있다면,다음의 두 조건이 필요충분조건임.$f$

dsaint31.tistory.com

 

Matrix $A$의 부호가 바로 positive definite, negative definte 로서 다음과 같이 정의됨:

 

Matrix $A \in \mathbb{R}^{n \times n}$ 이고, zero vector가 아닌 임의의 $\mathbf{x} \in \mathbb{R}^n$에서

  • $\mathbf{x}^\top A \mathbf{x} >0$ 이면 $A$는 positive definite 임 ( $a>0$에 해당).
  • $\mathbf{x}^\top A \mathbf{x} \ge 0$ 이며 $A$는 positive semi-definite 임 ( $a \ge 0$에 해당).
  • $\mathbf{x}^\top A \mathbf{x} <0$ 이면 $A$는 negative definite 임 ($a<0$에 해당).
  • $\mathbf{x}^\top A \mathbf{x} \le 0$ 이면 $A$는 negative semi-definite 임 ($a \le 0$에 해당).

Positive Definite and Eigenvalues

Quadratic Form의 경우 $A$가 Symmetric Matrix이며, 이 경우 Eigen Decomposition을 통해 다음이 성립.

  • "Symmetric Matrix $A$가 Positive Definite" iif "$A$의 모든 Eigenvalues 가 양수임."
  • "Symmetric Matirx $A$가 Positive Semi-Definite" iff "$A$의 모든 Eigenvalues 가 0 이상임."
  • "Symmetric Matrix $A$가 Negative Definite" iif "$A$의 모든 Eigenvalues 가 음수임."
  • "Symmetric Matrix $A$가 Negative Semi-Definite" iff "$A$의 모든 Eigenvalues 가 0 이하임."

Symmetric Matrix는 항상 real eigenvalue를 자신의 행(=열)의 갯수로 가지며, 항상 orthogonal diagonalizable임.

참고로, $A^\top A$는 항상 symmetric matrix이면서 동시에 positive semi-definite임!

https://youtu.be/ns3A6S-9eeQ?si=-t2oNGjElaq7cbRX

$A^\top A$가 symmetric 이며 positive semidefinite 임을 보이는 동영상

같이 보면 좋은 자료들

2024.11.06 - [.../Linear Algebra] - [LA] Eigenvalue and Eigenvector

 

[LA] Eigenvalue and Eigenvector

특정 행렬 $A$는 linear transform을 의미함: $A\mathbf{x}$는 vector $\mathbf{x}$를 linear transform하는 것에 해당.$A$의 eigenvector와 eigenvalue는 $A$를 standard matrix로 하는 linear transform의 고유한 특성을 나타내는 요

dsaint31.tistory.com

2022.11.17 - [.../Linear Algebra] - [LA] Diagonalization (Eigen-Decomposition), Orthogonal Diagonalization, and Symmetric Matrix

 

[LA] Diagonalization (Eigen-Decomposition), Orthogonal Diagonalization, and Symmetric Matrix

Diagonalizable (대각화)Sqaure Matrix가 $n$개의 eigenvalue를 가지고 (multiplicity를 감안하여 중복 카운트. 0인 Eigenvalue도 카운트), 이들 각각의 eigenvalue들이 각자의 multiplicity에 해당하는 dimension을 가지는 eige

dsaint31.tistory.com

 

2025.01.21 - [.../Linear Algebra] - [Summary] Linear Algebra (작성중)

 

[Summary] Linear Algebra (작성중)

ML 을 위해 Linear Algebra 공부시 참고할만한 책더보기전체적으로 공부를 한다면 다음을 권함.Linear Algebra and Its Application, 5th ed 이상, David C. Lay5th ed. 는 웹에서 쉽게 pdf도 구할 수 있음. 다음은 1~2개

dsaint31.tistory.com


 

'... > Linear Algebra' 카테고리의 다른 글

[LA] Inverse Matrix  (0) 2025.01.25
[LA] Intermediate Matrices for Inverting Full-Rank Matrix: Cramer's Rule  (0) 2025.01.25
[Summary] Linear Algebra (작성중)  (0) 2025.01.21
[LA] Eigenvalue and Eigenvector  (0) 2024.11.06
[LA] Spectral Theorem for Symmetric Matrix  (2) 2024.07.20
'.../Linear Algebra' 카테고리의 다른 글
  • [LA] Inverse Matrix
  • [LA] Intermediate Matrices for Inverting Full-Rank Matrix: Cramer's Rule
  • [Summary] Linear Algebra (작성중)
  • [LA] Eigenvalue and Eigenvector
dsaint31x
dsaint31x
    반응형
    250x250
  • dsaint31x
    Dsaint31's blog
    dsaint31x
  • 전체
    오늘
    어제
    • 분류 전체보기 (748)
      • Private Life (13)
      • Programming (56)
        • DIP (112)
        • 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
    • 기타 방사능관련.
  • 인기 글

  • 태그

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

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
dsaint31x
[LA] Quadratic Form and Positive/Negative Definite
상단으로

티스토리툴바