(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.1' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 4214, 126]*) (*NotebookOutlinePosition[ 4964, 152]*) (* CellTagsIndexPosition[ 4920, 148]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["\<\ Lay Chapter 7, Spectral Decomposition\ \>", "Title"], Cell["\<\ Consider the symmetric matrix a (Lay 7.1, Example 4)\ \>", "Text"], Cell[BoxData[{ RowBox[{\(Clear[a];\), "\[IndentingNewLine]"}], "\[IndentingNewLine]", RowBox[{ RowBox[{ RowBox[{"a", "=", RowBox[{"(", "\[NegativeThinSpace]", GridBox[{ {"7", "2"}, {"2", "4"} }], "\[NegativeThinSpace]", ")"}]}], ";"}], "\[IndentingNewLine]"}], "\[IndentingNewLine]", \(a\ \[Equal] \ Transpose[a]\)}], "Input"], Cell["Calculate the eigenvalues and eigenvectors of a.", "Text"], Cell[BoxData[ \({evals, evecs} = Eigensystem[a]\)], "Input"], Cell["Construct the orthogonal diagonalization of a.", "Text"], Cell[BoxData[{ \(\(p = Table[evecs[\([k]\)]/Norm[evecs[\([k]\)]], \[IndentingNewLine]{k, 1, 2}] // Transpose;\)\), "\[IndentingNewLine]", \(% // MatrixForm\), "\[IndentingNewLine]", \(\(\(invp = Inverse[p];\)\(\[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(\(diag\[Lambda] = DiagonalMatrix[evals];\)\), "\[IndentingNewLine]", \(\(\(% // MatrixForm\)\(\[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(a \[Equal] p . diag\[Lambda] . invp\)}], "Input"], Cell["Construct a spectral decomposition of a.", "Text"], Cell[BoxData[ \(<< LinearAlgebra`MatrixManipulation`\)], "Input"], Cell[BoxData[{ \(\(u1 = TakeColumns[p, {1, 1}];\)\), "\[IndentingNewLine]", \(\(\(% // MatrixForm\)\(\[IndentingNewLine]\) \)\), "\[IndentingNewLine]", \(\(u2 = TakeColumns[p, {2, 2}];\)\), "\[IndentingNewLine]", \(% // MatrixForm\)}], "Input"], Cell[BoxData[{ \(\(blocks = {u1 . Transpose[u1], u2 . Transpose[u2]};\)\), "\[IndentingNewLine]", \(Map[MatrixForm, %]\)}], "Input"], Cell[BoxData[{ RowBox[{\(Print[a // MatrixForm, "\<\[Equal]\>", evals[\([1]\)], \ blocks[\([1]\)] // MatrixForm, "\<+\>", \ evals[\([2]\)], \ blocks[\([2]\)] // MatrixForm];\), "\[IndentingNewLine]"}], "\[IndentingNewLine]", RowBox[{ RowBox[{"spectralDecomposition", "=", RowBox[{ UnderoverscriptBox[ StyleBox["\[Sum]", FontSize->14], \(k = 1\), "2"], \(evals[\([k]\)] blocks[\([k]\)]\)}]}], ";"}], "\[IndentingNewLine]", \(a == spectralDecomposition\)}], "Input"] }, Open ]] }, FrontEndVersion->"5.1 for Macintosh", ScreenRectangle->{{4, 1280}, {0, 832}}, WindowSize->{810, 756}, WindowMargins->{{49, Automatic}, {Automatic, 0}}, PrintingCopies->1, PrintingPageRange->{1, Automatic}, CellLabelAutoDelete->True, StyleDefinitions -> "Report.nb" ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1776, 53, 62, 3, 122, "Title"], Cell[1841, 58, 77, 3, 44, "Text"], Cell[1921, 63, 423, 10, 112, "Input"], Cell[2347, 75, 64, 0, 28, "Text"], Cell[2414, 77, 64, 1, 32, "Input"], Cell[2481, 80, 62, 0, 28, "Text"], Cell[2546, 82, 520, 10, 160, "Input"], Cell[3069, 94, 56, 0, 28, "Text"], Cell[3128, 96, 69, 1, 32, "Input"], Cell[3200, 99, 267, 5, 96, "Input"], Cell[3470, 106, 152, 3, 48, "Input"], Cell[3625, 111, 573, 12, 131, "Input"] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)