Q.Show that the function defined by f(x)=sin(x2) is a continuous function.
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 10-day free trial to unlock the full solution →Concept understanding — Continuity of Compositions
Continuity of Composite Functions
Many functions we meet are really one function fed into another: sin(x2) is "square, then take sine"; x2+1 is "add one to the square, then take the root." A natural question is: if each piece is continuous, is the combined function continuous? The answer is a reassuring yes, and it saves an enormous amount of work.
The Composition Rule
If g is continuous at x=a, and f is continuous at the point g(a), then the composite (f∘g)(x)=f(g(x)) is continuous at x=a.
Why it works, in plain terms: as x→a, continuity of g pushes g(x)→g(a). Then continuity of f at that landing point pushes f(g(x))→f(g(a)). The limit slides cleanly through both functions:
limx→af(g(x))=f(limx→ag(x))=f(g(a)).
That last equality is the definition of continuity for f∘g at a.
Using It in Practice
Most "is this function continuous?" problems become one-liners:
- sin(x2) — x2 is continuous everywhere and sin is continuous everywhere, so the composite is continuous for all x.
- x2+1 — the inside is continuous and always ≥1>0, and is continuous on (0,∞), so the composite is continuous everywhere.
- ecosx — continuous on all of R, being a composition of two everywhere-continuous functions.
The Trap to Watch
The outer function must be continuous at the value g(a), not merely somewhere. For f(u)=u with g(x)=x−4, the composite x−4 needs g(a)≥0; at a=2, g(2)=−2 lands outside the domain of , so continuity there simply doesn't apply. …
Concept: Continuity of Compositions — the composition of two everywhere-continuous functions is continuous.
- g(x)=x2 is a polynomial, so continuous on R.
- h(u)=sinu is continuous on R. …
f(x)=sin(x2) is continuous for every real x because it is a composition of two functions that are each continuous everywhere: g(x)=x2 and h(u)=sinu.
Continuity is preserved under composition: if the inner function is continuous at a point and the outer function is continuous at the value the inner function takes there, the composite is continuous at that point too. This is a powerful shortcut — it avoids re-proving continuity from the definition for every new function built out of familiar pieces.
Step 1 — Identify the inner and outer functions.
Write f(x)=h(g(x)) with
g(x)=x2,h(u)=sinu.
Step 2 — Check continuity of the inner function.
g(x)=x2 is a polynomial, and every polynomial is continuous on all of R.
Step 3 — Check continuity of the outer function.
h(u)=sinu is continuous for every real u (a standard result for the sine function).
Step 4 — Apply the composition rule.
Since g is continuous at every x=a∈R and h is continuous at every value g(a)=a2 that g can take, the composite f=h∘g is continuous at every a∈R. …
Method: Proving Continuity of a Composite Function (e.g., sin(x2)) via the Composition Rule
This method applies whenever a function can be written as "one function fed into another" — an inner function followed by an outer function.
Steps
Step 1: Identify the inner function g and the outer function h.
Write the given function as f(x)=h(g(x)). For example, with f(x)=sin(x2): inner g(x)=x2, outer h(u)=sinu.
Step 2: Establish that the inner function g is continuous (at the point, or on the whole domain in question).
Cite the appropriate known result — e.g. g(x)=x2 is a polynomial, hence continuous everywhere.
Step 3: Establish that the outer function h is continuous at the value g(a) the inner function actually produces — not just "somewhere."
This is the step most often done carelessly: it is not enough that h is continuous in general; it must be continuous specifically at the point u=g(a) that g maps a to. Check that g(a) actually lies in the domain where h's continuity is known to hold. …
Common Mistakes
Mistake 1: Assuming a composite function must be discontinuous or badly behaved because it "oscillates fast" or "looks complicated."
Why it's wrong: how quickly a continuous function oscillates has nothing to do with whether it is continuous — continuity is a purely local, point-by-point property about limits matching function values, not about visual complexity. Correct approach: verify continuity purely via the composition rule, never from a visual impression of the graph.
Mistake 2: Checking that the outer function is continuous "in general" without confirming it at the specific value g(a) produced by the inner function.
Why it's wrong: the composition theorem requires continuity of the outer function at the point g(a), not merely somewhere in its domain — for functions like or log, whose domains are restricted, this distinction is exactly where a proof can silently break down if g(a) falls outside that domain. Correct approach: always explicitly state the value g(a) and confirm the outer function is continuous there. …
- KEAM 2026Set eng-2026-04224 marksMCQQ.If f(x)=2x−41, then the point(s) of discontinuity of f(f(x)) is/are (A) 2,49 (B) 3,4 (C) 1,3 (D) 4 (E) 3
›Reveal solutionSolution
Discontinuities come from both the inner and the outer denominators vanishing.
f(x)=2x−41. The inner function is undefined at 2x−4=0⇒x=2. …
- JEE Main 2026Set 2026-04-06-s24 marksQ.Let f(x) = {x³+8 ; x<0, x²−4 ; x≥0}, and g(x) = {(x−8)^(1/3) ; x<0, (x+4)^(1/2) ; x≥0}. Then the number of points, where the function gof is discontinuous, is ___________.
›Reveal solutionSolution
Build h(x)=g(f(x)) piece by piece, using the sign of f(x) to pick the correct branch of g, then check continuity only at the points where the piecewise definition could break.
- For x<0: f(x)=x^3+8. This is negative for x<-2 and non-negative for -2\le x<0.
- x<-2: f(x)<0, so use g(t)=(t-8)^{1/3}: h(x)=(x^3+8-8)^{1/3}=(x^3)^{1/3}=x.
- -2\le x<0: f(x)\ge0, so use g(t)=(t+4)^{1/2}: h(x)=(x^3+12)^{1/2}.
- For x\ge0: f(x)=x^2-4, negative for 0\le x<2, non-negative for x\ge2.
- 0\le x<2: use g(t)=(t-8)^{1/3}: h(x)=(x^2-12)^{1/3}.
- x\ge2: use g(t)=(t+4)^{1/2}: h(x)=(x^2)^{1/2}=x (since x\ge2>0).
- Check x=-2: left limit (x<-2 branch) = -2; value at x=-2 from the next branch = \sqrt{(-2)^3+12}=\sqrt4=2. -2\ne2 — discontinuous. …
- For x<0: f(x)=x^3+8. This is negative for x<-2 and non-negative for -2\le x<0.
- KEAM 2024Set eng-2024-06084 marksMCQQ.If f(x)=2−x1, g(x)=1−x1, then the point(s) of discontinuity of the function g(f(x)) is (are) (A) x=2 (B) x=3 (C) x=2,x=3 (D) x=2,x=1 (E) x=1,x=−2
›Reveal solutionSolution
g(f(x))=1−x2−x. It is discontinuous where f itself is undefined (x=2) and where the composed denominator vanishes (x=1).
With f(x)=2−x1 and g(x)=1−x1,
g(f(x))=1−f(x)1=1−2−x11=(2−x)−12−x=1−x2−x.
The composition is discontinuous at: …
- JEE Main 2022Set 2022-06-28-s24 marksMCQQ.Let f, g : R → R be functions defined by f(x) = [x] for x < 0, |1 − x| for x ≥ 0, and g(x) = eˣ − x for x < 0, (x − 1)² − 1 for x ≥ 0, where [x] denotes the greatest integer less than or equal to x. Then, the function f∘g is discontinuous at exactly: (A) one point (B) two points (C) three points (D) four points
›Reveal solutionSolution
f only jumps at integer values v≤0, and since g(x)≥−1 always, only v=0 and v=−1 matter; v=−1 is touched tangentially (no discontinuity) while v=0 is crossed transversally at two points, x=0 and x=2.
- f's only discontinuities (as a function of its argument v) are at the negative integers and at v=0, where f jumps from the floor-function branch to ∣1−v∣.
- g(x)=ex−x for x<0 ranges over (1,∞); g(x)=(x−1)2−1 for x≥0 ranges over [−1,∞) (minimum −1 at x=1). So overall g(x)≥−1 always, meaning breakpoints v=−2,−3,… are never reached.
- At v=−1 (reached only at x=1, the vertex): g(x) stays in [−1,0) near x=1, and f(v)=[v]=−1 throughout that range (floor is right-continuous on [−1,0)), so f∘g is actually continuous at x=1. …
- JEE Main 2022Set 2022-07-26-s14 marksMCQQ.If f(x) = { x + a, x ≤ 0; |x – 4|, x > 0 } and g(x) = { x + 1, x < 0; (x – 4)² + b, x ≥ 0 } are continuous on R, then (gof)(2) + (fog)(–2) is equal to: (A) –10 (B) 10 (C) 8 (D) –8
›Reveal solutionSolution
Fixing a and b from continuity at x=0 and then evaluating the two composite functions gives a sum of −8.
- For f continuous at x=0: left limit (x+a at x=0) = a must equal the right value |0−4|=4, so a=4.
- For g continuous at x=0: left limit (x+1 at x=0) = 1 must equal the right value (0−4)²+b=16+b, so b = 1−16 = −15.
- Compute f(2): since 2>0, f(2)=|2−4|=2. …
- JEE Main 2021Set 2021-03-16-s14 marksMCQQ.Let the functions f : R → R and g : R → R be defined as f(x) = x + 2 if x ≤ 0, and f(x) = x² if x ≥ 0; and g(x) = x³ if x < 1, and g(x) = 3x − 2 if x ≥ 1. Then, the number of points in R where (f∘g)(x) is NOT differentiable is equal to: (A) 1 (B) 2 (C) 3 (D) 0
›Reveal solutionSolution
f has a jump discontinuity at 0; since g equals 0 at exactly one point (x = 0) and is otherwise perfectly smooth, f∘g inherits exactly one point of non-differentiability.
- Examine f at its boundary x=0: the left-hand branch gives f(0−)=0+2=2, while the right-hand branch gives f(0)=02=0. Since these disagree, f has a JUMP DISCONTINUITY at x=0 (it is not even continuous there, let alone differentiable).
- Elsewhere, both pieces of f (x+2 and x2) are smooth polynomials, so f is differentiable everywhere except at this one problem point x=0.
- Now examine g: for x<1, g(x)=x3; for x≥1, g(x)=3x−2. At x=1: left-derivative =3x2∣x=1=3; right-derivative =3 — they match, and the values match too (g(1−)=1=g(1)), so g is smooth (continuous and differentiable) at x=1 as well. So g is differentiable everywhere. …
- JEE Main 2021Set 2021-03-16-s24 marksQ.Let f : ℝ → ℝ and g : ℝ → ℝ be defined as f(x) = {x+a if x<0 ; |x−1| if x≥0} and g(x) = {x+1 if x<0 ; (x−1)²+b if x≥0}, where a, b are non-negative real numbers. If (g∘f)(x) is continuous for all x ∈ ℝ, then a + b is equal to ____.
›Reveal solutionSolution
Matching the pieces of g∘f at the two places where behavior could jump (x=0 and the zero of the left branch of f) forces a=1,b=0, giving a+b=1.
- Near x=1, f(x)=∣x−1∣≥0 always, so g(f(x)) near x=1 only ever uses g's t≥0 branch, which is continuous there automatically — no constraint arises from x=1.
- At x=0: as x→0−, f(x)=x+a→a; at x=0 itself, f(0)=∣0−1∣=1. For g∘f continuous at 0, we need limx→0−g(f(x))=g(1). If a≥0, g(a)=(a−1)2+b (using the t≥0 branch), and we need (a−1)2+b=g(1)=(1−1)2+b=b, forcing (a−1)2=0⇒a=1 (the alternative branch a<0 is excluded since a must be non-negative). …
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.