Sine plus polynomial
f(x) = sin(x) + x²/10 combines an oscillatory term with a parabolic trend, producing several turning points and zero crossings.
- Function f(x)
- sin(x) + (x^2)/10
- x range start
- -10
- x range end
- 10
- Sample points
- 201
- Integral start (a)
- -2
- Integral end (b)
- 2
The plotter samples 201 points, detects multiple turning points and zero crossings, and estimates the integral of the function from -2 to 2.
Increase sample points to 801 and observe how the turning point positions become more precise.
Quadratic function
f(x) = x² − 4x + 3 has roots at x = 1 and x = 3, a minimum at x = 2, and the integral from 1 to 3 equals -4/3.
- Function f(x)
- x^2 - 4*x + 3
- x range start
- -1
- x range end
- 5
- Integral start (a)
- 1
- Integral end (b)
- 3
Zero crossings near x = 1 and x = 3, one turning point at x = 2, integral estimate near -1.333.
Compare the integral estimate to the exact value -4/3 ≈ -1.3333 to verify numerical accuracy.