Question
Question: If the function \(f\left( x \right)=\left\\{ \begin{matrix} a\left| \pi -x \right|+1,x\le 5 \\\...
If the function f\left( x \right)=\left\\{ \begin{matrix}
a\left| \pi -x \right|+1,x\le 5 \\\
b\left| \pi -x \right|+3,x>5 \\\
\end{matrix} \right. is continuous at x=5, then find the value of a−b?
(a) 5−π2,
(b) π−52,
(c) π+52,
(d) π+5−2.
Solution
We start solving the problem by recalling the condition of a continuous function at a given value of x. We then find the left-hand limit for the function f(x) at x=5 by using the properties of the modulus function. We then find the right-hand limit for the function f(x) at x=5 by using the properties of the modulus function. We equate both these limits and make the necessary calculations to find the desired result.
Complete step-by-step solution
According to the problem, we have given that the function f\left( x \right)=\left\\{ \begin{matrix}
a\left| \pi -x \right|+1,x\le 5 \\\
b\left| \pi -x \right|+3,x>5 \\\
\end{matrix} \right. is continuous at x=5. We need to find the value of a−b.
We know that if the function g(x) is continuous at x=a, then the condition to be satisfied is x→a−limg(x)=x→a+limg(x)=g(a) ---(1).
Let us find the left-hand limit at x=5 for the given function f(x).
So, we have x→5−limf(x)=x→5−lim(a∣π−x∣+1) ---(2).
Let us recall the definition of ∣a−x∣. The modulus function ∣a−x∣ is defined as \left| a-x \right|=\left\\{ \begin{matrix}
a-x, x < a \\\
0, x = a \\\
-\left( a-x \right), x > a \\\
\end{matrix} \right..
We know that the value of π is 3.14, which is less than 5.
So, we get the function ∣π−x∣ as −(π−x). We use this as equation (2).
⇒x→5−limf(x)=x→5−lim(−a(π−x)+1).
⇒x→5−limf(x)=x→5−lim(ax−aπ+1).
We know that x→alim(cx+d)=c(a)+d.
⇒x→5−limf(x)=5a−aπ+1 ---(3).
Let us find the right-hand limit at x=5 for the given function f(x).
So, we have x→5+limf(x)=x→5+lim(b∣π−x∣+3) ---(4).
Let us recall the definition of ∣a−x∣. The modulus function ∣a−x∣ is defined as \left| a-x \right|=\left\\{ \begin{matrix}
a-x, x < a \\\
0, x = a \\\
-\left( a-x \right), x > a \\\
\end{matrix} \right..
We know that the value of π is 3.14, which is less than 5.
So, we get the function ∣π−x∣ as −(π−x). We use this equation (4).
⇒x→5+limf(x)=x→5+lim(−b(π−x)+3).
⇒x→5+limf(x)=x→5+lim(bx−bπ+3).
We know that x→alim(cx+d)=c(a)+d.
⇒x→5+limf(x)=5b−bπ+3 ---(5).
From equation (1), we have x→5−limf(x)=x→5+limf(x).
From equations (3) and (5), we get 5a−aπ+1=5b−bπ+3.
⇒a(5−π)=b(5−π)+3−1.
⇒a(5−π)−b(5−π)=2.
⇒(a−b)(5−π)=2.
⇒a−b=5−π2.
We have found the value of a−b as 5−π2.
∴ The correct option for the given problem is (a).
Note: We can also equate any of the limits to the value of f(5), which will be the same as the left-hand limit. We need not always check left-hand and right-hand limits of the functions that are not varied between the intervals. We should not make calculation mistakes while solving this problem. We should always have left-hand and right-hand limits of the given function as modulus, greatest integer, and fractional part functions.