I have $\alpha = w'B'x$, where $\alpha$ is a scalar, and $w$, $B$, and $x$ are vectors or matrices with the following dimensions (the prime denotes transpose):
- $w_{(k-1) * 1}$
- $B_{p * (k-1)}$
- $x_{p*1}$
How do I take the derivative with respect to $B$? That is, how do I simplify $\dfrac{\partial \alpha}{\partial B}$?
Context: I am trying to solve a minimization problem with respect to $B$, so I need to take the first derivative. The minimization problem is $argmin_B \dfrac{(R-w'B'x)^2}{f(x)}$.
$\alpha$ is a linear map with respect to $B$. Therefore, its derivative at any point is $\alpha$ itself.
So here
$$\frac{\partial \alpha}{\partial B}\cdot H= w^\prime H^\prime x$$ where I imagine you use the prime to denote the transpose.