The Essential Guide to Differentiation: Finding the Gradient Function (Unit P1)
Welcome to Differentiation! This is arguably one of the most important concepts you will learn in Pure Mathematics. Don't worry if it seems challenging at first; we will break down the complex ideas into simple, manageable steps.
In this chapter, you will learn how to find the exact steepness, or gradient, of a curve at any single point. This skill is crucial for understanding how things change—whether it’s the speed of a moving object, the rate of temperature increase, or optimizing volumes and areas (topics you will cover later!).
Key Goal of Differentiation: To move from finding the average rate of change (like the average speed of a journey) to finding the instantaneous rate of change (like your exact speed right now).
1. Understanding the Gradient of a Curve
The Problem with Curves
You already know how to find the gradient of a straight line (\(m = \frac{\text{change in } y}{\text{change in } x}\)). The gradient of a straight line is constant—it’s the same everywhere.
However, for a curve like \(y = x^2\), the gradient is constantly changing. At \(x=1\), the curve is less steep than it is at \(x=10\).
The Concept of the Tangent Line
To find the gradient of a curve at a specific point, P, we use the gradient of the line that just touches the curve at that point. This line is called the tangent.
- Imagine a tiny magnifying glass focusing on the point P. If you zoom in enough, the curve looks like a straight line.
- The gradient of this "straight line" (the tangent) is the gradient of the curve at that exact point.
Key Terminology:
- The process of finding the gradient function is called Differentiation.
- The result of differentiation is called the Derivative, or the Gradient Function.
Notation for the Derivative
If the original function is \(y = f(x)\), we use three common ways to write its derivative:
- \(\frac{dy}{dx}\) (Read as "dee-y by dee-x"): Used when starting with \(y =\) an expression in terms of \(x\).
- \(f'(x)\) (Read as "f prime of x"): Used when starting with \(f(x)\).
- \(y'\): Less common, but sometimes used for simplicity.
Did you know? The notation \(\frac{dy}{dx}\) represents the limit of the small change in y (\(\delta y\)) divided by the small change in x (\(\delta x\)) as the change in x approaches zero. It literally means "the rate of change of y with respect to x."
Quick Review: Differentiation gives us a new function, \(\frac{dy}{dx}\), which calculates the gradient of the original curve at any given x-value.
2. The Rules of Differentiation (The Power Rule)
The vast majority of differentiation in P1 involves applying a single, very powerful rule: the Power Rule.
Rule 1: The Power Rule (for \(ax^n\))
If \(y = ax^n\), where \(a\) is a constant coefficient and \(n\) is a real number (can be positive, negative, or a fraction), then the derivative is:
\[ \frac{dy}{dx} = nax^{n-1} \]
The Trick:
- Multiply: Bring the power \(n\) down and multiply it by the coefficient \(a\).
- Subtract: Reduce the original power \(n\) by 1.
Example 1: Basic Polynomial
Let \(y = 5x^3\)
- Multiply the power (3) by the coefficient (5): \(3 \times 5 = 15\).
- Reduce the power by 1: \(3 - 1 = 2\).
- Result: \(\frac{dy}{dx} = 15x^2\).
Rule 2: Differentiating Linear Terms (when \(n=1\))
If \(y = ax\) (which is \(ax^1\))
Applying the rule: \(\frac{dy}{dx} = 1 \times a x^{1-1} = ax^0\). Since \(x^0 = 1\), the derivative is just \(a\).
Example: If \(y = 7x\), then \(\frac{dy}{dx} = 7\). (Makes sense, the gradient of the straight line \(y=7x\) is 7.)
Rule 3: Differentiating a Constant (when \(n=0\))
If \(y = c\) (where \(c\) is any number, e.g., \(y=10\)). We can write this as \(y = 10x^0\).
Applying the rule: \(\frac{dy}{dx} = 0 \times 10 x^{0-1} = 0\).
Key Takeaway: The derivative of any constant is always zero. (A horizontal line has zero steepness.)
3. Preparing Complex Expressions for Differentiation
The power rule only works on terms in the form \(ax^n\). If your function looks complicated (involving roots, fractions, or brackets), you must rewrite it first.
The Golden Rule: Every term must be written as a coefficient multiplied by \(x\) raised to a single power.
Step-by-Step Examples: Rewriting Terms
- Roots (Surds): Convert roots to fractional powers.
- Fractions: Convert terms in the denominator to negative powers using \(x^{-n} = \frac{1}{x^n}\).
- Mixed Terms: Simplify before differentiating.
Initial: \(f(x) = \sqrt{x}\)
Rewrite: \(f(x) = x^{1/2}\)
Differentiate: \(f'(x) = \frac{1}{2}x^{(1/2 - 1)} = \frac{1}{2}x^{-1/2}\)
Initial: \(y = \frac{3}{x^4}\)
Rewrite: \(y = 3x^{-4}\)
Differentiate: \(\frac{dy}{dx} = (-4) \times 3 x^{(-4 - 1)} = -12x^{-5}\)
Initial: \(y = \frac{2x^3 - 4}{x}\)
Rewrite (Divide each term by x): \(y = \frac{2x^3}{x} - \frac{4}{x} = 2x^2 - 4x^{-1}\)
Differentiate Term-by-Term: \(\frac{dy}{dx} = (2 \times 2x^{2-1}) - (-1 \times 4x^{-1-1}) = 4x + 4x^{-2}\)
Differentiating Sums and Differences
If your function is a polynomial (a collection of terms added or subtracted), you differentiate each term separately and then add/subtract the results. This is sometimes called the Rule of Linearity.
Example 2: Full Polynomial Differentiation
Find \(\frac{dy}{dx}\) for \(y = 2x^4 - 3x^2 + 5x - 8\)
- \(2x^4\) differentiates to \(8x^3\).
- \(-3x^2\) differentiates to \(-6x^1\).
- \(+5x\) differentiates to \(+5\).
- \(-8\) (a constant) differentiates to \(0\).
Result: \(\frac{dy}{dx} = 8x^3 - 6x + 5\)
Common Mistake Alert!
The most common error in this chapter is differentiating too early!
If you see brackets, roots, or division (where the denominator is not a constant), expand or rewrite first!
Example: If \(y = x(x+2)\), you must expand to \(y = x^2 + 2x\) BEFORE you differentiate.
4. Applications: Tangents and Normals
The main purpose of the gradient function \(\frac{dy}{dx}\) is to find the equation of the tangent line at a specific point \((x_1, y_1)\) on the curve.
Step 1: Finding the Gradient (m)
To find the gradient \(m\) of the tangent at a given x-coordinate:
- Differentiate the original function \(y\) to find \(\frac{dy}{dx}\).
- Substitute the given \(x\)-coordinate into the expression for \(\frac{dy}{dx}\) to find the numerical gradient \(m_{tangent}\).
Step 2: Finding the Equation of the Tangent
Use the straight-line equation format: \(y - y_1 = m(x - x_1)\), where \(m\) is \(m_{tangent}\) and \((x_1, y_1)\) is the point of contact.
The Normal Line
The Normal is the line that passes through the point of contact \((x_1, y_1)\) and is perpendicular to the tangent line.
If the gradient of the tangent is \(m_{tangent}\), the gradient of the normal, \(m_{normal}\), is the negative reciprocal:
\[ m_{normal} = -\frac{1}{m_{tangent}} \]
To find the equation of the normal, use \(y - y_1 = m_{normal}(x - x_1)\).
Example 3: Finding Tangent and Normal
Find the equation of the normal to the curve \(y = x^2 + 3x - 1\) at the point where \(x=2\).
A. Find the y-coordinate:
Substitute \(x=2\) into \(y\):
\(y = (2)^2 + 3(2) - 1 = 4 + 6 - 1 = 9\).
The point is \((2, 9)\).
B. Find the Gradient Function:
\(y = x^2 + 3x - 1\)
\(\frac{dy}{dx} = 2x + 3\)
C. Find the Gradient of the Tangent (\(m_T\)):
Substitute \(x=2\) into \(\frac{dy}{dx}\):
\(m_{tangent} = 2(2) + 3 = 7\)
D. Find the Gradient of the Normal (\(m_N\)):
\(m_{normal} = -\frac{1}{m_{tangent}} = -\frac{1}{7}\)
E. Find the Equation of the Normal:
Using \(y - y_1 = m_N(x - x_1)\) with \(m_N = -\frac{1}{7}\) and \((2, 9)\):
\(y - 9 = -\frac{1}{7}(x - 2)\)
(Multiply by 7 to clear the fraction):
\(7(y - 9) = -1(x - 2)\)
\(7y - 63 = -x + 2\)
\(x + 7y - 65 = 0\) (Standard form)
Key Takeaway: Differentiation provides the slope of the tangent. The normal’s slope is the negative reciprocal of the tangent’s slope.
5. Applications: Increasing and Decreasing Functions (Optional Second Derivative)
We can use the gradient function, \(\frac{dy}{dx}\), to determine whether a curve is going uphill or downhill in a specific interval.
Identifying the Behavior of the Curve
- Increasing Function: A function is increasing when its gradient is positive (going uphill as you move left to right).
Condition: \(\frac{dy}{dx} > 0\) - Decreasing Function: A function is decreasing when its gradient is negative (going downhill).
Condition: \(\frac{dy}{dx} < 0\) - Stationary Point: The curve is momentarily flat (a peak or a trough).
Condition: \(\frac{dy}{dx} = 0\)
Analogy: If you are walking along a path and your height (y) is increasing, then the slope (\(\frac{dy}{dx}\)) must be positive.
The Second Derivative (\(\frac{d^2y}{dx^2}\))
The Second Derivative is simply the derivative of the first derivative. It measures the rate of change of the gradient itself (i.e., how quickly the curve is bending).
Notation:
If \(y = f(x)\), the second derivative is written as:
\[ \frac{d^2y}{dx^2} \quad \text{ or } \quad f''(x) \]
Process:
- Find the first derivative: \(\frac{dy}{dx}\). 2. Differentiate \(\frac{dy}{dx}\) to find the second derivative: \(\frac{d^2y}{dx^2}\).
Example 4: Second Derivative
Find \(\frac{d^2y}{dx^2}\) for \(y = 3x^4 - 2x + 5\)
- First Derivative:
\(\frac{dy}{dx} = 12x^3 - 2\) - Second Derivative (Differentiate the first result):
\(\frac{d^2y}{dx^2} = 36x^2\)
In the P1 curriculum, the second derivative is primarily introduced to understand the nature of stationary points (whether they are minimums or maximums), but the fundamental skill is finding the derivative correctly, which then allows you to analyze curve behavior.
Final Key Takeaways for P1 Differentiation
- Preparation is Everything: Always rewrite roots (\(x^{1/2}\)) and fractions (\(x^{-n}\)) before using the power rule.
- Power Rule: Multiply by the power, decrease the power by one (\(nax^{n-1}\)).
- Applications: \(\frac{dy}{dx}\) gives the gradient of the tangent.
- Normals: Use the negative reciprocal gradient for the normal line.
- Curve Behavior: \(\frac{dy}{dx} > 0\) means increasing; \(\frac{dy}{dx} < 0\) means decreasing.