Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.1 · Q33: sin⁡∣x∣\sin|x| is a continuous function

Exercise 5.1Algebra of continuous functions · Section 5.2.1
The question

33. Examine that sin⁡∣x∣\sin|x| is a continuous function.

Exam answer

Let f(x)=sin⁡∣x∣f(x) = \sin|x|⁠, h(x)=∣x∣h(x) = |x| and g(x)=sin⁡xg(x) = \sin x⁠. Then

(g∘h)(x)=g(∣x∣)=sin⁡∣x∣=f(x)\begin{aligned} (g\circ h)(x) &= g(|x|) \\ &= \sin|x| = f(x) \end{aligned}

The modulus function h(x)=∣x∣h(x) = |x| and g(x)=sin⁡xg(x) = \sin x are continuous at every real number.

Let cc be any real number. Then hh is continuous at cc and gg is continuous at h(c)=∣c∣h(c) = |c|⁠. The composite of continuous functions is continuous, so f=g∘hf = g\circ h is continuous at cc⁠:

lim⁡x→csin⁡∣x∣=sin⁡∣c∣=f(c)\lim_{x\to c}\sin|x| = \sin|c| = f(c)

∴ sin⁡∣x∣\therefore\ \sin|x| is a continuous function.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

To compute sin⁡∣x∣\sin|x| you first take the absolute value, then the sine. So it is a composite: modulus inside, sine outside. Both are continuous at every real number (Example 7 and Example 17), so by Theorem 2 the composite is continuous. ("Examine that" here means "show that"; the answer is yes.)

Given, to find, and the plan
Given
f(x)=sin⁡∣x∣f(x) = \sin|x|⁠, xx real (radians).
To show
ff is continuous at every point of its domain.
Plan
(1) Domain. (2) Write f=g∘hf = g \circ h with h(x)=∣x∣h(x) = |x|⁠, g(u)=sin⁡ug(u) = \sin u⁠. (3) hh is continuous. (4) gg is continuous. (5) Theorem 2 at an arbitrary cc⁠. (6) A direct check at x=0x = 0⁠, where ∣x∣|x| changes formula.

Basics you need

1Composite functions

(g∘h)(x)=g(h(x))(g \circ h)(x) = g(h(x))⁠: inner function hh first, outer function gg second. Basics: composite functions

2Theorem 2

If hh is continuous at cc and gg is continuous at h(c)h(c)⁠, then g∘hg \circ h is continuous at cc (Section 5.2.1). Lesson: algebra of continuous functions

3The modulus function is continuous

∣x∣=−x|x| = -x for x<0x < 0⁠, ∣x∣=x|x| = x for x≥0x \ge 0⁠, and it is continuous at every real number (Examples 3 and 7). Basics: piecewise functions

4Sine is continuous

lim⁡x→csin⁡x=sin⁡c\lim_{x\to c}\sin x = \sin c for every real cc (Example 17). Basics: trigonometric identities

5One-sided limits

Used for the direct check at 0. Basics: left-hand and right-hand limits

Solution

  1. The domain is all of R\R

    ∣x∣|x| is a real number for every real xx⁠, and sine is defined for every real number, so sin⁡∣x∣\sin|x| is defined for all real xx⁠.

    Continuity of a function is checked at every point of its domain (Definition 2); here that is every real number.
  2. Write ff as a composite g∘hg \circ h

    Let

    h(x)=∣x∣  (inner),g(u)=sin⁡u  (outer).h(x) = |x| \ \ (\text{inner}), \qquad g(u) = \sin u \ \ (\text{outer}).

    Then (g∘h)(x)=g(∣x∣)=sin⁡∣x∣=f(x)(g \circ h)(x) = g(|x|) = \sin|x| = f(x) for every real xx⁠. The range of hh⁠, [0,∞)[0, \infty)⁠, lies inside the domain R\R of gg⁠.

    The modulus acts on xx first, so it is the inner layer. The other order, h∘gh \circ g⁠, would be ∣sin⁡x∣|\sin x|⁠, a different function. For example, at x=3π2x = \frac{3\pi}{2} we get sin⁡∣3π2∣=−1\sin|\frac{3\pi}{2}| = -1 but ∣sin⁡3π2∣=1|\sin\frac{3\pi}{2}| = 1⁠.
    Inner first, outer second (Basic 1). Basics: composite functions
  3. The inner function ∣x∣|x| is continuous everywhere

    This is Example 7: for c<0c < 0⁠, near cc we have ∣x∣=−x|x| = -x and the limit is −c=∣c∣-c = |c|⁠; for c>0c > 0⁠, ∣x∣=x|x| = x near cc and the limit is c=∣c∣c = |c|⁠; at c=0c = 0 both one-sided limits are 0 =∣0∣= |0| (Example 3).

    The modulus is a two-piece function, and the only joint is 0. Away from 0 it is a polynomial near the point; at 0 the one-sided limits agree with the value.
    Modulus (Basic 3). Basics: piecewise functions
  4. The outer function sin⁡u\sin u is continuous everywhere

    Example 17 proves it: for any real dd⁠, with u=d+tu = d + t⁠,

    lim⁡t→0sin⁡(d+t)=lim⁡t→0(sin⁡dcos⁡t+cos⁡dsin⁡t)=sin⁡d⋅1+cos⁡d⋅0=sin⁡d.\begin{aligned} \lim_{t\to0}\sin(d + t) &= \lim_{t\to0}(\sin d\cos t + \cos d\sin t)\\ &= \sin d\cdot1 + \cos d\cdot0 = \sin d. \end{aligned}
    This is exactly the textbook's argument in Example 17, written with tt in place of hh (we are using hh for the inner function). It uses cos⁡t→1\cos t \to 1 and sin⁡t→0\sin t \to 0 as t→0t \to 0⁠, limits from Class XI (Limits and Derivatives) that Example 17 uses without proof.
    sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A + B) = \sin A\cos B + \cos A\sin B (Basic 4). Basics: trigonometric identities
  5. Apply Theorem 2 at an arbitrary point

    Let cc be any real number. h=∣⋅∣h = |\cdot| is continuous at cc (Step 3), and g=sin⁡g = \sin is continuous at h(c)=∣c∣h(c) = |c| (Step 4). By Theorem 2, f=g∘hf = g\circ h is continuous at cc⁠:

    lim⁡x→csin⁡∣x∣=sin⁡∣c∣=f(c).\lim_{x\to c}\sin|x| = \sin|c| = f(c).

    Since cc is arbitrary, sin⁡∣x∣\sin|x| is continuous at every real number: it is a continuous function.

    The two conditions of Theorem 2 hold at every cc⁠, so the conclusion holds at every cc⁠. Arguing at an arbitrary cc is what makes this a proof for all real numbers at once.
    Theorem 2, Section 5.2.1. Lesson: algebra of continuous functions
  6. A direct look at x=0x = 0

    At 0 the inner function changes formula, so it is worth seeing the limits explicitly. f(0)=sin⁡∣0∣=sin⁡0=0f(0) = \sin|0| = \sin 0 = 0⁠.

    • For x<0x < 0⁠: ∣x∣=−x|x| = -x⁠, so f(x)=sin⁡(−x)f(x) = \sin(-x)⁠, and lim⁡x→0−sin⁡(−x)=sin⁡0=0\lim_{x\to0^-}\sin(-x) = \sin 0 = 0⁠.
    • For x>0x > 0⁠: ∣x∣=x|x| = x⁠, so f(x)=sin⁡xf(x) = \sin x⁠, and lim⁡x→0+sin⁡x=sin⁡0=0\lim_{x\to0^+}\sin x = \sin 0 = 0⁠.

    Left-hand limit == right-hand limit == value =0= 0⁠, so ff is continuous at 0, in agreement with Step 5.

    x y −3π/2 −π/2 π/2 3π/2 1 −1 (0, 0) blue: y = sin|x| dashed (x < 0): y = sin x
    For x≥0x \ge 0 the graph of y=sin⁡∣x∣y = \sin|x| (blue) is the ordinary sine curve; for x<0x < 0 it is the mirror image of that curve in the yy-axis (the dashed curve shows sin⁡x\sin x there for comparison). The two halves meet at the origin with a corner, but there is no break.
    Because sin⁡∣x∣\sin|x| takes the same value at xx and −x-x⁠, its graph is symmetric about the yy-axis. At 0 the two halves meet with slopes −1-1 and +1+1 (the slope of sin⁡x\sin x at 0 is cos⁡0=1\cos 0 = 1⁠, a Class XI derivative fact, and the mirror image reverses its sign): a corner, which does not affect continuity.
    One-sided limits (Basic 5). Basics: left-hand and right-hand limits
Result

Yes: sin⁡∣x∣\sin|x| is the composite of the continuous functions ∣⋅∣|\cdot| (inner) and sin⁡\sin (outer), so by Theorem 2 it is continuous at every real number. (The answer key gives no separate answer for this question.)

Check it with numbers

At 0, both neighbours are near f(0)=0f(0) = 0⁠:

f(−0.01)=sin⁡∣−0.01∣=sin⁡0.01≈0.0099998,f(0.01)=sin⁡0.01≈0.0099998.\begin{aligned} f(-0.01) &= \sin|-0.01| = \sin 0.01 \approx 0.0099998,\\ f(0.01) &= \sin 0.01 \approx 0.0099998. \end{aligned}

At c=−2c = -2⁠, both neighbours are close to f(−2)f(-2)⁠:

f(−2)=sin⁡2≈0.9092974,f(−2.001)=sin⁡2.001≈0.9088808,f(−1.999)=sin⁡1.999≈0.9097131.\begin{aligned} f(-2) &= \sin 2 \approx 0.9092974,\\ f(-2.001) &= \sin 2.001 \approx 0.9088808,\\ f(-1.999) &= \sin 1.999 \approx 0.9097131. \end{aligned}

In both places the values on either side differ from the value at the point by less than 0.01, as continuity predicts. ✓

Common mistakes
  1. Confusing sin⁡∣x∣\sin|x| with ∣sin⁡x∣|\sin x|⁠. In sin⁡∣x∣\sin|x| the modulus acts on the angle; in ∣sin⁡x∣|\sin x| it acts on the sine.
  2. Writing sin⁡∣x∣=sin⁡x\sin|x| = \sin x for negative xx⁠. For x<0x < 0⁠, sin⁡∣x∣=sin⁡(−x)=−sin⁡x\sin|x| = \sin(-x) = -\sin x⁠.
  3. Treating the corner at 0 as a discontinuity. Both one-sided limits equal f(0)f(0)⁠.
What to take away
  1. Identify inner and outer functions; Theorem 2 then does the work.
  2. Sine, cosine, polynomials and the modulus are continuous everywhere, so every composite built from them is continuous.
  3. A direct one-sided check at the "join" of a modulus is a good confirmation.

Every fact used, and where it comes from

FactUsed inSource
A continuous function is continuous at every point of its domainSteps 1, 5Definition 2, Section 5.2
The modulus function is continuousStep 3Examples 3 and 7, Section 5.2
Sine is continuousSteps 4, 6Example 17, Section 5.2.1
Continuity of a compositeStep 5Theorem 2, Section 5.2.1 (Lesson: algebra of continuous functions)
Continuity at cc⁠: left-hand limit, right-hand limit and f(c)f(c) equalStep 6Definition 1, Section 5.2 (Lesson: continuity at a point)
sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A + B) = \sin A\cos B + \cos A\sin B⁠; sin⁡(−x)=−sin⁡x\sin(-x) = -\sin xSteps 4, 6Class XI, Trigonometric Functions
cos⁡t→1\cos t \to 1⁠, sin⁡t→0\sin t \to 0 as t→0t \to 0Step 4Class XI, Limits and Derivatives (used without proof in Example 17)
Slope of sin⁡x\sin x at 0 is cos⁡0=1\cos 0 = 1Step 6 (remark on the corner)Class XI, Limits and Derivatives
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →