FreeMathCamp
Course Articles

Free Math Camp

A free course in the maths you need before calculus. Short lessons, interactive visuals, practice that adapts to you, and a record of progress on your account.

freemathcamp.app

Made by Adam Richard Turner

hello@adamrichardturner.dev

Course

  • Foundations
  • Articles
  • Start free
  • Sign in

Legal

  • Privacy
  • Terms
  • Do not sell or share

Copyright © Adam Richard Turner. All rights reserved.

  1. Articles
  2. /
  3. Ready for Calculus
Ready for Calculus

What Is a Derivative? The Difference Quotient and the Slope of a Curve

How the slope between two points becomes the slope at one point, what the difference quotient is, a worked derivative of x2x^2x2 from first principles, and why every earlier topic in Foundations feeds into this idea.

3 min read Supports 3 lessons
In short

The derivative of fff at xxx is the slope of the curve at that point: the instantaneous rate of change. It is the limit of the difference quotient, f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}f′(x)=limh→0​hf(x+h)−f(x)​.

The slope formula needs two points. A curve's steepness changes from point to point, so how can we talk about its slope at one point? The answer is the central idea of calculus: take two points, then push them together.

The difference quotient

Keep one point at xxx and put the other a small step hhh further along, at x+hx + hx+h. The slope of the secant between them is called the difference quotient.

Difference quotient
f(x+h)−f(x)h\frac{f(x + h) - f(x)}{h}hf(x+h)−f(x)​

Change in output over change in input, with the run written as hhh.

Now shrink hhh. Drag the slider, or press the button to watch it happen:

As hhh heads to 000, the secant line turns into the tangent line, which just touches the curve, and its slope settles on a single number: 222.

The derivative of x² from first principles

  1. f(x)=x2f(x) = x^2f(x)=x2

    Work out the difference quotient in general.

1/6
Derivative
f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}f′(x)=h→0lim​hf(x+h)−f(x)​
Key idea

This is the definition every calculus course starts from. It turns "slope at a point" from a vague idea into a calculation.

What it means

The derivative is a rate of change at an instant. If f(t)f(t)f(t) is position, f′(t)f'(t)f′(t) is velocity. If fff is the cost of making xxx items, f′f'f′ is the cost of one more. Where f′(x)=0f'(x) = 0f′(x)=0, the tangent is flat, which is where a graph turns: a maximum or a minimum.

Everything comes together

Look at what that short calculation used: function notation, substitution, expanding brackets, simplifying fractions, slope, and limits. The binomial theorem extends it to xnx^nxn, giving nxn−1nx^{n-1}nxn−1. Trig identities, radians and eee are chosen precisely so that derivatives of sine, cosine and exe^xex come out cleanly.

Worked example

Use the difference quotient to find the slope of f(x)=x2+3xf(x) = x^2 + 3xf(x)=x2+3x at x=2x = 2x=2.

  1. 1

    Simplify the difference quotient.

    (x+h)2+3(x+h)−x2−3xh=2x+3+h\frac{(x + h)^2 + 3(x + h) - x^2 - 3x}{h} = 2x + 3 + hh(x+h)2+3(x+h)−x2−3x​=2x+3+h
Watch out

You cannot set h=0h = 0h=0 straight away: that gives 00\frac0000​. Simplify first so the hhh in the denominator cancels, then let hhh go to zero.

Tip

You are ready for calculus. Everything in Foundations has been building towards this one limit.

Common questions

What is a derivative in simple terms?

It is the slope of a curve at a single point, or equivalently how fast a quantity is changing at an instant.

What is the difference quotient?

f(x+h)−f(x)h\frac{f(x + h) - f(x)}{h}hf(x+h)−f(x)​: the slope of the line through two points on a curve a distance hhh apart. Its limit as h→0h \to 0h→0 is the derivative.

Practise the derivative

The The Difference Quotient lesson has worked examples and unlimited practice that adapts to you.

Open the lesson

On this page

  1. The difference quotient
  2. The derivative of x² from first principles
  3. What it means
  4. Everything comes together
  5. Common questions
Lessons on this
  • The Difference QuotientReady for Calculus
  • Average Rate of ChangeFunctions
  • Limits: Approaching a ValueReady for Calculus
Related reading11
Ideas this article builds on or leads to.
  • Ready for Calculus
    Average Rate of Change and the Secant Line

    The average rate of change of a function between x=ax = ax=a and x=bx = bx=b is the change in output divided by the change in input, f(b)−f(a)b−a\frac{f(b) - f(a)}{b - a}b−af(b)−f(a)​. It is the slope of the secant line joining the two points.

  • Ready for Calculus
    What Is a Limit in Maths? Limits Explained for Beginners

    A limit describes the value a function approaches as its input gets closer and closer to some number, whether or not the function is defined there. We write lim⁡x→af(x)=L\lim_{x \to a} f(x) = Llimx→a​f(x)=L.

  • Graphs & Functions
    Slope (Gradient) of a Line: Rise Over Run Explained

    The slope, or gradient, of a line measures its steepness: how much yyy changes for each step of 111 in xxx. Between two points, m=riserun=y2−y1x2−x1m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}m=runrise​=x2​−x1​y2​−y1​​.

  • Sequences & Series
    The Binomial Theorem and Pascal's Triangle

    The binomial theorem expands (a+b)n(a + b)^n(a+b)n directly. The coefficients come from row nnn of Pascal's triangle, or from the formula (nk)=n!k!(n−k)!\binom{n}{k} = \frac{n!}{k!(n - k)!}(kn​)=k!(n−k)!n!​.

  • Graphs & Functions
    What Is a Function? Inputs, Outputs, f(x) and the Vertical Line Test

    A function is a rule that gives exactly one output for each input. Writing f(x)f(x)f(x) means "the output of the function fff when the input is xxx".

  • Algebra
    The Distributive Property: Expanding Brackets with the Area Model

    The distributive property says a(b+c)=ab+aca(b + c) = ab + aca(b+c)=ab+ac: multiplying a sum means multiplying each part of it. It is how brackets are expanded, and, run backwards, how expressions are factorised.

  • Fractions, Decimals & Percentages
    Equivalent Fractions and Simplifying to Simplest Form

    Equivalent fractions name the same amount with different numbers, like 12=24=48\frac{1}{2} = \frac{2}{4} = \frac{4}{8}21​=42​=84​. Multiplying or dividing the top and bottom by the same number never changes a fraction's value.

  • Trigonometry
    Trig Identities: sin²θ + cos²θ = 1 and the Double-Angle Formulas

    A trig identity is an equation that is true for every angle. The most important, sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1sin2θ+cos2θ=1, is Pythagoras on the unit circle; others include tan⁡θ=sin⁡θcos⁡θ\tan\theta = \frac{\sin\theta}{\cos\theta}tanθ=cosθsinθ​ and the double-angle formulas.

  • Trigonometry
    What Is a Radian? Converting Between Degrees and Radians

    A radian is the angle at the centre of a circle where the arc length equals the radius. A full turn is 2π2\pi2π radians, so 180°=π180° = \pi180°=π radians.

  • Trigonometry
    SOH CAH TOA: Sine, Cosine and Tangent in Right-Angled Triangles

    In a right-angled triangle, sine, cosine and tangent are ratios of sides that depend only on an angle: sin⁡θ=opphyp\sin\theta = \frac{\text{opp}}{\text{hyp}}sinθ=hypopp​, cos⁡θ=adjhyp\cos\theta = \frac{\text{adj}}{\text{hyp}}cosθ=hypadj​, tan⁡θ=oppadj\tan\theta = \frac{\text{opp}}{\text{adj}}tanθ=adjopp​. SOH CAH TOA is the memory aid.

  • Fractions, Decimals & Percentages
    What Is a Fraction? Numerators, Denominators and Mixed Numbers

    A fraction ab\frac{a}{b}ba​ means aaa parts of a whole that has been cut into bbb equal parts. The bottom number is the denominator; the top is the numerator.