[tex]f(x)=a x^{2} +bx+c \\ f(0)=0;c=0 \\ f(2)=2;4a+2b=2 \\ f(-1)=2;a-b=2[/tex]
rezolvind sistemul obtinem
[tex] \left \{ {{4a+2b=2} \atop {a-b=2}} \right. \\ \left \{ {{6a=6} \atop {b=-1}} \right. \\ \left \{ {{a=1} \atop {b=-1}} \right. [/tex]
deci functia cautata este
[tex]f(x)= x^{2} -x[/tex]