Rank and Nullity in Linear Algebra: Complete Guide with Examples and Applications