Given the equation of the parabola y=x2+px+q.
Since it passes through (1,−1), we have:
−1=1+p+q⇒q=−p−2
The vertex of the parabola y=x2+px+q occurs at x=−2p.
The y-coordinate of the vertex is:
yv=(−2p)2+p(−2p)+q=−4p2+q
The distance between the vertex and the x-axis is ∣yv∣. Substituting q=−p−2 into the expression for yv:
∣yv∣=−4p2−p−2=41∣p2+4p+8∣=41∣(p+2)2+4∣
To minimize this distance, the term (p+2)2 must be minimum. Since (p+2)2≥0 for all real p, the minimum value occurs at p=−2.
Substituting p=−2 into q=−p−2, we get:
q=−(−2)−2=0
Therefore, the value of p2+q2 is:
p2+q2=(−2)2+02=4
Answer: 4