keisoku

Gauss-Lobatto Quadrature Calculator

Enter the integrand f(x), the interval [a, b], and the order n to evaluate the definite integral with endpoint-inclusive Gauss-Lobatto quadrature.

Input

Enter the integrand f(x), the interval [a, b], and the order n to compute the definite integral with endpoint-inclusive Gauss-Lobatto quadrature.

e.g. exp(-x^2), sin(x)/x, x^2 + 1. See the notes for supported functions, constants, and operators.

Number of nodes (2 to 256)

Result

Integral ∫ f(x) dx

0.7468241328

Interval [0, 1]

Order n

8

Nodes

8

Gauss-Lobatto quadrature includes both endpoints a and b as nodes.

Nodes, weights, and function values

Shows the nodes x_i, weights w_i, and function values f(x_i) mapped onto [a, b]. The first and last rows are endpoints.

#TypeNode x_iWeight w_if(x_i)
1Endpoint00.017857141
2Interior0.064129930.105352110.9958958
3Interior0.204149910.170561350.95917937
4Interior0.395350390.20622940.85530091
5Interior0.604649610.20622940.69377946
6Interior0.795850090.170561350.53079608
7Interior0.935870070.105352110.41650667
8Endpoint10.017857140.36787944

How it works

  • Gauss-Lobatto quadrature approximates the definite integral of f(x) while always including both endpoints a and b as nodes. Because it samples the function at the interval ends, it captures boundary behavior well.
  • The rule works on the standard interval from −1 to 1. The two ends ±1 are fixed nodes, and the interior nodes are the zeros of the derivative of the Legendre polynomial P(n-1).
  • Weights use the formula w = 2 ÷ (n × (n-1) × P(n-1)(x)²). At the endpoints P(n-1)(±1) = ±1, so w = 2 ÷ (n × (n-1)).
  • An order-n rule uses n nodes (2 endpoints plus n-2 interior) and integrates polynomials up to degree 2n-3 exactly.
  • The standard nodes and weights are linearly mapped onto the interval a to b, and the integral is the weighted sum of the function values. The table lists every node, weight, and function value.
  • Enter the order n as an integer from 2 to 256. Provide finite and distinct values for a and b.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. Gauss-Lobatto Quadrature Calculator