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

Example 19: sin⁡(x2)\sin(x^2) is continuous: a composite of continuous functions

ExamplesAlgebra of continuous functions · Section 5.2.1
The question

Show that the function defined by f(x)=sin⁡(x2)f(x) = \sin(x^2) is a continuous function.

Exam answer

Let h(x)=x2h(x) = x^2 and g(x)=sin⁡xg(x) = \sin x⁠. Then

g(h(x))=g(x2)=sin⁡(x2)=f(x)g(h(x)) = g(x^2) = \sin(x^2) = f(x)

hh is a polynomial, so it is continuous, and gg (the sine function) is continuous at every real number.

A composite of continuous functions is continuous, so f(x)=g(h(x))f(x) = g(h(x)) is continuous at every real number.

∴ f(x)=sin⁡(x2)\therefore\ f(x) = \sin(x^2) is a continuous function. Hence proved.

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

The one idea this problem is built on

To compute sin⁡(x2)\sin(x^2) we do two things in turn: first square, then take the sine. So ff is a composite of two functions we already know are continuous. Theorem 2 says a composite is continuous at cc when the inner function is continuous at cc and the outer function is continuous at the inner value. Here both are continuous everywhere, so ff is continuous everywhere.

Given, to show, and the plan
Given
f(x)=sin⁡(x2)f(x) = \sin(x^2) for real xx⁠.
To show
ff is continuous at every point of its domain.
Plan
Domain. Write f=g∘hf = g \circ h with inner h(x)=x2h(x) = x^2 and outer g(x)=sin⁡xg(x) = \sin x⁠, checking the order. Show hh is continuous at cc and gg at h(c)h(c)⁠. Apply Theorem 2.

Basics you need

1Composite functions

(g∘h)(x)=g(h(x))(g \circ h)(x) = g(h(x))⁠: apply hh first, then gg to the result. The function applied first is the inner one. Basics: composite functions

2Theorem 2 (continuity of composites)

If f∘gf \circ g is defined at cc⁠, gg is continuous at cc⁠, and ff is continuous at g(c)g(c)⁠, then f∘gf \circ g is continuous at cc⁠. The book states it without proof. Lesson: algebra of continuous functions

3Two known continuous functions

x2x^2 is a polynomial, continuous at every real number (Example 14); sin⁡x\sin x is continuous at every real number (Example 17).

4Definition 2

A function is continuous if it is continuous at every point of its domain. Lesson: continuity at a point

Solution

  1. The domain is all of R\R

    For every real xx⁠, x2x^2 is a real number, and sine is defined for every real number. So sin⁡(x2)\sin(x^2) is defined for every real xx⁠: the domain is R\R⁠.

    Theorem 2 needs the composite to be defined at the point cc⁠, and Definition 2 needs continuity at every point of the domain. Both are settled by knowing the domain is all of R\R⁠.
  2. Split ff into inner and outer functions

    Let h(x)=x2h(x) = x^2 (inner) and g(x)=sin⁡xg(x) = \sin x (outer). Then

    (g∘h)(x)=g(h(x))=g(x2)=sin⁡(x2)=f(x).(g \circ h)(x) = g(h(x)) = g(x^2) = \sin(x^2) = f(x).

    So f=g∘hf = g \circ h⁠. The order matters: the other composite is different,

    (h∘g)(x)=h(sin⁡x)=sin⁡2x.(h \circ g)(x) = h(\sin x) = \sin^2 x.

    For example at x=1x = 1⁠: sin⁡(12)≈0.841471\sin(1^2) \approx 0.841471⁠, but sin⁡21≈0.708073\sin^2 1 \approx 0.708073⁠.

    To find the inner function, ask "what is done to xx first?" In sin⁡(x2)\sin(x^2) we square first, so squaring is inner and sine is outer. Getting this backwards would describe sin⁡2x\sin^2 x⁠, a different function.
  3. The inner function is continuous at cc

    Fix any real cc⁠. h(x)=x2h(x) = x^2 is a polynomial, so by Example 14

    lim⁡x→cx2=c2=h(c).\lim_{x\to c} x^2 = c^2 = h(c).
    Theorem 2's first condition: the inner function must be continuous at the point cc itself.
  4. The outer function is continuous at h(c)h(c)

    h(c)=c2h(c) = c^2 is a real number, and g(x)=sin⁡xg(x) = \sin x is continuous at every real number (Example 17), so in particular at c2c^2⁠:

    lim⁡u→c2sin⁡u=sin⁡(c2).\lim_{u\to c^2} \sin u = \sin(c^2).
    Theorem 2's second condition is about the outer function at the point h(c)h(c)⁠, not at cc⁠. Here this costs nothing, because sine is continuous everywhere, but in other problems this is where care is needed.
    Example 17: the sine function is continuous.
  5. Apply Theorem 2

    g∘hg \circ h is defined at cc⁠, hh is continuous at cc⁠, and gg is continuous at h(c)h(c)⁠. By Theorem 2, f=g∘hf = g \circ h is continuous at cc⁠:

    lim⁡x→csin⁡(x2)=sin⁡(c2)=f(c).\lim_{x\to c}\sin(x^2) = \sin(c^2) = f(c).

    Since cc was any real number, ff is continuous at every point of its domain R\R⁠, and by Definition 2 f(x)=sin⁡(x2)f(x) = \sin(x^2) is a continuous function.

    The idea behind Theorem 2: as x→cx \to c⁠, the inner output u=x2u = x^2 approaches c2c^2 (Step 3); and as u→c2u \to c^2⁠, the outer output sin⁡u\sin u approaches sin⁡(c2)\sin(c^2) (Step 4). Chaining the two approaches gives sin⁡(x2)→sin⁡(c2)\sin(x^2) \to \sin(c^2)⁠.
    Theorem 2, Section 5.2.1. Lesson: algebra of continuous functions
Result

f=g∘hf = g \circ h with h(x)=x2h(x) = x^2 and g(x)=sin⁡xg(x) = \sin x⁠, both continuous everywhere, so by Theorem 2 lim⁡x→csin⁡(x2)=sin⁡(c2)\lim_{x\to c}\sin(x^2) = \sin(c^2) for every real cc⁠. Hence f(x)=sin⁡(x2)f(x) = \sin(x^2) is a continuous function. This agrees with the textbook's solution.

Check it with numbers

At c=1.5c = 1.5⁠: c2=2.25c^2 = 2.25 and f(1.5)=sin⁡2.25≈0.778073f(1.5) = \sin 2.25 \approx 0.778073⁠. Nearby,

f(1.499)=sin⁡2.247001≈0.779954,f(1.499) = \sin 2.247001 \approx 0.779954, f(1.501)=sin⁡2.253001≈0.776185,f(1.501) = \sin 2.253001 \approx 0.776185,

both within 0.0020.002 of f(1.5)f(1.5)⁠: small changes in xx give small changes in x2x^2⁠, which give small changes in sin⁡(x2)\sin(x^2)⁠.

Common mistakes
  1. Mixing up the order. sin⁡(x2)=(g∘h)(x)\sin(x^2) = (g \circ h)(x)⁠, not (h∘g)(x)(h \circ g)(x)⁠, which is sin⁡2x\sin^2 x⁠.
  2. Checking the outer function at the wrong point. Theorem 2 needs gg continuous at h(c)=c2h(c) = c^2⁠, not at cc⁠.
  3. Using Theorem 1 instead. sin⁡(x2)\sin(x^2) is not a sum, product or quotient of sin⁡x\sin x and x2x^2⁠; it is a composite, so Theorem 2 is the right tool.
What to take away
  1. A composite of continuous functions is continuous (Theorem 2): find the inner and outer functions, then check each where it is needed.
  2. Inner function = the operation done to xx first.
  3. The same method handles ∣1−x+∣x∣∣|1 - x + |x|| in Example 20, and in Section 5.3 the chain rule differentiates such composites.

Every fact used, and where it comes from

FactUsed inSource
(g∘h)(x)=g(h(x))(g \circ h)(x) = g(h(x))Step 2Composition of functions, Chapter 1 (Basics: composite functions)
x2x^2 is continuous (a polynomial)Step 3Example 14, Section 5.2
sin⁡x\sin x is continuousStep 4Example 17, Section 5.2.1
Composite of continuous functions is continuousStep 5Theorem 2, Section 5.2.1 (Lesson: algebra of continuous functions)
Continuous functionStep 5Definition 2, Section 5.2 (Lesson: continuity at a point)
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 →