GATE 2022 AE – Question 43
The real function $y=\sin^2(|x|)$ is
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) continuous for all x; (B) differentiable for all x
Explanation
**Simplify the function.** For any real $x$, $\sin^2(|x|)=\left(\sin|x|\right)^2$. Since $\sin(-x)=-\sin x$, we have $\sin^2(|x|)=\sin^2x$ for all real $x$ (the sign disappears when squared).
So $y=\sin^2x$, a composition of smooth functions:
- It is continuous for all $x$. ✓ (A)
- Its derivative $2\sin x\cos x=\sin2x$ exists for all $x$, including $x=0$, so it is differentiable everywhere. ✓ (B)
Statements C and D are therefore false. (Compare $\sin|x|$ itself, which has a corner at the origin.)
Answer **A and B**.