Classic CAS manual · Chapter 11 of 16
Matrices and vectors
Build matrices, add and multiply them, determinants, inverses, row reduction and vector products.
11.1Type a matrix#
Use the square-bracket keys (ctrl[( and ctrl])). A matrix is a bracket holding one bracket per row: type [[1,2][3,4]] to get . A single bracketed row such as [1,2,3] is a vector.
![The Matrix & Vector menu. The display shows: Matrix & Vector / 1: 2×2 matrix [[a,b][c,d]] / 2: det( / 3: rref( / 4: ref( / 5: identity( / 6: Transpose ᵀ / 7: dotP(.](/trident/app/help/manual/img/5043cd2es.webp)
Add matrices
Type [[1,2][3,4]]+[[1,1][1,1]].
ctrl[(ctrl[(1,2ctrl])ctrl[(3,4ctrl])ctrl])+ctrl[(ctrl[(1,1ctrl])ctrl[(1,1ctrl])ctrl])enter
![Result of the example "Add matrices" The display shows: [[1,2][3,4]]+[[1,1][1,1]] / [[2,3][4,5]].](/trident/app/help/manual/img/85816263s.webp)
[[2,3][4,5]]Multiply by a number
Type 2 × [[1,2][3,4]].
2×ctrl[(ctrl[(1,2ctrl])ctrl[(3,4ctrl])ctrl])enter
![Result of the example "Multiply by a number" The display shows: 2·[[1,2][3,4]] / [[2,4][6,8]].](/trident/app/help/manual/img/aa880328s.webp)
[[2,4][6,8]]Multiply matrices
Type [[1,2][3,4]]·[[0,1][1,0]].
ctrl[(ctrl[(1,2ctrl])ctrl[(3,4ctrl])ctrl])×ctrl[(ctrl[(0,1ctrl])ctrl[(1,0ctrl])ctrl])enter
![Result of the example "Multiply matrices" The display shows: [[1,2][3,4]]·[[0,1][1,0]] / [[2,1][4,3]].](/trident/app/help/manual/img/a539a0b0s.webp)
[[2,1][4,3]]Store a matrix
Store m and multiply it by a column.
m:=ctrl[(ctrl[(2,1ctrl])ctrl[(1,3ctrl])ctrl])enterm×ctrl[(ctrl[(5ctrl])ctrl[(7ctrl])ctrl])enter
![Result of the example "Store a matrix" The display shows: m:=[[2,1][1,3]] / [[2,1][1,3]] / m·[[5][7]] / [[17][26]].](/trident/app/help/manual/img/42f2eb90s.webp)
[[17][26]]11.2Determinant, inverse and transpose#
Determinant
Type det([[1,2][3,4]]).
det(ctrl[(ctrl[(1,2ctrl])ctrl[(3,4ctrl])ctrl]))enter
![Result of the example "Determinant" The display shows: det([[1,2][3,4]]) / -2.](/trident/app/help/manual/img/c53cda7bs.webp)
-2Symbolic determinant
Type det([[a,b][c,d]]).
det(ctrl[(ctrl[(a,bctrl])ctrl[(c,dctrl])ctrl]))enter
![Result of the example "Symbolic determinant" The display shows: det([[a,b][c,d]]) / a·d-b·c.](/trident/app/help/manual/img/1a44df3bs.webp)
a·d-b·cInverse
Type [[1,2][3,4]] ^ (−1).
ctrl[(ctrl[(1,2ctrl])ctrl[(3,4ctrl])ctrl])^((−)1)enter
![Result of the example "Inverse" The display shows: [[1,2][3,4]]^((-1)) / [[-2,1][3/2,-1/2]].](/trident/app/help/manual/img/110d4f0ds.webp)
[[-2,1][3/2,-1/2]]Inverse of a stored matrix
Store m, then m^(−1).
m:=ctrl[(ctrl[(2,1ctrl])ctrl[(1,3ctrl])ctrl])enterm^((−)1)enter
![Result of the example "Inverse of a stored matrix" The display shows: m:=[[2,1][1,3]] / [[2,1][1,3]] / m^((-1)) / [[3/5,-1/5][-1/5,2/5]].](/trident/app/help/manual/img/0680ffbfs.webp)
[[3/5,-1/5][-1/5,2/5]]Transpose
Type the matrix, then choose Transpose from the Matrix menu (menu, 7, 6).
ctrl[(ctrl[(1,2ctrl])ctrl[(3,4ctrl])ctrl])menu76enter
![Result of the example "Transpose" The display shows: [[1,2][3,4]]ᵀ / [[1,3][2,4]].](/trident/app/help/manual/img/082ff6f4s.webp)
[[1,3][2,4]]Identity matrix
Type identity(3).
identity(3)enter
![Result of the example "Identity matrix" The display shows: identity(3) / [[1,0,0][0,1,0][0,0,1]].](/trident/app/help/manual/img/f8277ef7s.webp)
[[1,0,0][0,1,0][0,0,1]]11.3Row reduce and solve a linear system#
rref( gives the reduced row echelon form; ref( gives the row echelon form. To solve a system, write its augmented matrix and use rref.
Solve 2x+y=5, x−y=1 with rref
Type rref([[2,1,5][1,−1,1]]). The last column holds x=2, y=1.
rref(ctrl[(ctrl[(2,1,5ctrl])ctrl[(1,(−)1,1ctrl])ctrl]))enter
![Result of the example "Solve 2x+y=5, x−y=1 with rref" The display shows: rref([[2,1,5][1,-1,1]]) / [[1,0,2][0,1,1]].](/trident/app/help/manual/img/1c93d61es.webp)
[[1,0,2][0,1,1]]Reduced row echelon form
Type rref([[1,2,3][4,5,6]]).
rref(ctrl[(ctrl[(1,2,3ctrl])ctrl[(4,5,6ctrl])ctrl]))enter
![Result of the example "Reduced row echelon form" The display shows: rref([[1,2,3][4,5,6]]) / [[1,0,-1][0,1,2]].](/trident/app/help/manual/img/df16f38cs.webp)
[[1,0,-1][0,1,2]]Row echelon form
Type ref([[1,2,3][4,5,6]]).
ref(ctrl[(ctrl[(1,2,3ctrl])ctrl[(4,5,6ctrl])ctrl]))enter
![Result of the example "Row echelon form" The display shows: ref([[1,2,3][4,5,6]]) / [[1,5/4,3/2][0,1,2]].](/trident/app/help/manual/img/9a89d316s.webp)
[[1,5/4,3/2][0,1,2]]Join matrices side by side
Type augment([[1,2][3,4]],[[5][6]]).
augment(ctrl[(ctrl[(1,2ctrl])ctrl[(3,4ctrl])ctrl]),ctrl[(ctrl[(5ctrl])ctrl[(6ctrl])ctrl]))enter
![Result of the example "Join matrices side by side" The display shows: augment([[1,2][3,4]],[[5][6]]) / [[1,2,5][3,4,6]].](/trident/app/help/manual/img/bcbfb953s.webp)
[[1,2,5][3,4,6]]11.4Dot product, cross product and size#
Dot product
Type dotP([1,2,3],[4,5,6]).
dotp(ctrl[(1,2,3ctrl]),ctrl[(4,5,6ctrl]))enter
![Result of the example "Dot product" The display shows: dotp([1,2,3],[4,5,6]) / 32.](/trident/app/help/manual/img/debf439ds.webp)
32Cross product
Type crossP([1,2,3],[4,5,6]).
crossp(ctrl[(1,2,3ctrl]),ctrl[(4,5,6ctrl]))enter
![Result of the example "Cross product" The display shows: crossp([1,2,3],[4,5,6]) / [[-3,6,-3]].](/trident/app/help/manual/img/f7c20bd4s.webp)
[[-3,6,-3]]Length of a vector
Type norm([3,4]).
norm(ctrl[(3,4ctrl]))enter
![Result of the example "Length of a vector" The display shows: norm([3,4]) / 5.](/trident/app/help/manual/img/70dc6d46s.webp)
511.5Size of a matrix#
Dimensions
Type dim([[1,2,3][4,5,6]]).
dim(ctrl[(ctrl[(1,2,3ctrl])ctrl[(4,5,6ctrl])ctrl]))enter
![Result of the example "Dimensions" The display shows: dim([[1,2,3][4,5,6]]) / {2,3}.](/trident/app/help/manual/img/58ac0cafs.webp)
{2,3}Row count
Type rowDim(...).
rowdim(ctrl[(ctrl[(1,2,3ctrl])ctrl[(4,5,6ctrl])ctrl]))enter
![Result of the example "Row count" The display shows: rowdim([[1,2,3][4,5,6]]) / 2.](/trident/app/help/manual/img/6c0b0af5s.webp)
2Column count
Type colDim(...).
coldim(ctrl[(ctrl[(1,2,3ctrl])ctrl[(4,5,6ctrl])ctrl]))enter
![Result of the example "Column count" The display shows: coldim([[1,2,3][4,5,6]]) / 3.](/trident/app/help/manual/img/32c8f9f3s.webp)
3TI-Nspire CX CAS is a trademark of Texas Instruments Incorporated. Trident Calculator is an independent product by South View Studios and is not affiliated with, sponsored by or endorsed by Texas Instruments. The name is used only to describe the kind of calculator this model resembles; Trident's names, keys, display, fonts and software are its own clean-room design.