A2. Find the polynomial $ f(x) $ of the degree $ 3 $ with real coefficients that fits the following data $$ \begin{array}{r|rrc} x & -1 & 1 & \mathbf i\\ \hline f(x) & -4 & -2 & 3 - \mathbf i \end{array} $$
Solution. At the first glance, the data set looks like insufficient for the uniqueness of the required solution. Indeed, the polynomial of the degree less than or equal to $ 3 $ can be uniquelly determined with its $ 4 $ values. However, the statement of the problem indicates the reality of the coefficients for this polynomial, while one of the values of its variable is imaginary. It is the known fact that if for a polynomial $ f(x) $ with real coefficients one has $$ \mbox{if} \quad f(\alpha + \beta \, \mathbf i) = A+ B \, \mathbf i \quad \mbox{where} \quad \{\alpha, \beta, A, B \} \in \mathbb R, \ \beta \ne 0 $$ $$ \mbox{then} \quad f(\alpha - \beta \, \mathbf i) = A - B \, \mathbf i \, . $$ For our example, this feature results in an extra supplement to the data set $$ \begin{array}{r|rrcc} x & -1 & 1 & \mathbf i & -\mathbf i\\ \hline f(x) & -4 & -2 & 3 - \mathbf i & 3 + \mathbf i \end{array} $$ and this permits one to compute the required polynomial. The Lagrange method is preferable.
Answer. $ x^3-3\,x^2 $.