CONTINUITY AND DIFFERENTIABILITY
Chapter 5: Continuity and Differentiability
Chapter 5
Continuity and Differentiability
Big idea: a graph that can be drawn without lifting the pen is continuous. A graph that is also smooth, with no sharp corner, can be given a slope at every point. That slope is the derivative.
5.1 Introduction
Think about the charge level of a phone battery during the day. It never jumps from 80% to 40% 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 price of posting a parcel. A parcel of 499 g may cost one price, and a parcel of 501 g may cost a higher price, with nothing in between. The price jumps. We say the price is not continuous at 500 g.
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.
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.
5.2 Continuity
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:
- exists (the function has a value at );
- the limit exists. This means the left-hand limit (coming from smaller ) and the right-hand limit (coming from larger ) are equal;
- 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 .
Is continuous at ?
Solution. The value is . When approaches 2 from the left, approaches 9. When approaches 2 from the right, also approaches 9. So left limit = right limit = , and is continuous at 2. (The same works at every point: a polynomial is continuous everywhere.)
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. The two limits are different (3 ≠ 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).
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 8 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:
- Polynomials are continuous everywhere.
- Rational functions (a polynomial divided by a polynomial) are continuous everywhere except where the denominator is 0.
- , , and are continuous everywhere. is continuous for .
- is continuous except where .
Example 5. Is continuous at 0? The value is . From either side the limit is : and . All three agree, so is continuous at 0. It has a corner there, but no break.
Example 6. Let for . We can show that (a famous limit). So to make continuous at 0 we must define .
- Find the left and right limits of at . Is it continuous at 3?
- What value should be given to at to make it continuous there?
Answers
- Both limits are 10 and . Yes, it is continuous.
- The limit is 10, so define the value at 5 as 10.
5.2.1 Algebra of continuous functions
Big functions are built from small ones. The next rules tell us that if the small parts are continuous, so is the big function.
If and are continuous at , then these are also continuous at :
- and ;
- for any number ;
- ;
- , provided ;
- 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.
Is continuous at ? Both and are polynomials, so both are continuous. Their product is continuous. Check by value: , and the limit as is also 5.
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 .
- Where is discontinuous?
- Is continuous for all real ?
Answers
- At and (the bottom is 0 there).
- Yes. It is a product of two continuous functions, and .
EXERCISE 5.1
- Show that is continuous at .
- The function is defined for . What value should be given to so that is continuous at 4?
- Is continuous at ?
- Is continuous at ?
- Find the value of for which is continuous at .
- Find and so that is continuous everywhere.
- Find all points where is discontinuous.
- Is continuous at ?
- Let for . Find the left and right limits at 0. Can be defined so that is continuous at 0?
- Where is discontinuous?
Answers
- , and the limit from both sides is 12. They agree, so is continuous at .
- (cancel to get , which tends to 8).
- Left limit 5, right limit 5, . All equal, so yes, it is continuous at 2.
- Left limit 4, right limit 2. They are different, so is not continuous at 1 (a jump of 2).
- , so .
- Continuity at 1 gives . Continuity at 3 gives . Subtracting, , so and .
- At and , where the bottom is 0.
- Yes. Both one-sided limits are 0 and 0, and .
- The left limit is -1 and the right limit is 1. They differ, so no value of can make continuous.
- At and , where is 0.
5.3. Differentiability
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 3, 2.5, 2.25. 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, 2.25. A dashed tangent line at (1, 1) has slope 2.
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 6 as . So .
Example 2. For at : approaches , which is . So .
Look at at 0. The step quotient is . For it equals 1, so the right-hand derivative is 1. 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.
Reason in plain words: a tangent line can only exist if the curve has no break there. The reverse is false: is continuous at 0 but not differentiable at 0.
Example 3 (smooth join). Let for and for . Both pieces give 1 at , so is continuous. Left-hand derivative: 2. Right-hand derivative: 2. They agree, so is differentiable at 1 and .
Example 4 (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.
- Use the definition to find for .
- Can a function be differentiable at a point where it is not continuous?
Answers
- , which approaches 5. So .
- No. Differentiable at a point always means continuous there.
5.3.1 Derivatives of composite functions
Here are the basic derivatives and rules you will use all through this chapter.
| Function | Derivative |
|---|---|
| (which is ) |
Rules for combining functions. If and are differentiable functions of :
- Sum:
- Product:
- Quotient: , where
- Chain rule: if and , then
. 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 .
EXERCISE 5.2
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
Answers
5.3.2 Derivatives of implicit 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.
- 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).
- Collect all terms that contain on one side.
- Solve for .
Find for . Differentiate: . So . At the point , which lies on the circle because , the slope is (that is -0.75).
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.
Find if . Differentiate each term: . Collect: . So The point is on the curve () and the slope there is -0.8, which is .
For : . Collect: . So The point is on the curve (both sides equal 6.75) and the slope there is -1.
- Find for at the point .
Answers
- , which at equals , that is . (Check: .)
5.3.3 Derivatives of inverse trigonometric functions
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 |
. 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 .)
EXERCISE 5.3
- Find if , and evaluate it at .
- Find if .
- Find if , and evaluate it at .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
Answers
- . At it equals (-0.6667).
- .
- . At it equals (0.1667).
5.4 Exponential and Logarithmic Functions
The number is about 2.71828. 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 | |
|---|---|---|
In symbols: . 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.
| Function | Derivative |
|---|---|
| (for ) | |
| (for ) | |
| (for ) |
Why : let . Then . Differentiate both sides with respect to : , so .
. Outside: . Inside: , derivative . So .
. Outside: , derivative . Inside: , derivative . So .
. Product rule: .
, for where . Then (this is ).
. Use with and . So .
EXERCISE 5.4
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
Answers
5.5. 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.
- Take the natural logarithm of both sides, and use log laws to simplify: , and .
- Differentiate both sides with respect to . The left side gives .
- Multiply by and replace by its original expression.
Let for . Then . Differentiate: . So
Let where . Then . Differentiate: . So
Let . Take logarithms: . Differentiate: . So with replaced by the original product.
Let for . Then , so . Hence
- Use logarithmic differentiation to find for .
Answers
- , so and .
EXERCISE 5.5
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
Answers
5.6 Derivatives of Functions in Parametric Forms
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:
, . 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 1.5.
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.
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 1.
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.
EXERCISE 5.6
- If and , find .
- If and , find .
- If and , find , and its value at .
- If and , find .
- If and , find (for ).
- If and , find .
Answers
- . At it equals (1.6667).
- .
5.7 Second Order Derivative
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.
. Then and
. Then and . Notice : differentiating twice returns the original function times a constant.
. Then and .
. 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 0: at that moment the velocity stops decreasing and starts increasing. The velocities at are 9, 0, -3, 0, 9 metres per second.
A second-derivative fact for parametric curves. If and with , then , so .
EXERCISE 5.7
- Find the second derivative of with respect to .
- Find the second derivative of with respect to .
- Find the second derivative of with respect to .
- Find the second derivative of with respect to .
- Find the second derivative of with respect to .
- If , show that .
Answers
- Here and . So .
Miscellaneous Examples
Differentiate . Product rule: .
Let for and . At 0, the difference quotient is . Because is always between and 1, this is squeezed between and , so it tends to 0. 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.
Find the slope of at (check: ). Differentiate: . Collect: . So . At : (that is -0.6).
If and , then . Check: , so . The two methods agree.
Differentiate . Then , so . Therefore
Miscellaneous Exercise on Chapter 5
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Differentiate with respect to .
- Find for , and evaluate it at .
- If and (with ), find .
- For which value of is for , , continuous at 0?
- Differentiate with respect to .
- Find the second derivative of with respect to .
- Find and so that is differentiable at .
Answers
- . At it equals (-0.125).
- .
- Continuity at 1 needs . Matching slopes needs (the slope of at 1 is 2; the slope of is , and the right-hand derivative with is 2). So and .
Summary
- 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 .