IB Practice / Maths AA HL / Calculus
Free study notes · Maths AA HL · SL 5.1, AHL 5.12-5.13
Limits, continuity and the derivative from first principles: study notes
This topic is about what happens to a function as the input approaches a value: the idea of a limit, when a limit exists, and how limits define continuity, the gradient of a curve and the derivative itself. In the exam you are asked to find a derivative from first principles on a polynomial or a simple rational function (Paper 1, 4-6 marks, usually 'show that'), to evaluate an indeterminate limit with l'Hôpital's rule or a Maclaurin series (Paper 1 or 3, 4-7 marks, often two applications), and occasionally to decide whether a piecewise function is continuous or differentiable at a joining point (2-3 marks).
1. The informal idea of a limit; convergence and divergence
We write to mean that can be made as close as we like to the number by taking close enough to , from either side, without needing itself. The value may not exist at all: is undefined at but its limit there is , because the expression equals for every . When the limit is a finite number the limit converges. When the values grow without bound (for example as ) or oscillate without settling (for example as ) the limit diverges, and we say it does not exist; in the unbounded case we may write as a description, not as a value. Limits as work in the same way and are what justify horizontal asymptotes: because dividing numerator and denominator by gives . None of this vocabulary is in the booklet; learn it.
2. Continuity and differentiability at a point
A function is continuous at if three things hold: is defined, exists (the left-hand and right-hand limits agree), and the limit equals . Informally, the graph can be drawn through the point without lifting the pen. A function is differentiable at if the gradient of the curve has a single well-defined value there, which requires the gradient approached from the left to equal the gradient approached from the right. Differentiability at a point implies continuity there, but the converse is false: is continuous at yet has a corner, with gradient on the left and on the right, so does not exist. The same happens at a cusp or where the tangent is vertical. For piecewise functions the exam test is mechanical: match the function values at the join for continuity, then match the derivatives of the two pieces at the join for differentiability. This definition is not in the booklet.
3. The derivative as a gradient and as a rate of change
The gradient of the chord joining and is the difference quotient . As the second point slides towards the first and the chord turns into the tangent line at ; the limit of the chord gradients is the gradient of the tangent, which is what we call . So is the gradient of the curve at , and the tangent there has equation . Equally, is the instantaneous rate of change of with respect to : if is displacement then is velocity, and the chord gradient is the average rate of change over the interval of length . Notation: , and all mean the same thing.
4. The derivative from first principles
The booklet gives . In a first-principles question you must (i) write this definition with the actual function substituted, (ii) expand and simplify the numerator so that every surviving term has a factor , (iii) cancel the , and (iv) take the limit explicitly, writing until the moment you set . For a polynomial such as , use , so the quotient is . For a simple rational function such as , combine the fractions first: , so the quotient is . Substituting before cancelling gives the meaningless , which is exactly why the limit is needed. In a 'show that' part the markscheme requires the simplified quotient and the limit statement before the printed answer (AG); quoting the power rule earns nothing.
5. Higher derivatives and notation
Differentiating again gives the second derivative, written or ; the third is or ; from the fourth onward use or . Note the position of the superscripts: is not . The second derivative is the rate of change of the gradient (and, when is displacement, of velocity, hence acceleration). Higher derivatives appear in this topic when l'Hôpital's rule is applied repeatedly and when Maclaurin coefficients are built. For with a positive integer, the pattern for (and for ) is worth recognising, and for every derivative multiplies by another .
6. L'Hôpital's rule
If has the form or (with finite or infinite), then provided the right-hand limit exists. Numerator and denominator are differentiated separately; you do not use the quotient rule. The rule is not in the booklet. Exam routine: substitute and state in words that the form is (this earns the R mark), differentiate top and bottom, substitute again. If the result is still indeterminate, say so and apply the rule a second time; if it is now a definite value, stop. Applying the rule to a form that is not indeterminate gives wrong answers, for example , not . Keep chain-rule factors: the derivative of is . Remember the standard result , which often saves a further application. Questions that say 'or otherwise' allow cancellation of a common factor, dividing through by the highest power for limits at infinity, or series.
7. Limits using Maclaurin series
The booklet lists the Maclaurin series of , , , and (series are the subject of 5.19). For a limit as , replace each function by enough terms of its series, simplify, and the lowest surviving powers of decide the limit. For example , so . Series are often quicker than two applications of l'Hôpital and are accepted as an alternative method unless the question prescribes the rule. Substitute or carefully into the booklet series and keep one more term than you think you need.
Formulas
| in the booklet | |
| continuous at : ; differentiable at additionally needs equal left and right gradients | learn it |
| L'Hôpital: if or then | learn it |
| , , | learn it |
| , , , , | in the booklet |
| Higher derivatives: , , | learn it |
Worked examples
Example 1
Let , . Using the definition of the derivative from first principles, show that . [6 marks]
Solution
- Write the definition with the function substituted: .
- Expand the polynomial part: .
- Combine the rational part over a common denominator: .
- The numerator is therefore , and every term contains a factor . Dividing by : .
- Take the limit explicitly: .
Answer: , as required (AG). The marks are for the substituted definition (M1), the expanded and combined numerator (A1 A1), the cancelled quotient (A1), the explicit limit (M1) and the final line (A1).
Example 2
(a) Use l'Hôpital's rule to determine the value of . [5 marks] (b) Find . [2 marks]
Solution
- (a) Substitute : numerator , denominator . The form is , so l'Hôpital's rule applies (R1).
- Differentiate numerator and denominator separately: and (keep the chain-rule factor 2). The limit becomes (A1).
- Substitute again: , still indeterminate, so the rule may be applied a second time (M1).
- Differentiate again: and , giving (A1).
- Substitute : . This is a definite value, so stop (A1). Check by series: and , so the quotient tends to .
- (b) As both and tend to infinity, so the form is (R1). Differentiating: (A1).
Answer: (a) . (b) .
Example 3
The function is defined by for and for , where . (a) Find the values of and for which is both continuous and differentiable at . [4 marks] (b) The function is defined by . State, with a reason, whether is continuous at and whether it is differentiable at . [2 marks]
Solution
- (a) Continuity at : the value from the left piece, , must equal the limit from the right, . So , that is (M1 A1).
- Differentiability at : the gradient of the left piece is , which is at ; the gradient of the right piece is . These must be equal, so (M1).
- Solve simultaneously: substituting into gives , so and (A1).
- Check: left value , right value ; left gradient , right gradient . The two pieces join smoothly.
- (b) is continuous at because and from both sides. It is not differentiable there because the gradient is for and for ; the graph has a corner, so the left and right gradients disagree and no single tangent exists (A1 for each conclusion with reason).
Answer: (a) , . (b) is continuous but not differentiable at because the graph has a corner there (left gradient , right gradient ).
Can you...
- Explain in one sentence what means, and give an example of a divergent limit?
- State the three conditions for continuity at a point and explain, with as the example, why continuity does not imply differentiability?
- Derive from first principles for a quadratic, a cubic and , writing the difference quotient, cancelling and taking the limit explicitly?
- Apply l'Hôpital's rule twice to a limit involving , or , stating the indeterminate form before each application and stopping when the value is definite?
- Evaluate the same limit with the booklet Maclaurin series, and use the form to justify a horizontal asymptote?
Common errors
- Setting in the difference quotient before cancelling, which produces ; always simplify until is a common factor of the numerator, cancel, and only then take the limit.
- Writing the answer from the power rule in a first-principles question; the markscheme awards marks only for the written-out quotient, the simplified algebra and the explicit limit statement.
- Applying l'Hôpital's rule when the form is not or ; substitute first, state the form in words (this is the R mark), and stop as soon as substitution gives a definite number.
- Differentiating the whole fraction with the quotient rule instead of differentiating numerator and denominator separately; l'Hôpital's rule compares with , not .
- Dropping chain-rule factors such as the in or the parameter in ; a lost factor in the first application doubles its damage in the second.
- Assuming a continuous piecewise function is automatically differentiable at the join; check the gradients of the two pieces separately, since a corner (as in ) is continuous but has no derivative.
Original questions and notes written by Pietro Meloni, PhD, from the IB syllabus. Not endorsed by or affiliated with the International Baccalaureate Organization. Found a mistake? Please tell me privately at pietro@pietromeloni.com. More questions on this topic: Calculus practice.
Initial assessment
Find out what is costing the marks.
Twenty minutes, one to one, online. No charge, no commitment.