Problema Solution

Write a quadratic function with leading coefficient 1 that has roots of 7 and P

Answer provided by our tutors

The quadratic function


f(x) = ax^2 + b*x + c


can be written in factored from


f(x) = a*(x - x1 )*( x - x2 ) where x1 and x2 are the roots of the quadratic equation.


in our case a = 1, x1 = 7 , x2 = P so we have


f(x) = 1*(x - 7 )*( x - P)


f(x) = x^2 - P*x - 7*x + 7*P


f(x) = x^2 - (7 + P)*x + 7*P