Formula in latex displays differently

alignmath-operatorsoverleaf

I would like to write this formula in overleaf latex as shown below
enter image description here

With the equation I wrote in latex, it looks like below where you can see all the equations after star displays differently. Could someone please help?.

What is tried:

\begin{align*}
A_0^\ (m) &= g_m \sum_k W_o_k^\ (m) \star \ A_k^\
\end{align*}

enter image description here

Best Answer

Here is the code:

  \documentclass{article}
    
    \usepackage{amsmath}
    \usepackage{bm}
    \begin{document} 
    
    \begin{align*}
    % A_0^\ (m) = g_m \sum_k W_o_k^\ (m) \star \ A_k^\
    \bm{A}_{0}^{(m)} = g_{m}\left(\sum_{k}\;\bm{W}_{ok}^{(m)} \;\ast\; \bm{A}_{k}^{(m-1)} + b_{o}^{(m)}\right)
    \end{align*}
    
    
    \end{document}

enter image description here

Related Question