Solved Exercises on Differentiability and Continuity in Differential Calculus

Master the relationship between differentiability and continuity through these 5 detailed exercises with visual representations and step-by-step solutions.

Solution: Exercises 1 to 3
1 Differentiable implies continuous
Exercise 1
Prove that if \(f(x) = x^2\) is differentiable at \(x = 2\), then it is also continuous at \(x = 2\).
Definition:

Key theorem: If a function is differentiable at a point, then it must be continuous at that point. This is a fundamental relationship in calculus.

Proof Method:
  1. First, verify that \(f(x) = x^2\) is differentiable at \(x = 2\)
  2. Then, verify that \(f(x) = x^2\) is continuous at \(x = 2\)
  3. Show that differentiability leads to continuity
Function
\(f(x) = x^2\)
At x=2
\(f(2) = 4\)
Derivative
\(f'(2) = 4\)
Step 1: Verify differentiability at \(x = 2\)

Find the derivative: \(f'(x) = 2x\)

At \(x = 2\): \(f'(2) = 2(2) = 4\)

Since the derivative exists and is finite, \(f(x)\) is differentiable at \(x = 2\).

Step 2: Verify continuity at \(x = 2\)

Check if \(\lim_{x \to 2} f(x) = f(2)\):

\(\lim_{x \to 2} x^2 = 4\) (by direct substitution)

\(f(2) = 2^2 = 4\)

Since \(\lim_{x \to 2} f(x) = f(2) = 4\), the function is continuous at \(x = 2\).

Step 3: General proof of the theorem

If \(f\) is differentiable at \(c\), then \(f'(c) = \lim_{h \to 0} \frac{f(c+h) - f(c)}{h}\) exists.

Then: \(\lim_{h \to 0} [f(c+h) - f(c)] = \lim_{h \to 0} \left[\frac{f(c+h) - f(c)}{h} \cdot h\right]\)

\(= \lim_{h \to 0} \frac{f(c+h) - f(c)}{h} \cdot \lim_{h \to 0} h = f'(c) \cdot 0 = 0\)

Therefore: \(\lim_{h \to 0} f(c+h) = f(c)\), which means \(f\) is continuous at \(c\).

Step 4: Conclusion

This confirms the theorem: differentiability implies continuity.

Differentiable at x=2 ⇒ Continuous at x=2
Final answer:

Since \(f(x) = x^2\) is differentiable at \(x = 2\) (with \(f'(2) = 4\)), it must also be continuous at \(x = 2\). This verifies the fundamental theorem that differentiability implies continuity.

Applied rules:

• Differentiability implies continuity: If \(f'(c)\) exists, then \(f\) is continuous at \(c\)

• Product rule for limits: \(\lim(fg) = \lim f \cdot \lim g\) when both limits exist

• Direct substitution: For continuous functions, \(\lim_{x \to c} f(x) = f(c)\)

2 Continuous but not differentiable
Exercise 2
Show that \(f(x) = |x|\) is continuous at \(x = 0\) but not differentiable at \(x = 0\). This demonstrates that continuity does not imply differentiability.
Definition:

Counterexample: The absolute value function demonstrates that the converse of the differentiability-continuity theorem is false. A function can be continuous without being differentiable.

Function
\(f(x) = |x|\)
Left derivative
\(f'_-(0) = -1\)
Right derivative
\(f'_+(0) = 1\)
Step 1: Verify continuity at \(x = 0\)

\(f(0) = |0| = 0\)

\(\lim_{x \to 0} |x| = 0\) (both left and right limits equal 0)

Since \(\lim_{x \to 0} f(x) = f(0) = 0\), the function is continuous at \(x = 0\).

Step 2: Check differentiability at \(x = 0\)

Left-hand derivative: \(f'_-(0) = \lim_{h \to 0^-} \frac{|0+h| - |0|}{h} = \lim_{h \to 0^-} \frac{-h}{h} = \lim_{h \to 0^-} (-1) = -1\)

Right-hand derivative: \(f'_+(0) = \lim_{h \to 0^+} \frac{|0+h| - |0|}{h} = \lim_{h \to 0^+} \frac{h}{h} = \lim_{h \to 0^+} (1) = 1\)

Step 3: Compare left and right derivatives

Since \(f'_-(0) = -1 \neq f'_+(0) = 1\), the derivative does not exist at \(x = 0\).

The function has a sharp corner (cusp) at \(x = 0\), preventing the existence of a unique tangent line.

Step 4: Draw the conclusion

This shows that continuity does not imply differentiability. The function is continuous at \(x = 0\) but not differentiable there.

Continuous at x=0 but not differentiable at x=0
Final answer:

The absolute value function \(f(x) = |x|\) is continuous at \(x = 0\) but not differentiable there. This demonstrates that continuity is a necessary but not sufficient condition for differentiability.

Applied rules:

• One-way implication: Differentiable ⇒ Continuous, but not vice versa

• Corner points: Functions with sharp corners are typically not differentiable

• Left/right derivatives: If they differ, the derivative doesn't exist

3 Jump discontinuity
Exercise 3
For the function \(f(x) = \begin{cases} x^2 & \text{if } x < 1 \\ 3x - 2 & \text{if } x \geq 1 \end{cases}\), determine if it is continuous and differentiable at \(x = 1\).
Definition:

Jump discontinuity: A discontinuity where the left and right limits exist but are not equal, causing a "jump" in the function's value.

Left limit
\(\lim_{x \to 1^-} f(x) = 1\)
Right limit
\(\lim_{x \to 1^+} f(x) = 1\)
Function value
\(f(1) = 1\)
Step 1: Calculate the left-hand limit

For \(x < 1\), \(f(x) = x^2\):

\(\lim_{x \to 1^-} f(x) = \lim_{x \to 1^-} x^2 = 1^2 = 1\)

Step 2: Calculate the right-hand limit

For \(x \geq 1\), \(f(x) = 3x - 2\):

\(\lim_{x \to 1^+} f(x) = \lim_{x \to 1^+} (3x - 2) = 3(1) - 2 = 1\)

Step 3: Evaluate the function at \(x = 1\)

Since \(x = 1\) satisfies \(x \geq 1\), we use the second piece:

\(f(1) = 3(1) - 2 = 1\)

Step 4: Check continuity at \(x = 1\)

Since \(\lim_{x \to 1^-} f(x) = \lim_{x \to 1^+} f(x) = f(1) = 1\), the function is continuous at \(x = 1\).

Step 5: Check differentiability at \(x = 1\)

Left-hand derivative: \(f'_-(1) = \lim_{h \to 0^-} \frac{(1+h)^2 - 1}{h} = \lim_{h \to 0^-} \frac{2h + h^2}{h} = \lim_{h \to 0^-} (2 + h) = 2\)

Right-hand derivative: \(f'_+(1) = \lim_{h \to 0^+} \frac{3(1+h) - 2 - 1}{h} = \lim_{h \to 0^+} \frac{3h}{h} = \lim_{h \to 0^+} 3 = 3\)

Since \(f'_-(1) = 2 \neq f'_+(1) = 3\), the function is not differentiable at \(x = 1\).

Continuous at x=1 but not differentiable at x=1
Final answer:

The function is continuous at \(x = 1\) because the left and right limits equal the function value, but it is not differentiable at \(x = 1\) because the left and right derivatives are not equal. This shows a function can be continuous but not differentiable.

Applied rules:

• Continuity check: \(\lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x) = f(c)\)

• Differentiability check: \(f'_-(c) = f'_+(c)\)

• Piecewise functions: Check each condition separately for piecewise functions

Differentiability and Continuity Summary, Rules and Methods
\(\text{Differentiable} \Rightarrow \text{Continuous} \quad \text{but} \quad \text{Continuous} \not\Rightarrow \text{Differentiable}\)
Fundamental Relationship
Differentiable
\(f'(c)\) exists
⇒ Continuous
Continuous
\(\lim_{x \to c} f(x) = f(c)\)
⇏ Differentiable
Limit exists
\(\lim_{x \to c} f(x)\) exists
⇏ Continuous
Key definitions:

Differentiable at \(c\): The derivative \(f'(c) = \lim_{h \to 0} \frac{f(c+h) - f(c)}{h}\) exists and is finite.

Continuous at \(c\): \(\lim_{x \to c} f(x) = f(c)\) (the limit exists and equals the function value).

Jump discontinuity: A discontinuity where the left and right limits exist but are not equal.

Removable discontinuity: A discontinuity where the limit exists but does not equal the function value.

Infinite discontinuity: A discontinuity where at least one of the one-sided limits is infinite.

Complete methodology:
  1. Check continuity: Verify that \(\lim_{x \to c} f(x) = f(c)\)
  2. Check differentiability: Verify that \(\lim_{h \to 0} \frac{f(c+h) - f(c)}{h}\) exists
  3. For piecewise functions: Check each piece separately and examine boundary points
  4. Identify the relationship: Understand the one-way implication between differentiability and continuity
Tip 1: Differentiability is the stronger condition; if a function is differentiable at a point, it automatically satisfies continuity.
Tip 2: Use the contrapositive: if a function is not continuous, it cannot be differentiable.
Tip 3: Look for corners, cusps, or vertical tangents as indicators of non-differentiability.
Tip 4: Jump discontinuities, infinite discontinuities, and removable discontinuities all prevent differentiability.
Common errors: Assuming continuity implies differentiability, forgetting to check both sides of derivatives for piecewise functions, misapplying the chain of implications.
Exam preparation: Practice identifying the weakest condition satisfied, work with piecewise functions, and understand geometric interpretations of each property.
Fundamental Relationships:

• Differentiable ⇒ Continuous: If \(f\) is differentiable at \(c\), then \(f\) is continuous at \(c\)

• Converse is false: Continuous does not imply differentiable

• Contrapositive: If not continuous, then not differentiable

Solution: Exercises 4 to 5
4 Cusp point
Exercise 4
Analyze the function \(f(x) = x^{2/3}\) at \(x = 0\). Determine if it is continuous and differentiable at this point.
Definition:

Cusp point: A point where a function is continuous but has a vertical tangent, causing the derivative to approach infinity.

Function
\(f(x) = x^{2/3}\)
At x=0
\(f(0) = 0\)
Derivative
\(f'(x) = \frac{2}{3}x^{-1/3}\)
Step 1: Check continuity at \(x = 0\)

\(f(0) = 0^{2/3} = 0\)

\(\lim_{x \to 0} x^{2/3} = 0\) (by direct substitution, as the function is defined at 0)

Since \(\lim_{x \to 0} f(x) = f(0) = 0\), the function is continuous at \(x = 0\).

Step 2: Find the derivative

Using the power rule: \(f'(x) = \frac{2}{3}x^{2/3 - 1} = \frac{2}{3}x^{-1/3} = \frac{2}{3x^{1/3}}\)

Step 3: Check differentiability at \(x = 0\)

At \(x = 0\), the derivative expression \(\frac{2}{3x^{1/3}}\) is undefined because the denominator equals zero.

Let's check the limit of the difference quotient directly:

\(f'(0) = \lim_{h \to 0} \frac{f(0+h) - f(0)}{h} = \lim_{h \to 0} \frac{h^{2/3} - 0}{h} = \lim_{h \to 0} \frac{h^{2/3}}{h} = \lim_{h \to 0} h^{-1/3}\)

Step 4: Evaluate the limit

For \(h > 0\): \(\lim_{h \to 0^+} h^{-1/3} = \lim_{h \to 0^+} \frac{1}{h^{1/3}} = +\infty\)

For \(h < 0\): \(\lim_{h \to 0^-} h^{-1/3} = \lim_{h \to 0^-} \frac{1}{h^{1/3}} = -\infty\)

Since the limit does not exist (approaches different infinities from each side), the function is not differentiable at \(x = 0\).

Step 5: Geometric interpretation

The function has a cusp at \(x = 0\), where the curve changes direction abruptly. The tangent line becomes vertical at this point.

Continuous at x=0 but not differentiable at x=0 (vertical tangent)
Final answer:

The function \(f(x) = x^{2/3}\) is continuous at \(x = 0\) but not differentiable there. The curve has a cusp at the origin, where the tangent line becomes vertical, causing the derivative to be undefined.

Applied rules:

• Power rule: \(\frac{d}{dx}[x^n] = nx^{n-1}\)

• Cusp detection: When derivative approaches infinity at a point

• Direct substitution: For continuous functions at the point of interest

5 Removable discontinuity
Exercise 5
For the function \(f(x) = \begin{cases} \frac{x^2 - 1}{x - 1} & \text{if } x \neq 1 \\ 3 & \text{if } x = 1 \end{cases}\), determine continuity and differentiability at \(x = 1\).
Definition:

Removable discontinuity: A discontinuity where the limit exists but does not equal the function value, which can be "removed" by redefining the function.

Simplified form
\(\frac{x^2 - 1}{x - 1} = x + 1\) for \(x \neq 1\)
Left limit
\(\lim_{x \to 1} f(x) = 2\)
Function value
\(f(1) = 3\)
Step 1: Simplify the function for \(x \neq 1\)

Factor the numerator: \(x^2 - 1 = (x+1)(x-1)\)

For \(x \neq 1\): \(f(x) = \frac{(x+1)(x-1)}{x-1} = x + 1\)

Step 2: Calculate the limit as \(x \to 1\)

\(\lim_{x \to 1} f(x) = \lim_{x \to 1} (x + 1) = 1 + 1 = 2\)

Step 3: Check continuity at \(x = 1\)

We have \(\lim_{x \to 1} f(x) = 2\) but \(f(1) = 3\).

Since \(\lim_{x \to 1} f(x) \neq f(1)\), the function is discontinuous at \(x = 1\).

This is a removable discontinuity because the limit exists but doesn't equal the function value.

Step 4: Check differentiability at \(x = 1\)

Since the function is not continuous at \(x = 1\), it cannot be differentiable there.

(Differentiability implies continuity, so discontinuity implies non-differentiability.)

Step 5: Analyze the geometric significance

The function has a "hole" at the point \((1, 2)\) and a separate point at \((1, 3)\), creating a jump in the graph.

Discontinuous at x=1 ⇒ Not differentiable at x=1
Final answer:

The function is discontinuous at \(x = 1\) because \(\lim_{x \to 1} f(x) = 2 \neq f(1) = 3\). Consequently, it is not differentiable at \(x = 1\). This is an example of a removable discontinuity that prevents differentiability.

Applied rules:

• Contrapositive reasoning: If not continuous, then not differentiable

• Factoring: To simplify rational functions with common factors

• Removable discontinuity: When limit exists but differs from function value

Detailed Course: Differentiability and Continuity
\(\text{Differentiable} \Rightarrow \text{Continuous} \nRightarrow \text{Differentiable}\)
Logical Relationship
Key definitions:

Differentiable at \(c\): The derivative \(f'(c) = \lim_{h \to 0} \frac{f(c+h) - f(c)}{h}\) exists and is finite. This requires the function to be continuous at \(c\) and to have a well-defined tangent line.

Continuous at \(c\): \(\lim_{x \to c} f(x) = f(c)\) (the limit exists and equals the function value). This means the function has no breaks, jumps, or holes at \(c\).

Logical relationship: Differentiability is a stronger condition than continuity. If a function is differentiable at a point, it must be continuous there, but continuity alone is not enough to guarantee differentiability.

Geometric interpretation: Differentiability means the function is "smooth" enough to have a unique tangent line, while continuity means the function has no breaks.

Complete methodology:
  1. Check differentiability: Compute the derivative using the definition or rules
  2. Verify continuity: Check if \(\lim_{x \to c} f(x) = f(c)\)
  3. Draw logical connections: Understand how these properties relate
  4. Identify counterexamples: Find cases where implications don't reverse
Tip 1: Differentiability is the strongest condition; if a function is differentiable at a point, it automatically satisfies continuity.
Tip 2: Use the contrapositive: if a function is not continuous, it cannot be differentiable.
Tip 3: Look for corners, cusps, or vertical tangents as indicators of non-differentiability.
Tip 4: Jump discontinuities, infinite discontinuities, and removable discontinuities all prevent differentiability.
Common errors: Assuming continuity implies differentiability, forgetting to check both sides of derivatives for piecewise functions, misapplying the chain of implications.
Exam preparation: Practice identifying the weakest condition satisfied, work with piecewise functions, and understand geometric interpretations of each property.
Logical Relationships:

• Differentiable ⇒ Continuous: If \(f\) is differentiable at \(c\), then \(f\) is continuous at \(c\)

• Continuous ⇏ Differentiable: Continuous does not imply differentiable

• Contrapositive: Not continuous ⇒ Not differentiable

Visual Representation: Differentiability vs. Continuity
Relationship Diagram
Visual representation of the logical relationship between differentiability and continuity:

Analysis: The chart shows the hierarchical relationship between these fundamental calculus concepts.

  • Differentiability is a stronger condition than continuity
  • Each property implies the next weaker one
  • The converses do not generally hold

Questions & Answers

Question: Why does differentiability imply continuity, but continuity not imply differentiability? What's the mathematical intuition behind this asymmetry?

Answer: The asymmetry comes from the fact that differentiability is a stronger condition than continuity.

Why differentiability implies continuity: If \(f'(c)\) exists, then the limit \(\lim_{h \to 0} \frac{f(c+h) - f(c)}{h}\) exists. For this limit to exist, the numerator \(f(c+h) - f(c)\) must approach 0 as \(h \to 0\), which means \(f(c+h) \to f(c)\), i.e., \(\lim_{x \to c} f(x) = f(c)\). This is exactly the definition of continuity.

Why continuity doesn't imply differentiability: Continuity only requires that the function values approach the same limit from both sides. It doesn't require that the function is "smooth" enough to have a tangent line. The function can have corners, cusps, or vertical tangents while still being continuous.

Think of it this way: continuity means no breaks in the graph, while differentiability means no sharp corners or breaks.

Question: Can you give me a geometric interpretation of why a function with a corner point cannot be differentiable?

Answer: Differentiability at a point means that the function has a unique tangent line at that point. Geometrically, this requires the function to be "locally linear" - if you zoom in enough, the curve should look like a straight line.

At a corner point:

  • There are infinitely many lines that could serve as "tangent lines" - one for each direction approaching the corner
  • The slope of the secant lines changes abruptly as you approach from different sides
  • The left-hand derivative and right-hand derivative exist but are different

For example, with \(f(x) = |x|\) at \(x = 0\): approaching from the left, the slopes are all -1; approaching from the right, the slopes are all +1. There's no consistent way to define a single tangent line.

The function needs to be "smooth" enough to have a unique tangent direction.

Question: How can I quickly determine if a function is differentiable at a point without going through the full definition?

Answer: Here are quick checks for non-differentiability:

  1. Discontinuities: If the function isn't continuous at the point, it can't be differentiable there
  2. Sharp corners: Like in \(f(x) = |x|\) at \(x = 0\)
  3. Cusps: Where the function has a sharp point, like \(f(x) = x^{2/3}\) at \(x = 0\)
  4. Vertical tangents: Where the derivative approaches ±∞

If none of these apply and the function appears smooth, it's likely differentiable. For polynomial functions, they're differentiable everywhere. For rational functions, they're differentiable wherever the denominator isn't zero.

The formal definition is needed only when the geometric intuition isn't clear or when dealing with more complex functions.

Question: Are there functions that are continuous everywhere but differentiable nowhere? That seems to contradict the connection.

Answer: Yes, such functions exist! The most famous example is the Weierstrass function: \(f(x) = \sum_{n=0}^{\infty} a^n \cos(b^n \pi x)\) where \(0 < a < 1\), \(b\) is a positive odd integer, and \(ab > 1 + \frac{3\pi}{2}\).

This function is continuous everywhere (by the Weierstrass M-test) but differentiable nowhere. This doesn't contradict our connection because:

  • Our connection says: differentiable ⇒ continuous (not the converse)
  • Continuity is necessary but not sufficient for differentiability
  • These exotic functions demonstrate that continuity doesn't guarantee differentiability

These functions are important in mathematical analysis as counterexamples, but they're not typical in applications. Most functions encountered in practice are differentiable except at isolated points.

Question: How do these connections apply in real-world applications, especially in physics and engineering?

Answer: These connections are fundamental in modeling real-world phenomena:

  • Position/velocity/acceleration: Position must be continuous (objects don't teleport), velocity is the derivative of position, so position must be differentiable for velocity to exist
  • Energy conservation: Energy functions are typically continuous, and their derivatives relate to forces
  • Heat transfer: Temperature distributions must be continuous, and heat flux depends on temperature gradients
  • Control systems: Smooth control inputs (differentiable) lead to continuous system responses

When modeling, engineers often assume differentiability because it allows for the use of differential equations. Discontinuities and non-differentiable points often correspond to physically significant events like collisions, phase changes, or switching behaviors.

Understanding these connections helps determine when mathematical models are valid and when special treatment of singular points is needed.