[Tex/LaTex] Boxed equation with number

amsmathequationsframed

My minimum working example:

\documentclass{report}

\usepackage{amsmath}

\begin{document}

\begin{center}
\boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}}
\end{center}

\end{document}

The result:

enter image description here

Now how can I number this equation?

Best Answer

Just replace center environment with equation. I think it looks a little better with larger parentheses.

Edit: It might be easier to read as a fraction - except that it seems to be an equation about matrices ...

\documentclass{report}

\usepackage{amsmath}

\begin{document}

\begin{equation}
\boxed{K_{k+1}=P_ka_{k+1}^T\left(a_{k+1}P_ka_{k+1}^T+I_N\right)^{-1}}
\end{equation}

\begin{equation}
\boxed{K_{k+1}=\frac{P_ka_{k+1}^T}{a_{k+1}P_ka_{k+1}^T+I_N}}
\end{equation}

\end{document}

enter image description here