I am not sure how to go about the following problem:
Find the cubic polynomial function with two of its zeros: 2 and (-3+sqrt2) , and a y-intercept of 7.
This is what I did: y= a(x-2)(x+3-sqrt2) 7=a (0-2)(0+3-sqrt2) a= 7/(-2*(3-sqrt2)) a=-2.21 so my equation would be: y= -2.21x(x-2)(x+3-sqrt2)
However, the correct answer is y= -0.5(x-2)(x^2+6x+7). Where did I go wrong?
So you can put $$y=a(x-b)(x-2)(x+3-\sqrt 2)$$ where $b$ is the third root and $a$ is constant. This has the two roots you are given and there is one further condition. This one condition is insufficient to determine the two remaining unknowns.
Given the text, there are plausible contexts in which it would be implied that either (1) $a=1$ or (2) $b=-3-\sqrt 2$
The "official answer" suggests that the context should imply (2).
Your own answer takes $b=0$, though your calculation seems to involve a quadratic which has the implication $b=-1$. This inconsistency invalidates your work. [This comment added after reading Ross Millikan's answer]
You also fail to give an exact expression for $a$, which I think would be obligatory given the form in which the roots are given (show you know how to bring the expression for $a$ into a rational expression involving $\sqrt 3$), rather than an approximation to two decimal places.
So even if you are right about the context, you could be marked wrong. You may be right in suggesting that the question is poorly posed. But if it is in a chapter or section on polynomials with rational coefficients you would be wrong.