Numerical Analysis, Numerical Integration.
when they are multiplied with a polynomial that is of a lesser degree, the integral of this product will be zero. Since Q(x) is of degree ≤ n and L(x) is degree n+1 this allows us to cancel this term out completely. Line 4 is simply showing how the integral of our polynomial R(x), of degree ≤ n,