Medium INTEGER +4 / -1 PYQ · JEE Mains 2021

Let f : R $\to$ R and g : R $\to$ R be defined as

$$f(x) = \left\{ {\matrix{ {x + a,} & {x < 0} \cr {|x - 1|,} & {x \ge 0} \cr } } \right.$$ and

$$g(x) = \left\{ {\matrix{ {x + 1,} & {x < 0} \cr {{{(x - 1)}^2} + b,} & {x \ge 0} \cr } } \right.$$,

where a, b are non-negative real numbers. If (gof) (x) is continuous for all x $\in$ R, then a + b is equal to ____________.

Answer (integer) 1

Solution

$$g[f(x)] = \left[ {\matrix{ {f(x) + 1} &amp; {f(x) &lt; 0} \cr {{{(f(x) - 1)}^2} + b} &amp; {f(x) \ge 0} \cr } } \right.$$<br><br>$$g[f(x)] = \left[ {\matrix{ {x + a + 1} &amp; {x + a &lt; 0\&amp; x &lt; 0} \cr {|x - 1| + 1} &amp; {|x - 1| &lt; 0\&amp; x \ge 0} \cr {{{(x + a - 1)}^2} + b} &amp; {x + a \ge 0\&amp; x &lt; 0} \cr {{{(|x - 1| - 1)}^2} + b} &amp; {|x - 1| \ge 0\&amp; x \ge 0} \cr } } \right.$$<br><br>$$g[f(x)] = \left[ {\matrix{ {x + a + 1} &amp; {x \in ( - \infty , - a)\&amp; x \in ( - \infty ,0)} \cr {|x - 1| + 1} &amp; {x \in \phi } \cr {{{(x + a - 1)}^2} + b} &amp; {x \in [ - a,\infty )\&amp; x \in [0,\infty )} \cr {{{(|x - 1| - 1)}^2} + b} &amp; {x \in R\&amp; x \in [0,\infty )} \cr } } \right.$$<br><br>$$g[f(x)] = \left[ {\matrix{ {x + a + 1} &amp; {x \in ( - \infty , - a)} \cr {{{(x + a - 1)}^2} + b} &amp; {x \in [ - a,0)} \cr {{{(|x - 1| - 1)}^2} + b} &amp; {x \in [0,\infty )} \cr } } \right.$$<br><br>g(f(x)) is continuous. <br><br>At x = $-$a <br><br>-a + a + 1 = (-a + a - 1)<sup>2</sup> + b <br><br>$\Rightarrow$ 1 = b + 1 <br><br>$\Rightarrow$ b = 0 <br><br>at x = 0 <br><br>(a $-$1)<sup>2</sup> + b = (|0 - 1| - 1)<sup>2</sup> + b <br><br>$\Rightarrow$ (a $-$1)<sup>2</sup> + b = b <br><br>$\Rightarrow$ a = 1<br><br>$\Rightarrow$ a + b = 1

About this question

Subject: Mathematics · Chapter: Limits, Continuity and Differentiability · Topic: Limits and Standard Results

This question is part of PrepWiser's free JEE Main question bank. 162 more solved questions on Limits, Continuity and Differentiability are available — start with the harder ones if your accuracy is >70%.

Drill 25 more like these. Every day. Free.

PrepWiser turns these solved questions into a daily practice loop. Chapter-wise drills, full mocks, AI doubt chat. No auto-renew.

Start free →