This is the lesson where calculus really begins. The derivative of a function gives the slope of its graph at any point, which is the same as its instantaneous rate of change. Finding it straight from the definition, using a limit, is called differentiation from first principles. You will see how the slope of a secant line becomes the slope of a tangent line, work through the method step by step for x², x³, 1/x and √x, and learn the notation used everywhere in calculus.
In this lesson you will learn
- How secant slopes approach the tangent slope
- The limit definition of the derivative, in two equivalent forms
- A four-step method for differentiating from first principles
- Derivatives of x², x³, 1/x and √x from the definition
- Derivative notation: f′(x), dy/dx, d/dx and y′, and the equation of a tangent line
You should be able to simplify a difference quotient and evaluate 0/0 limits. The HSC summary is in differentiation basics.
From Secant to Tangent
The slope of a straight line is rise over run. A curve has no single slope, but at each point it has a tangent line, the line that just touches it there and points the same way. How do we find its slope when we only know one point?
Take a second point on the curve, a small step h further along. The line through both points is a secant, and its slope is easy to compute. Then slide the second point towards the first by shrinking h.
Curve y = x², point P = (3, 9). Second point Q = (3 + h, (3 + h)²).
h Q Secant slope = ((3 + h)² − 9) / h
1 (4, 16) 7
0.1 (3.1, 9.61) 6.1
0.01 (3.01, 9.0601) 6.01
0.001 (3.001, 9.006001) 6.001
The secant slopes approach 6, the slope of the tangent at (3, 9). Algebra confirms it: ((3 + h)² − 9)/h = (6h + h²)/h = 6 + h, which tends to 6 as h → 0.
The Definition of the Derivative
The derivative of f at x = a is
f(a + h) − f(a)
f′(a) = lim ───────────────
h→0 h
provided this limit exists. If we leave the point general and write x instead of a, we get a new function, the derivative function f′(x), which gives the slope at every x.
An equivalent form uses a second point x instead of a step h:
f(x) − f(a)
f′(a) = lim ───────────
x→a x − a
Both say the same thing: the derivative is the limit of the average rate of change as the interval shrinks to nothing.
Why the limit is always 0/0 at first
At h = 0 the top is f(a) − f(a) = 0 and the bottom is 0. So every derivative from first principles starts as 0/0, and your job is to simplify until the h on the bottom cancels. That is why the limit techniques from the earlier lessons matter so much.
The Four-Step Method
- Write f(x + h) by putting (x + h) into every x.
- Subtract f(x) and simplify the top.
- Divide by h; every term on top should now have a factor of h to cancel.
- Let h → 0.
Worked Examples
Example 1: f(x) = x²
f(x + h) − f(x) = (x² + 2xh + h²) − x² = 2xh + h²
Divide by h: 2x + h
Let h → 0: f′(x) = 2x
Example 2: f(x) = x³
(x + h)³ = x³ + 3x²h + 3xh² + h³
f(x + h) − f(x) = 3x²h + 3xh² + h³
Divide by h: 3x² + 3xh + h²
Let h → 0: f′(x) = 3x²
Example 3: f(x) = 1/x (combine fractions)
f(x + h) − f(x) = 1/(x + h) − 1/x = (x − (x + h)) / (x(x + h)) = −h / (x(x + h))
Divide by h: −1 / (x(x + h))
Let h → 0: f′(x) = −1/x²
Example 4: f(x) = √x (rationalise)
(√(x + h) − √x)/h · (√(x + h) + √x)/(√(x + h) + √x)
= ((x + h) − x) / (h(√(x + h) + √x))
= 1 / (√(x + h) + √x)
Let h → 0: f′(x) = 1/(2√x) for x > 0
Look at the pattern: x² → 2x, x³ → 3x², x−1 → −x−2, x1/2 → ½x−1/2. Each time the power comes down in front and drops by one. That is the power rule, which you will prove and use in the power rule lesson.
Derivative Notation
| Notation | Read as | Who used it |
|---|---|---|
| f′(x) | “f prime of x” | Lagrange |
| dy/dx | “dee y by dee x” | Leibniz |
| d/dx (x²) = 2x | “the derivative of x² with respect to x” | Leibniz |
| y′ | “y prime” | Short form |
| ẋ | “x dot”, rate with respect to time | Newton (physics) |
dy/dx is not a fraction, but it behaves like one in many rules. It reminds you that the derivative came from Δy/Δx, a small change in y over a small change in x.
The Equation of a Tangent Line
Once you know the slope at a point, the tangent line follows from the point-slope form y − y₁ = m(x − x₁):
Tangent to y = x² at (3, 9):
slope m = f′(3) = 2·3 = 6
y − 9 = 6(x − 3)
y = 6x − 9
Common Mistakes
- Letting h = 0 too early. If you substitute before cancelling, you get 0/0 and are stuck.
- Losing f(x) in step 2. The top is f(x + h) − f(x), not just f(x + h).
- Expanding (x + h)² as x² + h². The middle term 2xh is the whole point.
- Mixing up the derivative and the tangent line. f′(3) = 6 is a number (the slope); y = 6x − 9 is a line.
- Treating dy/dx as d·y/d·x. It is one symbol; you cannot cancel the d’s.
Practice Exercises
Exercise 1. Differentiate f(x) = 3x² − x from first principles.
Show answer
f(x + h) − f(x) = 6xh + 3h² − h. Dividing by h gives 6x + 3h − 1, and as h → 0, f′(x) = 6x − 1.
Exercise 2. Differentiate f(x) = 1/(x + 1) from first principles.
Show answer
1/(x + h + 1) − 1/(x + 1) = −h / ((x + h + 1)(x + 1)). Divide by h and let h → 0: f′(x) = −1/(x + 1)².
Exercise 3. Find the equation of the tangent to y = x³ at x = 1.
Show answer
The point is (1, 1) and the slope is 3(1)² = 3. So y − 1 = 3(x − 1), giving y = 3x − 2.
Frequently Asked Questions
What is differentiation from first principles?
It means finding a derivative directly from its definition, as the limit of (f(x + h) – f(x)) / h as h approaches zero, instead of using shortcut rules. It shows why the rules work and is a standard exam question.
What is the difference between a secant and a tangent?
A secant line passes through two points on a curve and its slope is an average rate of change. A tangent line touches the curve at one point and its slope is the derivative there. The tangent is the limit of secants as the second point moves onto the first.
Summary
- The derivative is the limit of secant slopes: f′(x) = limh→0 (f(x + h) − f(x))/h.
- First-principles method: expand f(x + h), subtract f(x), divide by h, let h → 0.
- From the definition: (x²)′ = 2x, (x³)′ = 3x², (1/x)′ = −1/x², (√x)′ = 1/(2√x).
- f′(x), dy/dx, y′ and d/dx all mean the derivative.
- The tangent at (a, f(a)) is y − f(a) = f′(a)(x − a).
