`$A`

, so when you multiply it by the matrix `$Pstu`

, it acts like a blank string, and MathObjects tries to convert that to a Matrix, which produces the error you are seeing. Perhaps you meant to use `$D`

there instead (since the statement of the problem used `\(A = $D\)`

?