PLU Decomposition of a Matrix
Loading the math board and drawing, please wait…
This example demonstrates the PLU decomposition of a matrix A, where P is a permutation matrix, L is a lower triangular matrix, and U is an upper triangular matrix. Using GeoGebra commands like Random, Transpose, etc., the dynamic process of matrix transformation is shown. Suitable for high school and above students to learn matrix theory.
GeoGebra Commands & Parameters
Random(-5, 5) → A6Random(-5, 5) → B6Random(-5, 5) → C6Random(-5, 5) → A7Random(-5, 5) → B7Random(-5, 5) → C7Random(-5, 5) → A8Random(-5, 5) → B8Random(-5, 5) → C8Transpose({Sequence[abs(Element[A, i, 1]), i, 1, 3]}) → list2Reverse(Sort[Sequence[(Element[list2, i, 1], i), i, 1, 3]]) → cIf(abs(Element[U_0, 1, 1]) ≟ Element[x(c), 1], {1, 2, 3}, list7) → list8Sequence(Element[A, Element[list8, i]], i, 1, 3) → U_1Sequence(abs(Element[U_2, i, 2]), i, 2, 3) → list13Max(list13) → gSequence(Element[list2, i, 1], i, 1, 3) → list10Max(list10) → eIndexOf(e, list10) → fSequence(If[i ≟ f, 1, i], i, 2, 3) → list11Append(f, list11) → list12Transpose({Sequence[abs(Element[U_2, i, 2]), i, 2, 3]}) → list3Reverse(Sort[Sequence[(Element[list3, i, 1], i + 1), i, 1, 2]]) → list4Append(1, y(list4)) → list5If(abs(Element[U_2, 2, 2]) ≟ Element[x(list4), 1], {1, 2, 3}, list5) → list9Random(-5, 5) → C8_1Random(-5, 5) → B8_1Random(-5, 5) → A8_1Random(-5, 5) → C7_1Random(-5, 5) → B7_1Random(-5, 5) → A7_1Random(-5, 5) → C6_1Random(-5, 5) → B6_1Random(-5, 5) → A6_1Random(-5, 5) → C8_2Random(-5, 5) → B8_2Random(-5, 5) → A8_2Random(-5, 5) → C7_2Random(-5, 5) → B7_2Random(-5, 5) → A7_2Random(-5, 5) → C6_2Random(-5, 5) → B6_2Random(-5, 5) → A6_2Determinant(P_0) → D_1Sequence(Element[P_0, Element[list12, i]], i, 1, 3) → P_1Transpose({Sequence[abs(Element[U_1, i, 1]), i, 1, 3]}) → matrix1Sequence(Element[I, Element[list5, i], 1], i, 1, 2) → list6Sequence(Element[P_1, Element[list5, i]], i, 1, 3) → P_2Sequence(Element[I, Element[list14, i]], i, 1, 3) → PtempElement(list1, 1) → aElement(U_0, 1, 1) → bElement(c, 1) → BElement(x(c), 1) → d
AI Drawing Prompt Reference
Draw a 3x3 matrix A and perform PLU decomposition to generate matrices P, L, and U. First, randomly generate the elements of matrix A, then calculate matrix P, followed by matrices L and U, and finally show the decomposition process.
The prompt above was compiled from the original drawing commands and is for reference only.