At x = 1: near 1 the function is 4x + 1, a polynomial, so it is continuous there for every λ.
Question 19
Show that the function defined by g(x) = x − [x] is discontinuous at all integral points. Here [x] denotes the greatest integer less than or equal to x.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
Let c be an integer. Then [c] = c, so g(c) = c − c = 0.
LHL: for x slightly less than c, [x] = c − 1, so g(x) → c − (c − 1) = 1.
RHL: for x slightly greater than c, [x] = c, so g(x) → c − c = 0.
LHL = 1 ≠ 0 = RHL.
Hence g is discontinuous at every integer.
Question 20
Is the function defined by f(x) = x² − sin x + 5 continuous at x = π?
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
x², sin x and the constant 5 are each continuous on R.
Sums and differences of continuous functions are continuous.
So lim(x→π) f(x) = π² − sin π + 5 = π² + 5 = f(π).
Yes, f is continuous at x = π (indeed on all of R).
Question 21
Discuss the continuity of the following functions:
(a)f(x) = sin x + cos x
(b)f(x) = sin x − cos x
(c)f(x) = sin x · cos x.
Solution
sin x and cos x are each continuous on R.
The sum, difference and product of continuous functions are continuous.
All three functions are continuous on R.
Question 22
Discuss the continuity of the cosine, cosecant, secant and cotangent functions.
Solution
cos x is continuous for all x ∈ R.
cosec x = 1/sin x is continuous wherever sin x ≠ 0, i.e. on R − {nπ : n ∈ Z}.
sec x = 1/cos x is continuous wherever cos x ≠ 0, i.e. on R − {(2n + 1)π/2 : n ∈ Z}.
cot x = cos x/sin x is continuous wherever sin x ≠ 0, i.e. on R − {nπ : n ∈ Z}.
Question 23
Find all points of discontinuity of f, where f(x) = sin x / x if x < 0, and x + 1 if x ≥ 0.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
For x < 0 and x > 0 the function is continuous (quotient/polynomial with non-zero denominator).
At x = 0: LHL = lim(x→0⁻) sin x/x = 1.
RHL = lim(x→0⁺) (x + 1) = 1; f(0) = 0 + 1 = 1.
All three equal 1.
f is continuous everywhere; there is no point of discontinuity.
Question 24
Determine if f defined by f(x) = x² sin(1/x) if x ≠ 0, and 0 if x = 0, is a continuous function.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
For x ≠ 0 the function is a product of continuous functions, hence continuous.
At x = 0: |x² sin(1/x)| ≤ x², since |sin(1/x)| ≤ 1.
As x → 0, x² → 0, so by the squeeze theorem lim(x→0) f(x) = 0.
And f(0) = 0.
Limit = f(0), so f is continuous everywhere.
Question 25
Examine the continuity of f, where f(x) = sin x − cos x if x ≠ 0, and −1 if x = 0.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
For x ≠ 0, f is a difference of continuous functions, hence continuous.
At x = 0: lim(x→0) (sin x − cos x) = 0 − 1 = −1.
f(0) = −1.
Limit = f(0), so f is continuous everywhere.
Question 26
Find the value of k so that the function f(x) = k cos x/(π − 2x) if x ≠ π/2, and 3 if x = π/2, is continuous at x = π/2.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
Put x = π/2 + h, so h → 0. Then cos x = cos(π/2 + h) = −sin h and π − 2x = −2h.
So f = (k)(−sin h)/(−2h) = (k/2)·(sin h / h).
As h → 0, sin h / h → 1, so the limit is k/2.
Continuity requires k/2 = f(π/2) = 3.
k = 6.
Question 27
Find the value of k so that the function f(x) = kx² if x ≤ 2, and 3 if x > 2, is continuous at x = 2.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
LHL = k(2)² = 4k; RHL = 3; f(2) = 4k.
Continuity requires 4k = 3.
k = 3/4.
Question 28
Find the value of k so that the function f(x) = kx + 1 if x ≤ π, and cos x if x > π, is continuous at x = π.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
LHL = kπ + 1; RHL = cos π = −1; f(π) = kπ + 1.
Continuity requires kπ + 1 = −1, so kπ = −2.
k = −2/π.
Question 29
Find the value of k so that the function f(x) = kx + 1 if x ≤ 5, and 3x − 5 if x > 5, is continuous at x = 5.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
LHL = 5k + 1; RHL = 3(5) − 5 = 10; f(5) = 5k + 1.
Continuity requires 5k + 1 = 10, so 5k = 9.
k = 9/5.
Question 30
Find the values of a and b such that the function defined by f(x) = 5 if x ≤ 2, ax + b if 2 < x < 10, and 21 if x ≥ 10, is a continuous function.
Solution
A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.
At x = 2: LHL = 5 and RHL = 2a + b, so 2a + b = 5.
At x = 10: LHL = 10a + b and RHL = 21, so 10a + b = 21.
Subtracting: 8a = 16 ⇒ a = 2.
Then b = 5 − 2(2) = 1.
a = 2, b = 1.
Question 31
Show that the function defined by f(x) = cos(x²) is a continuous function.
Solution
Let g(x) = x² and h(x) = cos x. Both are continuous on R.
Then f = h ∘ g.
The composition of continuous functions is continuous.
Hence cos(x²) is continuous on R.
Question 32
Show that the function defined by f(x) = |cos x| is a continuous function.
Solution
Let g(x) = cos x (continuous on R) and h(x) = |x| (continuous on R).
Then f = h ∘ g.
A composition of continuous functions is continuous, so |cos x| is continuous on R.
Question 33
Examine that sin |x| is a continuous function.
Solution
Let g(x) = |x| and h(x) = sin x, both continuous on R.
Then sin|x| = h ∘ g.
Hence sin|x| is continuous on R.
Question 34
Find all the points of discontinuity of f defined by f(x) = |x| − |x + 1|.
Solution
Both |x| and |x + 1| are continuous on R.
The difference of two continuous functions is continuous.
So f is continuous at every real number — including x = 0 and x = −1, where the individual moduli have corners.
(A corner affects differentiability, not continuity.)
There is no point of discontinuity; f is continuous on R.