Problem 1.10 Completing the square
Let x,b∈Rn, A∈Sn, c∈R, and let f(x) be a quadratic function of x,
f(x)=xTAx−2xTb+c.(1.28)
Show that f(x) can be rewritten in the form
f(x)=(x−d)TA(x−d)+e,(1.29)
where
d=A−1b,(1.30)
e=c−dTAd=c−bTA−1b.(1.31)
Rewriting the quadratic function in (1.28) as (1.29) is a procedure known as "completing the square", which is very useful when dealing with products of Gaussian distributions.