If x = 2(3z^2 + z + 4) and y = -z + 3, what is x in terms of y?

Check the final answer first, then review the worked steps.

Answer

\(6y^2 - 38y + 68\)

Work

y = -z + 3 => z = 3 - y
x = 2(3(3-y)^2 + (3-y) + 4)
x = 2(3(9 - 6y + y^2) + 7 - y)
x = 2(3y^2 - 19y + 34)
x = 6y^2 - 38y + 68

Step-by-step solution

  1. Solve $y = -z + 3$ for $z$: $z = 3 - y$.
  2. Substitute $z = 3 - y$ into $x = 2(3z^2 + z + 4)$.
  3. Expand the expression: $x = 2(3(3 - y)^2 + (3 - y) + 4)$.
  4. Simplify the squared term: $x = 2(3(9 - 6y + y^2) + 3 - y + 4) = 2(27 - 18y + 3y^2 + 7 - y)$.
  5. Combine like terms inside the parentheses: $x = 2(3y^2 - 19y + 34)$.
  6. Distribute the 2: $x = 6y^2 - 38y + 68$.