Quadratic function of multiple variables: Difference between revisions
No edit summary |
|||
| Line 20: | Line 20: | ||
| [[range]] || If the matrix <math>A</math> is not positive semidefinite or negative semidefinite, the range is all of <math>\R</math>.<br>If the matrix <math>A</math> is positive semidefinite, the range is <math>[m,\infty)</math> where <math>m</math> is the minimum value. If the matrix <math>A</math> is negative semidefinite, the range is <math>(-\infty,m]</math> where <math>m</math> is the maximum value. | | [[range]] || If the matrix <math>A</math> is not positive semidefinite or negative semidefinite, the range is all of <math>\R</math>.<br>If the matrix <math>A</math> is positive semidefinite, the range is <math>[m,\infty)</math> where <math>m</math> is the minimum value. If the matrix <math>A</math> is negative semidefinite, the range is <math>(-\infty,m]</math> where <math>m</math> is the maximum value. | ||
|} | |} | ||
==Cases== | |||
===Positive definite case=== | |||
First, we consider the case where <math>A</math> is a [[linear:positive definite matrix|positive definite matrix]]. In other words, we can write <math>A</math> in the form: | |||
<math>A = M^TM</math> | |||
where <math>M</math> is a <math>n \times n</math> [[linear:invertible matrix|invertible matrix]]. | |||
We can "complete the square" for this function: | |||
<math>f(\vec{x}) = \left(M\vec{x} + \frac{1}{2}(M^T)^{-1}\vec{b}\right)^T\left(M\vec{x} + \frac{1}{2}(M^T)^{-1}\vec{b}\right) + \left(c - \frac{1}{4}\vec{b}^TM\vec{b}\right)</math> | |||
Revision as of 16:27, 11 May 2014
Definition
Consider variables . A quadratic function of the variables is a function of the form:
In vector form, if we denote by the column vector with coordinates , then we can write the function as:
where is the matrix with entries and is the column vector with entries .
Key data
| Item | Value |
|---|---|
| default domain | the whole of |
| range | If the matrix is not positive semidefinite or negative semidefinite, the range is all of . If the matrix is positive semidefinite, the range is where is the minimum value. If the matrix is negative semidefinite, the range is where is the maximum value. |
Cases
Positive definite case
First, we consider the case where is a positive definite matrix. In other words, we can write in the form:
where is a invertible matrix.
We can "complete the square" for this function: