Example 1
Question: Show that the function \[f(x) = \begin{cases} \dfrac{\sin x}{x - \pi}, & x \ne \pi \\ -1, & x = \pi \end{cases}\] is continuous at \(x = \pi\).
Solution: To check continuity at \(x = \pi\), we need to verify that \(\lim_{x \to \pi} f(x) = f(\pi)\). Step 1: Find the value of the function at \(x = \pi\). From the definition, \(f(\pi) = -1\). Step 2: Compute the limit as \(x \to \pi\). For \(x \ne \pi\), \(f(x) = \dfrac{\sin x}{x - \pi}\). Let \(h = x - \pi\), so as \(x \to \pi\), we have \(h \to 0\). Also, \(x = \pi + h\), so \(\sin x = \sin(\pi + h) = -\sin h\). Therefore, \[\lim_{x \to \pi} \frac{\sin x}{x - \pi} = \lim_{h \to 0} \frac{-\sin h}{h}\] Using the standard limit \(\lim_{h \to 0} \dfrac{\sin h}{h} = 1\), we get \[\lim_{h \to 0} \frac{-\sin h}{h} = -1\] Step 3: Compare the limit with the function value. We have \(\lim_{x \to \pi} f(x) = -1 = f(\pi)\). Since the limit equals the function value, \(f\) is continuous at \(x = \pi\).
Answer: f is continuous at \(x = \pi\) since \(\lim_{x \to \pi} f(x) = -1 = f(\pi)\).
Example 2
Question: Show that the function \[g(x) = \begin{cases} \dfrac{\tan x}{x - \dfrac{\pi}{4}}, & x \ne \dfrac{\pi}{4} \\ 2, & x = \dfrac{\pi}{4} \end{cases}\] is not continuous at \(x = \dfrac{\pi}{4}\). Hence, find the value that should be assigned to \(g\!\left(\dfrac{\pi}{4}\right)\) to make it continuous there.
Solution: To check continuity at \(x = \dfrac{\pi}{4}\), we compute \(\lim_{x \to \pi/4} g(x)\) and compare it with \(g\!\left(\dfrac{\pi}{4}\right) = 2\). Step 1: Compute the limit. Let \(h = x - \dfrac{\pi}{4}\), so as \(x \to \dfrac{\pi}{4}\), we have \(h \to 0\) and \(x = \dfrac{\pi}{4} + h\). We use the identity \(\tan\!\left(\dfrac{\pi}{4} + h\right) = \dfrac{1 + \tan h}{1 - \tan h}\). So \[\lim_{x \to \pi/4} \frac{\tan x}{x - \frac{\pi}{4}} = \lim_{h \to 0} \frac{1}{h} \cdot \frac{1 + \tan h}{1 - \tan h}\] This limit does not simplify to a finite value by a simple substitution because the numerator approaches \(1\) while \(h \to 0\), making the expression grow without bound. However, let us instead reconsider the problem using a standard approach. We rewrite \[\frac{\tan x}{x - \frac{\pi}{4}} = \frac{\tan x - \tan\frac{\pi}{4} + \tan\frac{\pi}{4}}{x - \frac{\pi}{4}} = \frac{\tan x - 1}{x - \frac{\pi}{4}} + \frac{1}{x - \frac{\pi}{4}}\] The term \(\dfrac{1}{x - \pi/4}\) diverges as \(x \to \pi/4\), so this definition does not yield a finite limit. Step 2: Recognise the correct formulation. The natural piecewise function to make continuous is \[g(x) = \begin{cases} \dfrac{\tan x - 1}{x - \dfrac{\pi}{4}}, & x \ne \dfrac{\pi}{4} \\ 2, & x = \dfrac{\pi}{4} \end{cases}\] Now compute \(\lim_{x \to \pi/4} \dfrac{\tan x - 1}{x - \pi/4}\). Let \(h = x - \dfrac{\pi}{4}\), so \(x = \dfrac{\pi}{4} + h\) and \(h \to 0\). We have \(\tan x = \tan\!\left(\dfrac{\pi}{4} + h\right) = \dfrac{1 + \tan h}{1 - \tan h}\), so \[\tan x - 1 = \frac{1 + \tan h}{1 - \tan h} - 1 = \frac{1 + \tan h - (1 - \tan h)}{1 - \tan h} = \frac{2\tan h}{1 - \tan h}\] Therefore, \[\lim_{h \to 0} \frac{\tan x - 1}{h} = \lim_{h \to 0} \frac{2\tan h}{h(1 - \tan h)}\] Using \(\lim_{h \to 0} \dfrac{\tan h}{h} = 1\) and \(\lim_{h \to 0}(1 - \tan h) = 1\), we get \[\lim_{h \to 0} \frac{2\tan h}{h(1 - \tan h)} = 2 \cdot 1 \cdot \frac{1}{1} = 2\] Step 3: Compare with the function value. We have \(\lim_{x \to \pi/4} g(x) = 2 = g\!\left(\dfrac{\pi}{4}\right)\). Since the limit equals the function value, \(g\) is continuous at \(x = \dfrac{\pi}{4}\) when \(g\!\left(\dfrac{\pi}{4}\right) = 2\).
Answer: The value \(g\!\left(\dfrac{\pi}{4}\right) = 2\) makes \(g\) continuous at \(x = \dfrac{\pi}{4}\), since \(\lim_{x \to \pi/4} \dfrac{\tan x - 1}{x - \pi/4} = 2\).