MAT1051 · Week 5 · Introduction to the Derivative, the Product Rule and the Quotient Rule
The definition of the derivative, product and quotient rules
Computing the derivative from the limit definition, the tangent line, differentiability, the power rule, and the product and quotient rules. A 'Use the definition' question is almost certain on the midterm.
The derivative means “instantaneous rate of change” and “slope of the tangent line”. This week you learn two things: computing the derivative from the definition (as a limit) and computing it quickly with rules. On exams they are asked separately. If the question says “Use the definition”, an answer found with a rule gets no points. The key points:
Definition:f′(x)=limh→0hf(x+h)−f(x). It always gives 00, and you cancel h with algebra.
Tangent line:y−f(a)=f′(a)(x−a).
Write roots and fractions as powers first, then use the power rule.
The derivative of a product is not the product of the derivatives.(fg)′=f′g+fg′.
In the quotient rule, order matters:g2f′g−fg′.
The definition of the derivative
The derivative of f at the point a:
f′(a)=limh→0hf(a+h)−f(a)
The fraction is the slope of the secant line through the points a and a+h. As h goes to zero, the secant line turns into the tangent line. If the limit exists, f is differentiable at a.
Example 3 (root).f(x)=x. Multiply by the conjugate:
hx+h−x⋅x+h+xx+h+x=h(x+h+x)hh→02x1
PITFALL · setting h to zero too early. If you put h=0 before h has completely left the denominator, you get 00. Simplify first, then take the limit.
The derivative is also a function
When you put the variable x in place of a, f′(x) becomes a new function: it assigns to each point the slope at that point. That is why you can read the graph of the derivative from the graph of f:
if f is increasing, f′>0 (the graph is above the axis),
if f is decreasing, f′<0,
at a peak or valley of f there is a horizontal tangent, f′=0.
The exam question “which of the following graphs is the graph of f′?” is solved with these three sentences. In week 9 you will use the same idea in reverse and sketch the shape of f from the sign of f′.
There is also a difference between average and instantaneous change. The average rate of change on the interval [a,b] is b−af(b)−f(a), the slope of the secant. The instantaneous rate of change is f′(a). In physics, this is the difference between average velocity and the velocity at that moment.
Differentiability and continuity
Theorem: If f is differentiable at a, it is continuous at a. The converse is not true.
The function f(x)=∣x∣ is continuous at 0. But
limh→0+h∣h∣=1,limh→0−h∣h∣=−1
The one-sided derivatives differ, so f′(0) does not exist. The graph has a corner.
Typical places where the derivative does not exist: a corner, a cusp (for example x2/3 at 0), a vertical tangent (3x at 0), a point of discontinuity.
Differentiation rules
Rule
Formula
Constant
(c)′=0
Power rule
(xn)′=nxn−1, for every real n
Constant multiple
(cf)′=cf′
Sum/difference
(f±g)′=f′±g′
Product rule
(fg)′=f′g+fg′
Quotient rule
(gf)′=g2f′g−fg′
Example 4 (power rule).y=3x4−x2+53x2.
First write it as powers: y=3x4−2x−1+5x2/3. Then:
y′=12x3+2x−2+310x−1/3=12x3+x22+33x10
Example 5 (product).y=(2x+1)(x2−3).
y′=f′2(x2−3)+(2x+1)g′2x=2x2−6+4x2+2x=6x2+2x−6
Example 6 (quotient).y=x+1x2.
y′=(x+1)22x(x+1)−x2⋅1=(x+1)2x2+2x
To remember the quotient rule: “bottom times derivative of top, minus top times derivative of bottom, over bottom squared”.
Where do the rules come from?
The power rule comes from applying the binomial expansion to the definition: (x+h)n=xn+nxn−1h+(…), where the part in parentheses contains terms with h2 and higher powers. When the difference is divided by h, nxn−1 remains, and every other term goes to zero because it contains h.
For the product rule, in the definition you add and subtract the term f(x+h)g(x):
As h→0 the first term becomes f(x)g′(x) and the second becomes g(x)f′(x). (The part f(x+h)→f(x) comes from a differentiable function being continuous.) The proof is rarely asked on exams, but this is the answer to “why not f′g′”.
For three factors the rule extends with the same logic: each time differentiate one factor and leave the others as they are.
(fgh)′=f′gh+fg′h+fgh′
Example 7. For y=x(x+1)(x−2), y′=(x+1)(x−2)+x(x−2)+x(x+1)=3x2−2x−2. To check, expand: y=x3−x2−2x, y′=3x2−2x−2. The same.
PITFALL · an unnecessary quotient rule. For y=xx3+1, instead of the quotient rule, divide first: y=x2+x−1, y′=2x−x−2. It is shorter and has less risk of error. If the denominator is a constant (5x2), never use the quotient rule.
Higher-order derivatives
y′′=dx2d2y is the derivative of the derivative. y′′′, y(4), … continue in this way.
Example 8.y=x4−2x3: y′=4x3−6x2, y′′=12x2−12x, y′′′=24x−12, y(4)=24, y(5)=0. For a polynomial each derivative lowers the degree by one; the (n+1)th derivative of a polynomial of degree n is zero.
Physical meaning: velocity and acceleration
If the position is s(t), the velocity is v(t)=s′(t) and the acceleration is a(t)=v′(t)=s′′(t). The sign of the velocity gives the direction: v>0 forward, v<0 backward. Speed is ∣v∣.
Example 9.s(t)=t3−6t2+9t (meters, seconds). v(t)=3t2−12t+9, a(t)=6t−12. At t=2, v=12−24+9=−3 m/s (moving backward), a=0. The object stops when v=0, that is 3(t−1)(t−3)=0⇒t=1 and t=3.
Tangent and normal lines
At the point x=a:
Tangent: y−f(a)=f′(a)(x−a)
Normal (perpendicular to the tangent): y−f(a)=−f′(a)1(x−a), if f′(a)=0
The question “where is the tangent horizontal?” is the equation f′(x)=0. For “tangent parallel to a given line”, you equate the slopes.
Example 10. At which point of the curve y=x2−3x+4 is the tangent parallel to the line y=5x−2?
Example 11. The normal line to the curve y=x at x=4. The point is (4,2). The tangent slope is 241=41 and the normal slope is −4. Normal: y−2=−4(x−4), that is y=−4x+18.
Common mistakes
Wrong thinking
Correct
(fg)′=f′g′
f′g+fg′
(gf)′=g′f′
g2f′g−fg′
The order fg′−f′g in the quotient
Derivative of the top first: f′g−fg′; if the order is reversed the sign flips
(x21)′=2x1
(x−2)′=−2x−3
(x)′=x/2
21x−1/2=2x1
(π2)′=2π
A constant, its derivative is 0
The question asks for the definition, but solving with a rule
If it says “Use the definition”, show it with the limit
Continuous implies differentiable
∣x∣ is continuous but has no derivative at 0
Putting f′(a) instead of f(a) in the tangent equation
The point comes from f(a), the slope from f′(a)
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
Question 1easy
Use the definition of the derivative to find f′(x) for f(x)=3x2−5x.
Show answer
f'(x) = 6x - 5
f(x+h)=3(x+h)2−5(x+h)=3x2+6xh+3h2−5x−5h. Difference: f(x+h)−f(x)=6xh+3h2−5h. Divide by h: 6x+3h−5. As h→0: f′(x)=6x−5.
Question 2medium
Use the definition of the derivative to find f′(x) for f(x)=x+21.
Show answer
f′(x)=−(x+2)21
hf(x+h)−f(x)=h1(x+h+21−x+21)=h1⋅(x+h+2)(x+2)(x+2)−(x+h+2)=(x+h+2)(x+2)−1. As h→0: −(x+2)21.
Question 3medium
Use the definition of the derivative to find f′(x) for f(x)=2x+1.
Show answer
f′(x)=2x+11
Multiply by the conjugate: h2x+2h+1−2x+1⋅2x+2h+1+2x+12x+2h+1+2x+1=h(2x+2h+1+2x+1)2h. The h cancels; as h→0: 22x+12=2x+11.
Question 4easy
Differentiate y=4x5−x23+6x.
Show answer
y′=20x4+x36+x3
First write it as powers: y=4x5−3x−2+6x1/2. Power rule: 20x4−3(−2)x−3+6⋅21x−1/2=20x4+6x−3+3x−1/2.
Question 5easy
Differentiate y=(x2+1)(x3−2x).
Show answer
y′=5x4−3x2−2
Product rule: y′=2x(x3−2x)+(x2+1)(3x2−2)=2x4−4x2+3x4−2x2+3x2−2=5x4−3x2−2. Check: if you expand first, y=x5−x3−2x, and its derivative is the same.
Find a and b so that f(x)={x2,ax+b,x≤1x>1 is differentiable at x=1.
Show answer
a = 2, b = -1
To be differentiable it must first be continuous: 1=a+b. Then the left and right derivatives must be equal: from the left (x2)′=2x→2, from the right (ax+b)′=a. So a=2, b=−1. (y=2x−1 is the tangent of the parabola at x=1.)
Question 11medium
Show that f(x)=∣x−3∣ is continuous but not differentiable at x=3.
Show answer
Left derivative -1, right derivative 1; they differ.
Continuity: limx→3∣x−3∣=0=f(3). Derivative: hf(3+h)−f(3)=h∣h∣. It is 1 as h→0+ and −1 as h→0−. The one-sided limits differ, so f′(3) does not exist. The graph has a corner at x=3.
Question 12hard
Find y′′ for y=x+1x and evaluate y′′(1).
Show answer
y′′=−(x+1)32, y′′(1)=−41
y′=(x+1)21⋅(x+1)−x⋅1=(x+1)21=(x+1)−2. y′′=−2(x+1)−3=−(x+1)32. At x=1: −82=−41.
Verification: All derivatives were checked with node (verify/MAT1051/05.mjs): the symbolic answer was compared at five different points with a numerical derivative computed by the central difference (h = 1e-5); second derivatives with the second-difference formula, one-sided derivatives with the one-sided limit of the difference quotient.
Review card
f'(x) = lim (h->0) [f(x+h) - f(x)] / h (from the definition: expand, cancel h, set h = 0)
Fraction f: common denominator Root f: multiply by the conjugate
Tangent line: y - f(a) = f'(a)(x - a) horizontal tangent: f'(x) = 0
Differentiable => continuous (the converse is FALSE: |x| is continuous, no derivative at 0)
Corner, cusp, vertical tangent, discontinuity -> no derivative
(x^n)' = n x^(n-1) for every real n; 1/x^2 = x^(-2), √x = x^(1/2)
(c)' = 0 (cf)' = c f' (f ± g)' = f' ± g'
PRODUCT: (fg)' = f'g + fg'
QUOTIENT: (f/g)' = (f'g - fg') / g^2 (order: derivative of the TOP first, minus!)
s(t) position -> v = s' velocity -> a = v' = s'' acceleration