Consider a continuously differentiable function $f : \mathbb{R}^{n} \to \mathbb{R}^{n}$ such that $f(0) = 0$ and $\langle f(x), x \rangle \ge 0$ for all $x \in \mathbb{R}^{n}$. Does there exist a continuous function $A : \mathbb{R}^{n} \to \mathbb{R}^{n \times n}$ such that $A(x)x = f(x)$ and $\langle A(x) y, y \rangle \ge 0$ for all $x,y \in \mathbb{R}^{n}$?
It is always possible to write such a function $f$ in terms of a continuous matrix function $A$. In particular, \begin{equation} A(x) := \int_{0}^{1} \nabla f(sx) \, ds. \end{equation} But this matrix is not necessarily positive semidefinite. $A$ is unique up to an additive continuous matrix function $L$ satisfying $L(x)x = 0$ for all $x \in \mathbb{R}^{n}$ since $\big( A(x) + L(x) \big)x = A(x)x = f(x) $.
Edit: The claim as it stands is false, but I have only found a counter example constructed such that $\langle f(x), x \rangle = 0$ for all $x \in \mathbb{R}^{n}$. I am still looking for a counter example for which $\langle f(x), x \rangle > 0$ for all $x \ne 0$.