Calculus Theorems
Rolle's Theorem
Check continuity, differentiability and endpoint equality before applying Rolle's theorem.
rolle(x^2-4*x+3,x,1,3) verifies continuity and differentiability, and f(1)=f(3)=0. The derivative is 2*x-4, so f'(c)=0 gives c=2 inside (1,3). The tangent there is horizontal.
The cubic x^3-x on [-1,1] has two valid points, c=±sqrt(3)/3. For sin(x) on [0,2*pi], c=pi/2 and 3*pi/2. The unequal-endpoint example x^2 on [-1,2] fails Rolle's endpoint condition but still has the stationary point c=0; theorem applicability and stationary-point existence are separate questions.
Equation
rolle(x^2-4*x+3,x,1,3)
Hypotheses and parallel tangents
Both the Mean Value Theorem and Rolle's theorem require continuity on the closed interval [a,b] and differentiability on its open interior. Rolle additionally requires equal endpoint values. DGS checks those hypotheses before asserting a theorem guarantee. Endpoints must be finite real constants with a<b; interior solutions never include an endpoint.
The MVT equation sets f'(c) equal to the secant slope (f(b)-f(a))/(b-a). Rolle sets f'(c)=0. All verified interior solutions are reported when symbolic solving is complete. A failed hypothesis does not prove that no derivative-equation solution exists, and an inconclusive symbolic check is identified explicitly. Graph marks endpoints and valid c values and draws the secant and corresponding tangents, using representative points for an infinite solution set.
Reading the input
rolle(x^2-4*x+3,x,1,3)— rolle(x^2-4*x+3,x,1,3) verifies continuity and differentiability, and f(1)=f(3)=0. The derivative is 2*x-4, so f'(c)=0 gives c=2 inside (1,3). The tangent there is horizontal.
Other versions of this example
These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.
Rolle: quadratic
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
rolle(x^2-4*x+3,x,1,3)
Rolle: multiple points
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
rolle(x^3-x,x,-1,1)
Rolle: sine
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
rolle(sin(x),x,0,2*pi)
Unequal endpoints; stationary point still exists
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
rolle(x^2,x,-1,2)
Try a change
- Edit one number in the field, then use Solve Equation. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Solve Equation opens the original input in the equation workspace and displays its symbolic results, conditions, and solution steps.