Skip to main content

Gauss 3-point: e^(sin x)

Short answer

Transform to [-1,1] with x = (π/4)t + π/4, dx = π/4 dt. Apply 3-point Gauss-Legendre with nodes ±√0.6,0 and weights 5/9,8/9,5/9 to get I ≈ 3.1039.

Evaluate ∫ from 0 to π/2 of e^(sin x) dx using Gaussian 3-point formula.

The 3-point Gauss–Legendre formula works on [−1, 1]:

∫₋₁¹ g(t) dt ≈ (5/9)·g(−√0.6) + (8/9)·g(0) + (5/9)·g(√0.6), √0.6 = 0.774597

Change of limits

For ∫ₐᵇ f(x) dx put x = (b−a)/2·t + (b+a)/2. Here a = 0, b = π/2 = 1.570796, so

x = 0.785398·t + 0.785398,     dx = 0.785398 dt
∫ f(x) dx = 0.785398 ∫₋₁¹ f(0.785398t + 0.785398) dt

Nodes and function values

tx = 0.7854t + 0.7854f(x)weight ww·f(x)
-0.7745970.1770311.1925675/90.662537
0.0000000.7853982.0281158/91.802769
0.7745971.3937652.6761285/91.486738
I ≈ 0.785398 × [ 3.952044 ] = 3.1039

(The accurate value is 3.1044, so the 3-point result is good to about three significant figures.)

Answer: I ≈ 3.1039

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 5 questions →