Key idea If AAA maps to A′A'A′ by a matrix PPP: A′=PAA'=PAA′=PA If PPP is diagonal scaling, you can solve entry-wise (divide by the scale factors).