Answer:
[tex]f(x)=x^2+2x-3[/tex]
Step-by-step explanation:
[tex]\textsf{General form of a quadratic function}:f(x)=ax^2+bx+c[/tex]
Equation 1
[tex]\begin{aligned}f(1) &=0\\ \implies a(1)^2+b(1)+c &=0\\ a+b+c &=0 \end{aligned}[/tex]
Equation 2
[tex]\begin{aligned}f(-1) &=-4\\ \implies a(-1)^2+b(-1)+c &=-4\\ a-b+c &=-4 \end{aligned}[/tex]
Equation 3
[tex]\begin{aligned}f(2) &=5\\ \implies a(2)^2+b(2)+c &=5\\ 4a+2b+c &=5 \end{aligned}[/tex]
Add Equation 1 and Equation 2:
[tex]\begin{array}{r l}a+b+c & =0 \\+\quad a-b+c & =-4 \\\cline{1-2} 2a+2c & =-4 \end{array}[/tex]
[tex]\implies a+c=-2[/tex]
Substitute [tex]a+c=-2[/tex] into Equation 1 and solve for b:
[tex]\begin{aligned}\implies a+b+c &=0\\ b-2 &=0\\ b &=2\end{aligned}[/tex]
Substitute [tex]a=-2-c[/tex] and [tex]b=2[/tex] into Equation 3 and solve for c:
[tex]\begin{aligned} \implies 4a+2b+c&=5\\ 4(-2-c)+2(2)+c &=5\\-8-4c+4+c &=5\\ -3c &=9\\ c &=-3\end{aligned}[/tex]
Substitute found value of c into [tex]a=-2-c[/tex] and solve for a:
[tex]\implies a=-2-(-3)=1[/tex]
Therefore, a = 1, b = 2 and c = -3
Substitute the found values into the general form of a quadratic function to form the final equation:
[tex]f(x)=x^2+2x-3[/tex]