I want to get the derivative of function $f(B) = w'B's$ with respect to $B$, where $w,s$ are column vectors, then $df = w'(B+dB)'s - w'B's = w'dB's = s'(dB)w$. I know the answer is $sw'$, but I could not go further. I tried to use the Kronecker product to write it as $vec(s'(dB)w) = w'\otimes s' *vec(dB)$ and I believe it is correct. But how to connect $w'\otimes s'$ with $sw'$?
I have a followup question: How about the function $g(B) = w'B's [\nabla_{B}f(B)]$? I can use the product rule $dg = d(w'B's)[\nabla_{B}f(B)]+ w'B's \underbrace{d(\nabla_{B}f(B))}_{=0} = d(w'B's)[\nabla_{B}f(B)]$. I feel difficult to unify these notations. The Kronecker product cannot be directly used for this question.
Update: Gradient of $X \mapsto a^T X b$ seems to be relevant, but my question is really how to connect between the Kronecker product to the classic derivative notation, i.e., $\frac{\partial f}{\partial B}$ or $\nabla_Bf$.
Moreover, for the second derivative, it is a $\mathbb{R}^{n\times m\times n\times m}$ tensor, and using Kronecker product, I can write it as a $\mathbb{R}^{n m\times n m}$ matrix: $\text{vec}(s\omega^\top)\omega^\top\otimes s^\top$. But how to use this thing, for example, if I want to prove the original function $f$ is convex, can I just prove it by showing this matrix is PSD?
Update: for my first question, I have figured out an answer, that is $s\omega' = \text{vec}^{-1}(w'\otimes s')$ if we memorize the $B$'s shape.