Q.The function f(x)=e∣x∣ is
(A) continuous everywhere but not differentiable at x=0
(B) continuous and differentiable everywhere
(C) not continuous at x=0
(D) none of these
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 10-day free trial to unlock the full solution →Concept understanding — Differentiability of Absolute Value
Differentiability of the Absolute Value Function
Start with something familiar: the absolute value of x, written ∣x∣, is its distance from zero on the number line. So ∣3∣=3, ∣−5∣=5, and ∣0∣=0. Graphically, it looks like a V-shape — two straight lines meeting at the origin.
Differentiability is about whether a function has a well-defined slope (derivative) at a point. For smooth curves like x2 or sinx, the slope exists everywhere. But the absolute value function has a sharp corner at x=0 — and that corner is the whole story.
Intuition: Why the corner matters
Walk along y=∣x∣ from left to right. Approaching x=0 from the left, the slope is −1 (the line goes downward). Leaving x=0 to the right, the slope is suddenly +1 (the line goes upward). At x=0, there's no single slope — it changes abruptly. That's why ∣x∣ is not differentiable at x=0. Everywhere else — for x<0 and x>0 — the graph is a straight line with constant slope, so ∣x∣ is differentiable at every point except x=0.
A function must be continuous to be differentiable, but continuity alone isn't enough. The absolute value function is continuous at x=0 (no break), yet fails to be differentiable there because of the sharp corner.
The precise statement
Let f(x)=∣x∣. Then:
- For x>0: f(x)=x, so f′(x)=1.
- For x<0: f(x)=−x, so f′(x)=−1.
- At x=0: the derivative does not exist, because the left-hand and right-hand derivatives are different numbers.
f′(0)=limh→0h∣0+h∣−∣0∣=limh→0h∣h∣
This limit does not exist because:
- From the right (h→0+): h∣h∣=hh=1
- From the left (h→0−): h∣h∣=h−h=−1
Since the two one-sided limits differ, the two-sided limit does not exist.
A common mistake is to think that because ∣x∣ is continuous at x=0, it must be differentiable there. Continuity is necessary for differentiability, but not sufficient. The absolute value function is the classic counterexample.
The bigger picture …
The key idea is that ∣x∣ has a sharp corner at x=0, making it non-differentiable there, but the exponential function is smooth and preserves continuity.
-
Continuity: ∣x∣ is continuous everywhere, and et is continuous for all real t. The composition e∣x∣ is therefore continuous everywhere, including at x=0.
-
Differentiability at x=0: Check the left and right derivatives.
For x>0, f(x)=ex, so f′(x)=ex and f′(0+)=1.
For x<0, f(x)=e−x, so f′(x)=−e−x and f′(0−)=−1. …
The absolute value in the exponent creates a sharp corner at x=0: e∣x∣ is continuous everywhere (composition of continuous functions), but its left and right derivatives at 0 differ (−1 vs +1), so it is not differentiable at x=0. The correct option is (A).
The key to this problem is understanding how the absolute value function behaves inside another function. ∣x∣ is continuous everywhere but has a corner at x=0 — its derivative jumps from −1 to +1. When you wrap that inside eu, which is smooth and strictly increasing, the corner is preserved: the exponential stretches the values but does not smooth out the kink.
Let’s walk through the reasoning step by step.
-
Check continuity at x=0.
The function f(x)=e∣x∣ is a composition of ∣x∣ (continuous everywhere) and eu (continuous everywhere). A composition of continuous functions is continuous.
At x=0, we have f(0)=e0=1. The left-hand limit: limx→0−e∣x∣=e0=1. The right-hand limit: limx→0+e∣x∣=e0=1. All three match, so f is continuous at 0.
NoteContinuity is never the issue here — the absolute value function is continuous, and exponentiating preserves that.
-
Now test differentiability at x=0.
Differentiability requires that the left-hand derivative equals the right-hand derivative. For x<0, ∣x∣=−x, so f(x)=e−x. For x>0, ∣x∣=x, so f(x)=ex.
Compute the left-hand derivative at 0:
f−′(0)=limh→0−hf(0+h)−f(0)=limh→0−he−h−1.
Using the standard limit limt→0tet−1=1, with t=−h, we get:
f−′(0)=limh→0−he−h−1=limh→0−−he−h−1⋅(−1)=1⋅(−1)=−1.
Compute the right-hand derivative at 0:
f+′(0)=limh→0+heh−1=1.
Since f−′(0)=−1=1=f+′(0), the derivative does not exist at x=0. …
Method: Continuity and Differentiability of g(∣x∣) at x=0
Use this whenever a smooth function g is applied to ∣x∣, creating a possible corner at the origin.
Steps
Step 1: Establish continuity first, separately from differentiability.
∣x∣ is continuous everywhere, and if g is continuous everywhere (like g(u)=eu), the composition g(∣x∣) is continuous everywhere too — composition of continuous functions is continuous. This step usually settles quickly and rules out any 'discontinuous' option.
Step 2: Split into two smooth pieces using ∣x∣=x for x>0 and ∣x∣=−x for x<0.
f(x)={g(x),g(−x),x>0x<0
Step 3: Differentiate each piece using the chain rule, then take the limit of each formula as x→0 from its own side. …
Common Mistakes
Mistake 1: Differentiating e∣x∣ using the single formula e∣x∣⋅∣x∣x and then substituting x=0 directly.
Why it's wrong: ∣x∣x itself is undefined at x=0 (it jumps between −1 and +1), so plugging in x=0 gives a meaningless or misleading result instead of revealing the actual one-sided behaviour.
Correct approach: split into the two smooth pieces ex (for x>0) and e−x (for x<0), and evaluate the left-hand and right-hand derivatives separately using the limit definition at x=0.
Mistake 2: Assuming that because e∣x∣ is continuous everywhere, it must also be differentiable everywhere. …
Showing the 12 most recent of 19 on this concept.
- JEE Main 2026Set 2026-04-04-s14 marksQ.The number of points, at which the function f(x) = max{6x, 2 + 3x²} + |x − 1| cos|x² − 1/4|, x ∈ (−π, π), is not differentiable, is _____.
›Reveal solutionSolution
f splits into max{6x,2+3x²} (2 corners from a line crossing a parabola) plus |x−1|·cos(x²−1/4) (1 corner at x=1, since the even-cosine wrapper never itself creates a kink). Total non-differentiable points = 3.
Intuition: a sum is non-differentiable exactly where at least one summand is, unless two kinks coincide and cancel. Here the two possible kink sources — the max{} term and the |x−1|cos(...) term — never land on the same x, so we simply count each contribution.
Derivation:
- Non-differentiability of g(x)=max{6x,2+3x2}. A max of two differentiable functions is non-differentiable exactly where they cross with different slopes. Setting them equal:
6x=2+3x2⇒3x2−6x+2=0⇒x=66±36−24=1±31
Both roots (x≈0.423 and x≈1.577) lie in (−π,π). At each root the line's slope (6) differs from the parabola's slope (6x, which is ≈2.54 or ≈9.46 there), so both crossings are genuine corners: 2 points.
2. The cos∣x2−41∣ factor is a red herring. Cosine is even: cos(−u)=cos(u) for every u. Since ∣u∣ equals either u or −u:
cos∣x2−41∣=cos(x2−41)for all x,
which is smooth everywhere, so this factor never introduces a kink. …
- JEE Main 2026Set 2026-04-04-s24 marksQ.Let f(x) = { e^{x−1}, x < 0 ; x^2 − 5x + 6, x ≥ 0 } and g(x) = f(|x|) + |f(x)|. If the number of points where g is not continuous and is not differentiable are α and β respectively, then α + β is equal to __________
›Reveal solutionSolution
g has exactly 1 discontinuity (x=0) and 3 points of non-differentiability (x=0,2,3), so α+β=1+3=4.
Build g(x)=f(|x|)+|f(x)| by analyzing f(|x|) and |f(x)| separately in each region.
- f(|x|): since |x|≥0 always, this always uses the x≥0 branch: f(|x|) = |x|²−5|x|+6 = x²−5|x|+6.
- |f(x)| for x<0: f(x)=e^{x−1} > 0 always, so |f(x)|=e^{x−1}.
- |f(x)| for x≥0: f(x)=x²−5x+6=(x−2)(x−3), which is negative on (2,3) and non-negative on [0,2]∪[3,∞). So |f(x)| = x²−5x+6 on [0,2]∪[3,∞), and = −(x²−5x+6) on (2,3).
Assembling g(x) = f(|x|)+|f(x)|:
- x<0: f(|x|)=x²−5(−x)+6=x²+5x+6; |f(x)|=e^{x−1}. So g(x) = x²+5x+6+e^{x−1}.
- 0≤x≤2 or x≥3: f(|x|)=x²−5x+6=|f(x)|. So g(x) = 2(x²−5x+6).
- 2<x<3: f(|x|)=x²−5x+6, |f(x)|=−(x²−5x+6). So g(x)=0.
- Continuity at x=0: left limit = 0+0+6+e^{−1} = 6+1/e ≈6.37; right value g(0)=2(6)=12. Not equal → discontinuity at x=0.
- Continuity at x=2: left (from [0,2]): g(2)=2(4−10+6)=0; right (from (2,3)): limit is 0. Continuous.
- Continuity at x=3: left (from (2,3)): 0; right (x≥3 branch): g(3)=2(9−15+6)=0. Continuous.
So α (points of discontinuity) = 1 (only x=0). …
- JEE Main 2026Set 2026-04-08-s24 marksMCQQ.For the function f(x) = e^(sin|x|) - |x|, x ∈ R, consider the following statements : Statement I : f is differentiable for all x ∈ R. Statement II : f is increasing in (-π, -π/2). In the light of the above statements, choose the correct answer from the options given below : (A) Both Statement I and Statement II are true (B) Both Statement I and Statement II are false (C) Statement I is true but Statement II is false (D) Statement I is false but Statement II is true
›Reveal solutionSolution
Although |x| and sin|x| individually have a corner at 0, the specific combination e^{sin|x|}-|x| is differentiable at 0 because the leading |x| terms cancel; check monotonicity on (-π,-π/2) via the sign of the derivative.
Step-by-step:
- For x>0: f(x)=e^{sinx}-x, f'(x)=e^{sinx}cosx-1 → as x→0⁺, f' → 1·1-1 = 0.
- For x<0: f(x)=e^{sin(-x)}+x, f'(x)=-cos(x)e^{sin(-x)}+1 → as x→0⁻, f' → -1·1+1 = 0.
- Both one-sided derivatives at 0 equal 0, so f is differentiable at x=0 (and clearly differentiable elsewhere as a composition of smooth functions). Statement I is TRUE. …
- JEE Main 2026Set 2026-01-24-s24 marksMCQQ.Consider the following three statements for the function f : (0, infinity) -> R defined by f(x) = |log_e x| - |x - 1| : (I) f is differentiable at all x > 0. (II) f is increasing in (0, 1). (III) f is decreasing in (1, infinity). Then. (A) Only (I) and (III) are TRUE. (B) Only (II) and (III) are TRUE. (C) Only (I) is TRUE. (D) All (I), (II) and (III) are TRUE.
›Reveal solutionSolution
The two kinks at x=1 cancel exactly, so f is differentiable everywhere; and f turns out to be decreasing on both sides of x=1, not increasing on (0,1).
When two absolute-value terms share the same kink point, it's worth checking directly whether the one-sided derivatives there actually agree, rather than assuming non-differentiability.
- For 0<x<1: f(x)=−lnx−(1−x), so f′(x)=−x1+1=xx−1<0 (since x<1) — f is decreasing here, not increasing.
- For x>1: f(x)=lnx−(x−1), so f′(x)=x1−1=x1−x<0 (since x>1) — f is decreasing here too.
Both one-sided derivatives at x=1 →0
- As x→1−: f′(x)→11−1=0. As x→1+: f′(x)→11−1=0. Both limits agree (and match the value 0), so f is differentiable at x=1 too. …
- JEE Main 2025Set 2025-01-29-s24 marksMCQQ.Let the function f(x) = (x^2 - 1)|x^2 - ax + 2| + cos|x| be not differentiable at the two points x = α = 2 and x = β. Then the distance of the point (α, β) from the line 12x + 5y + 10 = 0 is equal to : (A) 5 (B) 2 (C) 4 (D) 3
›Reveal solutionSolution
cos∣x∣=cosx is smooth everywhere, so every non-differentiable point of f must be a root of the quadratic inside the modulus; pin down a from the known root x=2, then read off the other root.
- Note cos∣x∣=cosx for all real x (cosine is even), which is differentiable everywhere, so it contributes no kink.
- The only possible source of non-differentiability is ∣x2−ax+2∣, which fails to be differentiable at a (simple) root of g(x)=x2−ax+2.
- Given x=2=α is one such point, g(2)=4−2a+2=0⇒a=3. …
- JEE Main 2024Set 2024-01-30-s14 marksQ.If the function f(x)=⎩⎨⎧∣x∣1,ax2+2b,∣x∣≥2∣x∣<2 is differentiable on R, then 48(a+b) is equal to _____.
›Reveal solutionSolution
Impose continuity and differentiability of f at x=±2; the conditions give a and b, then evaluate 48(a+b).
For ∣x∣≥2, f(x)=1/∣x∣; for ∣x∣<2, f(x)=ax2+2b. By symmetry it suffices to match at x=2.
- Continuity at x=2: limx→2−f(x)=4a+2b must equal f(2)=21, so
4a+2b=21.
- Differentiability at x=2: left derivative =2axx=2=4a; right derivative of 1/x is −1/x2x=2=−41. Hence 4a=−41⟹a=−161. …
- JEE Main 2024Set 2024-01-31-s24 marksMCQQ.Consider the function f:(0,∞)→R defined by f(x)=e−∣logex∣. If m and n be respectively the number of points at which f is not continuous and f is not differentiable, then m+n is (A) 2 (B) 3 (C) 0 (D) 1
›Reveal solutionSolution
Remove the absolute value by splitting at x=1, recognize a piecewise function glued continuously at x=1 with a corner there, then count discontinuities and non-differentiable points.
-
For 0<x≤1: lnx≤0, so ∣lnx∣=−lnx and f(x)=elnx=x.
-
For x>1: lnx>0, so ∣lnx∣=lnx and f(x)=e−lnx=x1.
-
Continuity: limx→1−f(x)=1=limx→1+f(x)=f(1), and each piece is continuous on its interval. So f is continuous on all of (0,∞): m=0. …
-
- JEE Main 2024Set 2024-02-01-s24 marksMCQQ.Let f(x)=∣2x2+5∣x∣−3∣, x∈R. If m and n denote the number of points where f is not continuous and not differentiable respectively, then m + n is equal to: (A) 5 (B) 3 (C) 2 (D) 0
›Reveal solutionSolution
f is continuous everywhere (m=0); it fails to be differentiable at the two zero-crossings of the inner function and at the inner function's own kink at x=0, giving n=3.
- Let g(x)=2x2+5∣x∣−3 (even), so f=∣g∣. Both ∣⋅∣ and g are continuous, so f is continuous everywhere: m=0.
- For x≥0: g(x)=2x2+5x−3=0⇒x=4−5+7=0.5. For x<0: g(x)=2x2−5x−3=0⇒x=−0.5. At both x=±0.5, g′=0 (slopes ±7), so ∣g∣ has a genuine corner — two non-differentiable points. …
- JEE Main 2022Set 2022-07-25-s14 marksQ.Let f(x) = |4x² − 8x + 5| if 8x² − 6x + 1 ≥ 0, and f(x) = [4x² − 8x + 5] if 8x² − 6x + 1 < 0, where [α] denotes the greatest integer less than or equal to α. Then the number of points in R where f is not differentiable is ____.
›Reveal solutionSolution
Analyzing the two branch-definitions and the floor function's behavior inside the transition zone reveals exactly 3 points of non-differentiability.
- 4x2−8x+5=4(x−1)2+1>0 always, so ∣4x2−8x+5∣=4x2−8x+5 wherever that branch applies.
- 8x2−6x+1≥0 outside (0.25,0.5) (roots at x=0.25,0.5), so f(x)=4x2−8x+5 (a smooth parabola, call it g(x)) there, and f(x)=⌊g(x)⌋ for x∈(0.25,0.5).
- g is strictly decreasing on (0.25,0.5) from g(0.25)=3.25 to g(0.5)=2.
- At x=0.25: the quadratic branch gives f(0.25)=3.25 exactly, but just to the right, f→⌊3.25−⌋=3 — a jump discontinuity (non-differentiable).
- Inside (0.25,0.5), ⌊g(x)⌋ jumps from 3 to 2 exactly where g(x)=3, i.e. at x=1−2/2≈0.293 — another discontinuity. …
- JEE Main 2022Set 2022-07-27-s24 marksMCQQ.Let f(x) = 2 + |x| – |x-1| + |x+1|, x ∈ R. Consider (S1): f'(-3/2) + f'(-1/2) + f'(1/2) + f'(3/2) = 2 ; (S2): ∫₋₂² f(x)dx = 12. Then, (A) Both (S1) and (S2) are correct (B) Both (S1) and (S2) are wrong (C) Only (S1) is correct (D) Only (S2) is correct
›Reveal solutionSolution
Statement S1 (sum of derivatives =2) is false (the true sum is 4); statement S2 (∫−22fdx=12) is true.
- Breaking f(x)=2+∣x∣−∣x−1∣+∣x+1∣ into the four regions x<−1, −1<x<0, 0<x<1, x>1 gives f(x)=−x, 2+x, 2+3x, x+4 respectively, so f′(x)=−1,1,3,1 on these regions.
- f′(−3/2)=−1, f′(−1/2)=1, f′(1/2)=3, f′(3/2)=1; summing gives 4, not 2, so S1 is false.
- Evaluating f at the breakpoints: f(−2)=2, f(−1)=1, f(0)=2, f(1)=5, f(2)=6 (continuous, piecewise linear). …
- JEE Main 2022Set 2022-07-29-s14 marksMCQQ.The number of points, where the function f : R→R, f(x) = |x−1| cos|x−2| sin|x−1| + (x−3)|x²−5x+4|, is NOT differentiable, is: (A) 1 (B) 2 (C) 3 (D) 4
›Reveal solutionSolution
The cossin term is actually smooth everywhere once simplified; only the (x−3)∣x−1∣∣x−4∣ term creates genuine corners, at x=1 and x=4 — 2 points total.
- Note x2−5x+4=(x−1)(x−4), so f(x)=∣x−1∣cos∣x−2∣sin∣x−1∣+(x−3)∣x−1∣∣x−4∣.
- For the first term, let u=x−1: ∣u∣sin∣u∣ equals usinu for every real u (check both u>0 and u<0 cases — both give usinu), so it is smooth. Also cos∣v∣=cosv for all real v since cosine is even, so cos∣x−2∣=cos(x−2) is smooth.
- Hence the first term equals (x−1)sin(x−1)cos(x−2), a product of smooth functions — differentiable everywhere, including at x=1,2. …
- JEE Main 2022Set 2022-07-29-s24 marksQ.If [t] denotes the greatest integer ≤ t, then the number of points, at which the function f(x) = 4|2x+3| + 9[x + 1/2] − 12[x + 20] is not differentiable in the open interval (−20, 20), is ________.
›Reveal solutionSolution
The non-differentiable points are exactly the half-integers (from the floor term [x+1/2]) together with the integers (from [x+20]) inside (−20,20); these two sets are disjoint and together total 79.
- 4∣2x+3∣ has a non-smooth kink only at x=−23 (continuous there, just a corner).
- 9[x+21] jumps (discontinuity, hence non-differentiable) wherever x+21∈Z, i.e. at every half-integer x=k+21, k∈Z. In (−20,20): k=−20,…,19, giving 40 points (this set already contains x=−1.5). …
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.