Derivative of a quadratic form
Let be an by real-valued matrix, and let be defined by . On this page, we calculate the derivative of .
Understanding the problem
Straightforward method
Using the definition of the derivative
The derivative is the linear transformation such that:
Using our function, this is:
Defining , we have and
Focusing on the subexpression , since is a matrix, it is a linear transformation, so we obtain . Since the transpose of a sum is the sum of the transposes, we have . Now using linearity we have .
Now the fraction is
Focusing on , it is a real number so taking the transpose leaves it unchanged: .
Now the fraction is