Given: $f : \mathbb{R} \to \mathbb{R}$ with $$f(x) = y^{\top} v(1_n^{\top}v)^{-1}v^{\top}y$$ where $y,v,1_n \in \mathbb{R}^n$ with $1_n^{\top} = (1,\ldots,1)$. Only the elements of $v$ depend on the scalar variable $x \in \mathbb{R}$, i.e. $v = (v_1(x), \ldots,v_n(x))^{\top}$.
I need $f'(x) = \frac{\partial f}{\partial x}$. With $P=v(1_n^{\top}v)^{-1}v^{\top}$ I can easily show that $f'(x) = y^{\top} \frac{\partial P}{\partial x} y$. Any hints for a closed form of $\frac{\partial P}{\partial x}$ are really appreciated!