-
Notifications
You must be signed in to change notification settings - Fork 0
/
Einstein's Equations; Geodesic Equations.nb
4189 lines (4025 loc) · 157 KB
/
Einstein's Equations; Geodesic Equations.nb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.2' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 156420, 4181]
NotebookOptionsPosition[ 143088, 3976]
NotebookOutlinePosition[ 143492, 3992]
CellTagsIndexPosition[ 143449, 3989]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[BoxData[
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{
"The", " ", "following", " ", "code", " ", "is", " ", "based", " ", "off",
" ", "of", " ",
RowBox[{"Hartle", "'"}], "s", " ", "GR", " ", "textbook"}], " ", "&"}],
" ", "Mathematica", " ",
RowBox[{"programs", "."}]}], "*)"}]], "Input",
CellChangeTimes->{{3.825454108838313*^9,
3.825454152677314*^9}},ExpressionUUID->"cd4195c0-c17b-4d7b-9d93-\
e86afd70a0f3"],
Cell[BoxData[
StyleBox[
RowBox[{"Q1", ";"}], "Subtitle"]], "Input",
CellChangeTimes->{{3.825370125575859*^9, 3.8253701378696237`*^9},
3.8253701937313576`*^9, {3.8253708785357704`*^9, 3.825370880498763*^9}, {
3.8253709232047853`*^9, 3.8253709271037874`*^9}},
CellLabel->
"In[192]:=",ExpressionUUID->"2fede5b6-4009-4eec-ba4e-2a128ec8453b"],
Cell[BoxData[
RowBox[{"(*",
RowBox[{
"Defining", " ", "dimensions", " ", "and", " ", "coordinate", " ",
"system"}], "*)"}]], "Input",
CellChangeTimes->{{3.8253508969976883`*^9, 3.825350933997247*^9}, {
3.825351321190669*^9, 3.8253513213816695`*^9}, {3.8253667811620064`*^9,
3.8253667812430243`*^9}, 3.825370098873804*^9,
3.8253701898033586`*^9},ExpressionUUID->"98a22673-d5bc-4c02-982b-\
6f335ba5256f"],
Cell[BoxData[
RowBox[{
RowBox[{"n", "=", "4"}], ";"}]], "Input",
CellChangeTimes->{{3.825350959222301*^9, 3.82535096331067*^9}, {
3.8253529330896893`*^9, 3.8253529331929536`*^9}, {3.825370708681678*^9,
3.8253707087986803`*^9}},
CellLabel->"In[1]:=",ExpressionUUID->"7229d073-a4de-40de-ab3b-b1c75ea64be2"],
Cell[BoxData[
RowBox[{
RowBox[{"coordSys", " ", "=", " ",
RowBox[{"{",
RowBox[{"t", ",", "r", ",", "\[Theta]", ",", "\[Phi]"}], "}"}]}],
";"}]], "Input",
CellChangeTimes->{{3.825350973540689*^9, 3.8253509860496893`*^9}, {
3.8253512346516895`*^9, 3.825351247246671*^9}, {3.82537071916968*^9,
3.8253707221396985`*^9}, 3.825453287724315*^9},
CellLabel->"In[2]:=",ExpressionUUID->"ca1d39d1-d569-41ea-8385-8429d88e653a"],
Cell[BoxData[
RowBox[{
RowBox[{"metric", " ", "=", " ",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"-",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"k", "^", "2"}], "*",
RowBox[{"r", "^", "2"}]}], "+", "1"}], ")"}]}], ",", "0", ",", "0",
",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",",
FractionBox["1",
RowBox[{
RowBox[{
RowBox[{"k", "^", "2"}], "*",
RowBox[{"r", "^", "2"}]}], "+", "1"}]], ",", "0", ",", "0"}], "}"}],
",",
RowBox[{"{",
RowBox[{"0", ",", "0", ",",
RowBox[{"r", "^", "2"}], ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "0", ",",
RowBox[{
RowBox[{"r", "^", "2"}], "*",
RowBox[{
RowBox[{"(",
RowBox[{"Sin", "[", "\[Theta]", "]"}], ")"}], "^", "2"}]}]}],
"}"}]}], "}"}]}], ";", " ",
RowBox[{"(*",
RowBox[{
RowBox[{
RowBox[{
"using", " ", "the", " ", "AdS", " ", "metric", " ", "in", " ",
"hyper"}], "-",
RowBox[{
"polar", " ", "coordinates", " ", "for", " ", "demonstration"}]}], ",",
" ",
RowBox[{
"you", " ", "could", " ", "use", " ", "any", " ", "other", " ", "metric",
" ", "as", " ", "long", " ", "as", " ", "you", " ",
RowBox[{"specify", " ", "'"}],
RowBox[{"n", "'"}], " ",
RowBox[{"and", " ", "'"}],
RowBox[{"coordSys", "'"}]}]}], "*)"}], "\[IndentingNewLine]",
RowBox[{"inverseMetric", " ", "=", " ",
RowBox[{"Simplify", "[", " ",
RowBox[{"Inverse", "[", "metric", "]"}], " ", "]"}]}], ";"}]], "Input",
CellChangeTimes->{{3.8253511130975*^9, 3.8253511150174923`*^9}, {
3.8253512581886787`*^9, 3.8253512933157415`*^9}, {3.825351350064671*^9,
3.8253513778616886`*^9}, {3.8253707279355044`*^9, 3.825370786302153*^9}, {
3.8254531322942977`*^9, 3.825453134782473*^9}, {3.825453167841922*^9,
3.8254531731403136`*^9}, {3.825453233119314*^9, 3.825453254888416*^9}, {
3.825453301979313*^9, 3.825453341505317*^9}, {3.825457204882311*^9,
3.825457225583313*^9}, {3.8254572932792206`*^9,
3.8254572973489575`*^9}},ExpressionUUID->"c2ad21d0-fa26-46f9-9f06-\
8eb01ba41a30"],
Cell[BoxData[
RowBox[{"(*",
RowBox[{"Displaying", " ", "Metrics"}], "*)"}]], "Input",
CellChangeTimes->{{3.825351314320678*^9, 3.825351347918601*^9}, {
3.8253667785534143`*^9, 3.82536677862243*^9}},
CellLabel->"In[5]:=",ExpressionUUID->"3324b163-3cbd-4ab3-bd82-41f980ecc2d0"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"metric", " ", "//", " ", "MatrixForm"}]], "Input",
CellChangeTimes->{{3.82535132755569*^9, 3.8253513314756913`*^9}},
CellLabel->"In[6]:=",ExpressionUUID->"a30532f6-c85f-4066-8cc2-be4576e8ff7f"],
Cell[BoxData[
TagBox[
RowBox[{"(", "\[NoBreak]", GridBox[{
{
RowBox[{
RowBox[{"-", "1"}], "-",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}], "0", "0", "0"},
{"0",
FractionBox["1",
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}]], "0", "0"},
{"0", "0",
SuperscriptBox["r", "2"], "0"},
{"0", "0", "0",
RowBox[{
SuperscriptBox["r", "2"], " ",
SuperscriptBox[
RowBox[{"Sin", "[", "\[Theta]", "]"}], "2"]}]}
},
GridBoxAlignment->{"Columns" -> {{Center}}, "Rows" -> {{Baseline}}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[0.7]},
Offset[0.27999999999999997`]}, "Rows" -> {
Offset[0.2], {
Offset[0.4]},
Offset[0.2]}}], "\[NoBreak]", ")"}],
Function[BoxForm`e$,
MatrixForm[BoxForm`e$]]]], "Output",
CellChangeTimes->{3.825351331923808*^9, 3.8253529379536743`*^9,
3.825353765380675*^9, 3.82535525708486*^9, 3.8253628880351973`*^9,
3.8253632138172483`*^9, 3.82536444674347*^9, 3.8253688145202007`*^9,
3.825370794544941*^9, 3.8254533498863745`*^9},
CellLabel->
"Out[6]//MatrixForm=",ExpressionUUID->"26d665b9-967f-4fb5-ab68-\
ddc3f46f93b7"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"inverseMetric", " ", "//", " ", "MatrixForm"}]], "Input",
CellChangeTimes->{{3.8253513857816696`*^9, 3.82535138853467*^9}},
CellLabel->"In[7]:=",ExpressionUUID->"f3bbb710-c2e7-4107-9265-66cb99631214"],
Cell[BoxData[
TagBox[
RowBox[{"(", "\[NoBreak]", GridBox[{
{
FractionBox["1",
RowBox[{
RowBox[{"-", "1"}], "-",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}]], "0", "0", "0"},
{"0",
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}], "0", "0"},
{"0", "0",
FractionBox["1",
SuperscriptBox["r", "2"]], "0"},
{"0", "0", "0",
FractionBox[
SuperscriptBox[
RowBox[{"Csc", "[", "\[Theta]", "]"}], "2"],
SuperscriptBox["r", "2"]]}
},
GridBoxAlignment->{"Columns" -> {{Center}}, "Rows" -> {{Baseline}}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[0.7]},
Offset[0.27999999999999997`]}, "Rows" -> {
Offset[0.2], {
Offset[0.4]},
Offset[0.2]}}], "\[NoBreak]", ")"}],
Function[BoxForm`e$,
MatrixForm[BoxForm`e$]]]], "Output",
CellChangeTimes->{3.825351388966669*^9, 3.825352938841958*^9,
3.825353766109851*^9, 3.825355257803673*^9, 3.8253628888722043`*^9,
3.8253632144882774`*^9, 3.8253644474766364`*^9, 3.8253688153238945`*^9,
3.8253707959397335`*^9, 3.8254533512983174`*^9},
CellLabel->
"Out[7]//MatrixForm=",ExpressionUUID->"8528f844-875e-4e20-9259-\
024f8fcd2ef1"]
}, Open ]],
Cell[BoxData[
RowBox[{
RowBox[{"(*",
RowBox[{"Christoffel", " ", "Definition"}], "*)"}],
RowBox[{
GraphicsBox[
TagBox[RasterBox[CompressedData["
1:eJztnVdolFkUgGV3H/ZFWHwQfJJ9EBEfxIfFoIgGRV3EljXqiyUh2biWRJNo
iNjFXkEQUbFXLCgI9gZiQbGjotgVS1TsXc/mO3DDn0lmJjOZf+aPOR+Mbiaz
/z333tPvTfwzuyDj318aNGhQ9Hv5HxlZJemFhVml//xR/kVmftF/efm5OX/n
F+fm5RamZf9a/uZf5a+y8tdv5S8xDMMwDMMwDMMwDMMwDMMwDMMwDMMwDMMw
DMMwfOHly5cyd+5cKSoqks+fP6daHMMwQsBGc3JyZPjw4dKiRQsZPXq02aph
BJjnz59L165dzVYNI+CYrRpG3cBs1TDqBmarhlE3MFs1jKpgC2PHjpXZs2fL
t2/fZPHixbJkyZKUymS2ahhVKSsrk27dusn+/fvl1atX0rdvX9m1a1dKZQ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Ik+ixqa2wAXqZLnb5RTyye+N9KE52v+/JQjyyh9NjfCV5
Tk3qCxc/Tpw4USv5/cB7zz3ZcIeIdSGesv/uLoJfNX0s4Ec4awj3szjxgP8n
ZyBmeGvVIOGtVb14ZQ8ikfSYvSRvieZjmOPatWs1bwji2TMykU8FQWfIhZs1
a6b1R124/1YbuHcTxDkm6qw62QRJj392qJ/Idci//MwLDcOIH3w5dRD9AM79
DMMIHs5O582bpzkhNSvn8EHswRlGfYUag3s/9FwPHDggR44ckZUrV2q/Keg/
A2IY9QnO7TinC72zz91O6xEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEY
hmEYhmEYhmEYjv8Bxd78Nw==
"], {{0, 39.75}, {176.25, 0}}, {0, 255},
ColorFunction->RGBColor,
ImageResolution->{96, 96}],
BoxForm`ImageTag["Byte", ColorSpace -> "RGB", Interleaving -> True],
Selectable->False],
DefaultBaseStyle->"ImageGraphics",
ImageSize->{224.77358490566039`, Automatic},
ImageSizeRaw->{176.25, 39.75},
PlotRange->{{0, 176.25}, {0, 39.75}}], ";"}]}]], "Input",
CellChangeTimes->{{3.825351430326681*^9, 3.825351439299672*^9},
3.8253519926556854`*^9, {3.82535526795967*^9, 3.8253552743402677`*^9}},
CellLabel->"In[8]:=",ExpressionUUID->"7e605626-ad0f-4de3-9a62-82590dc5c2d0"],
Cell[BoxData[
RowBox[{"christoffel", " ", ":=", " ",
RowBox[{"christoffel", " ", "=", " ",
RowBox[{"Simplify", "[", " ",
RowBox[{"(*",
RowBox[{"compressing", " ", "forms", " ", "of", " ", "functions"}],
"*)"}], "\[IndentingNewLine]", "\t\t\t\t\t\t\t\t ",
RowBox[{"Table", "[", " ",
RowBox[{"(*",
RowBox[{
"putting", " ", "all", " ", "values", " ", "of", " ", "the", " ",
"Christoffel", " ", "symbol", " ", "with", " ", "different", " ",
"values", " ", "of", " ", "fixed", " ", "indices"}], "*)"}],
"\[IndentingNewLine]",
" \
",
RowBox[{
RowBox[{
RowBox[{"(",
RowBox[{"1", "/", "2"}], ")"}], "*",
RowBox[{"Sum", "[", " ",
RowBox[{"(*",
RowBox[{"Einstein", " ", "sum", " ", "over", " ", "\[Sigma]"}],
"*)"}], "\[IndentingNewLine]", "\t\t\t\t\t\t\t\t\t\t\t\t",
RowBox[{
RowBox[{
RowBox[{"(",
RowBox[{"inverseMetric", "[",
RowBox[{"[",
RowBox[{"\[Mu]", ",", "\[Sigma]"}], "]"}], "]"}], ")"}], "*",
" ",
RowBox[{"(*",
RowBox[{"inverse", " ", "metric", " ", "factor"}], "*)"}],
"\[IndentingNewLine]",
"\t\t\t\t\t\t\t ",
RowBox[{"(",
RowBox[{
RowBox[{"D", "[",
RowBox[{
RowBox[{"metric", "[",
RowBox[{"[",
RowBox[{"\[Sigma]", ",", "\[Nu]"}], "]"}], "]"}], ",",
RowBox[{"coordSys", "[",
RowBox[{"[", "\[Rho]", "]"}], "]"}]}], " ", "]"}], " ",
RowBox[{"(*",
RowBox[{"inner", " ", "differentiated", " ", "metrics"}], "*)"}],
"\[IndentingNewLine]",
" \
", "+",
RowBox[{"D", "[",
RowBox[{
RowBox[{"metric", "[",
RowBox[{"[",
RowBox[{"\[Sigma]", ",", "\[Rho]"}], "]"}], "]"}], ",",
RowBox[{"coordSys", "[",
RowBox[{"[", "\[Nu]", "]"}], "]"}]}], " ", "]"}],
"\[IndentingNewLine]",
" \
", "-",
RowBox[{"D", "[",
RowBox[{
RowBox[{"metric", "[",
RowBox[{"[",
RowBox[{"\[Nu]", ",", "\[Rho]"}], "]"}], "]"}], ",",
RowBox[{"coordSys", "[",
RowBox[{"[", "\[Sigma]", "]"}], "]"}]}], " ", "]"}]}], ")"}]}],
",", "\[IndentingNewLine]", "\t\t\t\t\t\t\t\t\t\t ",
RowBox[{"{",
RowBox[{"\[Sigma]", ",", "1", ",", "n"}], "}"}]}], " ", "]"}]}],
",",
RowBox[{"(*",
RowBox[{"summed", " ", "over", " ", "index"}], "*)"}],
"\[IndentingNewLine]",
" \
",
RowBox[{"{",
RowBox[{"\[Mu]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Nu]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Rho]", ",", "1", ",", "n"}], "}"}]}], "]"}], " ", "]"}],
" ",
RowBox[{"(*",
RowBox[{"free", " ", "indices"}], "*)"}]}]}]], "Input",
CellChangeTimes->{{3.825351443557954*^9, 3.8253514806399946`*^9}, {
3.8253515293750596`*^9, 3.8253516214626694`*^9}, {3.8253521968606696`*^9,
3.8253522765410604`*^9}, {3.8253523139186697`*^9, 3.825352338284898*^9}, {
3.825352386741765*^9, 3.825352394799921*^9}, {3.8253524252856894`*^9,
3.825352655747671*^9}, {3.8253530725996695`*^9, 3.8253530772201586`*^9}, {
3.8253630766133432`*^9, 3.8253630767233677`*^9}, 3.8253631761028776`*^9, {
3.825371082897894*^9, 3.825371149304938*^9}, {3.8254533868363132`*^9,
3.8254533912241335`*^9}},
CellLabel->"In[61]:=",ExpressionUUID->"89307787-9a6c-42b4-aab7-d38211ac967d"],
Cell[BoxData[
RowBox[{"(*",
RowBox[{"Displaying", " ", "C", " ", "Symbols"}], "*)"}]], "Input",
CellChangeTimes->{{3.8253527597487154`*^9, 3.8253527960496716`*^9}, {
3.825366774987606*^9,
3.8253667750896287`*^9}},ExpressionUUID->"fbffcbdf-6a1a-414c-919d-\
d4aaf9827c45"],
Cell[BoxData[
RowBox[{"listChristoffel", ":=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{"If", "[",
RowBox[{
RowBox[{"UnsameQ", "[",
RowBox[{
RowBox[{"christoffel", "[",
RowBox[{"[",
RowBox[{"\[Mu]", ",", "\[Rho]", ",", "\[Nu]"}], "]"}], "]"}], ",",
"0"}], "]"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"ToString", "[",
RowBox[{"\[CapitalGamma]", "[",
RowBox[{"\[Mu]", ",", "\[Rho]", ",", "\[Nu]"}], "]"}], "]"}], ",",
RowBox[{"christoffel", "[",
RowBox[{"[",
RowBox[{"\[Mu]", ",", "\[Rho]", ",", "\[Nu]"}], "]"}], "]"}]}],
"}"}]}], "]"}], " ", ",",
RowBox[{"{",
RowBox[{"\[Mu]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Nu]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Rho]", ",", "1", ",", "\[Nu]"}], "}"}]}], "]"}], " ",
RowBox[{"(*",
RowBox[{
RowBox[{
"basically", " ", "putting", " ", "all", " ", "permuations", " ", "of",
" ", "free", " ", "indices", " ", "and", " ", "summed", " ", "indices",
" ", "in", " ", "an", " ", "array"}], ",", " ",
RowBox[{
"this", " ", "technique", " ", "is", " ", "repeated", " ", "below"}]}],
"*)"}]}]], "Input",
CellChangeTimes->{{3.8253528055326777`*^9, 3.8253528866076703`*^9}, {
3.8253529837963257`*^9, 3.82535302293067*^9}, {3.8253559905767426`*^9,
3.825356013883026*^9}, {3.8253700830001307`*^9, 3.8253700911811557`*^9}},
CellLabel->"In[10]:=",ExpressionUUID->"9f48d77d-c1f1-4ba3-9d6b-2fd9f0673b01"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{"TableForm", "[",
RowBox[{
RowBox[{"Partition", "[",
RowBox[{
RowBox[{"DeleteCases", "[",
RowBox[{
RowBox[{"Flatten", "[", "listChristoffel", "]"}], ",", "Null"}],
"]"}], ",", "2"}], "]"}], ",",
RowBox[{"TableSpacing", "\[Rule]",
RowBox[{"{",
RowBox[{"2", ",", "2"}], "}"}]}]}], "]"}], " ",
RowBox[{"(*",
RowBox[{
RowBox[{"listing", " ", "non"}], "-",
RowBox[{"zero", " ", "unique", " ", "Christoffel", " ", "symbols"}]}],
"*)"}], "\[IndentingNewLine]"}]], "Input",
CellChangeTimes->{
3.8253525913106685`*^9, {3.82535289632867*^9, 3.8253529037449245`*^9}, {
3.8253530277526693`*^9, 3.825353063987357*^9}},
CellLabel->"In[11]:=",ExpressionUUID->"d1edca49-f9dd-4b72-a84e-dce025e38d41"],
Cell[BoxData[
TagBox[GridBox[{
{"\<\"\[CapitalGamma][1, 1, 2]\"\>",
FractionBox[
RowBox[{
SuperscriptBox["k", "2"], " ", "r"}],
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}]]},
{"\<\"\[CapitalGamma][2, 1, 1]\"\>",
RowBox[{
RowBox[{
SuperscriptBox["k", "2"], " ", "r"}], "+",
RowBox[{
SuperscriptBox["k", "4"], " ",
SuperscriptBox["r", "3"]}]}]},
{"\<\"\[CapitalGamma][2, 2, 2]\"\>",
RowBox[{"-",
FractionBox[
RowBox[{
SuperscriptBox["k", "2"], " ", "r"}],
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}]]}]},
{"\<\"\[CapitalGamma][2, 3, 3]\"\>",
RowBox[{
RowBox[{"-", "r"}], " ",
RowBox[{"(",
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}], ")"}]}]},
{"\<\"\[CapitalGamma][2, 4, 4]\"\>",
RowBox[{
RowBox[{"-", "r"}], " ",
RowBox[{"(",
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}], ")"}], " ",
SuperscriptBox[
RowBox[{"Sin", "[", "\[Theta]", "]"}], "2"]}]},
{"\<\"\[CapitalGamma][3, 2, 3]\"\>",
FractionBox["1", "r"]},
{"\<\"\[CapitalGamma][3, 4, 4]\"\>",
RowBox[{
RowBox[{"-",
RowBox[{"Cos", "[", "\[Theta]", "]"}]}], " ",
RowBox[{"Sin", "[", "\[Theta]", "]"}]}]},
{"\<\"\[CapitalGamma][4, 2, 4]\"\>",
FractionBox["1", "r"]},
{"\<\"\[CapitalGamma][4, 3, 4]\"\>",
RowBox[{"Cot", "[", "\[Theta]", "]"}]}
},
GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[1.4]},
Offset[0.27999999999999997`]}, "Rows" -> {
Offset[0.2], {
Offset[0.8]},
Offset[0.2]}}],
Function[BoxForm`e$,
TableForm[BoxForm`e$, TableSpacing -> {2, 2}]]]], "Output",
CellChangeTimes->{3.825352905679776*^9, 3.82535294544168*^9,
3.825353769926691*^9, 3.825355279031675*^9, 3.825356028596813*^9,
3.8253628934442225`*^9, 3.825363219038406*^9, 3.8253644510194397`*^9,
3.8253688196883044`*^9, 3.8253708038917274`*^9, 3.8254534289583187`*^9},
CellLabel->
"Out[11]//TableForm=",ExpressionUUID->"26cfb0b5-e36f-486d-b457-\
7bb06167f287"]
}, Open ]],
Cell[BoxData[
RowBox[{
RowBox[{"(*",
RowBox[{"Riemann", " ", "suffering", " ", "time"}], "*)"}], " ",
RowBox[{
GraphicsBox[
TagBox[RasterBox[CompressedData["
1:eJztnFloVEkUhjPLw7wI8+qTzICIDyI+iEERDYo6Ci4Z4y46MYvjkmASDFFU
VHDB7UEQERVccMEdQcV9w13EXRT3fUVFxf1MvoJq2p5ebnff2/d253zQJn27
u3L+qrqnzjlV7R/FlYVlP+fl5VX/Vv9P4T+1BVVV/9T9/Xv9k6KK6n/LK0pL
/qqoKS0vrcov/qX+4p88fsrL+7X+pyiKoiiKoiiKoiiKoiiKoiiKoiiKoiiK
kjPcu3dPKisrZebMmVJcXCxPnjzx26SMksv6s0GbVzZ+/fpVNm/eLG3atJGz
Z8+60qbbNGTt4bx7906GDx8umzZtkhcvXkjXrl1l27ZtfpuVMXJZfzZo89pG
2/706dPl+/fvrrXrBrmu/ePHjzJlyhRp1aqVcOwxPz9funTpIu3btze/L1++
XL58+WLee+bMGSkoKJA7d+7ItWvXpGXLlrJ79+6M2xwP+nPx4sUyYsQIGTZs
mBw8eDBhv968eVOKioqkSZMm0qhRI6Pd9gHPmzdvLhcvXgy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e4PdZ6KCTDf0TLXfiXiR/OHz4cOh91CKpSbEHlCt4qT0bxl5R
FEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFEVRFCUd/gPrG4eF
"], {{0, 25.5}, {217.5, 0}}, {0, 255},
ColorFunction->RGBColor,
ImageResolution->{96, 96}],
BoxForm`ImageTag["Byte", ColorSpace -> "RGB", Interleaving -> True],
Selectable->False],
DefaultBaseStyle->"ImageGraphics",
ImageSize->{302.375, Automatic},
ImageSizeRaw->{217.5, 25.5},
PlotRange->{{0, 217.5}, {0, 25.5}}],
RowBox[{"(*",
RowBox[{"Note", ":", " ",
RowBox[{"Indices", " ", "counted", " ", "CCW"}]}], "*)"}],
";"}]}]], "Input",
CellChangeTimes->{{3.825353659445668*^9, 3.82535366673667*^9}, {
3.825354067280678*^9, 3.825354072992688*^9}, {3.825354777473433*^9,
3.825354785737672*^9}, 3.8253560602765527`*^9, {3.8253630325813*^9,
3.825363047415663*^9}},
CellLabel->
"In[107]:=",ExpressionUUID->"847ef7a4-347f-4458-9fea-7119a3d87531"],
Cell[BoxData[
RowBox[{"riemann", ":=",
RowBox[{"riemann", "=",
RowBox[{"Simplify", "[",
RowBox[{
"Table", "[", "\[IndentingNewLine]",
" ",
RowBox[{
RowBox[{
RowBox[{"D", "[",
RowBox[{
RowBox[{"christoffel", "[",
RowBox[{"[",
RowBox[{"\[Rho]", ",", "\[Sigma]", ",", "\[Nu]"}], "]"}], "]"}],
",",
RowBox[{"coordSys", "[",
RowBox[{"[", "\[Mu]", "]"}], "]"}]}], " ", "]"}], "-",
RowBox[{"D", "[",
RowBox[{
RowBox[{"christoffel", "[",
RowBox[{"[",
RowBox[{"\[Rho]", ",", "\[Sigma]", ",", "\[Mu]"}], "]"}], "]"}],
",",
RowBox[{"coordSys", "[",
RowBox[{"[", "\[Nu]", "]"}], "]"}]}], " ", "]"}], "+", " ",
RowBox[{"(*",
RowBox[{"differentiated", " ", "Christoffel", " ", "terms"}], "*)"}],
"\[IndentingNewLine]",
" ",
RowBox[{"Sum", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"christoffel", "[",
RowBox[{"[",
RowBox[{"\[Lambda]", ",", "\[Sigma]", ",", "\[Nu]"}], "]"}],
"]"}], " ",
RowBox[{"christoffel", "[",
RowBox[{"[",
RowBox[{"\[Rho]", ",", "\[Mu]", ",", "\[Lambda]"}], "]"}],
"]"}]}], "-",
RowBox[{
RowBox[{"christoffel", "[",
RowBox[{"[",
RowBox[{"\[Lambda]", ",", "\[Sigma]", ",", "\[Mu]"}], "]"}],
"]"}], " ",
RowBox[{"christoffel", "[",
RowBox[{"[",
RowBox[{"\[Rho]", ",", "\[Nu]", ",", "\[Lambda]"}], "]"}],
"]"}]}]}], ",", " ",
RowBox[{"(*",
RowBox[{"squared", " ", "Christoffel", " ", "terms"}], "*)"}],
"\[IndentingNewLine]",
" ",
RowBox[{"{",
RowBox[{"\[Lambda]", ",", "1", ",", "n"}], "}"}]}], "]"}]}], ",",
RowBox[{"(*",
RowBox[{"summed", " ", "over", " ", "index"}], "*)"}],
"\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"\[Rho]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Sigma]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Mu]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Nu]", ",", "1", ",", "n"}], "}"}]}], "]"}], " ", "]"}], " ",
RowBox[{"(*",
RowBox[{"free", " ", "indices"}], "*)"}]}]}]], "Input",
CellChangeTimes->{{3.8253660599598494`*^9, 3.8253661371218996`*^9}, {
3.825366167439834*^9, 3.8253662328629456`*^9}, {3.8253662800059576`*^9,
3.825366286632967*^9}, {3.825367137785591*^9, 3.8253671427955933`*^9}, {
3.8253672707040386`*^9, 3.8253673265277596`*^9}, {3.8254534611743145`*^9,
3.8254534657493114`*^9}},
CellLabel->"In[49]:=",ExpressionUUID->"769e8eb5-45ae-481f-ba39-8db6d9d4aefe"],
Cell[BoxData[
RowBox[{"listriemann", ":=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{"If", "[",
RowBox[{
RowBox[{"UnsameQ", "[",
RowBox[{
RowBox[{"riemann", "[",
RowBox[{"[",
RowBox[{"\[Rho]", ",", "\[Sigma]", ",", "\[Mu]", ",", "\[Nu]"}],
"]"}], "]"}], ",", "0"}], "]"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"ToString", "[",
RowBox[{"R", "[",
RowBox[{"\[Rho]", ",", "\[Sigma]", ",", "\[Mu]", ",", "\[Nu]"}],
"]"}], "]"}], ",",
RowBox[{"riemann", "[",
RowBox[{"[",
RowBox[{"\[Rho]", ",", "\[Sigma]", ",", "\[Mu]", ",", "\[Nu]"}],
"]"}], "]"}]}], "}"}]}], "]"}], " ", ",",
RowBox[{"{",
RowBox[{"\[Rho]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Sigma]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Mu]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Nu]", ",", "1", ",",
RowBox[{"\[Mu]", "-", "1"}]}], "}"}]}], "]"}]}]], "Input",
CellChangeTimes->{{3.8253557518661423`*^9, 3.8253558338531694`*^9}, {
3.8253559195151453`*^9, 3.825355919856222*^9}, {3.825362463228962*^9,
3.825362476070004*^9}, {3.8253647907521324`*^9, 3.8253648140973587`*^9}, {
3.8253648542263803`*^9, 3.8253648595643907`*^9}, 3.8253661150228653`*^9, {
3.825366247113115*^9, 3.8253662724353666`*^9}, {3.8253664191700745`*^9,
3.8253664590052524`*^9}},
CellLabel->"In[15]:=",ExpressionUUID->"597fe111-0484-44a2-abf8-dfa327a8339a"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"TableForm", "[",
RowBox[{
RowBox[{"Partition", "[",
RowBox[{
RowBox[{"DeleteCases", "[",
RowBox[{
RowBox[{"Flatten", "[", "listriemann", "]"}], ",", "Null"}], "]"}],
",", "2"}], "]"}], ",",
RowBox[{"TableSpacing", "\[Rule]",
RowBox[{"{",
RowBox[{"2", ",", "2"}], "}"}]}]}], "]"}]], "Input",
CellChangeTimes->{3.82535585273345*^9, 3.825366252007224*^9},
CellLabel->"In[16]:=",ExpressionUUID->"21ae539f-8a3d-40c6-b432-f065b86f2d64"],
Cell[BoxData[
TagBox[GridBox[{
{"\<\"R[1, 2, 2, 1]\"\>",
FractionBox[
SuperscriptBox["k", "2"],
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}]]},
{"\<\"R[1, 3, 3, 1]\"\>",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]},
{"\<\"R[1, 4, 4, 1]\"\>",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"], " ",
SuperscriptBox[
RowBox[{"Sin", "[", "\[Theta]", "]"}], "2"]}]},
{"\<\"R[2, 1, 2, 1]\"\>",
RowBox[{
SuperscriptBox["k", "2"], "+",
RowBox[{
SuperscriptBox["k", "4"], " ",
SuperscriptBox["r", "2"]}]}]},
{"\<\"R[2, 3, 3, 2]\"\>",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]},
{"\<\"R[2, 4, 4, 2]\"\>",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"], " ",
SuperscriptBox[
RowBox[{"Sin", "[", "\[Theta]", "]"}], "2"]}]},
{"\<\"R[3, 1, 3, 1]\"\>",
RowBox[{
SuperscriptBox["k", "2"], "+",
RowBox[{
SuperscriptBox["k", "4"], " ",
SuperscriptBox["r", "2"]}]}]},
{"\<\"R[3, 2, 3, 2]\"\>",
RowBox[{"-",
FractionBox[
SuperscriptBox["k", "2"],
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}]]}]},
{"\<\"R[3, 4, 4, 3]\"\>",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"], " ",
SuperscriptBox[
RowBox[{"Sin", "[", "\[Theta]", "]"}], "2"]}]},
{"\<\"R[4, 1, 4, 1]\"\>",
RowBox[{
SuperscriptBox["k", "2"], "+",
RowBox[{
SuperscriptBox["k", "4"], " ",
SuperscriptBox["r", "2"]}]}]},
{"\<\"R[4, 2, 4, 2]\"\>",
RowBox[{"-",
FractionBox[
SuperscriptBox["k", "2"],
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}]]}]},
{"\<\"R[4, 3, 4, 3]\"\>",
RowBox[{
RowBox[{"-",
SuperscriptBox["k", "2"]}], " ",
SuperscriptBox["r", "2"]}]}
},
GridBoxAlignment->{"Columns" -> {{Left}}, "Rows" -> {{Baseline}}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[1.4]},
Offset[0.27999999999999997`]}, "Rows" -> {
Offset[0.2], {
Offset[0.8]},
Offset[0.2]}}],
Function[BoxForm`e$,
TableForm[BoxForm`e$, TableSpacing -> {2, 2}]]]], "Output",
CellChangeTimes->{
3.825355854560864*^9, 3.825355922505823*^9, 3.8253561582074857`*^9,
3.825362482951005*^9, {3.8253629013682084`*^9, 3.8253629059882355`*^9},
3.8253632286554203`*^9, 3.825363380994785*^9, 3.8253635822842784`*^9,
3.825363627965211*^9, 3.825363660439435*^9, 3.825364464962757*^9,
3.8253645280842686`*^9, 3.8253648737544184`*^9, 3.825366547484345*^9,
3.8253688235244317`*^9, 3.825370814189733*^9, {3.825453472984337*^9,
3.8254534789133167`*^9}},
CellLabel->
"Out[16]//TableForm=",ExpressionUUID->"078590d5-a5b6-4b70-90bd-\
c532c67ca8dd"]
}, Open ]],
Cell[BoxData[
RowBox[{
RowBox[{"(*",
RowBox[{"Computing", " ", "Ricci", " ", "Tensor"}], "*)"}],
RowBox[{
GraphicsBox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gWubm5iTmR0ZGbLqGp8JYojZ6J2OI9fHExITk
NMYHnyOx70tOTraLXu8hvYRnhXUOddI7eEb7+vrklV5kMBgkzvWueRhL7DXY
V7OfHhoaEk1HR0dISkoS76Nee+mdHtJLOMfzwnPCMzk9PS3fg7Ozs/gT+ymF
7dBihM9rFC/DTS9XvAx8zsta8OrqSm8pCoVCoVAoFIr/jF/4Jz+d
"], {{0, 27.}, {69.75, 0}}, {0, 255},
ColorFunction->RGBColor,
ImageResolution->{96, 96}],
BoxForm`ImageTag["Byte", ColorSpace -> "RGB", Interleaving -> True],
Selectable->False],
DefaultBaseStyle->"ImageGraphics",
ImageSize->{106.75, Automatic},
ImageSizeRaw->{69.75, 27.},
PlotRange->{{0, 69.75}, {0, 27.}}], ";"}]}]], "Input",
CellChangeTimes->{{3.825366763157278*^9, 3.8253667709046803`*^9},
3.8253682695138283`*^9, 3.8253688274384375`*^9},
CellLabel->
"In[146]:=",ExpressionUUID->"cbf5fd24-6f08-4cef-824d-5be3ed386458"],
Cell[BoxData[
RowBox[{"ricci", ":=",
RowBox[{"ricci", "=",
RowBox[{"Simplify", "[",
RowBox[{
"Table", "[", "\[IndentingNewLine]",
" ",
RowBox[{
RowBox[{
"Sum", "[", "\[IndentingNewLine]",
" ",
RowBox[{
RowBox[{"riemann", "[",
RowBox[{"[",
RowBox[{"\[Rho]", ",", "\[Sigma]", ",", "\[Rho]", ",", "\[Nu]"}],
"]"}], "]"}], ",",
RowBox[{"{",
RowBox[{"\[Rho]", ",", "1", ",", "n"}], "}"}]}], "]"}], ",",
RowBox[{"{",
RowBox[{"\[Sigma]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Nu]", ",", "1", ",", "n"}], "}"}]}], "]"}], " ", "]"}],
RowBox[{"(*",
RowBox[{
"summing", " ", "the", " ", "first", " ", "and", " ", "third", " ",
"index"}], "*)"}]}]}]], "Input",
CellChangeTimes->{{3.8253683551015425`*^9, 3.8253684472657323`*^9}},
CellLabel->"In[52]:=",ExpressionUUID->"fd7df8b8-3761-4080-ba41-d9337ce8f338"],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{"listricci", ":=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{"If", "[",
RowBox[{
RowBox[{"UnsameQ", "[",
RowBox[{
RowBox[{"ricci", "[",
RowBox[{"[",
RowBox[{"\[Sigma]", ",", "\[Nu]"}], "]"}], "]"}], ",", "0"}], "]"}],
",",
RowBox[{"{",
RowBox[{
RowBox[{"ToString", "[",
RowBox[{"R", "[",
RowBox[{"\[Sigma]", ",", "\[Nu]"}], "]"}], "]"}], ",",
RowBox[{"ricci", "[",
RowBox[{"[",
RowBox[{"\[Sigma]", ",", "\[Nu]"}], "]"}], "]"}]}], "}"}]}], "]"}],
" ", ",",
RowBox[{"{",
RowBox[{"\[Sigma]", ",", "1", ",", "n"}], "}"}], ",",
RowBox[{"{",
RowBox[{"\[Nu]", ",", "1", ",", "\[Sigma]"}], "}"}]}],
"]"}]}], "\[IndentingNewLine]",
RowBox[{"TableForm", "[",
RowBox[{
RowBox[{"Partition", "[",
RowBox[{
RowBox[{"DeleteCases", "[",
RowBox[{
RowBox[{"Flatten", "[", "listricci", "]"}], ",", "Null"}], "]"}], ",",
"2"}], "]"}], ",",
RowBox[{"TableSpacing", "\[Rule]",
RowBox[{"{",
RowBox[{"2", ",", "2"}], "}"}]}]}], "]"}]}], "Input",
CellChangeTimes->{
3.825356211668712*^9, 3.8253633941627707`*^9, 3.8253667222171984`*^9,
3.8253684180019083`*^9, {3.8253686629750495`*^9, 3.825368674666217*^9}, {
3.8253687432067957`*^9, 3.825368751843097*^9}, {3.825368931250517*^9,
3.825368931477543*^9}},
CellLabel->"In[24]:=",ExpressionUUID->"a2625572-4f73-47bd-be3e-5181142384bc"],
Cell[BoxData[
TagBox[GridBox[{
{"\<\"R[1, 1]\"\>",
RowBox[{"3", " ",
RowBox[{"(",
RowBox[{
SuperscriptBox["k", "2"], "+",
RowBox[{
SuperscriptBox["k", "4"], " ",
SuperscriptBox["r", "2"]}]}], ")"}]}]},
{"\<\"R[2, 2]\"\>",
RowBox[{"-",
FractionBox[
RowBox[{"3", " ",
SuperscriptBox["k", "2"]}],
RowBox[{"1", "+",
RowBox[{
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]}]]}]},
{"\<\"R[3, 3]\"\>",
RowBox[{
RowBox[{"-", "3"}], " ",
SuperscriptBox["k", "2"], " ",
SuperscriptBox["r", "2"]}]},
{"\<\"R[4, 4]\"\>",
RowBox[{
RowBox[{"-", "3"}], " ",