keisoku

Gauss-Chebyshev Quadrature (Second Kind) Calculator

Enter an integrand f(x) and order n to evaluate the weighted integral ∫[-1,1] f(x)√(1−x²)dx using second-kind Gauss-Chebyshev quadrature. Nodes and weights are shown too.

Input

Enter the integrand f(x) and order n to compute the weighted integral ∫_-1^1 f(x)√(1−x²)dx by second-kind Gauss-Chebyshev quadrature.

e.g. exp(x), 1/(2-x), x^2 + 1. Do not include the √(1−x²) weight. See the notes for supported functions, constants and operators.

Number of nodes (1–256)

Result

Integral ∫ f(x)√(1−x²) dx

1.7754996892

Interval [-1, 1], weight √(1−x²)

Order n

8

Nodes

8

Nodes, weights and function values

Shows the nodes x_i, weights w_i and function values f(x_i).

#Node x_iWeight w_if(x_i)
1-0.939692620.040832950.39074792
2-0.766044440.14422560.46484817
3-0.50.261799390.60653066
4-0.173648180.338540230.84059258
50.173648180.338540231.18963695
60.50.261799391.64872127
70.766044440.14422562.15124005
80.939692620.040832952.55919465

How it works

  • Second-kind Gauss-Chebyshev quadrature approximates the definite integral ∫_{-1}^{1} f(x)√(1−x²)dx with weight function √(1−x²) on [-1, 1].
  • For order n the nodes (zeros of the second-kind Chebyshev polynomial U_n) are x_i = cos(iπ/(n+1)) for i = 1, …, n.
  • The weights are w_i = π/(n+1)·sin²(iπ/(n+1)). All weights are positive and sum to π/2.
  • The integral approximation is Σ_i w_i · f(x_i). The integrand f(x) is evaluated by a parser, not eval.
  • This rule integrates any polynomial P(x) of degree up to 2n−1 exactly against the weight, i.e. ∫_{-1}^{1} P(x)√(1−x²)dx.
  • Use it for integrals whose weight decays like √(1−x²) at the endpoints. Enter the bare f(x) without the √(1−x²) factor, which the rule supplies.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. Gauss-Chebyshev Quadrature (Second Kind) Calculator