Übungsblatt Nr. 1¶
Aufgabe 1¶
Betrachten Sie die folgende sphärisch symmetrische Raumzeit-Metrik
$$g_{\alpha\beta}=\left( \begin{array}{ccc} A(t,r) & 0 & 0 & 0\\ 0& - B(t,r) & 0&0 \\ 0& 0& -r^2& 0\\ 0& 0& 0& -r^2 \hbox{sin}^2(\theta)\\ \end{array} \right) $$
mit den unbekannten Funktionen $A(t,r)$ und $B(t,r)$. Die griechischen, raumzeitlichen Indices $ \alpha, \beta$ laufen von 0..3 und entsprechen den folgenden sphärischen Koordinaten: $ x^\mu = \left( x^0, x^1, x^2, x^3 \right) = \left( t,r,\theta, \phi \right)$.
Berechnen Sie in einem Jupyter Notebook, unter Verwendung des Python-Moduls OGRePy, für den oben angegebenen Ansatz der Metrik die nichtverschwindenden Komponenten der Christoffel Symbole $\Gamma^{\sigma}_{\mu \nu}$ und des Einstein-Tensors $G_{\mu\nu}$. Berechnen und vereinfachen Sie außerdem die folgenden Ausdrücke: $\nabla_{\mu} G^{\mu}{}\!\,_{\nu}$ und $R^{\mu}{}_{\nu \rho \sigma} + R^{\mu}{}_{\sigma \nu \rho} + R^{\mu}{}_{\rho \sigma \nu}$
Aufgabe 2¶
Die kovariante Raumzeit-Metrik der Schwarzschild-Lösung lautet (siehe Vorlesung 3)
$$ g_{\alpha\beta}=\left( \begin{array}{ccc} 1-\frac{2\,M}{r} & 0 & 0 & 0\\ 0& -\frac{1}{1-\frac{2\,M}{r}}& 0&0 \\ 0& 0& -r^2& 0\\ 0& 0& 0& -r^2 \hbox{sin}^2(\theta)\end{array} \right) \quad ,$$
wobei die griechischen, raumzeitlichen Indices $ \alpha, \beta$ wieder von 0..3 laufen und den folgenden sphärischen Koordinaten: $ x^\mu = \left( x^0, x^1, x^2, x^3 \right) = \left( t,r,\theta, \phi \right)$ entsprechen.
Berechnen Sie in einem Jupyter Notebook, unter Verwendung des Python-Moduls OGRePy, den Wert der Christoffel Symbole $\Gamma^{0}_{0 1}=\Gamma^{t}_{t r}$, wobei die Masse $M=10$ und der Radiuswert $r=8.7$ sei. Berechnen Sie außerdem die Werte des Riemann Tensors $R_{0 1 0 1}=R_{t r t r}$ für $M=22$ im Radiusbereich $r \in [20,50]$ (Schrittweite $dr=1$) und lassen sich diese mittels eines Python-Skriptes in eine Datei ausgeben.
from sympy import *
import OGRePy as gr
By Barak Shoshany (baraksh@gmail.com) (baraksh.com)
v2.0.0 (2026-05-11)
GitHub repository: https://github.com/bshoshany/OGRePy
Documentation: .ipynb, .pdf, .html
from OGRePy.abc import t, phi, theta
r = gr.sym("r", nonnegative=True)
Spherical = gr.Coordinates(t, r, theta, phi)
A_tr = gr.func("A")(t,r)
B_tr = gr.func("B")(t,r)
g = gr.Metric(
coords = Spherical,
components = gr.diag(A_tr, -B_tr, -r**2, -r**2 * gr.s.sin(theta)**2),
)
g.show()
$$g{}_{\mu}{}_{\nu}\Bigg|_{\left(t, r, \theta, \phi\right)} = \left(\begin{matrix}A & 0 & 0 & 0\\0 & - B & 0 & 0\\0 & 0 & - r^{2} & 0\\0 & 0 & 0 & - r^{2} \sin^{2}{\left(\theta \right)}\end{matrix}\right)$$
Die nichtverschwindenden Komponenten der dieser Christoffel Symbole $\Gamma^{\sigma}_{\mu \nu}$ lauten:
g.christoffel().list(indices=(-1,-1,1))
OGRePy: You have the latest version of the package.
$$\begin{align*} \Gamma{}_{t}{}_{t}{}^{t} &= \frac{\partial_{t} A}{2 A} \\ \Gamma{}_{t}{}_{t}{}^{r} &= - \frac{\partial_{r} A}{2 B} \\ \Gamma{}_{t}{}_{r}{}^{t} = -\Gamma{}_{r}{}_{t}{}^{t} &= \frac{\partial_{r} A}{2 A} \\ \Gamma{}_{t}{}_{r}{}^{r} = -\Gamma{}_{r}{}_{t}{}^{r} &= - \frac{\partial_{t} B}{2 B} \\ \Gamma{}_{r}{}_{r}{}^{t} &= - \frac{\partial_{t} B}{2 A} \\ \Gamma{}_{r}{}_{r}{}^{r} &= \frac{\partial_{r} B}{2 B} \\ \Gamma{}_{r}{}_{\theta}{}^{\theta} = \Gamma{}_{r}{}_{\phi}{}^{\phi} = -\Gamma{}_{\theta}{}_{r}{}^{\theta} = -\Gamma{}_{\phi}{}_{r}{}^{\phi} &= - \frac{1}{r} \\ \Gamma{}_{\theta}{}_{\theta}{}^{r} &= \frac{r}{B} \\ \Gamma{}_{\theta}{}_{\phi}{}^{\phi} = -\Gamma{}_{\phi}{}_{\theta}{}^{\phi} &= - \frac{1}{\tan{\left(\theta \right)}} \\ \Gamma{}_{\phi}{}_{\phi}{}^{r} &= \frac{r \sin^{2}{\left(\theta \right)}}{B} \\ \Gamma{}_{\phi}{}_{\phi}{}^{\theta} &= \frac{\sin{\left(2 \theta \right)}}{2} \end{align*}$$
Die nichtverschwindenden Komponenten des Einstein-Tensors $G_{\mu\nu}$ lauten:
g.einstein().list(indices=(-1,-1))
$$\begin{align*} G{}_{t}{}_{t} &= \frac{A \left(B^{2} - B + r \partial_{r} B\right)}{B^{2} r^{2}} \\ G{}_{t}{}_{r} = G{}_{r}{}_{t} &= \frac{\partial_{t} B}{B r} \\ G{}_{r}{}_{r} &= - \frac{B}{r^{2}} + \frac{1}{r^{2}} + \frac{\partial_{r} A}{A r} \\ G{}_{\theta}{}_{\theta} &= \frac{r \left(- 2 A^{2} \partial_{r} B + 2 A B r \left(\partial_{r}^{2} A - \partial_{t}^{2} B\right) + 2 A B \partial_{r} A + A r \left(\left(\partial_{t} B\right)^{2} - \partial_{r} A \partial_{r} B\right) + B r \left(- \left(\partial_{r} A\right)^{2} + \partial_{t} A \partial_{t} B\right)\right)}{4 A^{2} B^{2}} \\ G{}_{\phi}{}_{\phi} &= \frac{r \sin^{2}{\left(\theta \right)} \left(- 2 A^{2} \partial_{r} B + 2 A B r \partial_{r}^{2} A - 2 A B r \partial_{t}^{2} B + 2 A B \partial_{r} A + A r \left(\partial_{t} B\right)^{2} - A r \partial_{r} A \partial_{r} B - B r \left(\partial_{r} A\right)^{2} + B r \partial_{t} A \partial_{t} B\right)}{4 A^{2} B^{2}} \end{align*}$$
Die kontrahierte kovariante Ableitung des Einstein-Tensors $\nabla_{\mu} G^{\mu}{}\!\,_{\nu}$ ist, unabhängig von der gewählten Metrik, aufgrund der geometrischen Bianchi-Identität stets gleich Null ($\nabla_{\mu} G^{\mu}{}\!\,_{\nu}=0$). Über die Einsteinschen Feldgleichungen hat dies zur Folge, dass auch die kontrahierte kovariante Ableitung des Energie-Impuls-Tensors stets Null sein muss ($\nabla_{\mu} T^{\mu}{}\!\,_{\nu}=0$). Dies sichert die lokale Energie- und Impulserhaltung und führt auf die allgemeinrelativistischen hydrodynamischen Gleichungen. Wir überprüfen dies für die obere Metrik.
from OGRePy.abc import mu, nu, sigma, rho
gr.CovariantD(mu) @ g.einstein(mu,nu)
$$\nabla{}_{\mu} G{}^{\mu}{}_{\nu}\Bigg|_{\left(t, r, \theta, \phi\right)} = \left(\begin{matrix}0\\0\\0\\0\end{matrix}\right)$$
Wir überprüfen nun die erste, algebraische Bianchi-Identität, die auch für jede Metrik gelten muss: $R^{\mu}{}_{\nu \rho \sigma} + R^{\mu}{}_{\sigma \nu \rho} + R^{\mu}{}_{\rho \sigma \nu} = 0$
Bianchi_1 = g.riemann(mu,nu,rho,sigma) + g.riemann(mu,rho,sigma,nu) + g.riemann(mu,sigma,nu,rho)
Bianchi_1.show()
$$R{}^{\mu}{}_{\nu}{}_{\rho}{}_{\sigma} + R{}^{\mu}{}_{\rho}{}_{\sigma}{}_{\nu} + R{}^{\mu}{}_{\sigma}{}_{\nu}{}_{\rho}\Bigg|_{\left(t, r, \theta, \phi\right)} = \left(\begin{matrix}\left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right)\\\left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & \frac{r \left(\sin{\left(2 \theta \right)} \tan{\left(\theta \right)} + \cos{\left(2 \theta \right)} - 1\right)}{2 B \tan{\left(\theta \right)}}\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & \frac{r \left(\sin{\left(2 \theta \right)} \tan{\left(\theta \right)} + \cos{\left(2 \theta \right)} - 1\right)}{2 B \tan{\left(\theta \right)}}\\0 & 0 & \frac{r \left(\sin{\left(2 \theta \right)} \tan{\left(\theta \right)} + \cos{\left(2 \theta \right)} - 1\right)}{2 B \tan{\left(\theta \right)}} & 0\end{matrix}\right)\\\left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right)\\\left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right) & \left(\begin{matrix}0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\\0 & 0 & 0 & 0\end{matrix}\right)\end{matrix}\right)$$
Bianchi_1.list()
$$\begin{align*} R{}^{r}{}_{\theta}{}_{\phi}{}_{\phi} + R{}^{r}{}_{\phi}{}_{\phi}{}_{\theta} + R{}^{r}{}_{\phi}{}_{\theta}{}_{\phi} = R{}^{r}{}_{\phi}{}_{\theta}{}_{\phi} + R{}^{r}{}_{\theta}{}_{\phi}{}_{\phi} + R{}^{r}{}_{\phi}{}_{\phi}{}_{\theta} = R{}^{r}{}_{\phi}{}_{\phi}{}_{\theta} + R{}^{r}{}_{\phi}{}_{\theta}{}_{\phi} + R{}^{r}{}_{\theta}{}_{\phi}{}_{\phi} &= \frac{r \left(\sin{\left(2 \theta \right)} \tan{\left(\theta \right)} + \cos{\left(2 \theta \right)} - 1\right)}{2 B \tan{\left(\theta \right)}} \end{align*}$$
Durch algebraische Umformungen wird dieser Term ebenfalls gleich Null.
term = Bianchi_1.components(coords=Spherical, indices=(1,-1,-1,-1))[1,2,3,3].expand()
term
simplify(term.subs(tan(theta),sin(theta)/cos(theta)))
Musterlösung zur Aufgabe 2¶
M = gr.sym("M", nonnegative=True)
Spherical = gr.Coordinates(t, r, theta, phi)
g = gr.Metric(
coords = Spherical,
components = gr.diag((1-2*M/r), -1/(1-2*M/r), -r**2, -r**2*gr.s.sin(theta)**2),
)
g.show()
$$g{}_{\mu}{}_{\nu}\Bigg|_{\left(t, r, \theta, \phi\right)} = \left(\begin{matrix}- \frac{2 M}{r} + 1 & 0 & 0 & 0\\0 & - \frac{1}{- \frac{2 M}{r} + 1} & 0 & 0\\0 & 0 & - r^{2} & 0\\0 & 0 & 0 & - r^{2} \sin^{2}{\left(\theta \right)}\end{matrix}\right)$$
Die nichtverschwindenden Komponenten der Christoffel Symbole $\Gamma^{\sigma}_{\mu \nu}$ lauten:
g.christoffel().list(indices=(-1,-1,1))
$$\begin{align*} \Gamma{}_{t}{}_{t}{}^{r} &= \frac{M \left(2 M - r\right)}{r^{3}} \\ \Gamma{}_{t}{}_{r}{}^{t} &= \frac{M}{r \left(- 2 M + r\right)} \\ \Gamma{}_{r}{}_{t}{}^{t} = \Gamma{}_{r}{}_{r}{}^{r} &= \frac{M}{r \left(2 M - r\right)} \\ \Gamma{}_{r}{}_{\theta}{}^{\theta} = \Gamma{}_{r}{}_{\phi}{}^{\phi} = -\Gamma{}_{\theta}{}_{r}{}^{\theta} = -\Gamma{}_{\phi}{}_{r}{}^{\phi} &= - \frac{1}{r} \\ \Gamma{}_{\theta}{}_{\theta}{}^{r} &= - 2 M + r \\ \Gamma{}_{\theta}{}_{\phi}{}^{\phi} = -\Gamma{}_{\phi}{}_{\theta}{}^{\phi} &= - \frac{1}{\tan{\left(\theta \right)}} \\ \Gamma{}_{\phi}{}_{\phi}{}^{r} &= \left(- 2 M + r\right) \sin^{2}{\left(\theta \right)} \\ \Gamma{}_{\phi}{}_{\phi}{}^{\theta} &= \frac{\sin{\left(2 \theta \right)}}{2} \end{align*}$$
Wir greifen uns das Christoffel Symbol $\Gamma^{0}_{0 1}=\Gamma^{t}_{t r} = \Gamma_{t r}{}^{t} = \Gamma_{0 1}{}^{0}$ heraus:
term = g.christoffel().components(coords=Spherical,indices=(-1,-1,1))
term[0,1,0]
Und subtituieren die gewünschten Werte ($M=10$ und $r=8.7$):
term[0,1,0].subs(M,10).subs(r,8.7)
Wir berechnen nun den Riemann Tensor $R_{0 1 0 1}=R_{t r t r}$ für $M=22$ im Radiusbereich $r \in [20,50]$ mit der Schrittweite $dr=1$.
term1 = g.riemann().components(coords=Spherical,indices=(-1,-1,-1,-1))
term1[0,1,0,1]
set_r = 20
while set_r <= 50:
R_val = term1[0,1,0,1].subs(M,22).subs(r,set_r).evalf()
print(set_r,R_val)
set_r += 1
20 0.00550000000000000 21 0.00475110679192312 22 0.00413223140495868 23 0.00361633927837593 24 0.00318287037037037 25 0.00281600000000000 26 0.00250341374601730 27 0.00223543159071280 28 0.00200437317784257 29 0.00180409200869244 30 0.00162962962962963 31 0.00147695612768957 32 0.00134277343750000 33 0.00122436486072850 34 0.00111947893344189 35 0.00102623906705539 36 0.000943072702331962 37 0.000868655360985529 38 0.000801866161247995 39 0.000741752221042162 40 0.000687500000000000 41 0.000638412095007327 42 0.000593888348990390 43 0.000553410391537852 44 0.000516528925619835 45 0.000482853223593964 46 0.000452042409796992 47 0.000423798195004960 48 0.000397858796296296 49 0.000373993829101820 50 0.000352000000000000
Das entsprechende Python-Skript finden Sie unter dem folgenden Link: Blatt_1L.py.