GATE / CS ARCHIVE

SIMILAR QUESTIONS / ENGINEERING MATHEMATICS & OTHER TOPICS

Compare one-sided derivatives of absolute value at zero

2 questions solved the same way, newest first. Back to Engineering Mathematics & Other Topics

1 mark · MCQ
Report issue

Asked again GATE 1998, Q1.4 (same question)

Continuity and differentiability of absolute value

Calculus

Question 1, GATE 2007: For f(x)=|x|, consider P: f is continuous for every real x; Q: f is differentiable for every real x. Which statement is true?
Options:
(A) P true, Q false
(B) P false, Q true
(C) Both true
(D) Both false
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Approach. Write |x| as -x for x<0 and x for x≥0. The values from both sides approach zero at the joining point, but the slopes differ there.

2. Derivation and interpretation. The absolute-value function is continuous everywhere. At 0 its left derivative is −1 and right derivative +1, so it is not differentiable there. Thus P is true and Q false, A.

Original paper, page 2

1 mark · MCQ
Report issue

Asked again GATE 2007, Q1 (same question)

Continuity of absolute value

Calculus

Question 1.4, GATE 1998: For y=|x| on[−1, 1], classify continuity and differentiability.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

On each side of zero the function is linear: −x for x<0 and x for x>0. Both one-sided limits at zero equal 0, the function value, so it is continuous throughout the interval. But its left derivative at zero is−1 and its right derivative is+1. They disagree, so it is not differentiable at zero. Thus it is continuous but not differentiable everywhere, B. Differentiability away from zero does not remove the corner.

Original paper, page 1