Start with the second equation and expand it out:

Now substitute in for :

Now solve for y in terms of x and substitute y = f(x) back into the first equation:

Now you have a quadratic equation in terms of x which can be solved using the quadratic formula.