The image and kernel of a linear mapping are vector subspaces with certain important properties
[12−101001]
Nullspace of a matrix :
[Matrix([ [ 0], [1/2], [ 1], [ 0]]),
Im(A)=span([26])
T=[111223]
The transformation matrix is
Definition: Image and Kernel
For Φ:V→W, we define the kernel or null space
ker(Φ)=Φ−1(0w)={v∈V:Φ(v)=0w}
and image or range
Im(Φ)=Φ(V)={w∈W|∃v∈V:Φ(v)=w}
We also call V and W as domain and codomain of Φ, respectively.
Intuitively, the kernel is the set of vectors in v∈V that Φ maps onto the neutral element 0w∈W. The image is the set of vectors w∈W that can be “reached” by Φ from any vector in V . An illustration is given in figure.
Remark: Consider a linear mapping Φ:V→W, where V,W are vector spaces.
- It always holds that Φ(0v)=0w and therefore 0v∈ker(Φ).In particular the null space is never empty.
- Im(Φ)⊆W is a subspace of W, and ker(Φ)⊆V is a subspace of V.
Remark(Null space and Column space)
Let us consider A∈Rm×n and a linear mapping Φ:Rn→Rm,x→Ax
- for A=[a1,…,an], where ai are the columns of Ai, we obtainIm(Φ)=Ax:x∈Rn=∑ni=1xiai:x1,…,xn∈R =span[a1,…,an]⊆Rm
- i.e., the image is the span of the columns of A, also called the column space. Therefore, the column space(image) is a subspace of Rm ,where m is the height of the matrix.
- rk(A)=dim(Im(Φ))
- The kernel/null space ker(Φ) is the general solution to the homogenious system of linear equations Ax=0 and captures all possible linear combination of elements in Rn that produces 0∈Rm
- The kernel is a subspace of Rn, where n is the width of the matrix.
- The kernel focuses on the relationship among the columns, and we can use it to determine whether/how we can express a column as a linear combination of other columns
Rank Nullity Theorem
For vector spaces V,W and a linear mapping Φ:V→W it holds that
dim(ker(Φ))+dim(Im(Φ))=dim(V)
The rank nullity theorem is also referred to as the fundamental theorem of linear mapping.
If dim(Im(Φ))<dim(V), then ker(Φ) is non trivial, i.e, the kernel contains more than 0v and dim(ker(Φ))≥1.
If Aϕ is the transformation matrix of Φ with respect to an ordered basis and dim(Im(Φ))<dim(V), then the system of linear equations Aϕx=0 has infinitely many solutions.
If dim(V)=dim(W), then the following three way equivalence holds
Φ is injective
Φ is surjective
Φ is bijective
since Im(Φ)⊆W
import sympy as sp
import numpy as np
row1=[1,2,-1,0]
row2=[1,0,0,1]
M = sp.Matrix((row1,row2))
print("Transformation Matrix")
display(M)
print("Reduced Echelon Form")
display(M.rref())
O/P
Transformation Matrix[12−101001]
Reduced Echelon Form
(Matrix([ [1, 0, 0, 1],
(Matrix([ [1, 0, 0, 1],
[0, 1, -1/2, -1/2]]),
(0, 1))
Note: from the reduced echelon form we can find out the null space.
We can also sympy package nullspace method to find null space
# import sympy
from sympy import *
M = Matrix([[1, 2, -1, 0], [1, 0, 0, 1]])
display(M)
# Use sympy.nullspace() method
M_nullspace = M.nullspace()
print("Nullspace of a matrix : ")
display(M_nullspace)
O/P
[12−101001]Nullspace of a matrix :
[Matrix([ [ 0], [1/2], [ 1], [ 0]]),
Matrix([
[ -1],
[1/2],
[ 0],
[ 1]])]
Watch the video https://www.youtube.com/watch?v=4SlMWZxgZFE
Example:
Find the Image and Kernel of a linear mapping A=[2369]
After row reduction the echelon form is
A=[2300]
A=[13/200]
So the pivot column indicate linear independent vector
The null space is spanned by
Null(A)=span([3/2−1])
Example ( university question)
Consider the transformation T(x,y)=(x+y,x+2y,2x+3y). Obtain ker T and use this to calculate the nullity. Also find the transformation matrix for T.
The transformation matrix is
The null space consist of the trivial vector
[00]
Given the linear transformation T(x,y,z,w)=(x+2y−z,x+w), find the basis each for Ker(T) and Range(T) ( University Question)
[12−101001]
Basis for Range(T) is [21][−6−1]
Basis for Ker(T) is
After row reduction, the reduced echelon form is
[12−100−211]R2=R2−R1
[10010−211]R1=R1+R2
[100101−1/2−1/2]R2=R2/−2
Basis for Range(T) is [11][20]
Basis for Ker(T) is [0−1/2−10][1−1/20−1]
[12−100−211]R2=R2−R1
[10010−211]R1=R1+R2
[100101−1/2−1/2]R2=R2/−2
Basis for Range(T) is [11][20]
Basis for Ker(T) is [0−1/2−10][1−1/20−1]
Let T be the linear transformation from R2 to R3 defined by T(v)=Av, with standard matrix A=[2−641−12]. Find the kernel and image of T.
After row reduction, the reduced echelon form is
A=[2−641−12]
R1=R1/2
A=[1−321−12]
R2=R2−R1
A=[1−32020]
R2=R2/2
A=[1−32010]
R1=R2∗3+R1
A=[102010]
Basis for Ker(T) is
[20−1]
Comments
Post a Comment