How to combine the following two equations both being inside a single box and the equation numbers outside the box. Thanks
\documentclass{report}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\boxed{L_{l+1}=P_ka_{L+1}^T\left(a_{L+1}P_ka_{L+1}^T+I_N\right)^{-1}}
\end{equation}
\begin{equation}
\boxed{L_{l+1}=\frac{P_ka_{L+1}^T}{a_{k+1}P_ka_{L+1}^T+I_N}}
\end{equation}
\end{document}
amsmathusers guide in section 4.7.texdoc amsldoc. – barbara beeton Jan 19 '22 at 02:03empheq. There is noamsmathonly solution. – daleif Jan 19 '22 at 08:55\boxedis basically nothing more than a thin wrapper around\fboxand it simply does not support what you require. That's why there are extensions toamsmathlikemathoolsandempheq(specifically,empheqloadsmathtoolswhich loadsamsmath). – campa Jan 19 '22 at 09:33