(* Content-type: application/mathematica *) (*** Wolfram Notebook File ***) (* http://www.wolfram.com/nb *) (* CreatedBy='Mathematica 6.0' *) (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 145, 7] NotebookDataLength[ 30249, 929] NotebookOptionsPosition[ 27510, 832] NotebookOutlinePosition[ 27853, 847] CellTagsIndexPosition[ 27810, 844] WindowFrame->Normal ContainsDynamic->False*) (* Beginning of Notebook Content *) Notebook[{ Cell["\<\ In this worksheet, we explore the primary, SN and cyclic decompositions of \ the following matrix.\ \>", "Text", CellChangeTimes->{{3.449399377101233*^9, 3.449399407108622*^9}, { 3.449400453474839*^9, 3.449400457622295*^9}}], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"MatrixForm", "[", RowBox[{"A", " ", "=", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ "1", ",", "1", ",", "1", ",", "1", ",", "1", ",", "1", ",", "1", ",", "1"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "1"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", RowBox[{"-", "1"}]}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "1", ",", "1", ",", "0", ",", "0", ",", "0", ",", "0", ",", "1"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "1", ",", "1", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "1", ",", "1", ",", "1", ",", "1", ",", "1", ",", "0", ",", "1"}], "}"}], ",", RowBox[{"{", RowBox[{"0", ",", RowBox[{"-", "1"}], ",", RowBox[{"-", "1"}], ",", RowBox[{"-", "1"}], ",", RowBox[{"-", "1"}], ",", "0", ",", "1", ",", RowBox[{"-", "1"}]}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]}], "}"}]}], "]"}]], "Input", CellChangeTimes->{{3.449388293416807*^9, 3.449388373825488*^9}, { 3.44938842133059*^9, 3.449388524386504*^9}}], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"1", "1", "1", "1", "1", "1", "1", "1"}, {"0", "0", "0", "0", "0", "0", "0", "1"}, {"0", "0", "0", "0", "0", "0", "0", RowBox[{"-", "1"}]}, {"0", "1", "1", "0", "0", "0", "0", "1"}, {"0", "0", "0", "1", "1", "0", "0", "0"}, {"0", "1", "1", "1", "1", "1", "0", "1"}, {"0", RowBox[{"-", "1"}], RowBox[{"-", "1"}], RowBox[{"-", "1"}], RowBox[{"-", "1"}], "0", "1", RowBox[{"-", "1"}]}, {"0", "0", "0", "0", "0", "0", "0", "0"} }, GridBoxAlignment->{ "Columns" -> {{Left}}, "ColumnsIndexed" -> {}, "Rows" -> {{Baseline}}, "RowsIndexed" -> {}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.7]}, Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}, "RowsIndexed" -> {}}], "\[NoBreak]", ")"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]], "Output", CellChangeTimes->{3.4498225823075027`*^9}] }, Open ]], Cell["\<\ First I compute the minimal polynomial of A by computing p_(T,v) for a \ 'suitably random' vector v. It turns out that the following vector v = v0 is \ random enough:\ \>", "Text", CellChangeTimes->{{3.449399414985422*^9, 3.449399484409143*^9}}], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"v0", "=", RowBox[{"{", RowBox[{ "1", ",", "1", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]}]], "Input", CellChangeTimes->{{3.4493914434281845`*^9, 3.4493914649736805`*^9}, { 3.449391724543604*^9, 3.4493917250279694`*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{ "1", ",", "1", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]], "Output", CellChangeTimes->{3.4493914868004084`*^9, 3.4493915658591504`*^9, 3.449391728793522*^9, 3.449399531801188*^9, 3.449400047937923*^9, 3.4498226017762527`*^9}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"v1", "=", RowBox[{"A", ".", "v0"}]}]], "Input", CellChangeTimes->{{3.4493914898783364`*^9, 3.4493914940811925`*^9}, { 3.4493917446994667`*^9, 3.449391745980692*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{"2", ",", "0", ",", "0", ",", "1", ",", "0", ",", "1", ",", RowBox[{"-", "1"}], ",", "0"}], "}"}]], "Output", CellChangeTimes->{{3.4493915568436985`*^9, 3.449391568062233*^9}, { 3.449391735621516*^9, 3.449391746855675*^9}, 3.449399532448886*^9, 3.44940004869391*^9, 3.4498226042450027`*^9}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"v2", "=", RowBox[{"A", ".", "v1"}]}]], "Input", CellChangeTimes->{{3.4493917498712425`*^9, 3.4493917541992846`*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{"3", ",", "0", ",", "0", ",", "0", ",", "1", ",", "2", ",", RowBox[{"-", "2"}], ",", "0"}], "}"}]], "Output", CellChangeTimes->{3.449391757199227*^9, 3.44939953318515*^9, 3.449400049488945*^9, 3.4498226066356273`*^9}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"v3", "=", RowBox[{"A", ".", "v2"}]}]], "Input", CellChangeTimes->{{3.449391768964626*^9, 3.449391780573778*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{"4", ",", "0", ",", "0", ",", "0", ",", "1", ",", "3", ",", RowBox[{"-", "3"}], ",", "0"}], "}"}]], "Output", CellChangeTimes->{{3.4493917735114136`*^9, 3.449391782479991*^9}, 3.449399533933113*^9, 3.44939962240117*^9, 3.449400050354557*^9, 3.4498226114325027`*^9}] }, Open ]], Cell["\<\ It' s not clear at this point whether v0, v1, v2, v3 are independent vectors, \ so I check by making them the columns of a matrix and evaluating the \ nullspace.\ \>", "Text", CellChangeTimes->{{3.44939954072088*^9, 3.449399605207819*^9}}], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"NullSpace", "[", RowBox[{"Transpose", "[", RowBox[{"{", RowBox[{"v0", ",", "v1", ",", "v2", ",", "v3"}], "}"}], "]"}], "]"}]], "Input", CellChangeTimes->{{3.449399508920166*^9, 3.44939952079197*^9}, { 3.449399628260497*^9, 3.449399628669648*^9}}], Cell[BoxData[ RowBox[{"{", "}"}]], "Output", CellChangeTimes->{ 3.449399522822402*^9, {3.449399613444523*^9, 3.449399629294994*^9}, 3.449400051912266*^9, 3.4498226240731273`*^9}] }, Open ]], Cell["\<\ That is, the nullspace is trivial, so the vectors are independent. I proceed \ one more step and check again.\ \>", "Text", CellChangeTimes->{{3.449399608402781*^9, 3.449399651378724*^9}}], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"v4", "=", RowBox[{"A", ".", "v3"}]}]], "Input", CellChangeTimes->{{3.4493919018222823`*^9, 3.4493919047128887`*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{"5", ",", "0", ",", "0", ",", "0", ",", "1", ",", "4", ",", RowBox[{"-", "4"}], ",", "0"}], "}"}]], "Output", CellChangeTimes->{3.449391905650383*^9, 3.449399682279254*^9, 3.449400053370517*^9, 3.4498226262450027`*^9}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"NullSpace", "[", RowBox[{"Transpose", "[", RowBox[{"{", RowBox[{"v0", ",", "v1", ",", "v2", ",", "v3", ",", "v4"}], "}"}], "]"}], "]"}]], "Input", CellChangeTimes->{{3.4493918254791656`*^9, 3.4493918591350555`*^9}, { 3.4493919144159517`*^9, 3.4493919153846955`*^9}, {3.44939967116126*^9, 3.449399675756844*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{"{", RowBox[{"0", ",", "0", ",", "1", ",", RowBox[{"-", "2"}], ",", "1"}], "}"}], "}"}]], "Output", CellChangeTimes->{{3.4493918424945374`*^9, 3.449391859900676*^9}, 3.449391916572188*^9, {3.449399678214562*^9, 3.449399683292416*^9}, 3.449400054122585*^9, 3.4498226364637527`*^9}] }, Open ]], Cell["\<\ So the vectors are now dependent, and in fact v4 - 2v3 + v2 = 0 is a \ dependence relation. I infer that p_T,v(x) = x^4 - 2x^3 + x^2. To see if \ this is the minimal polynomial for A, I evaluate p_T,v(A):\ \>", "Text", CellChangeTimes->{{3.449399689473088*^9, 3.449399799987337*^9}}], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"MatrixForm", "[", RowBox[{ RowBox[{"A", ".", "A", ".", "A", ".", "A"}], "-", RowBox[{"2", RowBox[{"A", ".", "A", ".", "A"}]}], " ", "+", " ", RowBox[{"A", ".", "A"}]}], "]"}]], "Input", CellChangeTimes->{{3.4493920664931035`*^9, 3.449392086086728*^9}}], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"} }, GridBoxAlignment->{ "Columns" -> {{Left}}, "ColumnsIndexed" -> {}, "Rows" -> {{Baseline}}, "RowsIndexed" -> {}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.7]}, Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}, "RowsIndexed" -> {}}], "\[NoBreak]", ")"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]], "Output", CellChangeTimes->{3.4493920886804614`*^9, 3.449399803050996*^9, 3.449400056418977*^9, 3.4498226459950027`*^9}] }, Open ]], Cell["\<\ So p_min(x) = x^4 -2 x^3 + x^2 = x^2(x-1)^2, and by the primary decomposition \ theorem, I know that R^4 is a direct sum of the nullspaces of A^2 and \ (A-I)^2. So I find bases for these and combine them to get a basis B for \ R^8.\ \>", "Text", CellChangeTimes->{{3.449399804654356*^9, 3.449399993724502*^9}}], Cell[CellGroupData[{ Cell[BoxData[{ RowBox[{ RowBox[{"Id", " ", "=", " ", RowBox[{"IdentityMatrix", "[", "8", "]"}]}], ";"}], "\[IndentingNewLine]", RowBox[{ RowBox[{"{", RowBox[{"b1", ",", "b2", ",", "b3", ",", "b4"}], "}"}], "=", RowBox[{"NullSpace", "[", RowBox[{"A", ".", "A"}], "]"}]}], "\[IndentingNewLine]", RowBox[{ RowBox[{"{", RowBox[{"b5", ",", "b6", ",", "b7", ",", "b8"}], "}"}], "=", RowBox[{"NullSpace", "[", RowBox[{ RowBox[{"(", RowBox[{"A", "-", "Id"}], ")"}], ".", RowBox[{"(", RowBox[{"A", "-", "Id"}], ")"}]}], "]"}]}]}], "Input", CellChangeTimes->{{3.4493921512894354`*^9, 3.449392223288975*^9}, { 3.449400073561116*^9, 3.449400083170281*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{"0", ",", RowBox[{"-", "1"}], ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "1"}], "}"}], ",", RowBox[{"{", RowBox[{"0", ",", RowBox[{"-", "1"}], ",", "0", ",", "0", ",", "1", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{"0", ",", RowBox[{"-", "1"}], ",", "0", ",", "1", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{"0", ",", RowBox[{"-", "1"}], ",", "1", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]}], "}"}]], "Output", CellChangeTimes->{ 3.4493921835548544`*^9, 3.449392224788965*^9, 3.449399905336271*^9, 3.449399946913816*^9, 3.449400023470559*^9, {3.449400065878053*^9, 3.449400084249284*^9}, 3.4498227193231273`*^9}], Cell[BoxData[ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "1", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "1", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "1", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "1", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]}], "}"}]], "Output", CellChangeTimes->{ 3.4493921835548544`*^9, 3.449392224788965*^9, 3.449399905336271*^9, 3.449399946913816*^9, 3.449400023470559*^9, {3.449400065878053*^9, 3.449400084249284*^9}, 3.4498227193231273`*^9}] }, Open ]], Cell["The change of basis matrix from B to the standard basis is", "Text", CellChangeTimes->{{3.449399956213545*^9, 3.449399961474838*^9}, { 3.449400001794307*^9, 3.449400005175328*^9}}], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"MatrixForm", "[", RowBox[{"CEB", " ", "=", RowBox[{"Transpose", "[", RowBox[{"{", RowBox[{ "b1", ",", "b2", ",", "b3", ",", "b4", ",", "b5", ",", "b6", ",", "b7", ",", "b8"}], "}"}], "]"}]}], "]"}]], "Input", CellChangeTimes->{{3.449392405334685*^9, 3.4493924418344836`*^9}}], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"0", "0", "0", "0", "0", "0", "0", "1"}, { RowBox[{"-", "1"}], RowBox[{"-", "1"}], RowBox[{"-", "1"}], RowBox[{"-", "1"}], "0", "0", "0", "0"}, {"0", "0", "0", "1", "0", "0", "0", "0"}, {"0", "0", "1", "0", "0", "0", "0", "0"}, {"0", "1", "0", "0", "0", "0", "1", "0"}, {"0", "0", "0", "0", "0", "1", "0", "0"}, {"0", "0", "0", "0", "1", "0", "0", "0"}, {"1", "0", "0", "0", "0", "0", "0", "0"} }, GridBoxAlignment->{ "Columns" -> {{Left}}, "ColumnsIndexed" -> {}, "Rows" -> {{Baseline}}, "RowsIndexed" -> {}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.7]}, Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}, "RowsIndexed" -> {}}], "\[NoBreak]", ")"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]], "Output", CellChangeTimes->{3.4493924540532336`*^9, 3.449399948097363*^9, 3.449400013283131*^9, 3.449400087299077*^9, 3.4498231989637527`*^9}] }, Open ]], Cell["\<\ The matrix for the transformation T (x) = A x relative to the basis B is \ therefore given by\ \>", "Text", CellChangeTimes->{{3.44940009629995*^9, 3.449400128635565*^9}}], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"MatrixForm", "[", RowBox[{"AB", " ", "=", " ", RowBox[{ RowBox[{"Inverse", "[", "CEB", "]"}], ".", "A", ".", "CEB"}]}], "]"}]], "Input", CellChangeTimes->{{3.4493924648969836`*^9, 3.4493924851469836`*^9}}], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "1", "1", "0", "0", "0", "0", "0"}, {"0", RowBox[{"-", "1"}], RowBox[{"-", "1"}], "0", "0", "0", "0", "0"}, { RowBox[{"-", "1"}], "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "1", "0", RowBox[{"-", "1"}], "0"}, {"0", "0", "0", "0", "0", "1", "1", "0"}, {"0", "0", "0", "0", "0", "0", "1", "0"}, {"0", "0", "0", "0", "1", "1", "1", "1"} }, GridBoxAlignment->{ "Columns" -> {{Left}}, "ColumnsIndexed" -> {}, "Rows" -> {{Baseline}}, "RowsIndexed" -> {}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.7]}, Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}, "RowsIndexed" -> {}}], "\[NoBreak]", ")"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]], "Output", CellChangeTimes->{3.449392489506358*^9, 3.449400015740967*^9, 3.449400090068214*^9, 3.4498232162137527`*^9, 3.449823600467969*^9}] }, Open ]], Cell["\<\ And as expected, the matrix has two 4 x 4 blocks corresponding to the two \ four dimensional invariant subspaces in the primary decomposition.\ \>", "Text", CellChangeTimes->{{3.449400135840802*^9, 3.449400164786881*^9}}], Cell[CellGroupData[{ Cell[BoxData[{ RowBox[{"MatrixForm", "[", RowBox[{"SB", " ", "=", " ", RowBox[{"DiagonalMatrix", "[", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "1", ",", "1", ",", "1", ",", "1"}], "}"}], "]"}]}], "]"}], "\[IndentingNewLine]", RowBox[{"MatrixForm", "[", RowBox[{"NB", " ", "=", " ", RowBox[{"AB", "-", "SB"}]}], "]"}]}], "Input", CellChangeTimes->{{3.449823620014969*^9, 3.4498236819372406`*^9}}], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "1", "0", "0", "0"}, {"0", "0", "0", "0", "0", "1", "0", "0"}, {"0", "0", "0", "0", "0", "0", "1", "0"}, {"0", "0", "0", "0", "0", "0", "0", "1"} }, GridBoxAlignment->{ "Columns" -> {{Left}}, "ColumnsIndexed" -> {}, "Rows" -> {{Baseline}}, "RowsIndexed" -> {}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.7]}, Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}, "RowsIndexed" -> {}}], "\[NoBreak]", ")"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]], "Output", CellChangeTimes->{3.449823684374756*^9}], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "1", "1", "0", "0", "0", "0", "0"}, {"0", RowBox[{"-", "1"}], RowBox[{"-", "1"}], "0", "0", "0", "0", "0"}, { RowBox[{"-", "1"}], "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "0", "0", RowBox[{"-", "1"}], "0"}, {"0", "0", "0", "0", "0", "0", "1", "0"}, {"0", "0", "0", "0", "0", "0", "0", "0"}, {"0", "0", "0", "0", "1", "1", "1", "0"} }, GridBoxAlignment->{ "Columns" -> {{Left}}, "ColumnsIndexed" -> {}, "Rows" -> {{Baseline}}, "RowsIndexed" -> {}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.7]}, Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}, "RowsIndexed" -> {}}], "\[NoBreak]", ")"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]], "Output", CellChangeTimes->{3.449823684374756*^9}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ RowBox[{"NB", ".", "NB"}], "\[IndentingNewLine]", RowBox[{ RowBox[{"SB", ".", "NB"}], "-", RowBox[{"NB", ".", "SB"}]}]}], "Input", CellChangeTimes->{{3.4498237052186394`*^9, 3.449823725953147*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]}], "}"}]], "Output", CellChangeTimes->{{3.449823711546805*^9, 3.449823727046904*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]}], "}"}]], "Output", CellChangeTimes->{{3.449823711546805*^9, 3.449823727062529*^9}}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ RowBox[{"(", RowBox[{"EAB", " ", "=", RowBox[{ RowBox[{"DiagonalMatrix", "[", RowBox[{"{", RowBox[{ "1", ",", "1", ",", "1", ",", "1", ",", "E", ",", "E", ",", "E", ",", "E"}], "}"}], "]"}], ".", RowBox[{"(", RowBox[{"Id", "+", "NB"}], ")"}]}]}], ")"}], "//", "MatrixForm"}]], "Input", CellChangeTimes->{{3.4498237362969637`*^9, 3.4498238069224157`*^9}, { 3.4498238850007625`*^9, 3.4498238865632625`*^9}}], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"1", "0", "0", "0", "0", "0", "0", "0"}, {"0", "2", "1", "0", "0", "0", "0", "0"}, {"0", RowBox[{"-", "1"}], "0", "0", "0", "0", "0", "0"}, { RowBox[{"-", "1"}], "0", "0", "1", "0", "0", "0", "0"}, {"0", "0", "0", "0", "\[ExponentialE]", "0", RowBox[{"-", "\[ExponentialE]"}], "0"}, {"0", "0", "0", "0", "0", "\[ExponentialE]", "\[ExponentialE]", "0"}, {"0", "0", "0", "0", "0", "0", "\[ExponentialE]", "0"}, {"0", "0", "0", "0", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]"} }, GridBoxAlignment->{ "Columns" -> {{Left}}, "ColumnsIndexed" -> {}, "Rows" -> {{Baseline}}, "RowsIndexed" -> {}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.7]}, Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}, "RowsIndexed" -> {}}], "\[NoBreak]", ")"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]], "Output", CellChangeTimes->{{3.4498237722659435`*^9, 3.4498238124068255`*^9}, 3.4498238873757625`*^9}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{ RowBox[{"MatrixExp", "[", "AB", "]"}], "-", "EAB"}]], "Input", CellChangeTimes->{{3.449823855235137*^9, 3.449823874047637*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]}], "}"}]], "Output", CellChangeTimes->{{3.4498238687195125`*^9, 3.4498238962195125`*^9}}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"MatrixForm", "[", RowBox[{"EA", "=", RowBox[{"CEB", ".", "EAB", ".", RowBox[{"Inverse", "[", "CEB", "]"}]}]}], "]"}]], "Input", CellChangeTimes->{{3.449823935422637*^9, 3.4498239703445125`*^9}}], Cell[BoxData[ TagBox[ RowBox[{"(", "\[NoBreak]", GridBox[{ {"\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]"}, {"0", "1", "0", "0", "0", "0", "0", "1"}, {"0", "0", "1", "0", "0", "0", "0", RowBox[{"-", "1"}]}, {"0", "1", "1", "1", "0", "0", "0", "1"}, {"0", RowBox[{ RowBox[{"-", "2"}], "+", "\[ExponentialE]"}], RowBox[{ RowBox[{"-", "2"}], "+", "\[ExponentialE]"}], RowBox[{ RowBox[{"-", "1"}], "+", "\[ExponentialE]"}], "\[ExponentialE]", "0", "0", RowBox[{ RowBox[{"-", "2"}], "+", "\[ExponentialE]"}]}, {"0", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "\[ExponentialE]", "0", "\[ExponentialE]"}, {"0", RowBox[{"-", "\[ExponentialE]"}], RowBox[{"-", "\[ExponentialE]"}], RowBox[{"-", "\[ExponentialE]"}], RowBox[{"-", "\[ExponentialE]"}], "0", "\[ExponentialE]", RowBox[{"-", "\[ExponentialE]"}]}, {"0", "0", "0", "0", "0", "0", "0", "1"} }, GridBoxAlignment->{ "Columns" -> {{Left}}, "ColumnsIndexed" -> {}, "Rows" -> {{Baseline}}, "RowsIndexed" -> {}}, GridBoxSpacings->{"Columns" -> { Offset[0.27999999999999997`], { Offset[0.7]}, Offset[0.27999999999999997`]}, "ColumnsIndexed" -> {}, "Rows" -> { Offset[0.2], { Offset[0.4]}, Offset[0.2]}, "RowsIndexed" -> {}}], "\[NoBreak]", ")"}], Function[BoxForm`e$, MatrixForm[BoxForm`e$]]]], "Output", CellChangeTimes->{3.4498239851257625`*^9}] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ RowBox[{"EA", "-", RowBox[{"MatrixExp", "[", "A", "]"}]}]], "Input", CellChangeTimes->{{3.449823991172637*^9, 3.449823999578887*^9}}], Cell[BoxData[ RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}], ",", RowBox[{"{", RowBox[{ "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "0"}], "}"}]}], "}"}]], "Output", CellChangeTimes->{3.4498240001882625`*^9}] }, Open ]], Cell[BoxData[""], "Input", CellChangeTimes->{{3.449823947047637*^9, 3.449823947516387*^9}}] }, WindowSize->{1008, 647}, WindowMargins->{{0, Automatic}, {Automatic, 0}}, FrontEndVersion->"6.0 for Microsoft Windows (64-bit) (February 7, 2008)", StyleDefinitions->"Default.nb" ] (* End of Notebook Content *) (* Internal cache information *) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[568, 21, 237, 5, 29, "Text"], Cell[CellGroupData[{ Cell[830, 30, 1453, 41, 52, "Input"], Cell[2286, 73, 1101, 30, 146, "Output"] }, Open ]], Cell[3402, 106, 257, 5, 29, "Text"], Cell[CellGroupData[{ Cell[3684, 115, 287, 7, 31, "Input"], Cell[3974, 124, 303, 7, 30, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[4314, 136, 195, 4, 31, "Input"], Cell[4512, 142, 341, 6, 30, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[4890, 153, 144, 3, 31, "Input"], Cell[5037, 158, 264, 5, 30, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[5338, 168, 140, 3, 31, "Input"], Cell[5481, 173, 317, 6, 30, "Output"] }, Open ]], Cell[5813, 182, 250, 5, 29, "Text"], Cell[CellGroupData[{ Cell[6088, 191, 288, 7, 31, "Input"], Cell[6379, 200, 186, 4, 30, "Output"] }, Open ]], Cell[6580, 207, 200, 4, 29, "Text"], Cell[CellGroupData[{ Cell[6805, 215, 144, 3, 31, "Input"], Cell[6952, 220, 265, 5, 30, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[7254, 230, 356, 8, 31, "Input"], Cell[7613, 240, 337, 7, 30, "Output"] }, Open ]], Cell[7965, 250, 296, 5, 47, "Text"], Cell[CellGroupData[{ Cell[8286, 259, 296, 7, 31, "Input"], Cell[8585, 268, 1040, 25, 146, "Output"] }, Open ]], Cell[9640, 296, 322, 6, 47, "Text"], Cell[CellGroupData[{ Cell[9987, 306, 708, 20, 72, "Input"], Cell[10698, 328, 850, 22, 30, "Output"], Cell[11551, 352, 786, 22, 30, "Output"] }, Open ]], Cell[12352, 377, 189, 2, 29, "Text"], Cell[CellGroupData[{ Cell[12566, 383, 330, 8, 31, "Input"], Cell[12899, 393, 1150, 29, 146, "Output"] }, Open ]], Cell[14064, 425, 183, 4, 29, "Text"], Cell[CellGroupData[{ Cell[14272, 433, 244, 6, 31, "Input"], Cell[14519, 441, 1148, 29, 146, "Output"] }, Open ]], Cell[15682, 473, 232, 4, 29, "Text"], Cell[CellGroupData[{ Cell[15939, 481, 457, 11, 52, "Input"], Cell[16399, 494, 967, 24, 146, "Output"], Cell[17369, 520, 1055, 28, 146, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[18461, 553, 221, 5, 52, "Input"], Cell[18685, 560, 1159, 35, 50, "Output"], Cell[19847, 597, 1159, 35, 50, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[21043, 637, 495, 14, 31, "Input"], Cell[21541, 653, 1222, 29, 146, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[22800, 687, 154, 3, 31, "Input"], Cell[22957, 692, 1163, 35, 50, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[24157, 732, 231, 5, 31, "Input"], Cell[24391, 739, 1679, 42, 146, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[26107, 786, 152, 3, 31, "Input"], Cell[26262, 791, 1137, 35, 50, "Output"] }, Open ]], Cell[27414, 829, 92, 1, 31, "Input"] } ] *) (* End of internal cache information *)