5. Continuity and Differentiability
5.1 Chapter Opener: Introduction and Intuition of Continuity
Chapter 5
Continuity and Differentiability
Big idea: a curve with no breaks can be drawn without lifting the pen, and a curve with no sharp corners has a well-defined slope at every point. This chapter turns those two pictures into exact tests.
A speedometer needle slides smoothly from one reading to the next. It never jumps from 40 to 60 without passing through 50. That sliding, with no jumps, is the everyday picture of continuity. But smoothness is stricter: the path of a ball that bounces off a wall has no gap, yet at the bounce point it turns suddenly, so no single direction fits there. That sudden turn is the everyday picture of a point where a function is continuous but not differentiable.
This chapter makes both ideas exact. First you will test continuity with left-hand and right-hand limits, and use the test to find missing constants. Then you will build the derivative as the limit of secant slopes, see why a corner breaks it, and learn the rules that compute derivatives fast: the chain rule, and the derivatives of implicit, inverse trigonometric, exponential, logarithmic and parametric forms. The chapter closes with the second derivative, which measures how the slope itself changes.
- 5.1 sketches the two guiding pictures: no breaks, and no sharp corners.
- 5.2 turns "no breaks" into a three-part limit test, with holes, jumps and missing constants.
- 5.3 builds the derivative from secant lines, explains corners, and proves that a differentiable function must be continuous.
- 5.4 to 5.6 compute derivatives for exponential, logarithmic, implicit, inverse trigonometric and parametric forms.
- 5.7 differentiates twice, and reads velocity and acceleration from the two derivatives.
Think about the charge level of a phone battery during the day. It never jumps from 80 percent to 40 percent in one instant. It slides down through every value in between. We say the battery level is a continuous function of time.
Now think about the postage for a parcel. A parcel up to 500 grams costs 20 units, and a heavier parcel up to 1000 grams costs 35 units. The price graph below has a step at 500 grams: just below it the price is 20, just above it the price is 35, with nothing in between. The price jumps, so it is not continuous at 500 grams.
Step graph of parcel postage against weight. The price is 20 units for weights below 500 grams and 35 units from 500 grams upward. At 500 grams an open circle marks the missing value 20 and a filled circle marks the charged value 35.
Read the figure. The left piece ends at height 20 with an open circle, which means that value is not taken. The right piece starts at the filled point 35. Because the two heights differ, no single curve can pass through both: the pen must lift. That lift is the visible sign of discontinuity.
A quick test for a graph: can you draw it without lifting your pen? If yes, it is continuous. If you must lift the pen, there is a break. The smooth curve below passes the test everywhere, and it has something extra: no sharp corner anywhere.
Graph of a smooth curve that falls and then rises again with no break and no sharp corner. It can be drawn without lifting a pen.
Continuity is about no breaks. Differentiability is about no sharp corners. A function that is differentiable at a point has a clear tangent line there, and the slope of that tangent is the derivative. Every differentiable function is continuous, but as the bounced-ball picture shows, the reverse is false: a corner is unbroken yet has no single slope.
5.2 Continuity and Algebra of Continuous Functions
The pen test is good for pictures, but we also need a test that works from a formula. A function is continuous at a point when three things are true:
- [Concept] exists (the function has a value at );
- [Board Standard] the limit exists. This means the left-hand limit (coming from smaller ) and the right-hand limit (coming from larger ) are equal;
- [HOTS] that limit is equal to .
In one line: left-hand limit = right-hand limit = . If any one of the three fails, the function is discontinuous at .
| Check | Pass | Fail means |
|---|---|---|
| exists | A dot is drawn at | A hole: nothing drawn at |
| Left limit equals right limit | Both sides head to one height | A jump: the sides head to different heights |
| That height equals | The drawn dot sits on the approaching curve | A mismatch: the dot floats off the curve |
Read the table row by row. Each row is one of the three conditions. The middle column says what passing looks like, and the last column names the failure you see on a graph. All three rows must pass for continuity at the point.
Read the diagram from the top. It asks the three conditions in order. A "no" at the first box means a hole, a "no" at the second means a jump, and a "no" at the third means the drawn point floats off the curve. Only three "yes" answers in a row earn the label continuous.
Is continuous at ?
Solution. The value is . From the left, gives , gives , and gives : the values climb toward 9$. From the right, gives , gives , and gives : they fall toward 9$. So left limit = right limit = , and is continuous at 2. (The same works at every point: a polynomial is continuous everywhere.)
Graph of y = 3x squared minus 2x plus 1 near x = 2. The curve passes through (2, 9). Three marked points on each side slide toward (2, 9), and a dashed horizontal line at height 9 shows the common target.
Read the figure. The blue curve is the graph near . The orange dots on each side are the computed values from the solution, and they march toward the dashed line at height 9. The orange dot exactly on the curve at is the drawn value. Because both sides and the dot agree, the test passes.
Let for . At the formula gives , so does not exist. But for every we can cancel: , so . As approaches 3, approaches .
Graph of the line y = x + 3 with one point removed. The point (3, 6) is drawn as an open circle, showing a hole in the graph at x = 3.
The limit exists (it is 6), but does not exist, so condition 1 fails and is discontinuous at 3. This is called a removable discontinuity: if we decide that , the hole is filled and the function becomes continuous.
Define by At : the value is . From the left, approaches 3$. From the right, approaches 5 \neq 5$), so no single limit exists and is discontinuous at 1.
Graph with a jump at x = 1. For x less than 1 the graph is the line y = x + 2, which heads toward height 3 and ends in an open circle at (1, 3). For x at least 1 it is the line y = 2x + 3, which starts at the filled point (1, 5).
Read the figure. Follow the left piece with your eye: it climbs toward height 3 but the end circle is open, so 3 is never drawn. The right piece starts at the filled dot at height 5. The vertical gap between 3 and 5 is the jump, and it is why condition 2 fails.
Take the function from Example 2 but now set the missing value badly: for , and . The limit as is still , because limits only look at nearby points, not at itself. But , so condition 3 fails and is discontinuous at 3. The drawn dot at floats off the line. A limit ignores the value at the point; continuity does not.
For which value of is continuous at ?
Solution. From the right, approaches . From the left (and at ), equals . For continuity these must be equal: , so and . Check: with the left limit is , the right limit is and .
A function is continuous on an interval if it is continuous at every point of the interval. We usually do not check each point. We use these known facts:
- [Concept] Polynomials are continuous everywhere.
- [Board Standard] Rational functions (a polynomial divided by a polynomial) are continuous everywhere except where the denominator is 0.
- [Board Standard] , , and are continuous everywhere. is continuous for .
- [HOTS] is continuous except where .
Example 6. Is continuous at 5? The value is . From the left the limit is and from the right it is . All three agree, so is continuous at 5. It has a corner there, but no break. Corners break smoothness, not continuity.
Example 7. Let for . We can show that (a famous limit). So to make continuous at 0 we must define . This fills the hole exactly as in Example 2.
Big functions are built from small ones. The next rules tell us that if the small parts are continuous, so is the big function. They save us from checking limits point by point.
If and are continuous at , then these are also continuous at :
- [Concept] and ;
- [Board Standard] for any number ;
- [Board Standard] ;
- [HOTS] , provided ;
- [HOTS] the composite , provided is continuous at and is continuous at ("a continuous function of a continuous function").
These rules are true because limits behave well: the limit of a sum is the sum of the limits, the limit of a product is the product of the limits, and so on.
| Function | Continuous where | Why |
|---|---|---|
| Everywhere | Polynomial | |
| All except 2 and 3 | Bottom is 0 at and | |
| All except 4 and | Bottom is 0 at and | |
| Everywhere | Sine of a polynomial (composite rule) | |
| Everywhere | Exponential of a polynomial (composite rule) | |
| Everywhere | Log of a quantity that is always at least 1 |
Read the table as a toolkit. The first column names a family, the second says exactly where it is safe, and the third gives the one-line reason. When you meet a new formula, match it to a row instead of computing limits.
Is continuous at ? Both and are polynomials, so both are continuous. Their product is continuous. Check by value: , and the limit as is also .
Is continuous at ? The denominator is , which is not 0, so yes. Its value there is . At the denominator is 0, so is not defined and not continuous at 1.
Let . The top is a polynomial, so the only trouble is where the bottom is 0. Since , this happens at and (check: the bottom equals 0$ and 0$ there). So is continuous everywhere except at and .
Is continuous for all ? The inside, , is a polynomial, so it is continuous. The outside, , is continuous. A continuous function of a continuous function is continuous, so yes, for every real .
Is continuous at ? The exponent is a polynomial, hence continuous, and the exponential function is continuous, so the composite is continuous everywhere. Its value at is , and the limit is also .
5.3 Exercise 5.1: Continuity and Point Discontinuity
5.4 Differentiability and the Chain Rule for Composite Functions
Take the curve and the point on it. Choose a second point a small step to the right: . The straight line through the two points is a secant. Its slope is . For the slopes are . As shrinks, the second point slides toward the first, and the slopes settle down to 2$. The line through with slope 2$ is the tangent line.
Graph of y = x squared with the point (1, 1). Three secant lines through (1, 1) and the points at x = 2, 1.5 and 1.25 have slopes 3, 2.5 and 2.25. A dashed tangent line at (1, 1) has slope 2.
Read the figure. The three pale secants use second points further and further to the right, and their slopes drop from 3 toward 2. The dashed orange line is where they settle: the tangent at . Its slope, 2, is the derivative of at .
The number that the secant slopes settle down to is the derivative of at . In symbols:
If this limit exists, we say is differentiable at . The limit from the right () is the right-hand derivative; the limit from the left () is the left-hand derivative. The derivative exists exactly when both are equal.
Example 1. For at : , which approaches as . So .
Example 2. For at : start with one fraction, which approaches , that is . So .
Example 3. For at : the quotient is . Multiply top and bottom by : which approaches . So the derivative of at is .
Look at at 0. The step quotient is . For it equals 1, so the right-hand derivative is . For it equals , so the left-hand derivative is . They differ, so is not differentiable at 0.
Graph of y = absolute value of x, a V shape with a sharp corner at the origin. The left arm has slope -1 and the right arm has slope 1.
Read the figure. The left arm is a straight line of slope and the right arm is a straight line of slope 1. At the origin the two arms meet at a point, so is continuous there, but they point in different directions, so no single tangent line fits. That is why the two one-sided derivatives disagree.
Reason in plain words: write the change in as a product, . As , the fraction tends to (which exists) and the factor tends to 0, so the whole product tends to . That says : exactly continuity. The reverse is false: is continuous at 0 but not differentiable at 0.
Example 4 (smooth join). Let for and for . Both pieces give 1 at , so is continuous. Left-hand derivative: 2. They agree, so is differentiable at 1 and .
Example 5 (corner). Let for and for . Both pieces give 1 at , so is continuous. But the left-hand derivative is 2$ and the right-hand derivative is 3$. They differ, so is not differentiable at 1.
Two piecewise curves that both pass through (1, 1). The first continues with slope 2 and stays smooth. The second leaves with slope 3, forming a visible corner at (1, 1).
Read the figure. Up to both functions share the same parabola. After 1, the blue piece continues with the same slope the parabola had (2), so the eye sees one smooth curve. The red piece leaves more steeply (slope 3), so the eye sees a kink at . Matching value plus matching slope means differentiable; matching value with a different slope means only continuous.
Here are the basic derivatives and rules you will use all through this chapter. Learn the table first, then the four combining rules.
| Function | Derivative |
|---|---|
| (which is ) |
Read the table one row at a time. Each row pairs a function with its slope function. The last row writes the derivative of as , which is just shorter for .
| Rule | Formula | Mini example | Needs |
|---|---|---|---|
| Sum | differentiable | ||
| Product | differentiable | ||
| Quotient | |||
| Chain rule | Outside times inside, see Examples 1 to 4 | Both layers differentiable |
Read the table across each row: the name, the formula, a small worked case, and the condition in the last column. The quotient rule is the only one with a denominator condition, . The chain rule handles functions inside functions.
Read the diagram left to right for the function of Example 4. Each box names one layer and the rate it contributes. The arrows say "then multiply": the answer is the product of the three contributions shown underneath.
. Outside: something to the power 4, derivative . Inside: , derivative . So
. Outside: , derivative . Inside: , derivative . So
. Outside: square root, derivative . Inside: , derivative . So
means . Outside: cube, derivative . Middle: , derivative . Inside: , derivative 2. Multiply all three:
Product: . Then .
Quotient: . Then .
. Outside: cube, derivative . Inside: , derivative . So As a check, at the formula gives , and the slope of the curve there is indeed 24.
5.5 Derivatives of Implicit and Inverse Trigonometric Functions
Often and are tied together by an equation, such as , and is not written alone on one side. We say is an implicit function of . We can still find without solving for .
Method.
- [Concept] Differentiate both sides with respect to . Treat as a function of , so the derivative of is (chain rule), and the derivative of is (product rule).
- [Board Standard] Collect all terms that contain on one side.
- [HOTS] Solve for .
Find for . Differentiate: . So . At the point , which lies on the circle because , the slope is (that is ).
Graph of a circle of radius 5 centred at the origin, with the point (3, 4) marked. A dashed tangent line touches the circle at (3, 4) and has slope -0.75.
Read the figure. The closed curve is the circle. The orange dot is , and the dashed line just touches the circle there without crossing it. Its slope, , is exactly what implicit differentiation gave. Notice the tangent is at right angles to the radius drawn to .
Find if . Differentiate each term: . Collect: . So The point is on the curve () and the slope there is , which is .
For : . Collect: . So The point is on the curve (both sides equal 6.75) and the slope there is .
Find for . Differentiate: . So The point is on the curve () and the slope there is (about ).
Graph of the tilted-free ellipse x squared plus 3y squared equals 7, passing through (2, 1). A dashed tangent line at (2, 1) has slope about -0.67.
Read the figure. The blue oval is wider than it is tall, because the coefficient is larger. The dashed line touches it only at . Substituting , into gives , which matches the drawn slope.
The function answers the question "which angle has sine equal to ?". It is defined for . Its derivative follows from implicit differentiation.
Why the formula is true. Let . Then . Differentiate both sides with respect to : . So . For the principal value, , so . The other two formulas follow in the same way.
| Function | Derivative | Valid for |
|---|---|---|
| all real |
Read the table. The first two rows differ only by a minus sign. The third row works for every real and its slope is always positive but shrinks as grows.
Graph of y = inverse tangent of x, an S-shaped curve through the origin that flattens toward horizontal lines at plus and minus pi over 2. A dashed line y = x touches the curve at the origin, showing the slope there is 1.
Read the figure. The blue curve climbs steeply through the origin and then flattens on both sides. The dashed orange line touches it exactly at the origin: there the slope is 1, and the formula gives . Away from the origin the curve is flatter, matching the shrinking values of .
. Outside: , derivative . Inside: , derivative 2. So , that is .
. The derivative is , valid for .
Let for . The chain rule gives . Simplify: the bottom of the first fraction is . So the whole product is . This is the same as the derivative of . (That is because the two functions differ only by a constant, , on each side of .)
, valid for . Outside derivative , inside derivative 2. So At the inside is 0 and the slope is .
5.6 Exponential and Logarithmic Functions and Their Derivatives
Some quantities grow by multiplication: a population that doubles every hour, or money that earns interest on interest. The natural base for this growth is the number , which is about . The function is special because its slope at every point equals its height at that point. The table below uses computed values:
| (height) | slope of | |
|---|---|---|
Read the table down the rows. At the height is 1 and the slope is 1. At the height is about 2.718 and the slope is the same. Every row repeats the same message: height equals slope. That is why models anything whose growth rate is proportional to its current size.
In symbols, height equals slope: . The natural logarithm is the inverse function of : it answers "what power of gives ?". It is defined only for .
Graph of y = e to the power x, which rises steeply and passes through (0, 1), and y = ln x, which rises slowly and passes through (1, 0). The two curves are mirror images of each other in the dashed line y = x.
Read the figure. The dashed line is the mirror. Every point on the curve has a partner on the curve: swaps to . If you fold the paper along the dashed line, the two curves land on each other. That folding is what "inverse functions" means geometrically.
| Function | Derivative | Needs |
|---|---|---|
| all real | ||
| (for ) | ||
| (for ) | ||
| , , | ||
| (for ) |
Read the table one row at a time and note the condition in the last column. The first row is the height-equals-slope miracle. The second row needs a positive input. The last row extends the log rule to negative by wrapping in an absolute value.
Why : let . Then . Differentiate both sides with respect to : , so . This is implicit differentiation doing real work: we never solved for as an explicit formula in beyond the definition.
. Outside: . Inside: , derivative . So .
. Outside: , derivative . Inside: , derivative . So . Note the inside is always at least 1, so the log is defined for every real and there is no domain condition to check.
. Product rule: . Factorised, : the slope is 0 at , negative before it and positive after it.
, for where . Then (this is ). The condition matters: the logarithm refuses non-positive inputs.
. Use with and . So .
The curve crosses the -axis at . Its slope there equals its height, , so the tangent line is . The small figure below shows the curve hugging this line near the origin and pulling away further out.
Graph of y = e to the power x near the origin, with the dashed tangent line y = 1 + x touching the curve at (0, 1). The curve and the line are almost identical close to the origin.
5.7 Logarithmic Differentiation
Some functions are hard to differentiate directly: a variable raised to a variable power, or a long product and quotient. The logarithm turns powers into multiplication and products into sums. This gives a method called logarithmic differentiation.
Method.
- [Concept] Take the natural logarithm of both sides, and use log laws to simplify: , and .
- [Board Standard] Differentiate both sides with respect to . The left side gives .
- [HOTS] Multiply by and replace by its original expression.
Let for . Then . Differentiate: . So At , the slope is : the tangent line there is , as the figure below shows.
Graph of y = x to the power x for x between 0.15 and 2. The curve dips to a minimum near x = 0.37 and passes through (1, 1). A dashed line y = x touches the curve at (1, 1).
Read the figure. The curve falls from the left, bottoms out, then climbs steeply. At the dashed line just touches it: slope 1, exactly the value from the formula. Further right the curve outgrows every straight line.
Let where . Then . Differentiate: . So
Let . Take logarithms: . Differentiate: . So with replaced by the original product. Without logarithms this would need the product and quotient rules applied several times.
Let for . Then , so . Hence
Let for . Then , so . Hence Both the base and the exponent move with , so neither the power rule nor the exponential rule alone would work.
5.8 Parametric Derivatives and Second Order Derivatives
Sometimes and are both given by a third variable, called a parameter. A common example is time : at time a point is at the position . As changes, the point traces a curve. This way of describing a curve is called parametric form.
To find the slope we use the chain rule in this form:
The condition matters: if at some , the curve momentarily stops moving sideways there (it may have a vertical tangent or a sharp point), and the fraction is meaningless.
, . Then and . So At the slope is . (This agrees with the answer from the implicit method: at this , .)
, . Then and . For : At , the point is and the slope is . At both and are 0, so the formula does not apply: the curve has a sharp point at the origin.
Graph of the curve x = t squared, y = t cubed. It has a sharp point at the origin. The upper branch rises and the lower branch falls. A dashed tangent line at the point (1, 1) has slope 1.5.
Read the figure. For the curve climbs to the right; for it falls to the right; and the two halves meet at the origin in a sharp point, because sideways motion stops there (). Away from the origin the formula works: at the dashed tangent has slope 1.5.
A point on the rim of a wheel of radius 1 rolling along the ground moves as , , where is the angle turned. Then and . So This holds when . At the slope is .
Graph of a repeating arch-shaped curve called a cycloid, made by a point on the rim of a rolling wheel. Two arches are shown and the curve touches the ground between them at sharp points. A dashed tangent line of slope 1 is drawn at the point on the first arch where t is pi over 2.
Read the figure. Each arch starts and ends on the ground at a sharp point, where . Between those points the curve rises and falls smoothly. The dashed tangent at climbs at 45 degrees: slope 1.
Let and with . Then and . So At the point is and the slope is . Check by elimination: , so and . At this is . The parametric answer and the eliminated answer agree.
The derivative is itself a function, so we can differentiate it again. The result is the second derivative, written or . In words: it is the rate of change of the slope. If the first derivative is speed, the second derivative is acceleration.
. Then and Each step uses the power rule term by term: gives , gives , and the constant gives 0.
. Then and . Notice : differentiating twice returns the original function times a constant. This pattern runs through all of wave science.
. Then and . The second differentiation needs the product rule again: the derivative of is .
. Then . By the quotient rule,
For the upper half of the circle we found . Differentiate again with the quotient rule: . Since , this simplifies to which is the same as when . Because on the upper half, : the arch bends downward.
A cart moves along a straight track. Its distance from the start after seconds is metres. The first derivative is the velocity . The second derivative is the acceleration . At the acceleration is : at that moment the velocity stops decreasing and starts increasing. The velocities at are 9, 0, -3, 0, 9 metres per second, and the positions are 0, 4, 2, 0, 4 metres.
Graph of the cart position s = t cubed minus 6t squared plus 9t for t between 0 and 4. The curve rises to (1, 4), falls to (3, 0) and rises again to (4, 4). The two turning points are marked.
Read the figure. The cart starts at 0, reaches 4 metres at , rolls back to 0 at , then sets off forward again. The marked points are where the curve levels off: slope (velocity) 0. Between and the curve falls, so the velocity is negative there (-3 at ).
For and with , elimination gives . Then , matching the parametric formula, and At the second derivative is : the slope itself is increasing there.
5.9 Miscellaneous Worked Examples and Cumulative Problems
Differentiate . Product rule: . Factorised, : the slope is 0 at and , positive between them and negative outside.
Let for and . At 0, the difference quotient is . Because is always between and 1, this is squeezed between and , so it tends to . Hence .
For the rules give . As , the term keeps swinging between and 1, so has no limit at 0. The derivative exists at 0 but is not continuous there. Differentiable does not mean continuously differentiable.
Graph of y = x squared times sine of 1 over x, squeezed between the parabolas y = x squared and y = minus x squared. The oscillations shrink to nothing at the origin.
Read the figure. The two pale parabolas are walls: the wiggly blue curve can never escape them. Near the origin the walls pinch together, forcing the curve flat. That pinch is the squeeze argument in picture form, and it is why even though the slope formulas for never settle.
Find the slope of at (check: ). Differentiate: . Collect: . So . At : (that is ).
If and , then . Check: , so . The two methods agree.
Differentiate . Then , so . Therefore
Differentiate for . Quotient rule with and : The slope is 0 when , that is at : the curve climbs before and falls after it.
5.10 Chapter Summary and Differentiation Rules Matrix
Continuity asks "is there a break?", differentiability asks "is there a sharp corner?". A corner-free graph is always break-free, but a break-free graph can still have corners. Every rule in this chapter serves one of those two questions.
| Question | Tool | Condition to check |
|---|---|---|
| Continuous at ? | Three-part limit test | Left limit = right limit = |
| Differentiable at ? | Limit of the step quotient | Left and right derivatives equal |
| Derivative of layers? | Chain rule | Multiply by every inside derivative |
| tangled with ? | Implicit differentiation | Remember depends on |
| from a parameter? | ||
| Variable power or long product? | Logarithmic differentiation | Log inputs must be positive |
| How does the slope change? | Second derivative | Do not square the first derivative |
Read the table as a repair manual. The first column is the symptom, the second is the tool, and the third is the condition students most often forget. Before any calculation, point to the row you need and say its condition out loud.
- Continuity at : left-hand limit = right-hand limit = . Polynomials are continuous everywhere; rational functions are continuous wherever the denominator is not 0.
- Algebra of continuity: sums, differences, products, quotients (denominator not 0) and composites of continuous functions are continuous.
- Derivative: . Differentiable implies continuous; the reverse is false ( at 0).
- Rules: sum, product , quotient , and the chain rule .
- Implicit functions: differentiate both sides with respect to , treat as a function of , then solve for .
- Inverse trigonometric: , , .
- Exponential and logarithmic: , , .
- Logarithmic differentiation: take of both sides first; use it for and for long products and quotients.
- Parametric form: when .
- Second derivative: is the derivative of ; in motion it is acceleration.