I have to solve the least squares for $\gamma$ in the following problem.
The model is described as $y_i = \beta x_i^{\gamma} + u_i$, where $u_i $ is i.i.d. normal with mean zero and variance $\sigma^2$.
The $H_0$ is given by $\beta = 1$, such the restricted model becomes $y_i = x_i^{\gamma} + u_i$.
I want to solve the following minimization in matrix form for $\gamma$: $min$ $u^Tu = min$ $(y-x^{\gamma})^T(y-x^{\gamma})$. $x$ is just a vector in this model.
I struggle with taking the derivative of the above equation because of the power $\gamma$. Can someone help me with this problem?