@Hagen von Eitzen's answer is certainly the fastest route here, but since you asked, here is a chain rule.
Here are two useful facts about linear and bilinear bounded maps from normed vectors spaces to normed vector spaces.
If $f$ is linear and bounded, then trivially:
$$
df_x(h)=f(h).
$$
And if $g$ is bilinear and bounded ($\|g(h,k)\|\leq C\|h\|\|k\|$), we have
$$
dg_{(x,y)}(h,k)=g(x,k)+g(h,y).
$$
Now take $f(x)=(x,x)$ and $g(x,y)=x^tAy$. The former is linear and bounded, the latter is bilinear and bounded.
So, by the chain rule, $g\circ f(x)=x^tAx$ is differentiable and
$$
d(g\circ f)_x(h)=dg_{f(x)}\circ df_x(h)=dg_{(x,x)} (h,h)=x^tAh+h^tAx.
$$
This is true for any matrix $A$. Now if $A$ is symmetric, this can be simplified since
$$
x^tAh+h^tAx=x^tAh+h^tA^tx=x^tAh+(Ah)^tx=2x^tAh.
$$
Removing $h$, this gives
$$
d(g\circ f)_x=2x^tA.
$$