What is a derivative?

A derivative is the slope of a curve at a single point: how fast the function's output is changing at that exact input. Draw a line through two points on the curve and slide one point toward the other; the slope the line settles on is the derivative. For f(x) = x², the derivative is 2x, so the slope is 2 at x = 1.

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

The derivative of f at x is the limit, as h approaches 0, of the rise f(x + h) − f(x) divided by the run h.

Updated

The parabola y = x squared with a point P at (1, 1). Three amber secant lines run from P through points on the curve at x = 3, 2 and 1.5, labelled slope 4, slope 3 and slope 2.5. A green tangent line touches the curve at P, labelled tangent, slope 2.
On y=x2y = x^2, secant lines from P(1,1)P(1, 1) to the points at x=3x = 3, 22 and 1.51.5 have slopes 44, 33 and 2.52.5. As the second point slides into PP, the slopes close in on 22: the slope of the tangent line, and the derivative at x=1x = 1.

Concept map

8 ideas, in the order to learn them. Click one and Zidna draws and narrates an animated lesson on it.

Derivatives

What a derivative is: the slope of a curve at a single point, found by sliding a secant line's two points together until it becomes the tangent line. Average rate of change and limits lead into it; the limit definition and the power rule compute it; the derivative as a function and instantaneous velocity show what it describes.

1

The Tangent Line Problem

The question of how steep a curve is at a single point, when the slope of a line needs two points.Generate lesson
2

Average Rate of Change

How much a function's output changes per unit of input between two points: the slope of the secant line through them.Generate lesson
3

Limits

The value a function's output approaches as its input gets closer and closer to a given number.Generate lesson
4

The Derivative at a Point

The slope of a function's graph at one point: the value the secant slopes approach as the second point slides into the first.Builds on The Tangent Line Problem, Average Rate of Change, LimitsGenerate lesson
5

The Limit Definition of the Derivative

The formula that finds a derivative from the function itself: the limit as h → 0 of (f(x + h) − f(x)) / h.Builds on The Derivative at a PointGenerate lesson
6

The Derivative as a Function

The function f′ that gives the slope of f's graph at every input, so the slopes have a graph of their own.Builds on The Derivative at a PointGenerate lesson
7

Instantaneous Velocity

How fast an object's position is changing at one instant: the derivative of its position with respect to time.Builds on The Derivative at a PointGenerate lesson
8

The Power Rule

The shortcut that the derivative of xⁿ is n·xⁿ⁻¹: bring the exponent down in front, then lower it by one.Builds on The Limit Definition of the Derivative, The Derivative as a FunctionGenerate lesson

Key ideas

  1. 01

    A derivative is the slope of a function's graph at a single point: the slope of the tangent line, the line that touches the curve there and runs in the same direction as the curve.

  2. 02

    The derivative is a limit: the slope of a secant line through two points on a curve, as the second point slides into the first. On y=x2y = x^2 at x=1x = 1, the secant slopes close in on 22.

  3. 03

    A derivative is an instantaneous rate of change, measured in output units per input unit. The derivative of position with respect to time is velocity.

  4. 04

    The power rule gives the derivative of any power of xx: ddx(xn)=nxn−1\frac{d}{dx}(x^n) = nx^{n-1}. Bring the exponent down in front and lower it by one, so x3x^3 becomes 3x23x^2.

  5. 05

    The derivative f′(x)f'(x) is a function with its own graph: where f′f' is positive, ff rises; where f′f' is negative, ff falls; and where f′f' is 00, the graph of ff is flat, as at a peak or a valley.

Is the derivative the slope of the tangent line?

Yes. The derivative of a function at a point is the slope of the tangent line there: the line that touches the graph at that point and runs in the same direction as the curve. Zoom in far enough on a smooth curve and it looks straight; the tangent line is that straight line.

Slope needs two points, so the tangent's slope is found in two moves. First draw a secant line through the point and a second point on the curve, and find its slope, rise over run. Then slide the second point toward the first and watch where the slopes go.

Secant slopes of y = x² from (1, 1) to (1 + h, (1 + h)²)
Run hSecond pointSecant slope
22(3,9)(3, 9)44
11(2,4)(2, 4)33
0.50.5(1.5,2.25)(1.5, 2.25)2.52.5
0.10.1(1.1,1.21)(1.1, 1.21)2.12.1
0.010.01(1.01,1.0201)(1.01, 1.0201)2.012.01
0.0010.001(1.001,1.002001)(1.001, 1.002001)2.0012.001

Each secant slope is 2+h2 + h, so as hh shrinks toward 00 the slopes close in on 22. That limit is the derivative: the slope of y=x2y = x^2 at x=1x = 1 is 22, and the tangent line there is y=2x−1y = 2x - 1.

A secant slope is an average rate of change over an interval. The derivative is the limit of those averages as the interval shrinks to a single point.

What does a derivative tell you?

A derivative tells you how fast a function's output is changing at one input, and in which direction. On the graph, it is how steep the curve is at that point. The derivative of ff at x=ax = a is written f′(a)f'(a) and read "f prime of a".

Its sign gives the direction and its size gives the steepness. If f′(a)=3f'(a) = 3, the output is changing 3 times as fast as the input at x=ax = a: nudge xx up by 0.010.01 and f(x)f(x) goes up by about 0.030.03.

What f′(a) says about the graph of f at x = a
Derivative at aGraph at aOutput at a
f′(a)>0f'(a) > 0Rising from left to rightIncreasing
f′(a)<0f'(a) < 0Falling from left to rightDecreasing
f′(a)=0f'(a) = 0Flat: the tangent line is horizontalNot changing at that instant, as at a peak or a valley
Far from 00SteepChanging fast
Close to 00Nearly flatChanging slowly
The curve y = x cubed minus 3x, with a peak at (−1, 2) and a valley at (1, −2). Short amber tangent lines touch it at x = −2, −1, 0, 1 and 2, labelled f′(−2) = 9 rising, f′(−1) = 0 peak, f′(0) = −3 falling, f′(1) = 0 valley and f′(2) = 9 rising.
On f(x)=x3−3xf(x) = x^3 - 3x, the slope is 99 where the curve climbs at x=−2x = -2 and x=2x = 2, 00 at the peak (−1,2)(-1, 2) and the valley (1,−2)(1, -2), and −3-3 where it falls through the origin.

A smooth graph can only peak or bottom out where its derivative is 00, so solve f′(x)=0f'(x) = 0 to find its peaks and valleys. For f(x)=x3−3xf(x) = x^3 - 3x the derivative is 3x2−33x^2 - 3, which is 00 at x=−1x = -1, the peak, and x=1x = 1, the valley. When f′f' is a quadratic that doesn't factor, the quadratic formula finds where it is 00.

Is a derivative a rate of change?

Yes. A derivative is an instantaneous rate of change: how fast one quantity is changing compared with another at a single moment. An average rate of change covers an interval; the derivative is what that average becomes as the interval shrinks to an instant.

A stone dropped from a bridge has fallen s(t)=4.9t2s(t) = 4.9t^2 meters after tt seconds, ignoring air resistance. Its average velocity between two times is the distance fallen divided by the time taken. Shrink the interval that starts at t=2t = 2, and the averages settle on one number.

Average velocity of the falling stone from t = 2 s to t = 2 + h s
Time intervalDistance fallenAverage velocity
2 to 3 s44.1 − 19.6 = 24.5 m24.5 m/s
2 to 2.1 s21.609 − 19.6 = 2.009 m20.09 m/s
2 to 2.01 s19.79649 − 19.6 = 0.19649 m19.649 m/s
2 to 2.001 s19.6196049 − 19.6 = 0.0196049 m19.6049 m/s

The averages approach 19.619.6, so the stone's velocity at the instant t=2t = 2 is s′(2)=19.6s'(2) = 19.6 m/s. The units say what any derivative is: units of output per unit of input.

Derivatives as rates of change
QuantityIts derivativeUnits
Position (m) over time (s)Velocitym/s
Velocity (m/s) over time (s)Accelerationm/s²
Water in a tank (L) over time (min)Flow rateL/min
Total cost (dollars) over items madeMarginal costdollars per item

Going the other way, from a rate back to a total, is the job of the integral: the area under the curve of a velocity graph is the change in position.

What is the limit definition of the derivative?

The limit definition of the derivative says that f′(x)f'(x) is the limit of a secant line's slope as its second point slides into the first. Put the second point hh units to the right of xx: the run is hh, the rise is f(x+h)−f(x)f(x+h) - f(x), and the derivative is the limit of rise over run as hh goes to 00.

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

The derivative of f at x is the limit, as h approaches 0, of f of x plus h, minus f of x, all divided by h.

A rising curve with two points on it, above x and x + h on the horizontal axis and level with f(x) and f(x + h) on the vertical axis. An amber secant line passes through both points. A horizontal run labelled h and a vertical rise labelled f(x + h) − f(x) form a right triangle under the secant. A green tangent line touches the curve at the first point.
The secant through (x,f(x))(x, f(x)) and (x+h,f(x+h))(x + h, f(x + h)) has run hh and rise f(x+h)−f(x)f(x + h) - f(x). As hh shrinks to 00, the secant swings into the tangent line at xx.

The fraction is called the difference quotient. Setting h=0h = 0 in it directly gives 00\frac{0}{0}, which has no value, so the limit asks what the fraction approaches as hh gets close to 00 without reaching it.

  1. 1Replace every xx in f(x)f(x) with (x+h)(x + h) to write f(x+h)f(x + h).
  2. 2Subtract f(x)f(x) and simplify until hh is a factor of every term on top.
  3. 3Divide by hh, canceling the hh in the denominator.
  4. 4Let h→0h \to 0 in what is left. The result is f′(x)f'(x).

For f(x)=x2f(x) = x^2: (x+h)2−x2h=2xh+h2h=2x+h\frac{(x+h)^2 - x^2}{h} = \frac{2xh + h^2}{h} = 2x + h, which approaches 2x2x as h→0h \to 0. So the derivative of x2x^2 is 2x2x.

For the slope at one point x=ax = a, the same definition is often written f′(a)=lim⁡x→af(x)−f(a)x−af'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}, with the second point at xx instead of a+ha + h.

How do you find the derivative of a function?

To find the derivative of a function, apply the derivative rules, each proved once from the limit definition, instead of taking a limit every time. For powers of xx the key rule is the power rule: bring the exponent down in front, then lower the exponent by one.

ddx(xn)=n xn−1\frac{d}{dx}\left(x^n\right) = n\,x^{n-1}

The derivative of x to the n is n times x to the n minus 1.

The basic derivative rules
RuleIn symbolsExample
Constantddx(c)=0\frac{d}{dx}(c) = 0ddx(7)=0\frac{d}{dx}(7) = 0
Powerddx(xn)=nxn−1\frac{d}{dx}(x^n) = nx^{n-1}ddx(x5)=5x4\frac{d}{dx}(x^5) = 5x^4
Constant multipleddx(c f(x))=c f′(x)\frac{d}{dx}\big(c\,f(x)\big) = c\,f'(x)ddx(3x4)=12x3\frac{d}{dx}(3x^4) = 12x^3
Sum and differenceddx(f(x)±g(x))=f′(x)±g′(x)\frac{d}{dx}\big(f(x) \pm g(x)\big) = f'(x) \pm g'(x)ddx(x3−x2)=3x2−2x\frac{d}{dx}(x^3 - x^2) = 3x^2 - 2x

To differentiate a polynomial, or any sum of powers of xx:

  1. 1Rewrite roots and fractions as powers of xx: x=x1/2\sqrt{x} = x^{1/2} and 1x2=x−2\frac{1}{x^2} = x^{-2}.
  2. 2Differentiate term by term: multiply each coefficient by its exponent, then lower the exponent by one.
  3. 3Drop the constant terms, since the derivative of a constant is 00.
  4. 4Rewrite negative and fractional exponents as fractions and roots, if the answer should look like the question.
The power rule on roots and fractions
FunctionAs a power of xDerivative
xxx1x^111
x\sqrt{x}x1/2x^{1/2}12x−1/2=12x\frac{1}{2}x^{-1/2} = \frac{1}{2\sqrt{x}}
1x\frac{1}{x}x−1x^{-1}−x−2=−1x2-x^{-2} = -\frac{1}{x^2}
1x2\frac{1}{x^2}x−2x^{-2}−2x−3=−2x3-2x^{-3} = -\frac{2}{x^3}

Other functions have derivatives of their own, also proved from the limit definition. Products, quotients and functions inside other functions use the product, quotient and chain rules.

Derivatives to know by heart (angles in radians)
FunctionDerivative
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x
tan⁡x\tan xsec⁡2x\sec^2 x
exe^xexe^x
e2xe^{2x}2e2x2e^{2x}, by the chain rule
ln⁡x\ln x1x\frac{1}{x}

Differentiating a polynomial lowers its degree by one, down to a constant: a cubic's derivative is a quadratic, a quadratic's is a line, and a line's is a constant.

What does a derivative look like on a graph?

The derivative of ff is a new function, f′(x)f'(x), and its graph shows the slope of ff at every xx. Measure the slope of ff at each point, plot that number as a height, and the points trace out the graph of f′f'.

Two graphs stacked on the same x positions. The top graph is the parabola f(x) = x squared with short amber tangent lines at x = −2, −1, 0, 1 and 2, labelled with their slopes −4, −2, 0, 2 and 4. Dashed lines drop from each point to the bottom graph, where amber dots at (−2, −4), (−1, −2), (0, 0), (1, 2) and (2, 4) lie on the green line f′(x) = 2x.
Top: f(x)=x2f(x) = x^2 with its tangent lines at x=−2,−1,0,1,2x = -2, -1, 0, 1, 2, of slopes −4,−2,0,2,4-4, -2, 0, 2, 4. Bottom: the same slopes plotted as heights. They lie on the line y=2xy = 2x, the graph of the derivative.

Read one graph from the other: where f′f' is above the xx-axis, ff rises; where f′f' is below it, ff falls; and where f′f' is 00, ff is flat, as at a peak or a valley. The parabola y=x2y = x^2 falls, flattens at its vertex and rises, so its derivative 2x2x goes from negative through 00 to positive.

Common graphs and the graphs of their derivatives
Graph of fGraph of f′
Horizontal line y=cy = cThe xx-axis, y=0y = 0
Line y=mx+by = mx + bHorizontal line y=my = m
Parabola y=ax2+bx+cy = ax^2 + bx + cLine y=2ax+by = 2ax + b
Cubic with a peak and a valleyParabola that crosses the xx-axis at the peak's and the valley's xx-values

The derivative has three common notations: f′(x)f'(x), read "f prime of x"; dydx\frac{dy}{dx}, read "d y d x", the derivative of yy with respect to xx; and ddx\frac{d}{dx} written in front of an expression, meaning "the derivative of" it.

Worked examples

The derivative of x³ from the limit definition

Use the limit definition to find the derivative of f(x)=x3f(x) = x^3.

  1. 1Write f(x+h)f(x + h): (x+h)3=x3+3x2h+3xh2+h3(x + h)^3 = x^3 + 3x^2h + 3xh^2 + h^3.
  2. 2Subtract f(x)f(x): f(x+h)−f(x)=3x2h+3xh2+h3f(x + h) - f(x) = 3x^2h + 3xh^2 + h^3.
  3. 3Divide by hh: 3x2h+3xh2+h3h=3x2+3xh+h2\frac{3x^2h + 3xh^2 + h^3}{h} = 3x^2 + 3xh + h^2.
  4. 4Let h→0h \to 0: the terms 3xh3xh and h2h^2 go to 00, leaving 3x23x^2.

Answer: f′(x)=3x2f'(x) = 3x^2, the same result the power rule gives in one step.

Slope and tangent line at a point

Find the slope of y=x3y = x^3 at x=1x = 1 and the equation of the tangent line there.

The curve y = x cubed and the green line y = 3x − 2. The line touches the curve at (1, 1), running in the same direction there, and crosses the curve again lower down at (−2, −8).
The tangent line y=3x−2y = 3x - 2 touches y=x3y = x^3 at (1,1)(1, 1), where both have slope 33. It meets the curve again at (−2,−8)(-2, -8): a tangent line can cross the curve away from the point it touches.
  1. 1Differentiate: dydx=3x2\frac{dy}{dx} = 3x^2.
  2. 2Substitute x=1x = 1: the slope is 3(1)2=33(1)^2 = 3.
  3. 3Find the point: y=13=1y = 1^3 = 1, so the tangent line passes through (1,1)(1, 1).
  4. 4Use point-slope form: y−1=3(x−1)y - 1 = 3(x - 1), so y=3x−2y = 3x - 2.

Answer: The slope is 33, and the tangent line is y=3x−2y = 3x - 2.

The power rule on a polynomial

Find f′(x)f'(x) for f(x)=4x3−5x2+7x−2f(x) = 4x^3 - 5x^2 + 7x - 2, then find f′(2)f'(2).

  1. 14x34x^3: bring the 33 down and lower the exponent, 4⋅3x2=12x24 \cdot 3x^2 = 12x^2.
  2. 2−5x2-5x^2: −5⋅2x=−10x-5 \cdot 2x = -10x.
  3. 37x7x: 7⋅1=77 \cdot 1 = 7.
  4. 4−2-2: a constant, so its derivative is 00.
  5. 5Add the pieces: f′(x)=12x2−10x+7f'(x) = 12x^2 - 10x + 7. At x=2x = 2: 12(4)−10(2)+7=3512(4) - 10(2) + 7 = 35.

Answer: f′(x)=12x2−10x+7f'(x) = 12x^2 - 10x + 7 and f′(2)=35f'(2) = 35: at x=2x = 2 the output is changing 35 times as fast as the input.

The power rule with a root and a fraction

Differentiate g(x)=6x−2x3g(x) = 6\sqrt{x} - \frac{2}{x^3}.

  1. 1Rewrite as powers: g(x)=6x1/2−2x−3g(x) = 6x^{1/2} - 2x^{-3}.
  2. 2First term: 6⋅12x−1/2=3x−1/26 \cdot \frac{1}{2}x^{-1/2} = 3x^{-1/2}.
  3. 3Second term: −2⋅(−3)x−4=6x−4-2 \cdot (-3)x^{-4} = 6x^{-4}. Lowering −3-3 by one gives −4-4, not −2-2.
  4. 4Rewrite without negative exponents: 3x−1/2=3x3x^{-1/2} = \frac{3}{\sqrt{x}} and 6x−4=6x46x^{-4} = \frac{6}{x^4}.

Answer: g′(x)=3x+6x4g'(x) = \frac{3}{\sqrt{x}} + \frac{6}{x^4}

Velocity from position

A ball thrown straight up at 19.619.6 m/s has height s(t)=19.6t−4.9t2s(t) = 19.6t - 4.9t^2 meters after tt seconds, ignoring air resistance. Find its velocity at t=1t = 1 and t=3t = 3, and when it reaches the top.

  1. 1Velocity is the derivative of position: v(t)=s′(t)=19.6−9.8tv(t) = s'(t) = 19.6 - 9.8t.
  2. 2At t=1t = 1: v(1)=19.6−9.8=9.8v(1) = 19.6 - 9.8 = 9.8 m/s. Positive, so the ball is rising.
  3. 3At t=3t = 3: v(3)=19.6−29.4=−9.8v(3) = 19.6 - 29.4 = -9.8 m/s. Negative, so the ball is falling.
  4. 4At the top the ball stops rising, so v(t)=0v(t) = 0: 19.6−9.8t=019.6 - 9.8t = 0 gives t=2t = 2, and s(2)=39.2−19.6=19.6s(2) = 39.2 - 19.6 = 19.6 m.

Answer: 9.89.8 m/s upward at t=1t = 1, 9.89.8 m/s downward at t=3t = 3, and the top comes at t=2t = 2 s, 19.619.6 m up.

Check yourself

  1. 1.What is the derivative of x⁶?Show answer

    6x⁵

  2. 2.What is the derivative of f(x) = 9?Show answer

    0. A constant never changes, so its graph is a horizontal line with slope 0.

  3. 3.For f(x) = x², what is the slope of the tangent line at x = −3?Show answer

    −6, because f′(x) = 2x.

  4. 4.The secant slopes of a curve from x = 2 to x = 2 + h are 5 + h. What is the derivative at x = 2?Show answer

    5, the value 5 + h approaches as h goes to 0.

  5. 5.Differentiate 3x⁴ − 2x + 9.Show answer

    12x³ − 2

  6. 6.What is the derivative of √x?Show answer

    1/(2√x). Write √x as x^(1/2); the power rule gives (1/2)x^(−1/2).

  7. 7.What is the derivative of 1/x?Show answer

    −1/x². Write 1/x as x^(−1); the power rule gives −x^(−2).

  8. 8.If f′(4) = 0, what does the graph of f look like at x = 4?Show answer

    Flat: the tangent line there is horizontal. It may be a peak, a valley or a level point.

  9. 9.An object's position is s(t) = t³ meters after t seconds. What is its velocity at t = 2?Show answer

    12 m/s, since s′(t) = 3t² and 3 × 2² = 12.

  10. 10.If f′(x) = 2x − 4, is f rising or falling at x = 1?Show answer

    Falling, because f′(1) = −2 is negative.

Common mistakes

  • Substituting the number before differentiating: for the slope of x3x^3 at x=2x = 2, working out 23=82^3 = 8 and then differentiating 88 to get 00.Differentiate first, then substitute: f′(x)=3x2f'(x) = 3x^2, so f′(2)=3(2)2=12f'(2) = 3(2)^2 = 12.
  • Setting h=0h = 0 at the start of the limit definition, getting 00\frac{0}{0}, and deciding there is no derivative.Simplify until the hh in the denominator cancels, then let h→0h \to 0. A 00\frac{0}{0} at the start only means the algebra isn't finished.
  • Using the power rule on an exponential: writing the derivative of 2x2^x as x⋅2x−1x \cdot 2^{x-1}.The power rule is for xnx^n, a variable base with a constant exponent. In 2x2^x the variable is the exponent, and its derivative is 2xln⁡22^x \ln 2.
  • Differentiating 1x3\frac{1}{x^3} as 13x2\frac{1}{3x^2}.Rewrite it as x−3x^{-3} first. The power rule then gives −3x−4=−3x4-3x^{-4} = -\frac{3}{x^4}: lowering −3-3 by one gives −4-4.
  • Differentiating a product factor by factor: taking the derivative of x2⋅x3x^2 \cdot x^3 as 2x⋅3x2=6x32x \cdot 3x^2 = 6x^3.Multiply out first: x2⋅x3=x5x^2 \cdot x^3 = x^5, so the derivative is 5x45x^4. For products that don't simplify, use the product rule.
  • Thinking a tangent line touches the curve at only one point.A tangent line matches the curve's direction where it touches, and it can meet the curve again elsewhere: the tangent y=3x−2y = 3x - 2 to y=x3y = x^3 at (1,1)(1, 1) crosses the curve at (−2,−8)(-2, -8).

Questions students ask

What is a derivative used for?

Derivatives measure how fast things change and find where they reach a maximum or a minimum. In physics, velocity is the derivative of position and acceleration is the derivative of velocity. A smooth graph can only peak or bottom out where its derivative is 0, which is the basis of optimization problems such as the least cost or the largest area. In economics, marginal cost and marginal revenue are derivatives.

Is the derivative the same as the slope?

For a straight line, yes: its derivative is its slope, the same number at every point. A curve's steepness changes from point to point, so its derivative is a function that gives the slope of the tangent line at each x. For y = x², the slope is −2 at x = −1 and 4 at x = 2, because the derivative is 2x.

Can a derivative be negative or zero?

Yes. A negative derivative means the function is decreasing there: its graph falls from left to right. A derivative of 0 means the tangent line is horizontal, as at a peak, a valley, or a level point like x = 0 on y = x³. A zero derivative says the graph is flat at that point, not that the function's value is 0.

When does a derivative not exist?

A derivative fails to exist where a graph has no single tangent slope. That happens at a corner, like y = |x| at x = 0, where the slope jumps from −1 to 1; at a vertical tangent, like the cube root of x at x = 0; and at a break in the graph, such as a jump or a hole. A function must be continuous at a point to have a derivative there, but being continuous is not enough on its own.

What does dy/dx mean?

dy/dx is Leibniz's notation for the derivative of y with respect to x. It echoes the slope Δy/Δx, a change in y over a change in x, in the limit where both changes shrink toward 0. When y = f(x), dy/dx and f′(x) mean the same thing.

Why is the derivative of a constant 0?

A constant function such as f(x) = 5 gives the same output for every input, so its graph is a horizontal line, and a horizontal line has slope 0 everywhere. The limit definition agrees: (5 − 5)/h = 0 for every h, so the limit is 0.

What is the difference between a derivative and an integral?

A derivative measures how fast a quantity is changing at an instant: the slope of a graph. An integral adds a quantity up over an interval: the area under a graph. The Fundamental Theorem of Calculus links them as inverse operations: integrating a rate of change over an interval gives the total change, and the derivative of an accumulated area is the function being accumulated.

Who invented the derivative?

Isaac Newton and Gottfried Wilhelm Leibniz developed calculus independently in the second half of the 1600s. Newton worked out his method of fluxions, his name for derivatives, around 1665 to 1666 but published it much later. Leibniz published first, in 1684, and the dy/dx notation he introduced is still standard.

Sources