First, column vs row derivatives. Essentially, you need to decided on whether you want the derivatives in column or vector format. E.g, for vector $\textbf{x} \in \mathbb{R}^n = \left[ x_1 x_2 ... x_n\right] $:
\begin{bmatrix}
\frac{\partial x^T A x}{\partial x_1} & \frac{\partial x^T A x}{\partial x_2} &
...
\end{bmatrix}
or
\begin{bmatrix}
\frac{\partial x^T A x}{\partial x_1} \\ \frac{\partial x^T A x}{\partial x_2} \\
...
\end{bmatrix}
We'll assume a row-vector, but it's important to keep this in mind.
We utilize the product rule. Ergo, $\frac{\partial}{\partial x} (UV) = \frac{\partial U}{\partial x} V + U \frac{\partial V}{\partial x}$. We thus can choose $U = x^T A$ and $V = x$, and write the product rule out as:
$$
\frac{\partial x^T A}{\partial x} x + x^T A \frac{\partial x}{\partial x}
$$
The second term is $x^T A$. But the first term?
As $A$ is constant for this partial, we can bring it out, so the first term can be written instead as $\frac{\partial x^T}{\partial x} Ax$. Now, recognize here that $Ax \in \mathbb{R}^{n \times 1}$, ergo it forms a column vector of size $n$.
So let's define vector $z = Ax$. Note that as we are holding $Ax$ as a constant to comply with the product rule, we can bring it into the derivative as shown:
$$
\frac{\partial x^T z}{\partial x}
$$
Now recall some fundamental vector operations: When a row vector and column vector are both the same size and are multiplied, we get a scalar. In other words, for vectors $u$ and $v$:
$$
u^T v = v^T u = \mathbb{R}
$$
Looking back at our partial, $x^T z$ also makes a scalar, thus $x^T z = z^T x$. Thus, we can rewrite the partial as:
$$
\frac{\partial x^T z}{\partial x} = \frac{\partial z^T x}{\partial x}
$$
Now we can pull the $z^T$ back out, and result in the following re-written product rule:
$$
z^T \frac{\partial x}{\partial x} + x^T A \frac{\partial x}{\partial x}
=
x^TA^T \frac{\partial x}{\partial x} + x^T A \frac{\partial x}{\partial x}
=
x^TA^T + x^T A
$$
Which turns into the desired $x^T(A + A^T)$. Note that this is the row-vector representation; if you want the column-based, take the transpose of this row-vector and you'll get $(A+A^T)x$