Solveeit Logo

Question

Question: Show that the function f(x) = 2x-|x| is continuous at x = 0....

Show that the function f(x) = 2x-|x| is continuous at x = 0.

Explanation

Solution

Hint: Use the fact that if f(x) is continuous and g(x) is continuous at x= a then so is f(x)+g(x) and f(x)g(x). In the above property take f(x) = 2x and g(x) = -|x|. Use the fact that 2x and –|x| are continuous at x = 0. Alternatively, we can prove that Limx0f(x)=Limx0+f(x)=f(0)\underset{x\to {{0}^{-}}}{\mathop{\text{Lim}}}\,f\left( x \right)=\underset{x\to {{0}^{+}}}{\mathop{\text{Lim}}}\,f\left( x \right)=f\left( 0 \right). Alternatively you can draw a graph of f(x) and verify whether f(x) is continuous at x= 0 or not.

Complete step-by-step answer:

We know that g(x) = 2x is continuous for all real x. Hence g(x) is continuous at x = 0.
Also h(x) = -|x| is continuous for all real x. Hence h(x) is also continuous at x= 0.
Hence g(x)+h(x) is also continuous at x=0.
Hence 2x-|x| is also continuous at x = 0.
Hence f(x) continuous at x=0.

Note: [1] Alternatively, we have
Limx0f(x)=Limx02xx\underset{x\to {{0}^{-}}}{\mathop{\text{Lim}}}\,f\left( x \right)=\underset{x\to {{0}^{-}}}{\mathop{\text{Lim}}}\,2x-\left| x \right|
Since for x<0 |x| = -x, we get
Limx0f(x)=Limx02x+x=Limx03x=0\underset{x\to {{0}^{-}}}{\mathop{\text{Lim}}}\,f\left( x \right)=\underset{x\to {{0}^{-}}}{\mathop{\text{Lim}}}\,2x+x=\underset{x\to {{0}^{-}}}{\mathop{\text{Lim}}}\,3x=0
Limx0+f(x)=Limx0+2xx\underset{x\to {{0}^{+}}}{\mathop{\text{Lim}}}\,f\left( x \right)=\underset{x\to {{0}^{+}}}{\mathop{\text{Lim}}}\,2x-\left| x \right|
Since for x>0 |x| = x, we get
Limx0+f(x)=Limx0+2xx=Limx0+x=0\underset{x\to {{0}^{+}}}{\mathop{\text{Lim}}}\,f\left( x \right)=\underset{x\to {{0}^{+}}}{\mathop{\text{Lim}}}\,2x-x=\underset{x\to {{0}^{+}}}{\mathop{\text{Lim}}}\,x=0
f(0) = 2(0)-|0| = 0-0 = 0.
Hence, we have Limx0f(x)=Limx0+f(x)=f(0)\underset{x\to {{0}^{-}}}{\mathop{\text{Lim}}}\,f\left( x \right)=\underset{x\to {{0}^{+}}}{\mathop{\text{Lim}}}\,f\left( x \right)=f\left( 0 \right)
Hence f(x) is continuous at x = 0.
[2] Alternatively, we can draw the graph of f(x) and verify that f(x) is continuous at x = 0


From the graph, it is clear that f(x) is continuous at x=0.