Q.An example of a function which is continuous everywhere but fails to be differentiable exactly at two points is __________.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Continuity Differentiability Relationship
How Continuity and Differentiability Are Related
Two properties describe how "well-behaved" a function is at a point. Continuity means the graph has no break there — you can draw through the point without lifting your pen. Differentiability means the graph is smooth there — it has one definite tangent line, so a well-defined slope f′(a). This concept is about the exact link between the two.
The theorem: If f is differentiable at x=a, then f is continuous at x=a.
Why differentiability forces continuity
If f′(a) exists, then
limx→a(f(x)−f(a))=limx→ax−af(x)−f(a)⋅(x−a)=f′(a)⋅0=0.
So limx→af(x)=f(a), which is exactly continuity at a. A curve that has a tangent cannot also have a jump — a break would send the difference quotient to infinity and the derivative would not exist.
The converse is FALSE
Continuity does not guarantee differentiability. A graph can be unbroken yet still have a sharp corner, and a corner has no single tangent.
The classic counterexample is f(x)=∣x∣ at x=0. It is continuous there (limx→0∣x∣=0=f(0)), but the slope from the left is −1 and from the right is +1. Since these disagree, f′(0) does not exist.
Putting it together
- Differentiable at a ⇒ continuous at a.
- Continuous at a ⇒ differentiable at a.
- Not continuous at a ⇒ not differentiable at a (the contrapositive of the theorem). …
We need a function that is continuous for all x but has exactly two "sharp corners." Each absolute-value term contributes one corner, so adding two of them at different places gives exactly two non-differentiable points.
Take f(x)=∣x∣+∣x−1∣.
- It is continuous everywhere (a sum of continuous functions).
- ∣x∣ has a corner only at x=0; ∣x−1∣ has a corner only at x=1. Away from those points both pieces are smooth, so f is differentiable there. …
A function such as f(x)=∣x∣+∣x−1∣ is continuous everywhere yet fails to be differentiable at exactly two points, x=0 and x=1.
The idea
Differentiability can fail where a continuous graph has a sharp corner: at a corner the slope coming from the left and the slope coming from the right disagree, so there is no single tangent. The absolute-value function ∣x∣ is the classic one-corner example (its corner is at x=0). To get exactly two corners, we add two absolute-value terms whose corners sit at two different places.
Step 1 — Build the function
Let
f(x)=∣x∣+∣x−1∣.
∣x∣ has its only corner at x=0; ∣x−1∣ has its only corner at x=1.
Step 2 — It is continuous everywhere
Each absolute-value function is continuous on all of R, and the sum of continuous functions is continuous. So f is continuous for every real x — the graph has no breaks or jumps.
Step 3 — Where differentiability fails
Write f piecewise:
f(x)=⎩⎨⎧−(x)−(x−1)=1−2x,(x)−(x−1)=1,(x)+(x−1)=2x−1,x<0,0≤x≤1,x>1.
- At x=0: the left slope is −2, the right slope is 0. They differ, so f′(0) does not exist. …
Method: Building a Function That Is Continuous Everywhere but Non-Differentiable at Chosen Points
This method solves "construct an example" questions that ask for a function with a prescribed continuity/differentiability profile — continuous on all of R but with corners (non-differentiable points) at exactly the locations you choose.
Steps
Step 1: Know your building block
The function ∣x−c∣ is continuous everywhere and has exactly one corner, at x=c. Its left-hand derivative there is −1 and its right-hand derivative is +1; away from x=c it is a straight line (slope −1 or +1), so it is differentiable everywhere except that single point.
Step 2: Stack one building block per required corner
To get corners at n prescribed points c1,c2,…,cn, add one absolute-value term per point:
f(x)=∣x−c1∣+∣x−c2∣+⋯+∣x−cn∣.
Step 3: Confirm continuity
Each ∣x−ci∣ is continuous on R, and a finite sum of continuous functions is continuous (algebra of continuous functions). So f is automatically continuous everywhere — no extra work needed.
Step 4: Confirm the corners land exactly where intended …
Common Mistakes
Mistake 1: Reaching for a single absolute-value term
A student often writes f(x)=∣x∣ or f(x)=∣x−1∣ and thinks shifting it satisfies "exactly two points." Why it's wrong: a lone term like ∣x−a∣ has exactly ONE corner, at x=a — one term can never produce two non-differentiable points on its own. Correct approach: you need two separate absolute-value terms, each contributing its own corner at a different location, e.g. ∣x∣+∣x−1∣.
Mistake 2: Forgetting to justify continuity, not just assume it
Students state "it's continuous" without reasoning. Why it's wrong: continuity has to be argued (here, as a sum of continuous absolute-value functions) — with a different construction (e.g. involving a quotient), continuity can actually fail and must be checked, not assumed. Correct approach: always name why the sum is continuous (sum of continuous functions is continuous) rather than treating it as automatic.
Mistake 3: Sign errors in the piecewise slopes …
- TG EAPCET 2021Set eng-2021-08-04-FN1 markMCQQ.Consider the following statements.a) If a function is differentiable at a point ‘p’ then it is not continuous at ‘p’b) If a function is not continuous at x=a, then it is not differentiable at x=ac) If f(x)=∣x∣ then f(x) is not differentiable but continuous on Rd) If f(x)=x−⌊x⌋, then f′(1)=1 Which of the above statements are (is) correct? (A) Only(b) (B)(b) and(c) (C) Only(c) (D)(c) and (d)
›Reveal solutionSolution
Differentiability implies continuity, so a function cannot be differentiable but discontinuous; the converse is false. Statement (b) is correct, (c) is correct, (d) is false. The correct option is (B).
The core idea here is the relationship between continuity and differentiability. If a function is differentiable at a point, it must be continuous there — but a continuous function need not be differentiable. This asymmetry is the key to checking each statement.
Let’s examine them one by one.
-
Statement (a): “If a function is differentiable at a point ‘p’ then it is not continuous at ‘p’.”
This is the exact opposite of the truth. Differentiability at a point implies continuity at that point. So (a) is false.
-
Statement (b): “If a function is not continuous at x=a, then it is not differentiable at x=a.”
This is the contrapositive of “differentiable ⇒ continuous”. Since the original implication is true, its contrapositive is also true. A break in the graph means no tangent line can exist. So (b) is correct.
-
Statement (c): “If f(x)=∣x∣ then f(x) is not differentiable but continuous on R.”
∣x∣ is continuous everywhere — no jumps, no holes. At x=0, the left-hand derivative is −1 and the right-hand derivative is +1, so the derivative does not exist. Everywhere else it is differentiable. So the statement is correct.
-
Statement (d): “If f(x)=x−⌊x⌋, then f′(1)=1.” …
-
- TG EAPCET 2026Set eng-2026-05-11-FN1 markMCQQ.If a function f(x)=⎩⎨⎧∣x∣ax2+bwhen x≤−1 or x≥1when −1<x<1 is differentiable on R, then a+b= (A) 3 (B) −2 (C) −5 (D) 2
›Reveal solutionSolution
For a piecewise function to be differentiable on R, it must be both continuous and have matching derivatives at every boundary point. Matching values and slopes at x=−1 and x=1 gives a=−2 and b=3, so a+b=1.
The key idea is that differentiability on the whole real line forces two conditions at each point where the definition changes: the function must be continuous there (no jumps), and the left-hand and right-hand derivatives must be equal. Here the boundaries are x=−1 and x=1. The function is already smooth on each separate piece — the only possible trouble is at these two join points.
Let’s work through it systematically.
-
Write the pieces clearly.
For x≤−1 or x≥1, f(x)=∣x∣a.
Since ∣x∣=−x when x≤−1 (negative), and ∣x∣=x when x≥1 (positive), we can rewrite:
- For x≤−1: f(x)=−xa=−xa.
- For x≥1: f(x)=xa. For −1<x<1, f(x)=x2+b.
-
Continuity at x=1.
The left-hand limit (from inside (−1,1)) is limx→1−(x2+b)=1+b.
The right-hand limit (from x≥1) is limx→1+xa=a.
For continuity, these must be equal:
1+b=a.(1)
- Differentiability at x=1. The left-hand derivative: for x<1, f′(x)=2x, so at x=1− it is 2. The right-hand derivative: for x>1, f′(x)=−x2a, so at x=1+ it is −a. For differentiability, these must match:
2=−a⇒a=−2.
- Continuity at x=−1. The left-hand limit (from x≤−1) is limx→−1−(−xa)=−−1a=a. The right-hand limit (from inside (−1,1)) is limx→−1+(x2+b)=1+b. Continuity gives: a=1+b.(2) …
-
- TG EAPCET 2025Set eng-2025-05-04-FN1 markMCQQ.The set of all values of x for which f(x)=∣∣x∣−1∣ is differentiable is (A) R (B) R−{−1,1,0} (C) (0,∞) (D) {−1,1}
›Reveal solutionSolution
The function f(x)=∣∣x∣−1∣ is non-differentiable at points where the inner absolute value or the outer absolute value has a corner — these occur at x=−1,0,1. So the set of all x where it is differentiable is R−{−1,0,1}, which corresponds to option (B).
The key idea: absolute value functions create sharp corners (cusps) where their argument is zero. For f(x)=∣∣x∣−1∣, there are two layers of absolute values. The inner layer ∣x∣ has a corner at x=0. The outer layer ∣⋅−1∣ has a corner wherever its argument ∣x∣−1 equals zero — that is, when ∣x∣=1, so at x=1 and x=−1. At each of these three points, the function changes slope abruptly, so it is not differentiable there. Everywhere else, the function is a straight line (or a combination of straight-line pieces), hence differentiable.
Let’s walk through it step by step.
-
Break the function into pieces.
Start from the inside: ∣x∣ is x for x≥0 and −x for x<0.
So f(x)=∣∣x∣−1∣ becomes:
- For x≥0: f(x)=∣x−1∣.
- For x<0: f(x)=∣−x−1∣=∣−(x+1)∣=∣x+1∣ (since absolute value removes the minus sign).
-
Now break each piece further at the points where the inner expression changes sign.
- For x≥0: ∣x−1∣ is 1−x when 0≤x≤1, and x−1 when x≥1.
- For x<0: ∣x+1∣ is −(x+1) when x≤−1 (since x+1≤0 there), and x+1 when −1≤x<0.
So the full piecewise definition is:
f(x)=⎩⎨⎧−(x+1),x+1,1−x,x−1,x≤−1−1≤x<00≤x≤1x≥1
- Check differentiability at the boundary points.
A function is differentiable at a point if the left-hand derivative equals the right-hand derivative there. Let’s test each candidate:
- At x=−1: Left side (x→−1−): derivative of −(x+1) is −1. Right side (x→−1+): derivative of x+1 is +1. They differ, so not differentiable at x=−1.
- At x=0: Left side (x→0−): derivative of x+1 is +1. Right side (x→0+): derivative of 1−x is −1. They differ, so not differentiable at x=0.
- At x=1: Left side (x→1−): derivative of 1−x is −1. …
-
- TG EAPCET 2024Set eng-2024-05-09-FN1 markMCQQ.If f(x)=⎩⎨⎧x38−6x,x−1x−1,if 0<x≤1if x>1 is a real valued function, then at x=1, f is (A) continuous and differentiable (B) continuous but not differentiable (C) neither continuous nor differentiable (D) differentiable but not continuous
›Reveal solutionSolution
f(1)=2 but limx→1+f(x)=0, so f is discontinuous at x=1; discontinuity automatically rules out differentiability.
Concept. At a point where a piecewise function switches branches, check continuity first: f is continuous at x=1 iff limx→1−f(x)=f(1)=limx→1+f(x). Differentiability at a point requires continuity there, so a discontinuous function is automatically non-differentiable.
Step 1 — value and left limit. For 0<x≤1, f(x)=x38−6x. So
f(1)=8−6=2,limx→1−f(x)=2.
Step 2 — right limit. For x>1,
f(x)=x−1x−1=x−1x→1+0. …
- TG EAPCET 2025Set eng-2025-05-04-AN1 markMCQQ.The set of all values of x for which f(x)=∣∣x∣−1∣ is differentiable is (A) {−1,1} (B) R−{−1,1,0} (C) R (D) (0,∞)
›Reveal solutionSolution
The function f(x)=∣x∣−1 is differentiable everywhere except at the points where its graph has a corner: x=−1,0,1. Thus the set of differentiable points is R∖{−1,0,1}, which corresponds to option (B).
Concept and Intuition
The function involves two nested absolute values. Each absolute value creates a potential "corner" (a cusp or a sharp turn) where the derivative does not exist. The outer absolute value acts on ∣x∣−1, so we need to find where the inner expression changes sign and where the outer expression changes sign. The key is to break the domain into intervals where the expressions inside the absolute values have constant sign, then check differentiability at the boundaries.
Step-by-step reasoning
- Rewrite the function piecewise Start with the inner absolute value:
∣x∣={x,−x,x≥0,x<0.
Then f(x)=∣x∣−1 becomes:
- For x≥0: f(x)=∣x−1∣.
- For x<0: f(x)=∣−x−1∣=∣−(x+1)∣=∣x+1∣.
- Further break each piece
- On x≥0, ∣x−1∣ has a corner at x=1:
∣x−1∣={x−1,1−x,x≥1,0≤x<1.
- On x<0, ∣x+1∣ has a corner at x=−1:
∣x+1∣={x+1,−x−1,x≥−1 (but here x<0, so −1≤x<0),x<−1.
- Combine into a full piecewise definition
f(x)=⎩⎨⎧−x−1,x+1,1−x,x−1,x<−1,−1≤x<0,0≤x<1,x≥1.
- Check differentiability at the transition points
- At x=−1: Left derivative: for x<−1, f′(x)=−1. Right derivative: for −1<x<0, f′(x)=1. Since −1=1, the derivative does not exist at x=−1.
- At x=0: Left derivative: for −1<x<0, f′(x)=1. Right derivative: for 0<x<1, f′(x)=−1. Since 1=−1, the derivative does not exist at x=0. …
- TG EAPCET 2025Set eng-2025-05-02-AN1 markMCQQ.If the function g(x)={Kx+1,mx+2,0≤x≤33<x≤5 is differentiable, then K+m= (A) 4 (B) 2 (C) 6 (D) 0
›Reveal solutionSolution
For a piecewise function to be differentiable at the join point, it must be both continuous and have matching derivatives there. Solving those two conditions gives K=4 and m=2, so K+m=6.
We have a function defined by two different rules on either side of x=3. For it to be differentiable at that point, it must first be continuous there (no jump), and the slopes from left and right must agree. That gives us two equations in the unknowns K and m.
- Continuity at x=3 The left-hand limit as x→3− uses Kx+1:
limx→3−g(x)=K3+1=K4=2K.
The right-hand limit as x→3+ uses mx+2:
limx→3+g(x)=m(3)+2=3m+2.
For continuity, these must be equal:
2K=3m+2.(1)
- Differentiability at x=3 The derivative from the left: for 0≤x≤3, g(x)=Kx+1.
g′(x)=K⋅2x+11⇒g′(3−)=24K=4K.
The derivative from the right: for 3<x≤5, g(x)=mx+2.
g′(x)=m⇒g′(3+)=m.
For differentiability, these must match:
4K=m.(2)
- Solve the system Substitute m=4K from (2) into (1):
2K=3(4K)+2⇒2K=43K+2.
Multiply through by 4:
8K=3K+8⇒5K=8⇒K=58.… - TG EAPCET 2026Set eng-2026-05-09-FN1 markMCQQ.f(x) is an nth degree polynomial and a1,a2,...,an are distinct n zeros of f(x). g(x) is a polynomial having three zeros common with the zeros of f(x). Assertion (A) : ∣f(x)∣g(x)∣ is continuous and differentiable at all ai's. Reason (R) : limx→ax−a∣x−a∣ does not exist and limx→a∣x−a∣=0 The correct answer is (A) Both (A) and (R) are correct, (R) is the correct explanation of (A) (B) Both (A) and (R) are correct, (R) is not the correct explanation of (A) (C) (A) is correct, but (R) is not correct (D) (A) is not correct, but (R) is correct
›Reveal solutionSolution
The key idea is that the product ∣f(x)∣g(x) is continuous everywhere but not differentiable at the zeros of f unless g also vanishes there to "smooth out" the absolute value. Since g shares only three zeros with f, the product fails differentiability at the other n−3 zeros, making Assertion (A) false. Reason (R) is a true statement about limits, but it does not explain (A) because (A) is false. The correct option is (D).
We need to analyze the behavior of the function h(x)=∣f(x)∣g(x) at the zeros a1,a2,…,an of f. The question tests two things: continuity and differentiability of a product involving an absolute value, and the logical connection between the assertion and the reason.
Concept and intuition:
The absolute value function ∣x−a∣ is continuous everywhere but not differentiable at x=a (its graph has a sharp corner). Multiplying by another function can sometimes "fix" differentiability if that function also vanishes at a — because then the corner gets flattened. Here f(x) vanishes at all ai, so ∣f(x)∣ has corners at each ai. The factor g(x) may or may not vanish at those points. If g(ai)=0, the corner remains; if g(ai)=0, the product might become differentiable. Since g shares only three zeros with f, at the other n−3 zeros g is nonzero, so h is not differentiable there. Hence Assertion (A) is false.
Now let’s go step by step.
-
Continuity of h(x)=∣f(x)∣g(x) at any ai
Since f(ai)=0, we have ∣f(ai)∣=0, so h(ai)=0.
As x→ai, ∣f(x)∣→0 because f is continuous. Multiplying by g(x) (which is finite) gives h(x)→0.
Thus limx→aih(x)=h(ai), so h is continuous at every ai.
So far, the continuity part of Assertion (A) is true.
-
Differentiability of h at a zero ai
Differentiability requires the limit of the difference quotient to exist:
limx→aix−aih(x)−h(ai)=limx→aix−ai∣f(x)∣g(x).
Near ai, f(x)≈f′(ai)(x−ai) (since f(ai)=0 and f is a polynomial). So ∣f(x)∣≈∣f′(ai)∣∣x−ai∣.
Hence the difference quotient behaves like
x−ai∣f′(ai)∣∣x−ai∣g(x)=∣f′(ai)∣g(x)x−ai∣x−ai∣.
The factor x−ai∣x−ai∣ equals 1 for x>ai and −1 for x<ai.
Therefore, as x→ai, the limit exists if and only if g(ai)=0. Why? Because if g(ai)=0, the left-hand and right-hand limits are ∣f′(ai)∣g(ai) and −∣f′(ai)∣g(ai), which are different (nonzero). If g(ai)=0, then the product g(x)x−ai∣x−ai∣ might still have a limit if g vanishes to at least first order — but here g is a polynomial, so if g(ai)=0, then g(x)≈g′(ai)(x−ai), and the difference quotient becomes ∣f′(ai)∣g′(ai)∣x−ai∣, which tends to 0 from both sides. So differentiability holds exactly at those ai where g also vanishes.
- Apply to the given situation …
-
- TG EAPCET 2021Set eng-2021-08-06-AN1 markMCQQ.If f:R→R defined as f(x)=x2+x−2x3+2x2+x+2 (when x=−2) is continuous at x=−2, then f(−2)= (A) 5 (B) 3−5 (C) 2 (D) 53
›Reveal solutionSolution
The function has a removable discontinuity at x=−2; factoring and cancelling the common factor gives a simplified form whose value at x=−2 is the required f(−2), which is −35.
The core idea here is that a rational function can be discontinuous at a point where the denominator vanishes, but if the numerator also vanishes at that same point, the discontinuity might be removable — meaning we can redefine the function at that point to make it continuous. The value we assign is simply the limit of the function as x approaches that point.
For f to be continuous at x=−2, we need f(−2)=limx→−2f(x). So the problem reduces to finding that limit.
-
Check what happens at x=−2.
The denominator is x2+x−2. At x=−2:
(−2)2+(−2)−2=4−2−2=0.
The numerator is x3+2x2+x+2. At x=−2:
(−2)3+2(4)+(−2)+2=−8+8−2+2=0.
Both numerator and denominator are zero — this is a 00 indeterminate form, so the discontinuity is removable if the factors cancel.
-
Factor both polynomials.
Denominator: x2+x−2=(x+2)(x−1).
Numerator: try synthetic division by (x+2).
Coefficients: 1,2,1,2.
Bring down 1, multiply by −2 → −2, add to 2 → 0, multiply by −2 → 0, add to 1 → 1, multiply by −2 → −2, add to 2 → 0.
The quotient is x2+0x+1=x2+1, with remainder 0. So
x3+2x2+x+2=(x+2)(x2+1).
-
Cancel the common factor.
For x=−2 and x=1 (the other point where denominator vanishes),
f(x)=(x+2)(x−1)(x+2)(x2+1)=x−1x2+1.
- Take the limit as x→−2. …
-
- TG EAPCET 2025Set eng-2025-05-03-AN1 markMCQQ.If the real valued function f(x)=⎩⎨⎧xsinxcos3x−cosxpxlog(1+qsinx)if x<0if x=0if x>0 is continuous at x=0 then p+q= (A) 4 (B) −4 (C) 8 (D) −8
›Reveal solutionSolution
For continuity at x=0, the left-hand limit, right-hand limit, and f(0)=p must all be equal. Evaluating the limits gives p=−4 and q=−4, so p+q=−8, which corresponds to option (D).
The key idea is that a function is continuous at a point if the value of the function at that point equals the limit from both sides. Here, the function is defined piecewise, so we must compute the left-hand limit (as x→0−), the right-hand limit (as x→0+), and set them equal to p=f(0). This yields equations for p and q, and then we sum them.
- Left-hand limit (x→0−) For x<0, f(x)=xsinxcos3x−cosx. Use the identity cosA−cosB=−2sin(2A+B)sin(2A−B):
cos3x−cosx=−2sin(23x+x)sin(23x−x)=−2sin(2x)sin(x).
So the expression becomes:
xsinx−2sin(2x)sinx=x−2sin(2x),for x=0.
Now use sin(2x)∼2x as x→0:
limx→0−x−2⋅2x=−4.
Thus the left-hand limit is −4.
- Right-hand limit (x→0+) For x>0, f(x)=xlog(1+qsinx). As x→0, sinx∼x, so qsinx→0. Use the standard limit log(1+u)∼u for u→0:
log(1+qsinx)∼qsinx∼qx.
Hence:
limx→0+xlog(1+qsinx)=limx→0+xqx=q.
So the right-hand limit is q.
- Continuity condition …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.