Basic linear algebra help. Converting equation to matrix form

Homework Statement

Express the equation $$q=x_1 - 6x_2 + 3x_1^2 + 5x_1 x_2$$ in the matrix form $$1/2x^T Q*x+c^T x$$

Homework Equations

The only mention of a matrix c that I could find in my book is in the section of Gaussian elimination:

$$c= \frac {a_{ik}}{a_{kk}}$$

But I don't feel like this has anything to do with the solution form I'm trying to find.

The Attempt at a Solution

I'm not sure where to begin really. I feel like this should be a very simple problem, but I'm not sure where to start. I tried defining x = [x1 x2] and Q = [q1 q2] but I'm not sure what the "c" matrix is supposed to be.

As some background, this is taken from the review portion of my Finite Elements book.

Last edited: