align Umgebung Formel splitten

Formelsatz für Mathematik, Naturwissenschaften und Technik


Noah D.
Forum-Anfänger
Forum-Anfänger
Beiträge: 24
Registriert: Mi 18. Mär 2015, 21:08

align Umgebung Formel splitten

Beitrag von Noah D. »

Hi Leute,
ich habe folgendes Problem. Leider haben alle meine Versuche zu sehr seltsamen Ergebnissen gefuehrt.

Anbei mein M-Beispiel:
\documentclass[12pt,oneside]{scrreprt}
\usepackage[latin1]{inputenc}
\usepackage[ngerman,english]{babel}
\usepackage[left=6cm,right=2cm, top=3cm, bottom=3cm]{geometry} %layout
\usepackage[fleqn]{amsmath} %Math
\usepackage{amsthm}

\usepackage{amstext}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{amssymb}
\usepackage{acronym} 
\usepackage[norndcorners,customcolors,nofill]{hf-tikz}
\hfsetbordercolor{gray}
\usepackage{kbordermatrix}

\usepackage{etoolbox}
\let\bbordermatrix\bordermatrix
\patchcmd{\bbordermatrix}{8.75}{4.75}{}{}
\patchcmd{\bbordermatrix}{\left(}{\left[}{}{}
\patchcmd{\bbordermatrix}{\right)}{\right]}{}{}
\usepackage{showframe}


\begin{document}
\begin{align}
E(r) & =(X^\top V^{-1} X)^{-1}(X^\top V^{-1} y)\notag\\
& = \begin{bmatrix}
\begin{pmatrix}
I&P^\top
\end{pmatrix}
\begin{pmatrix}
\tau \Sigma& 0\\ 0 & \Omega
\end{pmatrix}^{-1}
\begin{pmatrix}
I\\
P
\end{pmatrix}
\end{bmatrix}^{-1} \notag
\begin{bmatrix}
\begin{pmatrix}
I&P^\top
\end{pmatrix}
\begin{pmatrix}
\tau \Sigma& 0\\ 0 & \Omega
\end{pmatrix}^{-1}
\begin{pmatrix}
\Pi\\
Q
\end{pmatrix}
\end{bmatrix}\\
& = \begin{bmatrix}
\begin{pmatrix}
(\tau \Sigma)^{-1}&P^\top \Omega^{-1}
\end{pmatrix}
\begin{pmatrix}
I\\
P
\end{pmatrix}
\end{bmatrix}^{-1} 
\begin{bmatrix}
\begin{pmatrix}
(\tau \Sigma)^{-1}&P^\top \Omega^{-1}
\end{pmatrix}
\begin{pmatrix}
\Pi\\
Q
\end{pmatrix}
\end{bmatrix} \notag \\
& = \begin{bmatrix}
\begin{pmatrix}
(\tau \Sigma)^{-1} + P^\top \Omega^{-1} P
\end{pmatrix}
\end{bmatrix}^{-1}
\begin{bmatrix}
\begin{pmatrix}
(\tau \Sigma)^{-1} \Pi + P^\top \Omega^{-1} Q
\end{pmatrix}
\end{bmatrix}
\end{align}
\end{document}
Wie ihr sieht, liegt die zweite Zeile ausserhalb des definierten Bereiches.
Wie kann ich am besten die zweite Zeile geschickt darstellen? Ich dachte an etwa = [...]
x [...]
=....

Kann jemand mir helfen?

Beste Gruesse,

Noah

Besserwisser

Beitrag von Besserwisser »

Minimal war das aber nicht:
\usepackage[utf8]{inputenc}% Der Online-Editor braucht utf8.
\usepackage[ngerman,english]{babel}
\usepackage[left=6cm,right=2cm, top=3cm, bottom=3cm]{geometry} %layout
\usepackage[fleqn]{amsmath} %Math

\usepackage{showframe}

\begin{document}
\begin{align}
E(r) & =(X^\top V^{-1} X)^{-1}(X^\top V^{-1} y)\notag\\
& = \begin{bmatrix}
\begin{pmatrix}
I&P^\top
\end{pmatrix}
\begin{pmatrix}
\tau \Sigma& 0\\ 0 & \Omega
\end{pmatrix}^{-1}
\begin{pmatrix}
I\\
P
\end{pmatrix}
\end{bmatrix}^{-1} \notag \\
& \quad\cdot
\begin{bmatrix}
\begin{pmatrix}
I&P^\top
\end{pmatrix}
\begin{pmatrix}
\tau \Sigma& 0\\ 0 & \Omega
\end{pmatrix}^{-1}
\begin{pmatrix}
\Pi\\
Q
\end{pmatrix}
\end{bmatrix}\\
& = \begin{bmatrix}
\begin{pmatrix}
(\tau \Sigma)^{-1}&P^\top \Omega^{-1}
\end{pmatrix}
\begin{pmatrix}
I\\
P
\end{pmatrix}
\end{bmatrix}^{-1}
\begin{bmatrix}
\begin{pmatrix}
(\tau \Sigma)^{-1}&P^\top \Omega^{-1}
\end{pmatrix}
\begin{pmatrix}
\Pi\\
Q
\end{pmatrix}
\end{bmatrix} \notag \\
& = \begin{bmatrix}
\begin{pmatrix}
(\tau \Sigma)^{-1} + P^\top \Omega^{-1} P
\end{pmatrix}
\end{bmatrix}^{-1}
\begin{bmatrix}
\begin{pmatrix}
(\tau \Sigma)^{-1} \Pi + P^\top \Omega^{-1} Q
\end{pmatrix}
\end{bmatrix}
\end{align}
\end{document}

Noah D.
Forum-Anfänger
Forum-Anfänger
Beiträge: 24
Registriert: Mi 18. Mär 2015, 21:08

Beitrag von Noah D. »

ok, sorry, hier eine kuerzere Version.
\documentclass[12pt,oneside]{scrreprt}
\usepackage[latin1]{inputenc}
\usepackage[ngerman,english]{babel}
\usepackage[left=6cm,right=2cm, top=3cm, bottom=3cm]{geometry} %layout
\usepackage[fleqn]{amsmath} %Math
\usepackage{amsthm}

\usepackage{showframe}


\begin{document}
\begin{align}
E(r) & =(X^\top V^{-1} X)^{-1}(X^\top V^{-1} y)\notag\\
& = \begin{bmatrix}
\begin{pmatrix}
I&P^\top
\end{pmatrix}
\begin{pmatrix}
\tau \Sigma& 0\\ 0 & \Omega
\end{pmatrix}^{-1}
\begin{pmatrix}
I\\
P
\end{pmatrix}
\end{bmatrix}^{-1} \notag
\begin{bmatrix}
\begin{pmatrix}
I&P^\top
\end{pmatrix}
\begin{pmatrix}
\tau \Sigma& 0\\ 0 & \Omega
\end{pmatrix}^{-1}
\begin{pmatrix}
\Pi\\
Q
\end{pmatrix}
\end{bmatrix}\\
\end{align}
\end{document}
Danke fuer den Tip, aber sieht nicht wirklich schoen aus oder? Habe versucht in einem Latex Buch eine Loesung zu finden, aber leider vergeblich...

Antworten