I'm trying to solve an exercise where I need to derive the MLE of the phase parameter.
I'm given the below signal with white noise $w[n] \sim \mathcal{N}(0, \sigma^2) $, amplitude $A$, angular frequency $\omega \notin \{0, \pi\}$, $N$ measurements and unknown phase $\phi$.
$$ x[n]=A \cos (\omega n+\phi)+w[n], \; \; n= 1,...,N $$
Usually I'd get the log-likelihood function, compute the first derivative, set it to zero and solve for the unknown parameter which is $\phi$ in this case. However, I am unable to solve for $\phi$ in the 1st derivative as I am can't extract it from inside the sine and cosine functions.
$$ \begin{gathered} \frac{\partial}{\partial \phi} \ln p(x ; \phi)=-\frac{1}{\sigma^{2}} \sum_{1}^{N}(x[n]-A \cos (\omega n+\phi))(A \sin (\omega n+\phi)) \\ \frac{\partial}{\partial \phi} \ln p(x ; \phi)=0 \end{gathered} $$
Can someone please help me solve this?
$
, for example as$\phi$
, they get rendered as LaTeX (just for the future) $\endgroup$$$ w[n] \sim \mathcal{N}(0,\sigma^2) $$
; you can also do\begin{align} \frac{\partial}{\partial \phi} \ln p(x;\phi) &= \ldots \\ & 0 \end{align}
$\endgroup$