Solveeit Logo

Question

Question: Discuss continuity and differentiability of \(f\left( x \right) = \left\\{ {x^2} - x + 2{\text{...

Discuss continuity and differentiability of f\left( x \right) = \left\\{ {x^2} - x + 2{\text{ }}if{\text{ }}x \leqslant 1 \\\ \- {x^2} + x{\text{ }}if{\text{ }}x > 1 \\\ \right..

Explanation

Solution

Hint : In this question, we need to check the continuity as well as the differentiability of the given function at x=1. For this, we will use the relation of the left-hand limit and the right-hand limit for the given function.

Complete step-by-step answer :
For a function to be continuous, the functions should have the same value at the left-hand limit, right-hand limit as well as on the limits.
Here in the question, we need to determine the continuity and differentiability around the point x=1 as the function given is associated with the same.
Now, the value of the function at x=1 is defined as f(x)=x2x+2f\left( x \right) = {x^2} - x + 2 so, the value of the function at x=1 is given by
f(1)=121+2=2f(1) = {1^2} - 1 + 2 = 2
The value of the left-hand limit of the function at x=1 is defined as f(x)=x2x+2f\left( {{x^ - }} \right) = {x^2} - x + 2 so, the value of the function at x=1hx = 1 - h where h is infinitesimally small and is tending to zero is given by
f(x)=limx1(x2x+2) =limh0((1h)2(1h)+2) =limh0(1+h22h1+h+2) =limh0(h2h+2) =2(i)  f\left( {{x^ - }} \right) = \mathop {\lim }\limits_{x \to {1^ - }} \left( {{x^2} - x + 2} \right) \\\ = \mathop {\lim }\limits_{h \to 0} \left( {{{(1 - h)}^2} - (1 - h) + 2} \right) \\\ = \mathop {\lim }\limits_{h \to 0} \left( {1 + {h^2} - 2h - 1 + h + 2} \right) \\\ = \mathop {\lim }\limits_{h \to 0} \left( {{h^2} - h + 2} \right) \\\ = 2 - - - - (i) \\\
The value of the right-hand limit of the function at x=1 is defined as f(x+)=x2+xf\left( {{x^ + }} \right) = - {x^2} + x so, the value of the function at x=1+hx = 1 + h where h is infinitesimally small and is tending to zero is given by
f(x+)=limx1+(x2+x) =limh0((1+h)2+(1+h)) =limh0(1h22h+1+h) =limh0(h2h) =0(ii)  f\left( {{x^ + }} \right) = \mathop {\lim }\limits_{x \to {1^ + }} \left( { - {x^2} + x} \right) \\\ = \mathop {\lim }\limits_{h \to 0} \left( { - {{(1 + h)}^2} + (1 + h)} \right) \\\ = \mathop {\lim }\limits_{h \to 0} \left( { - 1 - {h^2} - 2h + 1 + h} \right) \\\ = \mathop {\lim }\limits_{h \to 0} \left( { - {h^2} - h} \right) \\\ = 0 - - - - (ii) \\\
From the equations (i) and (ii) we can see that the value of the functions at the left-hand limit does not equal to the value of the function at the right-hand limits, so the given function is not continuous at x=1.
Also, if the function is not continuous at a point, then, we can say that the function will not be differentiable at the point of discontinuity also.
Hence, the given function is neither continuous nor differentiable at x=1.

Note : If a function is differentiable, then, the function must be continuous at the point of the investigation while it is not necessary that if it is continuous then, it must be differentiable as well.