Use this free Rolle’s theorem calculator for quadratics to check f(p) equals f(q), then find the exact point where the derivative is zero, or explain why it fails.
Rolle S Theorem Calculator
Checks the Rolle conditions first, then gives the exact point with a horizontal tangent — or tells you the theorem does not apply.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Rolle S Theorem Result
Calculated locally in your browser
—
Name
—
Coefficient a of x^2
—
Coefficient b of x
—
Constant c
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
Rolle’s theorem says that when a differentiable function takes equal values at two endpoints, its derivative is zero somewhere between them. For the quadratic x squared minus four x on the interval zero to four, both endpoints equal zero and the derivative two x minus four vanishes at x equals two.
- Conditions: continuous, differentiable, f(p) = f(q)
- For quadratics the Rolle point is x = -b/(2a)
- If endpoints differ, Rolle does not apply — use the Mean Value Theorem
Rolle’s theorem conditions
Reference values for this calculator.
| Condition | For a quadratic | Checked here |
|---|---|---|
| Continuous on [p,q] | Always (polynomial) | Yes |
| Differentiable on (p,q) | Always (polynomial) | Yes |
| f(p) = f(q) | Must be verified numerically | Yes — errors if not |
| Conclusion | Some x in (p,q) with f′(x) = 0 | x = -b/(2a) |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Scoped to quadratics, where Rolle’s conditions can be checked exactly: endpoint equality is verified numerically and non-applicable inputs return an error instead of a fake point. Enhancement: full condition checking, not just the vertex formula.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Parabola returning to zero
f(x) = x^2 - 4x on [0, 4]
| Calculation | Steps |
|---|---|
| f(0) = 0 and f(4) = 16 - 16 = 0 — equal. f′(x) = 2x - 4 = 0 at x = 2, strictly inside. | Rolle point x = 2. |
Result
Example 2
Symmetric interval on x^2
f(x) = x^2 on [-1, 1]
| Calculation | Steps |
|---|---|
| f(-1) = 1 and f(1) = 1 — equal. f′(x) = 2x = 0 at x = 0. | Rolle point x = 0. |
Result
Example 3
Steeper parabola
f(x) = 2x^2 - 8x + 3 on [0, 4]
| Calculation | Steps |
|---|---|
| f(0) = 3 and f(4) = 32 - 32 + 3 = 3 — equal. x = -(-8)/(2x2) = 2. | Rolle point x = 2, where f = -5. |
Result
How to use this calculator
Step 1
Enter the quadratic coefficients a, b and c.
Step 2
Enter the interval endpoints p and q.
Step 3
The tool first checks f(p) equals f(q); if not, it says so instead of inventing a point.
Step 4
Read the Rolle point where the derivative is zero.
Step 5
Confirm the point lies strictly inside your interval.
Frequently asked questions
What does Rolle’s theorem say?
If a function is continuous on [p,q], differentiable on (p,q), and f(p) = f(q), then there is at least one point strictly inside where the derivative is zero — a horizontal tangent.
Why quadratics only here?
For a quadratic the stationary point has the closed form -b/(2a), so the theorem’s conclusion can be returned exactly. General functions need numerical root-finding on the derivative.
What if f(p) is not equal to f(q)?
Then Rolle’s theorem simply does not apply — the Mean Value Theorem is the right tool instead. This calculator errors rather than forcing an answer.
Is the Rolle point the vertex?
For a quadratic, yes: the unique stationary point is the vertex at x = -b/(2a), and the endpoint-equality condition is exactly the statement that the interval is symmetric about the vertex in value.
Can there be more than one Rolle point?
For a non-constant quadratic, no — the derivative is linear with one root. Higher-degree functions can have several.
About this calculator
A Rolle’s theorem calculator takes a quadratic f(x) = ax^2 + bx + c and an interval [p, q], verifies the theorem’s three conditions — for a polynomial the first two are automatic, the third, f(p) = f(q), is checked numerically — and returns the point inside where f′(x) = 0.
Rolle’s theorem is the intuitive fact that a smooth curve returning to its starting height must level off somewhere in between — like a ball thrown up and caught at the same height having a moment of zero vertical velocity at the top.
For a quadratic there is exactly one candidate, the vertex x = -b/(2a). The endpoint condition f(p) = f(q) turns out to mean the interval is centred on the vertex in value: p and q sit at equal heights on the parabola.
Use it for calculus homework on the Mean Value Theorem family, and whenever a problem asks you to “find the value guaranteed by Rolle’s theorem”. It is equally useful as a checker: if your interval fails the endpoint test, the tool says so plainly.
How to calculate it yourself
Step 1
Enter a, b, c and the endpoints p and q.
Step 2
Evaluate f at both endpoints and confirm the values match.
Step 3
Differentiate: f′(x) = 2ax + b.
Step 4
Solve 2ax + b = 0 to get x = -b/(2a).
Step 5
Check that x lies strictly between p and q.
Real-life examples
Ball thrown and caught at the same height
A ball’s height follows h(t) = -4.9t^2 + 19.6t over a flight that starts and ends at ground level in a simplified class model using f(x) = x^2 - 4x shape on [0,4].
With a = 1, b = -4 on [0,4], endpoints are both 0 and the Rolle point is x = 2 — the midpoint, matching the physical peak of the flight in the model.
The zero-derivative point is the midpoint x = 2.
Spotting an inapplicable problem
A student tries f(x) = x^2 - 4x on [0, 3] and expects a Rolle point.
f(0) = 0 but f(3) = 9 - 12 = -3. The endpoints differ, so the tool errors and the student switches to the Mean Value Theorem instead of forcing Rolle.
No Rolle point: endpoint condition fails, correctly flagged.
Ideas & use cases
- Use it to generate practice: pick any vertex x0 and any half-width d, set p = x0 - d and q = x0 + d, and Rolle is guaranteed with point x0.
- Check homework reasoning: if your by-hand point does not satisfy f′(x) = 0 or falls outside the interval, one of the conditions was misread.
- Bridge to the Mean Value Theorem: when endpoints differ, the same vertex idea generalises to a point where the tangent matches the secant slope.
Limitations & sources
- Quadratic polynomials only, with exact condition checking. It does not root-find derivatives of general functions, and it applies the Mean Value Theorem only by signposting it, not computing it.
Sources: Rolle’s theorem statement and proof: Stewart, Calculus (Cengage), Mean Value Theorem section · Wolfram MathWorld: Rolle’s Theorem entry
