0

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}

SciJewel
  • 101
  • 1
    Welcome to tex.sx. The answer to your question can be found in the amsmath users guide in section 4.7. texdoc amsldoc. – barbara beeton Jan 19 '22 at 02:03
  • 1
    Does this help? https://tex.stackexchange.com/a/109906/218142 – LaTeXereXeTaL Jan 19 '22 at 06:49
  • I want with " amsmath " just as in my example above. Can anyone do it please? Thanks! – SciJewel Jan 19 '22 at 08:14
  • As LaTeXereXeTaL links to, use empheq. There is no amsmath only solution. – daleif Jan 19 '22 at 08:55
  • I am sure there must be! – SciJewel Jan 19 '22 at 09:23
  • What makes you so sure? \boxed is basically nothing more than a thin wrapper around \fbox and it simply does not support what you require. That's why there are extensions to amsmath like mathools and empheq (specifically, empheq loads mathtools which loads amsmath). – campa Jan 19 '22 at 09:33
  • @campa, @ daleif, could you please apply mathtools or emphep on above example in the most simple way. Thanks! – SciJewel Jan 19 '22 at 13:49

0 Answers0