Construct an example to show that the following statement is not true for all square matrices A and B of the same size:
\[ det(A + B) = det(A) + det(B) \]
A <- rbind(c(3, 5),
c(1, -2))
B <- rbind(c(-1, 2),
c(4, 4))
print(det(A) + det(B))
## [1] -23
print(det(A + B))
## [1] -31
Can see they are not the same!