Home Maths Functions, Limits, Continuity and Differentiability General If f(x) = –1 + |x –2|, 0 ≤ x ≤ 4 g(x) = 2 – …
Maths Functions, Limits, Continuity and Differentiability General Subjective Type
Published on: August 14, 2026

If f(x) = –1 + |x –2|, 0 ≤ x ≤ 4

g(x) = 2 – |x|, –1 ≤ x ≤ 3,

then find fog(x) and gof (x). Draw a rough sketch of the graphs of fog (x) and gof (x). Discuss the continuity of fog (x) at x = 0.

Share this question

For Instagram sharing, use “Apps” on mobile or copy the link.

Text Solution

Verified by Experts
The correct answer is:
CHECK THE SOLUTION.

Sol. fog exists if range of g is a subset of domain of f and in that case the domain of fog is same as that of g.

g(x) = 2 – |x|, where – 1 ≤ x ≤ 3

⇒ 1 ≤ |x| ≤ 3 ⇒ – 1 ≥ –|x| ≥ –3 ⇒ 2 – 1 ≥ 2 – |x| ≥ 2 – 3

⇒ 1 ≥ g(x) ≥ –1

⇒ – 1 ≤ g (x) ≤ 1 ∴ Range of g = [–1, 1]

Clearly range (g) is not a subset of domain of f. So, let us restrict the domain of g so that its range is contained in the domain of f. Thus,

If 0 ≤ g(x) ≤ 4, then 0 ≤ 2 – |x| ≤ 4 ⇒ – 2 ≤ –|x| ≤ 2

⇒ – 2 ≤ |x| ≤ 2 ⇒ – 2 ≤ x ≤ 2

But x should also be in the domain of g i.e. –1 ≤ x ≤ 3. Thus range of g is contained in the domain of f, if we take [–1, 2] as the domain of g.

for x ∈ [–1, 2], we have fog (x) = f (2 –|x|) = –1 + |2 –|x| –2| = –1 + |x|

∴ the graph of fog (x) is given below It is evident from the graph that fog is continuous ∀ ∈ [–1, 2]

gof exists if range of f is contained in the domain of g.

– 1 ≤ –1+ |x –2| ≤ 1 ∀ x ∈ [0, 4]

⇒ –1 ≤ f(x) ≤ 1 ∀ x ∈ [0, 4]

⇒ range of f = [–1, 1] [–1, 3]

⇒ range of f domain of g.

so, gof exists for all x ∈ [0, 4]

gof (x) = g(f(x)) = g(–1 + | x –2| ) = 2– |–1 +| x –2||

⇒ gof (x) =

=

The graph of gof (x) is

clearly gof is continuous in [0, 4]

Prepare Smarter with CGP Edu

Get practice questions, solutions, and test series in one place.

Write a Review

Share your experience with this question and solution.

Commentary

Send your comment, doubt, correction, or feedback to admin.

Student Reviews

What students say about this solution

No reviews yet. Be the first to write a review.

Similar Questions

Explore conceptually related problems

CG
CGP Question Assistant Question Bank + AI Help
Hi! Type your question or upload one screenshot. First I will search related questions from CGP Edu Question Bank. If none match, type YES and I will solve it with AI.
Upload only one screenshot at a time. Flow: Question Bank first → If not matched, type YES for AI solution.