Mark Yourself Question
Derive the two-point Gauss–Legendre rule on [−1, 1] from first principles. That is, find weights w1, w2 and nodes x1, x2 such that
w1f(x1) + w2f(x2) = ∫−11 f(x) dx
holds exactly for f(x) = 1, x, x2 and x3. Show the four equations and solve them. Then apply your rule to f(x) = x4 and state the signed error (rule value minus exact value) to seven decimal places, confirming that the degree of exactness is 3 and not 4.
Unlock full course notes by signing up
Gaussian Quadrature: difficulty 3
Use the two-point Gauss–Legendre rule to approximate
∫01 dx/(1 + x2).
Give the quadrature value to seven decimal places and the signed error (approximation minus exact value) to seven decimal places. Then explain in one or two sentences why the rule is not exact here, referring to the degree of exactness.