If you would like to solve 3 * (x - 2) ^2 - 2 * (x - 1), you can calculate this using the following steps:
3 * (x - 2) ^2 - 2 * (x - 1) = 3 * (x^2 - 2 * 2 * x + 2^2) - 2 * x + 2 * 1 = 3 * x^2 - 3 * 4 * x + 3 * 4 - 2 * x + 2 = 3 * x^2 - 12 * x + 12 - 2 * x + 2 = 3 * x^2 - 14 * x + 14
The correct result would be 3 * x^2 - 14 * x + 14.