Skip to main content

Section 5.5 Rank and Nullity using SageMath

We use online computer algebra system SageMath 1  to compute the rank and the nullity of a given matrix. In the following example A=matrix(RR,[[1,2,0,-1],[1,6,0,1],[1,-2,2,8]]) represents \(3\times 4\) matrix \(A\) over \(\R\text{.}\) The entry [1,2,0,-1], [1,6,0,1], and [1,-2,2,8] represents the first, the second, and the third row of \(A\text{,}\) respectively.
Please make appropriate changes (on this page itself) to compute the rank and the nullity of required matrix (considered as linear transformation). Please first do the calculations yourself and then verify using SageMath.
Computation of the rank of \(A\text{.}\)
A basis for the image of the linear transformation can be computed using SageMath. Please make appropriate changes (on this page itself!) to compute a basis of a specific transformation given by a matrix.
Computation of the nullity of \(A\text{.}\)
A basis for the kernel can be computed using SageMath. Please make appropriate changes (on this page itself!) to compute a basis of the kernel of transformation given by a matrix.
www.sagemath.org/