Connect via MCP →

Enter Calculation

n = 0, 1, 2, ...; orthogonality on -1 ≤ x ≤ 1 (defined for all real x). λ > -1/2 for standard orthogonality; λ = 0 is the degenerate case.

Formula

Advertisement

Results

C3λ(x) at x = -1  (λ = 2)
-20
Generated 101 rows of (x, Cnλ(x))
x C3λ(x)
-1 -20
-0.98 -18.358144
-0.96 -16.791552
-0.94 -15.298688
-0.92 -13.878016
-0.9 -12.528
-0.88 -11.247104
-0.86 -10.033792
-0.84 -8.886528
-0.82 -7.803776
-0.8 -6.784
-0.78 -5.825664
-0.76 -4.927232
-0.74 -4.087168
-0.72 -3.303936
-0.7 -2.576
-0.68 -1.901824
-0.66 -1.279872
-0.64 -0.708608
-0.62 -0.186496
-0.6 0.288
-0.58 0.716416
-0.56 1.100288
-0.54 1.441152
-0.52 1.740544
-0.5 2
-0.48 2.221056
-0.46 2.405248
-0.44 2.554112
-0.42 2.669184
-0.4 2.752
-0.38 2.804096
-0.36 2.827008
-0.34 2.822272
-0.32 2.791424
-0.3 2.736
-0.28 2.657536
-0.26 2.557568
-0.24 2.437632
-0.22 2.299264
-0.2 2.144
-0.18 1.973376
-0.16 1.788928
-0.14 1.592192
-0.12 1.384704
-0.1 1.168
-0.08 0.943616
-0.06 0.713088
-0.04 0.477952
-0.02 0.239744
0 -0
0.02 -0.239744
0.04 -0.477952
0.06 -0.713088
0.08 -0.943616
0.1 -1.168
0.12 -1.384704
0.14 -1.592192
0.16 -1.788928
0.18 -1.973376
0.2 -2.144
0.22 -2.299264
0.24 -2.437632
0.26 -2.557568
0.28 -2.657536
0.3 -2.736
0.32 -2.791424
0.34 -2.822272
0.36 -2.827008
0.38 -2.804096
0.4 -2.752
0.42 -2.669184
0.44 -2.554112
0.46 -2.405248
0.48 -2.221056
0.5 -2
0.52 -1.740544
0.54 -1.441152
0.56 -1.100288
0.58 -0.716416
0.6 -0.288
0.62 0.186496
0.64 0.708608
0.66 1.279872
0.68 1.901824
0.7 2.576
0.72 3.303936
0.74 4.087168
0.76 4.927232
0.78 5.825664
0.8 6.784
0.82 7.803776
0.84 8.886528
0.86 10.033792
0.88 11.247104
0.9 12.528
0.92 13.878016
0.94 15.298688
0.96 16.791552
0.98 18.358144
1 20

What is the Gegenbauer (Ultraspherical) Polynomial?

The Gegenbauer polynomials, also called ultraspherical polynomials, are a family of orthogonal polynomials \(C_{n}^{\lambda}(x)\) that generalize both the Legendre and Chebyshev polynomials. They are orthogonal on the interval [-1, 1] with weight \((1 - x^{2})^{\lambda-1/2}\). This calculator evaluates \(C_{n}^{\lambda}(x)\) across many x values at once, building a table of (x, value) pairs and a line graph that you can use to study the polynomial's shape, roots, and oscillation.

Line graph of several Gegenbauer polynomial curves on the interval from minus one to one
Gegenbauer polynomials C_n^lambda(x) for several degrees n plotted over the interval [-1, 1].

How to Use It

Enter the degree n (a non-negative integer), the parameter λ (real; standard orthogonality needs λ > -1/2), the initial value of x, the increment (spacing between successive x values), and the number of repetitions (how many rows to generate). The calculator iterates $$x_i = \text{initialX} + i\cdot\text{stepX}$$ for \(i = 0 \dots \text{count}-1\) and evaluates the polynomial at each point. The defaults (n=3, λ=2, x from -1, step 0.02, 101 rows) sweep the full orthogonality window from -1 to +1.

The Formula Explained

Rather than the gamma/hypergeometric form, the calculator uses the numerically stable three-term recurrence: \(C_{0}^{\lambda}(x) = 1\), \(C_{1}^{\lambda}(x) = 2\lambda x\), and for \(k = 2 \dots n\), $$C_{k}^{\lambda}(x) = \frac{2x(k+\lambda-1)\,C_{k-1}^{\lambda}(x) - (k+2\lambda-2)\,C_{k-2}^{\lambda}(x)}{k}.$$ Special cases: \(\lambda = 1/2\) gives Legendre polynomials \(P_{n}\), and \(\lambda = 1\) gives Chebyshev polynomials of the second kind \(U_{n}\).

Diagram of the three-term recurrence relation linking three consecutive polynomial terms
The recurrence builds each term C_k from the two previous terms C_{k-1} and C_{k-2}.

Worked Example

With n=3 and λ=2 the recurrence yields \(C_{3}^{2}(x) = 32x^{3} - 12x\). At \(x = -1\), that is $$32(-1) - 12(-1) = -32 + 12 = -20,$$ which is the first table row. At \(x = 0\) the value is 0, at \(x = 0.5\) it is \(32(0.125) - 6 = -2\), and at \(x = 1\) it is \(32 - 12 = 20\).

FAQ

Is the polynomial defined outside [-1, 1]? Yes. The polynomial is defined for all real x; the interval [-1, 1] is just where the orthogonality (and the default graph window) lives. Outside it, values grow rapidly for higher n.

What happens at λ = 0? This is the degenerate ultraspherical case: the recurrence collapses, so the calculator returns \(C_{0} = 1\) and \(C_{n} = 0\) for \(n \ge 1\). The meaningful limit relates to Chebyshev of the first kind via \(\lim_{\lambda\to 0} C_{n}^{\lambda}(x)/\lambda = (2/n)\,T_{n}(x)\).

How many rows can I generate? Pick any count \(\ge 1\); the tool caps very large requests for responsiveness. The increment may be zero (all rows share the same x) but is normally positive.

Last updated: