Study half range series with flexible function models. Inspect coefficients, approximations, errors, and convergence instantly. Export clean tables and graphs for coursework reviews easily.
This page keeps a single-column structure overall, while the input area uses 3 columns on large screens, 2 on medium screens, and 1 on mobile screens.
Half range cosine series
f(x) ≈ a0/2 + Σ a_n cos(nπx/L)
a0 = (2/L) ∫[0→L] f(x) dx
a_n = (2/L) ∫[0→L] f(x) cos(nπx/L) dx
Half range sine series
f(x) ≈ Σ b_n sin(nπx/L)
b_n = (2/L) ∫[0→L] f(x) sin(nπx/L) dx
Error metrics
Point Error = |f(x) - S_N(x)|
RMSE = √[(1/m) Σ (f(x_i) - S_N(x_i))²]
Max Error = max |f(x_i) - S_N(x_i)|
The calculator evaluates the integrals numerically with Simpson’s rule, which works well for smooth functions and controlled oscillations.
[0, L].L and the number of Fourier terms N.p1 to p4 according to the selected formula preview.| Series Type | Function Model | Example Settings | Use Case |
|---|---|---|---|
| Cosine | Linear | L = π, N = 10, p1 = 1, p2 = 0 | Even extension study for f(x)=x on [0, π]. |
| Sine | Linear | L = 1, N = 12, p1 = 1, p2 = 0 | Odd extension study with stronger endpoint behavior differences. |
| Cosine | Quadratic | L = 2, N = 8, p1 = 1, p2 = -2, p3 = 1 | Polynomial approximation and convergence inspection across a finite interval. |
| Sine | Mixed | L = 3, N = 15, p1 = 0.5, p2 = 2, p3 = 3, p4 = 0 | Mixed linear and oscillatory behavior for richer coefficient patterns. |
It is a Fourier expansion built from data known only on [0, L]. The calculator creates either an odd extension with sine terms or an even extension with cosine terms.
Choose the sine series when the problem naturally matches an odd extension, such as many boundary value problems where the function value should vanish at the origin in the extended form.
Choose the cosine series when the problem matches an even extension or when you want a constant term and cosine harmonics to represent the function over the interval.
Adding more harmonics gives the partial sum extra flexibility. That usually reduces average error, although near discontinuities or sharp changes the convergence may still be slower.
Endpoint behavior depends on the chosen extension and the smoothness of the original function. If the extension introduces a mismatch, oscillations or slower convergence can appear near boundaries.
They control numerical accuracy when estimating the Fourier coefficients. Smooth functions often need fewer steps, while oscillatory or steep functions benefit from larger even step counts.
Yes. It is useful for checking coefficient trends, plotted behavior, and numerical approximations. For handwritten derivations, you should still present the exact analytical steps separately.
The graph compares the original function and the computed partial sum across the full interval. It helps you see convergence quality, oscillations, and regions with larger approximation error.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.