DGS Studio

Calculus Theorems

Rolle's Theorem

Verify hypotheses, stationary points and horizontal tangents.

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

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

Generate Graph opens this input in the graph workspace with its domain restrictions. The interactive result keeps the existing zoom, pan, and export controls.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples