Hello,
I'm trying to find constants a,b,c of polynomial P(x) who verifies for degree 0,1,2 and 3 :
Integral -1 to 1 P(x)dx = aP(-1) + bP(0) + cP(1)
About degree 0, I took P(x) = k (constant)
I found 2k = ak + bk + ck , then a + b + c = 2
About degree 1, I took P(x) = mx + s
I found a(m + s) + b(-m + s) + cs = 2s
By the way, all that sounds very strange and my final system will be very difficult with the continuation. Am I in the right way please or it's possible to do that more easily ?
Thanks in advance
I'm trying to find constants a,b,c of polynomial P(x) who verifies for degree 0,1,2 and 3 :
Integral -1 to 1 P(x)dx = aP(-1) + bP(0) + cP(1)
About degree 0, I took P(x) = k (constant)
I found 2k = ak + bk + ck , then a + b + c = 2
About degree 1, I took P(x) = mx + s
I found a(m + s) + b(-m + s) + cs = 2s
By the way, all that sounds very strange and my final system will be very difficult with the continuation. Am I in the right way please or it's possible to do that more easily ?
Thanks in advance