Welcome to Differentiation from First Principles!

Welcome! Today we are going to explore the "roots" of calculus. You might already know some shortcuts for finding the gradient of a curve, but have you ever wondered where those rules actually come from? Differentiation from first principles is the mathematical "origin story." It’s a way to prove exactly how fast a function is changing at any single point.

Don’t worry if this seems a bit abstract at first. We’ll break it down step-by-step using simple logic and a bit of algebra. By the end of this, you’ll see that calculus isn't just magic—it's just a very clever way of looking at straight lines!

What exactly are we trying to do?

When we look at a straight line, finding the gradient (steepness) is easy: we just do "change in \(y\) divided by change in \(x\)." But for a curve, the steepness changes every millimeter you move! To find the gradient at a specific point, we imagine picking a second point very, very close to it and drawing a tiny straight line between them. As that second point gets closer and closer until the gap is almost zero, we find the perfect gradient at that exact spot.

Quick Review: The Gradient Formula
From GCSE, remember that for two points \((x_1, y_1)\) and \((x_2, y_2)\), the gradient \(m\) is:
\(m = \frac{y_2 - y_1}{x_2 - x_1}\)

Key Takeaway: Differentiation is just a fancy way of finding the gradient of a curve by looking at two points that are incredibly close together.

The "First Principles" Formula

To do this mathematically, we use a tiny distance called \(h\). Imagine our first point is at \(x\). Our second point is just a tiny bit further along, at \(x + h\).

The formula the OCR syllabus requires you to know is:
\(f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\)

Breaking down the jargon:

  • \(f'(x)\): This is just another way of saying "the derivative" or "the gradient function."
  • \(f(x+h)\): The \(y\)-coordinate of our second (nearby) point.
  • \(f(x)\): The \(y\)-coordinate of our first point.
  • \(h\): The horizontal distance between the two points.
  • \(\lim_{h \to 0}\): This means "the limit as \(h\) tends to zero." We are watching what happens to the fraction as the gap \(h\) gets smaller and smaller until it basically vanishes.
Did you know?

The letter \(h\) is used because it stands for a "horizontal increment." Some older books use \(\delta x\) (delta \(x\)), but for your AS Level exam, \(h\) is the standard buddy to stick with!

Key Takeaway: The formula is just \(\frac{\text{change in } y}{\text{change in } x}\) where the change in \(x\) is so small it is almost zero.

The 5-Step Process

Whenever you are asked to differentiate from first principles, follow these five steps. Let's use the example \(f(x) = x^2\).

  1. State the function: \(f(x) = x^2\)
  2. Find \(f(x+h)\): Replace every \(x\) in the original function with \((x+h)\).
    \(f(x+h) = (x+h)^2 = x^2 + 2xh + h^2\)
  3. Subtract \(f(x)\) from \(f(x+h)\): This gives you the "change in \(y\)."
    \(f(x+h) - f(x) = (x^2 + 2xh + h^2) - x^2 = 2xh + h^2\)
  4. Divide by \(h\): This is the gradient of the chord.
    \(\frac{2xh + h^2}{h} = 2x + h\)
  5. Apply the limit: Let \(h\) become 0.
    As \(h \to 0\), \(2x + h\) becomes \(2x\).

So, the derivative of \(x^2\) is \(2x\). You might have known that rule already, but now you’ve proved it!

Common Mistake to Avoid: Don't forget to keep writing the \(\lim_{h \to 0}\) notation in your working until the very last step where you actually set \(h\) to zero. Examiners look for this!

Key Takeaway: Expand the brackets, subtract the original function, divide every term by \(h\), and then ignore any remaining \(h\) terms.

Practicing with \(x^3\)

The syllabus says you need to be able to do this for small positive integer powers of \(x\) (usually up to \(x^4\)). Let’s try \(f(x) = x^3\). Don't worry if the algebra looks bigger; the steps are exactly the same!

Step-by-Step for \(x^3\):

1. Function: \(f(x) = x^3\)
2. Expand \(f(x+h)\): \((x+h)^3 = x^3 + 3x^2h + 3xh^2 + h^3\)
(Hint: You can use Binomial Expansion or multiply out \((x+h)(x^2 + 2xh + h^2)\) to get this.)
3. Subtract \(f(x)\): \((x^3 + 3x^2h + 3xh^2 + h^3) - x^3 = 3x^2h + 3xh^2 + h^3\)
4. Divide by \(h\): \(\frac{3x^2h + 3xh^2 + h^3}{h} = 3x^2 + 3xh + h^2\)
5. Limit as \(h \to 0\): Any term with an \(h\) in it becomes zero.
\(3x^2 + 3x(0) + (0)^2 = 3x^2\)

Result: The derivative of \(x^3\) is \(3x^2\).

Analogy: The Microscope

Think of differentiation from first principles like a microscope. At a normal scale, \(x^2\) is a curve. But when we let \(h\) tend to zero, we are "zooming in" so much on one tiny section of the curve that it looks like a perfectly straight line. The formula tells us the slope of that straight line.

Key Takeaway: As the power of \(x\) increases, the algebra gets longer, but the result always follows the power rule you know: \(nx^{n-1}\).

Top Tips for the Exam

  • Brackets are your friends: When expanding \(f(x+h)\), always use brackets. It's very easy to make a sign error if you don't.
  • The "Disappearing Act": After step 3, every single term left should have an \(h\) in it. If you have a term like "\(5\)" or "\(x^2\)" without an \(h\), you’ve likely made an expansion error. Go back and check!
  • Know your expansions: Be comfortable expanding \((x+h)^2\), \((x+h)^3\), and \((x+h)^4\).
  • Notation: Remember that \(\frac{dy}{dx}\) and \(f'(x)\) mean the same thing. Use whichever one the question uses.

Quick Summary Table

Original \(f(x)\) | Derivative \(f'(x)\)
\(x^2\) | \(2x\)
\(x^3\) | \(3x^2\)
\(x^4\) | \(4x^3\)
\(kx\) | \(k\)

Final Encouragement: Differentiation from first principles is often a 4 or 5-mark question in the AS exam. It's a "method" question, meaning if you show your steps clearly, you can get most of the marks even if you make a small calculation error. Keep practicing your expansions, and you'll master this in no time!