Quadratic function of multiple variables: Difference between revisions

From Calculus
Line 19: Line 19:
|-
|-
| [[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.
|-
| [[local minimum value]] and points of attainment || If the matrix <math>A</math> is positive definite, then <math>c - \frac{1}{4}\vec{b}^TM\vec{b}</math>, attained at <math>\frac{-1}{2}A^{-1}\vec{b}</math> (also applies if it's positive semidefinite)<br>Otherwise, no local minimum value
|-
| [[local maximum value]] and points of attainment || If the matrix <math>A</math> is negative definite, then <math>c - \frac{1}{4}\vec{b}^TM\vec{b}</math>, attained at <math>\frac{-1}{2}A^{-1}\vec{b}</math> (also applies if it's negative semidefinite)<br>Otherwise, no local maximum value
|}
|}



Revision as of 16:43, 11 May 2014

Definition

Consider variables x1,x2,…,xn. A quadratic function of the variables x1,x2,…,xn is a function of the form:

(∑i=1n∑j=1naijxixj)+(∑i=1nbixi)+c

In vector form, if we denote by x→ the column vector with coordinates x1,x2,…,xn, then we can write the function as:

x→TAx→+b→Tx→+c

where A is the n×n matrix with entries aij and b→ is the column vector with entries bi.

Key data

Item Value
default domain the whole of Rn
range If the matrix A is not positive semidefinite or negative semidefinite, the range is all of R.
If the matrix A is positive semidefinite, the range is [m,∞) where m is the minimum value. If the matrix A is negative semidefinite, the range is (−∞,m] where m is the maximum value.
local minimum value and points of attainment If the matrix A is positive definite, then c−14b→TMb→, attained at −12A−1b→ (also applies if it's positive semidefinite)
Otherwise, no local minimum value
local maximum value and points of attainment If the matrix A is negative definite, then c−14b→TMb→, attained at −12A−1b→ (also applies if it's negative semidefinite)
Otherwise, no local maximum value

Cases

Positive definite case

First, we consider the case where A is a positive definite matrix. In other words, we can write A in the form:

A=MTM

where M is a n×n invertible matrix.

We can "complete the square" for this function:

f(x→)=(Mx→+12(MT)−1b→)T(Mx→+12(MT)−1b→)+(c−14b→TMb→)

In other words:

f(x→)=‖Mx→+12(MT)−1b→‖2+(c−14b→TMb→)

This is minimized when the expression whose norm we are measuring is zero, so that it is minimized when we have:

Mx→+12(MT)−1b→=0→

Simplifying, we obtain that we minimum occurs at:

x→=−12A−1b→

Moreover, the value of the minimum is:

c−14b→TMb→