A matrix A is said to be similar to a matrix B if there is an invertible matrix P such that B=PAP−1. Let A1​,A2​, and A3​ be 3×3 matrices. Prove that if A1​is similar to A2​ and A2​ is similar to A3​, then A1​is similar to A3​