Question

compute A³-2A² - A +2I.