Are we able to obtain the following algebraically?$$\widehat{\mathbf{x}}=\underset{\mathbf{x}}{\operatorname{argmin}}\|A-B(I\otimes \mathbf{x})\|_F^2$$where $A\in \mathbb{R}^{m\times n}$, $B\in \mathbb{R}^{m\times (m\cdot n)}$, $I\in \mathbb{R}^{n\times n}$ is the identity, $\mathbf{x}\in \mathbb{R}^{m\times 1}$, and $\otimes$ denotes the Kronecker product. If it helps, $m<n$.
Let $f_{(\mathbf{x})}=\|A-B(I\otimes \mathbf{x})\|_F^2$ and $\operatorname{tr}(\cdot )$ be the trace function, then\begin{align*}f_{(\mathbf{x})} & =\operatorname{tr}\left (A^tA\right )+\operatorname{tr}\left ((I\otimes \mathbf{x})^tB^tB(I\otimes \mathbf{x})\right )-2\operatorname{tr}\left (A^tB(I\otimes \mathbf{x})\right ) \\ & =\operatorname{tr}\left ((I\otimes \mathbf{x})(I\otimes \mathbf{x})^tB^tB\right ) -2\operatorname{tr}\left ((I\otimes \mathbf{x})A^tB\right )+\operatorname{constant}. \end{align*}I'm stuck at proceeding beyond this step to find the derivative of the function with respect to $\mathbf{x}$. I have referred to tools like the Matrix Cookbook but couldn't find the derivative structure.
Please help with this problem if it can be solved algebraically (not numerically).
Thanks in advance.
I would do the following, define $W=I\otimes x$ and $h(W)=||A-BW||_{F}^{2}$. Now doing $f(V)= ||V||_{F}^{2}$ and $g(W) = A-BW$ then $h(W)=f \circ g(W)$. Now calculating the Jacobian for $f$ and $g$ we would have: $$ J_{W}(g) = - B\hbox{ and } J_{V}(f)=2V^{\top}.$$ And now calculate the Jacobian for $h(w)$ using the chain rule: $$J_{W}(f\circ g)=J_{g(W)}(f)J_{W}(g)=-2(A-BW)^{\top}B = 2(BW - A)^{\top} B.$$ Since the function $h(W)$ is convex, surely the minimun is found when $J_{W}(f\circ g)=0$. Then I would solve for $W$ like this: $$2(BW - A)^{\top} B = 0 \Rightarrow B^{\top}(BW - A) = 0^{\top} \Rightarrow B^{\top}BW = B^{\top}A.$$ Assuming $B^{\top}B$ is invertible then: $$W = (B^{\top}B\big)^{-1}B^{\top}A \Rightarrow I\otimes x = (B^{\top}B)^{-1}B^{\top}A.$$ From the last equation we would obtain the components of $ x $.