f {\displaystyle f\,} 是一个三次函数,因此必须具有以下形式 f ( x ) = a x 3 + b x 2 + c x + d {\displaystyle f(x)=ax^{3}+bx^{2}+cx+d\,} .
因此, f ( 0 ) = d = 0 {\displaystyle f(0)=d=0\,} ,所以现在 f ( x ) = a x 3 + b x 2 + c x {\displaystyle f(x)=ax^{3}+bx^{2}+cx\,}
观察其他值
f ( 1 ) = a + b + c = 6 {\displaystyle f(1)=a+b+c=6\,}
f ( − 1 ) = − a + b − c = 0 {\displaystyle f(-1)=-a+b-c=0\,}
f ( 2 ) = 8 a + 4 b + 2 c = 0 {\displaystyle f(2)=8a+4b+2c=0\,}
尝试同时求解
( a + b + c ) + ( − a + b − c ) = 6 {\displaystyle (a+b+c)+(-a+b-c)=6\,}
2 b = 6 {\displaystyle 2b=6\,} ,因此 b = 3 {\displaystyle b=3\,} .
( a + b + c ) − ( − a + b − c ) = 6 {\displaystyle (a+b+c)-(-a+b-c)=6\,}
2 a + 2 c = 6 {\displaystyle 2a+2c=6\,} ,因此 a + c = 3 {\displaystyle a+c=3\,} .
因此,
a + c = 3 {\displaystyle a+c=3\,}
8 a + 2 c = − 12 {\displaystyle 8a+2c=-12\,}
求解联立方程
( 2 a + 2 c ) − ( 8 a + 2 c ) = 18 {\displaystyle (2a+2c)-(8a+2c)=18\,}
− 6 a = 18 {\displaystyle -6a=18\,} 因此 a = − 3 {\displaystyle a=-3\,} .
如果 b = 3 , a = − 3 {\displaystyle b=3,a=-3\,} ,那么
f ( 1 ) = − 3 + 3 + c = 6 {\displaystyle f(1)=-3+3+c=6\,} ,因此 c = 6 {\displaystyle c=6\,} 。
所以,我们有 a = − 3 , b = 3 , c = 6 {\displaystyle a=-3,b=3,c=6\,} ,我们的函数由 f ( x ) = − 3 x 3 + 3 x 2 + 6 x {\displaystyle f(x)=-3x^{3}+3x^{2}+6x\,} 给出。