From a secant to a tangent · Mathematics Class 11–12 | StemPy Lab
Course 20.2·Lesson 1 of 3
From a secant to a tangent
The slope of the secant through two points of a curve is a quotient of differences. When the second point moves towards the first, the secant turns into the tangent. The limit of the slopes is the derivative f′(a)=h→0limhf(a+h)−f(a)
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
explain the derivative as the limit of the slopes of secants;
find a derivative from the definition, for a power and for a square root;
differentiate any polynomial and write the equation of a tangent.
How fast is it going right now?
A car covers 100 km in two hours. Its average speed is 50 km/h. The speedometer needs more: it shows the speed at one instant. An instant has no length, so we cannot divide a distance by a time of zero. The way out is the limit. Take a very short time, work out the average speed over it, and see what number the averages approach.
The same idea gives the slope of a curve. A slope is easy for a straight line. For a curve, the slope changes from point to point, so we ask for the slope at a point.
The secant and the tangent
Let P=(a,f(a)) be a point of the graph. Let Q=(a+h,f(a+h)) be another point, a little to the right. The line through P and Q is a secant. Its slope is
hf(a+h)−f(a).
Now let Q slide along the curve towards P. Then h gets smaller and the secant turns. In the limit it becomes the tangent, the line that just touches the curve at P.
The graph of y = x squared from x = -0.5 to x = 4, in blue, with the fixed point P at (1, 1) in green. Four red secant lines pass through P and through points Q on the curve at x = 3, 2, 1.5 and 1.1, each marked with a red dot. Their slopes are labelled 4, 3, 2.5 and 2.1. A dashed green line through P, labelled tangent slope 2, is the line that the secants approach.
The definition
The derivative of f at a is the limit of the secant slopes:
f′(a)=h→0limhf(a+h)−f(a).
If the limit exists, we say that f is differentiable at a. Putting x=a+h gives the same limit in another form, f′(a)=x→alimx−af(x)−f(a). This form is the standard limit x−axn−an for f(x)=xn.
The derivative has several names. The slope of the tangent is called the gradient in the UK and the slope in the US. The symbols f′(x), dxdy and dxdf(x) mean the same thing. The meaning is a rate: how many units of y change for one unit of x.
Your first derivative, from the definition
Take f(x)=x2 and find f′(x).
Write the quotient: h(x+h)2−x2.
Expand the top: (x+h)2−x2=2xh+h2.
Divide by h: the quotient is 2x+h.
Let h→0: the limit is 2x.
So f′(x)=2x. At x=3 the tangent has slope 6.
The basic rules
The same method gives these results. Each one is a limit that you can check.
A constant. If f(x)=c, then f(a+h)−f(a)=0, so f′(x)=0.
A power. If f(x)=xn, then f′(x)=nxn−1. This is the power limit x−axn−an→nan−1 from the last course, and it works for fractions and negative n too.
A constant multiple.(cf)′=cf′.
A sum.(f+g)′=f′+g′.
For example, dxd(4x3−5x2+7x−2)=12x2−10x+7.
A square root by the definition. For f(x)=x the quotient is hx+h−x. Multiply the top and the bottom by x+h+x. The top becomes h, so the quotient is x+h+x1, and the limit is 2x1. This agrees with the power rule for n=21.
The tangent line
At the point (a,f(a)) the tangent has slope f′(a). Its equation is y−f(a)=f′(a)(x−a).
For y=x3 at a=2: f(2)=8 and f′(2)=3×4=12. The tangent is y−8=12(x−2), which is y=12x−16.
Where the Class 12 chapter goes further
Not every function has a derivative at every point. The graph of ∣x∣ has a corner at 0: the slopes of the secants are −1 on the left and 1 on the right, so the limit does not exist. The Class 12 chapter on continuity and differentiability studies this. It also adds the chain rule, and implicit and logarithmic differentiation, which let you differentiate sin2x and xx. This course stays with the definition and the basic rules.
Practise with new numbers
Try it in Python
The program prints the slope of the secant for f(x)=x2 between x=3 and x=3+h for smaller and smaller h. Then it does the same for x3 at x=2.
Common mistakes
Dividing by h=0. The quotient is defined for h=0. Simplify first, then let h→0.
Forgetting that the secant slope needs both points. The slope is f(a+h)−f(a) over h, not f(a+h) over h.
Writing f′(x) when you mean f′(a). The first is a function. The second is one number.
Lowering the power but forgetting the factor.dxdx5=5x4, not x4.
Remember these
f′(a)=h→0limhf(a+h)−f(a) is the slope of the tangent at x=a.
dxd(c)=0, dxdxn=nxn−1, (cf)′=cf′, (f+g)′=f′+g′.
The tangent at a is y−f(a)=f′(a)(x−a).
A corner means no derivative.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Use the definition to find the derivative of f(x)=3x2.
For f(x)=x2, find the slope of the secant through x=2 and x=2.1. Compare it with the slope of the tangent at x=2.
Differentiate 5x4−3x2+2x−7.
Find the equation of the tangent to y=x3 at x=2.
Find the derivative of x at x=9 from the definition or from the power rule.
Is f(x)=∣x∣ differentiable at x=0?
References
OpenStax, Calculus Volume 1, Chapter 3, sections 3.1 and 3.2 on defining the derivative and the derivative as a function.
NCERT, Mathematics Textbook for Class XI, Chapter 12, the sections on derivatives and the algebra of derivatives.
Enroll free in Derivatives from First Principles to the Product Rule
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.