I have $$P(x | \lambda_1, \lambda_2) = \mathcal{N}(\mu + L_1 \lambda_1 + L_2 \lambda_2, \Sigma)$$
and a Gaussian prior for $$P(\lambda_1) = P(\lambda_2) = \mathcal{N}(0, I)$$.
My task is to compute $$p(x | \lambda_1)$$ and I know the answer should be $$p(x | \lambda_1) = \mathcal{N}(\mu + L_1 \lambda_1, L_2 \Sigma L_2^T)$$.
I present below the steps I took and where I got stuck:
$\begin{align*} p(x | \lambda_1) &= \int p(x | \lambda_1, \lambda_2) p(\lambda_2) d\lambda_2 \\ &= \int const \cdot exp\big[(\hat{x} - L_2 \lambda_2)^T \Sigma^{-1} (\hat{x} - L_2 \lambda_2) + \lambda_2^T \lambda_2\big] d\lambda_2 \end{align*}$
Where $\hat{x} = x - \mu - L_1 \lambda_1$. I process the exponent and get the following: $\begin{align*} & (\hat{x} - L_2 \lambda_2)^T \Sigma^{-1} (\hat{x} - L_2 \lambda_2) + \lambda_2^T \lambda_2 \\ =& \hat{x}^T \Sigma^{-1} \hat{x} - 2 \hat{x}^T \Sigma^{-1} L_2 \lambda_2 + \lambda_2^T (L_2^T \Sigma^{-1} L_2 + I) \lambda_2 \end{align*}$
but I do not know how to proceed further. I have the notes for the solution for the exercise, but I do not understand it.
Below they also have $\lambda_1^T \lambda_1$ because the wrote $p(x | \lambda_1) = p(x | \lambda_1, \lambda_2) p(\lambda_1) p(\lambda_2)$ and then integrated $\lambda_2$ out, but I thought that's not necessary.
Help would be greatly appreciated.
Thank you!