Q. Let $f$ and $g$ be two functions defined by $f(x)=\begin{cases}x+1,&x<0\\|x-1|,&x\ge0\end{cases}$ and $g(x)=\begin{cases}x+1,&x<0\\1,&x\ge0\end{cases}$. Then $(g\circ f)(x)$ is

A) Continuous everywhere but not differentiable exactly at one point
B) Continuous everywhere but not differentiable at $x=1$
C) Differentiable everywhere
D) Not continuous at $x=1$
Explanation

[Solution by Dr. Abubacker] For $x\ge0$: $f(x)=|x-1|\ge0$, so $g(f(x))=1$. For $x<0$: $f(x)=x+1$; if $x+1<0$ ($x<-1$), $g(f)=x+2$; if $-1\le x<0$, $f\ge0$ and $g(f)=1$. So $(g\circ f)(x)=x+2$ for $x<-1$ and $1$ for $x\ge-1$. At $x=-1$ both sides give $1$, so it is continuous everywhere, but the slope changes from $1$ to $0$, so it is not differentiable at exactly one point ($x=-1$). Answer (1).

Dr. Abubacker
Reviewed by Dr. Abubacker

Physics Educator & NEET/JEE Specialist

Ph.D. in Physics with 19+ years of teaching experience.

Want to attempt the full paper?
View Full Paper Take Full Paper Online