Skip to content

What Is a Derivative? Slope, Rate of Change and Tangent Lines Explained

By Sprout Calculator Editorial Team Bylines · Published November 5, 2026 · Updated November 6, 2026

A derivative measures how fast a function is changing at a single point. Geometrically it is the slope of the tangent line to the graph there. If position is a function of time, its derivative is velocity. The derivative of x² is 2x, so at x = 3 the slope is 6.

What is a derivative in plain words?

A derivative tells you how quickly something is changing right now. If you ride a bike, your position changes over time. How fast it changes is your speed. The derivative of position with respect to time is exactly that speed.

The word applies to any quantity. The derivative of the water level in a tank tells you how fast it is filling. The derivative of a company's profit tells you how fast profit grows when output rises. Calculus gives a single method for all of these: measure the rate of change at a point.

For a straight line, the slope is rise over run. It stays the same everywhere. For a curve, the steepness changes, so the slope at one point differs from the slope at another.

The derivative gives the slope at a single point. Imagine zooming in on a smooth curve until it looks like a straight line. The slope of that tiny line is the derivative at that point. The line itself is called the tangent line. When the derivative is positive, the curve is rising. When it is negative, the curve is falling. When it is zero, the curve is flat for a moment.

What is the limit definition?

Start with two points on the curve, a distance h apart. The slope of the line through them is the change in y divided by the change in x. Now shrink h toward zero. The slope of the line approaches the slope of the tangent.

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

Apply it to f(x) = x².

  1. Write the difference quotient: ((x + h)² − x²) ÷ h.
  2. Expand: (x² + 2xh + h² − x²) ÷ h = (2xh + h²) ÷ h.
  3. Divide by h: 2x + h.
  4. Let h go to 0: f'(x) = 2x.

So the derivative of x² is 2x. At x = 3 the slope is 6, and at x = −1 the slope is −2.

How do you use rules instead of limits?

For polynomials, the power rule does the work. Multiply the coefficient by the exponent, then lower the exponent by one.

ddx[c xn]=c n xn−1\frac{d}{dx}\left[c\,x^{n}\right] = c\,n\,x^{n-1}

The derivative of a sum is the sum of the derivatives, and the derivative of a constant is zero. For f(x) = 5x⁴ − 3x² + 7x − 2:

  • 5x⁴ becomes 20x³.
  • −3x² becomes −6x.
  • 7x becomes 7.
  • −2 becomes 0.

So f'(x) = 20x³ − 6x + 7. Try your own polynomial in the derivative calculator and compare its steps with yours. Our guide on the power rule for derivatives and integrals gives more examples.

How do you find a tangent line?

You need a point and a slope. The point comes from the function. The slope comes from the derivative.

Find the tangent line to f(x) = x² at x = 3.

  1. The point: f(3) = 9, so the point is (3, 9).
  2. The slope: f'(x) = 2x, so f'(3) = 6.
  3. Use the point-slope form: y − 9 = 6(x − 3).
  4. Simplify: y = 6x − 9.

This line touches the parabola at (3, 9) and has the same slope there. It is a good local approximation of the curve near x = 3.

What does the derivative say about speed?

If s(t) gives position, then s'(t) gives velocity, and the derivative of velocity gives acceleration. Say a ball's height in meters is s(t) = 4t² + 3t, where t is in seconds.

  1. Velocity: s'(t) = 8t + 3.
  2. At t = 2 seconds: s'(2) = 8 × 2 + 3 = 19 meters per second.
  3. Acceleration: the derivative of 8t + 3 is 8 meters per second squared.

The velocity is not constant. It grows by 8 meters per second each second. You can use the same steps for any quantity that changes with time. For other units, such as dollars per day, the method is the same.

How do you find maximum and minimum points?

At the top of a hill or the bottom of a valley, the tangent line is flat. So the derivative equals zero there. Solve f'(x) = 0 to find the candidates, then test each one.

Take f(x) = x³ − 3x.

  1. Differentiate: f'(x) = 3x² − 3.
  2. Set equal to zero: 3x² − 3 = 0, so x² = 1 and x = 1 or x = −1.
  3. Find the second derivative: f''(x) = 6x.
  4. At x = 1, f'' = 6, which is positive, so this is a local minimum. The value is f(1) = −2.
  5. At x = −1, f'' = −6, which is negative, so this is a local maximum. The value is f(−1) = 2.

A positive second derivative means the curve bends upward, like a cup. A negative one means it bends downward, like a cap. Engineers and economists use this test to find the cheapest design or the most profitable price.

What can the derivative not do?

A derivative needs a smooth curve. At a sharp corner, such as the point of the graph of |x| at x = 0, the slope jumps from −1 to 1. There is no single tangent line, so the derivative does not exist there. The same is true at a jump or a gap in the graph.

Also, the derivative tells you about rate of change, not the value itself. A function can be very large while changing slowly. Keep the two ideas apart.

Our derivative calculator handles polynomials, sin, cos, tan, e^x, ln and roots, and it applies the product, quotient and chain rules when it needs them. It also does log, abs, implicit equations such as x² + y² = 25, and second and third derivatives.

What are common mistakes?

  • Forgetting to lower the exponent. The new exponent is n − 1.
  • Differentiating a constant as if it had x. The derivative of 5 is 0, not 5.
  • Mixing up the function and its derivative. f(3) is a height, and f'(3) is a slope.
  • Writing the derivative of x as x. It is 1.
  • Dropping the minus sign. Keep signs with each term.
  • Using the wrong notation. Both f'(x) and dy/dx mean the same thing.

Practice problems

  1. Differentiate f(x) = 6x² − 4x + 9. The answer is 12x − 4.
  2. Find the slope of f(x) = x³ at x = 2. The derivative is 3x², so the slope is 12.
  3. Find the tangent line to f(x) = x² + 1 at x = 1. The point is (1, 2), the slope is 2, and the line is y = 2x.
  4. Find where f(x) = x² − 6x + 5 has a minimum. Set f'(x) = 2x − 6 = 0, so x = 3. The minimum value is f(3) = −4.

Check each result with the calculator, then try to explain in words what the derivative means in each case.

FAQ

Frequently asked questions

01Is a derivative the same as slope?

For a straight line, yes. The slope is the same everywhere. For a curve, the slope changes from point to point, so we use the derivative to give the slope at each point. It is the slope of the tangent line, the line that just touches the curve at that point.

02What does it mean if the derivative is zero?

A zero derivative means the tangent line is flat, so the function is neither rising nor falling at that instant. This often happens at the top of a hill or the bottom of a valley. Those points are candidates for a maximum or a minimum.

03Do I need limits to find derivatives?

Limits define the derivative, but you rarely use them to compute one. Rules such as the power rule, the sum rule and the product rule let you differentiate quickly. Knowing the limit idea helps you understand why the rules work.

04What is the derivative of a constant?

Zero. A constant never changes, so its rate of change is 0 everywhere, and its graph is a flat line with slope 0. This is why the + 5 in x² + 5 disappears when you differentiate.