Derivatives: the basics

The derivative function f'(x)

The derivative function f′(x)f'(x) returns the slope of the tangent line at each xx.

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

The derivative at a point was the slope at one xx. If you keep aa as xx and take the limit, you get a function that returns the slope at every xx: the derivative function f′(x)f'(x).

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

Every formula that follows is a shortcut so you do not have to redo this definition each time.

xyf(x) = x²xyf'(x) = 2x
The derivative f'(x)=2x records the slope of f(x)=x² at each point: negative on the left, positive on the right.Drag the dot

Examples

  1. 01What is f'(x)?f(x)=x2+2\displaystyle f(x)=x^2+2AnswerHide
    Answer2x\displaystyle 2x

    Steps

    1. f(x)\displaystyle f(x)=x2+2\displaystyle = x^2 +2
    2. Differentiate
    3. f′(x)\displaystyle f'(x)=2x+0=2x\displaystyle = 2x + 0 = 2x
  2. 02What is f'(6)?f′(x)=2x\displaystyle f'(x)=2xAnswerHide
    Answer12\displaystyle 12

    Steps

    1. f(x)\displaystyle f(x)=x2\displaystyle = x^2
    2. Differentiate
    3. f′(x)\displaystyle f'(x)=2x\displaystyle = 2x
    4. Put x = 6 in
    5. f′(6)\displaystyle f'(6)=2⋅(6)=12\displaystyle = 2 \cdot (6) = 12
  3. 03What goes in □?2xh+h2h=2x+□\displaystyle \frac{2xh+h^2}{h} = 2x+\squareAnswerHide
    Answerh\displaystyle h

    Steps

    1. 2xh+h2h\displaystyle \frac{2xh+h^2}{h}=h(2x+h)h=2x+h\displaystyle = \frac{h(2x+h)}{h} = 2x+h
    2. Let h approach 0
    3. (h→0)\displaystyle (h \to 0)⇒f′(x)=2x\displaystyle \Rightarrow f'(x) = 2x
  4. 04What is f'(x)?f(x)=x2\displaystyle f(x)=x^2AnswerHide
    Answer2x\displaystyle 2x

    Steps

    1. f(x)\displaystyle f(x)=x2\displaystyle = x^2
    2. Differentiate
    3. f′(x)\displaystyle f'(x)=2x2−1=2x\displaystyle = 2 x^{2-1} = 2x
  5. 05What is f'(x)?f(x)=x2+5\displaystyle f(x)=x^2+5AnswerHide
    Answer2x\displaystyle 2x

    Steps

    1. f(x)\displaystyle f(x)=x2+5\displaystyle = x^2 +5
    2. Differentiate
    3. f′(x)\displaystyle f'(x)=2x+0=2x\displaystyle = 2x + 0 = 2x
  6. 06What is f'(x)?f(x)=x2+6\displaystyle f(x)=x^2+6AnswerHide
    Answer2x\displaystyle 2x

    Steps

    1. f(x)\displaystyle f(x)=x2+6\displaystyle = x^2 +6
    2. Differentiate
    3. f′(x)\displaystyle f'(x)=2x+0=2x\displaystyle = 2x + 0 = 2x

FAQ

Do I have to use the definition every time?
No. The results of doing it once are the rules (the power rule and so on), and you normally use those. You go back to the definition for functions the rules do not cover, or in proofs.

Published 2026-09-03 · Updated 2026-10-14