DGS Studio

Interactive Calculus

Secant → Tangent

Move a secant line toward the tangent and visualize the derivative.

The sentence asks for the secant of y = x² approaching the tangent at x = 1. The point of tangency is P = (1, 1). The derivative there is 2, so the tangent line is y = 2x − 1.

The second point starts a horizontal distance h = 2 away, at Q = (3, 9). As h shrinks toward 0, the secant slope (f(1+h) − f(1))/h approaches 2. h never starts at 0, because the difference quotient would divide by zero.

Equation

secant to tangent for y=x^2 at x=1

What the calculus picture shows

Calculus examples in the graph workflow draw a process, not only a final number. A derivative can appear as a tangent, a secant sliding toward that tangent, or a transformed parent function. A Riemann sum draws rectangles whose areas approach a definite integral.

The exact symbolic result and the picture answer different questions. The picture shows how the approximation moves. The value, when the integral exists, is the limit of those approximations. Generate Graph keeps the original sentence in the input so you can edit the function or the bounds.

Reading the input

Try a change

Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.

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