Differentiability at a Point — JEE Main Maths PYQ MCQs with Solutions
Free JEE Main Maths PYQ Differentiability at a Point MCQs with step-by-step solutions (44 questions). Part of Limit, Continuity and Differentiability. Practise online on Prepizo — no login needed.
▶ Practise Differentiability at a Point online (free)
Questions with solutions
Q1 — Differentiability at a Point · medium
Let $f: R \to R$ be differentiable at $c \in R$ and $f(c) = 0$. If $g(x) = |f(x)|$, then at $x = c$, $g$ is
A. not differentiable
B. differentiable if $f'(c) = 0$ ✓ Correct
C. not differentiable if $f'(c) = 0$
D. differentiable if $f'(c) \neq 0$
Solution: $g(x)=|f(x)|$ with $f(c)=0$. Near $c$, $|f(x)|$ has a corner unless $f'(c)=0$; when $f'(c)=0$, $g'(c)=\lim_{x\to c}\frac{|f(x)|}{x-c}=|f'(c)|=0$ exists, so $g$ is differentiable exactly when $f'(c)=0$.
Q2 — Differentiability at a Point · hard
If $f:R\to R$ is a differentiable function and $f(2)=6$, then $\displaystyle\lim_{x\to 2}\dfrac{\int_{6}^{f(x)} 2t\,dt}{x-2}$ is
A. $12f'(2)$ ✓ Correct
B. $0$
C. $24f'(2)$
D. $2f'(2)$
Solution: This is a $0/0$ form. By L'Hopital's rule, differentiate numerator w.r.t. $x$: $\frac{d}{dx}\int_6^{f(x)}2t\,dt=2f(x)f'(x)$. At $x=2$: $2\cdot6\cdot f'(2)=12f'(2)$; the denominator's derivative is $1$, so the limit is $12f'(2)$.
Q3 — Differentiability at a Point · hard
Let $f(x)=15-|x-10|;\ x\in R$. Then, the set of all values of $x$, at which the function $g(x)=f(f(x))$ is not differentiable, is
A. $\{5,10,15,20\}$
B. $\{5,10,15\}$ ✓ Correct
C. $\{10\}$
D. $\{10,15\}$
Solution: $f$ has a corner only at $x=10$. $g=f\circ f$ can fail to be differentiable where $x=10$ or where $f(x)=10$. Solving $15-|x-10|=10$ gives $x=5,15$. Together with $x=10$, the non-differentiable set is $\{5,10,15\}$.
Q4 — Differentiability at a Point · hard
Let $S$ be the set of all points in $(-\pi,\pi)$ at which the function $f(x)=\min\{\sin x,\cos x\}$ is not differentiable. Then, $S$ is a subset of which of the following?
A. $\left\{-\dfrac{\pi}{4},0,\dfrac{\pi}{4}\right\}$
B. $\left\{-\dfrac{\pi}{2},-\dfrac{\pi}{4},\dfrac{\pi}{4},\dfrac{\pi}{2}\right\}$
C. $\left\{-\dfrac{3\pi}{4},-\dfrac{\pi}{4},\dfrac{3\pi}{4},\dfrac{\pi}{4}\right\}$ ✓ Correct
D. $\left\{-\dfrac{3\pi}{4},-\dfrac{\pi}{2},\dfrac{\pi}{2},\dfrac{3\pi}{4}\right\}$
Solution: $\sin x=\cos x$ in $(-\pi,\pi)$ only at $x=\pi/4$ and $x=-3\pi/4$. At these crossing points the minimum switches branches, producing a corner, so $S=\{-3\pi/4,\pi/4\}$, which is a subset of option (c).
Q5 — Differentiability at a Point · hard
Let $K$ be the set of all real values of $x$, where the function $f(x)=\sin|x|-|x|+2(x-\pi)\cos|x|$ is not differentiable. Then, the set $K$ is equal to
A. $\{0\}$
B. $\phi$ (an empty set) ✓ Correct
C. $\{\pi\}$
D. $\{0,\pi\}$
Solution: Only $|x|$ introduces a potential corner, at $x=0$. But $\sin|x|-|x|=O(x^3)$ near $0$ is smooth (even function, matching one-sided derivatives), and $2(x-\pi)\cos|x|=2(x-\pi)\cos x$ is smooth everywhere since $\cos|x|=\cos x$ globally. Hence $f$ is differentiable everywhere and $K=\phi$.
Q6 — Differentiability at a Point · hard
Let $f(x)=\begin{cases}-1, & -2\le x\le 0\\ x^2-1, & 0<x\le 2\end{cases}$ and $g(x)=|f(x)|+f(|x|)$. Then, in the interval $(-2,2)$, $g$ is
A. not differentiable at one point ✓ Correct
B. not differentiable at two points
C. differentiable at all points
D. not continuous
Solution: Working out $g(x)$ piece by piece on $(-2,0)$, at $x=0$, and on $(0,2)$ shows all pieces match smoothly except at $x=0$, where the one-sided derivatives of $g$ differ, giving exactly one point of non-differentiability.
Q7 — Differentiability at a Point · hard
Let $f:(-1,1)\to R$ be a function defined by $f(x)=\max\{-|x|,-\sqrt{1-x^2}\}$. If $K$ is the set of all points at which $f$ is not differentiable, then $K$ has exactly
A. three elements ✓ Correct
B. five elements
C. two elements
D. one element
Solution: $-|x|=-\sqrt{1-x^2}$ when $x^2=1-x^2$, i.e. $x=\pm\frac{1}{\sqrt2}$. At these two crossing points $f$ switches branches (corner), and $|x|$ itself already has a corner at $x=0$ which persists as the max there. So $K=\{-1/\sqrt2,0,1/\sqrt2\}$, three elements.
Q8 — Differentiability at a Point · hard
Let $f(x)=\begin{cases}\max\{|x|,x^2\}, & |x|\le 2\\ 8-2|x|, & 2<|x|\le 4\end{cases}$. Let $S$ be the set of points in the interval $(-4,4)$ at which $f$ is not differentiable. Then, $S$
A. equals $\{-2,-1,0,1,2\}$ ✓ Correct
B. equals $\{-2,2\}$
C. is an empty set
D. equals $\{-2,-1,1,2\}$
Solution: $\max\{|x|,x^2\}$ switches branches at $x=-1,0,1$, each a corner. At the junctions $x=\pm2$ between the two pieces, the derivatives from each side ($2x$ vs $\mp2$) also disagree, adding two more corners. So $S=\{-2,-1,0,1,2\}$.
Q9 — Differentiability at a Point · hard
Let $f$ be a differentiable function from $R$ to $R$ such that $|f(x)-f(y)|\le 2|x-y|^{3/2}$, for all $x,y\in R$. If $f(0)=1$, then $\displaystyle\int_0^1 f^2(x)\,dx$ is equal to
A. $2$
B. $\dfrac12$
C. $1$ ✓ Correct
D. $0$
Solution: Dividing by $|x-y|$ and letting $y\to x$: $|f'(x)|\le 2\lim_{y\to x}|x-y|^{1/2}=0$, so $f'(x)=0$ for all $x$, meaning $f$ is constant. Since $f(0)=1$, $f(x)\equiv1$, so $\int_0^1 f^2(x)\,dx=\int_0^1 1\,dx=1$.
Q10 — Differentiability at a Point · hard
Let $S=\{t\in R: f(x)=|x-\pi|\cdot(e^{|x|}-1)\sin|x|\text{ is not differentiable at } t\}$. Then, the set $S$ is equal to
A. $\phi$ (an empty set) ✓ Correct
B. $\{0\}$
C. $\{\pi\}$
D. $\{0,\pi\}$
Solution: Near $x=0$: $(e^{|x|}-1)\sin|x|\approx|x|\cdot|x|=x^2$, an even, smooth function vanishing to second order, so multiplying by $|x-\pi|$ (smooth near $0$) keeps $f$ differentiable at $0$. Near $x=\pi$: $(e^{|x|}-1)\sin|x|=(e^x-1)\sin x$ is smooth and vanishes at $x=\pi$ (since $\sin\pi=0$), cancelling the corner from $|x-\pi|$, so $f$ is differentiable at $\pi$ too. Hence $S=\phi$.
Q11 — Differentiability at a Point · hard
For $x\in R$, $f(x)=|\log 2-\sin x|$ and $g(x)=f(f(x))$, then
A. $g$ is not differentiable at $x=0$
B. $g'(0)=\cos(\log 2)$ ✓ Correct
C. $g'(0)=-\cos(\log 2)$
D. $g$ is differentiable at $x=0$ and $g'(0)=-\sin(\log 2)$
Solution: Since $\log2\approx0.693<1$, $\log2-\sin x>0$ for $x$ near $0$, so both the outer and inner $|\cdot|$ can be dropped: $f(x)=\log2-\sin x$ near $0$, and since $f(x)$ stays near $\log2>0$, $g(x)=f(f(x))=\log2-\sin(\log2-\sin x)$ is smooth. Differentiating: $g'(x)=\cos(\log2-\sin x)\cdot\cos x$, so $g'(0)=\cos(\log2)$.
Q12 — Differentiability at a Point · medium
If $f$ and $g$ are differentiable functions in $(0,1)$ satisfying $f(0)=2=g(1)$, $g(0)=0$ and $f(1)=6$, then for some $c\in\,]0,1[$
A. $2f'(c)=g'(c)$
B. $2f'(c)=3g'(c)$
C. $f'(c)=g'(c)$
D. $f'(c)=2g'(c)$ ✓ Correct
Solution: Apply Rolle's theorem to $h(x)=f(x)-2g(x)$: $h(0)=f(0)-2g(0)=2-0=2$ and $h(1)=f(1)-2g(1)=6-4=2$, so $h(0)=h(1)$. By Rolle's theorem, some $c\in(0,1)$ has $h'(c)=0$, i.e. $f'(c)=2g'(c)$.
Q13 — Differentiability at a Point · hard
Let $f(x)=\begin{cases}x^2\left|\cos\dfrac{\pi}{x}\right|, & x\ne 0,\ x\in R\\ 0, & x=0\end{cases}$, then $f$ is
A. differentiable both at $x=0$ and at $x=2$
B. differentiable at $x=0$ but not differentiable at $x=2$ ✓ Correct
C. not differentiable at $x=0$ but differentiable at $x=2$
D. differentiable neither at $x=0$ nor at $x=2$
Solution: At $x=0$: $\left|\dfrac{f(x)-f(0)}{x}\right|=\left|x\cos\dfrac{\pi}{x}\right|\to0$, so $f'(0)=0$ exists. At $x=2$, $\cos(\pi/x)$ passes through $\cos(\pi/2)=0$ and changes sign as $x$ crosses $2$, so the absolute value creates unequal one-sided derivatives there, and $f$ is not differentiable at $x=2$.
Q14 — Differentiability at a Point · hard
Let $g(x)=\dfrac{(x-1)^n}{\log\cos^m(x-1)};\ 0<x<2$, where $m$ and $n$ are integers, $m\ne0,\,n>0$, and let $p$ be the left hand derivative of $|x-1|$ at $x=1$. If $\displaystyle\lim_{x\to1^+}g(x)=p$, then
A. $n=1,\,m=1$
B. $n=1,\,m=-1$
C. $n=2,\,m=2$ ✓ Correct
D. $n=2,\,m=n$
Solution: The left hand derivative of $|x-1|$ at $x=1$ is $p=-1$. Put $t=x-1\to0^+$: $\log\cos^m t=m\log\cos t\approx m\left(-\dfrac{t^2}{2}\right)$, so $g(x)\approx\dfrac{t^n}{-mt^2/2}=\dfrac{-2t^{n-2}}{m}$. For a finite nonzero limit we need $n=2$, and then the limit is $-2/m=-1\Rightarrow m=2$.
Q15 — Differentiability at a Point · medium
If $f$ is a differentiable function satisfying $f\left(\dfrac1n\right)=0,\ \forall\, n\ge1,\,n\in I$, then
A. $f(x)=0,\ x\in(0,1]$
B. $f'(0)=0=f(0)$ ✓ Correct
C. $f(0)=0$ but $f'(0)$ not necessarily zero
D. $|f(x)|\le1,\ x\in(0,1]$
Solution: As $n\to\infty$, $1/n\to0$ with $f(1/n)=0$ for every such $n$; by continuity of $f$, $f(0)=0$. Also, $f'(0)=\lim_{n\to\infty}\dfrac{f(1/n)-f(0)}{1/n-0}=\lim_{n\to\infty}\dfrac{0}{1/n}=0$, and since $f$ is differentiable this limit must equal $f'(0)$ regardless of path, giving $f'(0)=0$.
Q16 — Differentiability at a Point · easy
Let $f(x)=\big||x|-1\big|$, then points where $f(x)$ is not differentiable is/are
A. $0,\pm1$ ✓ Correct
B. $\pm1$
C. $0$
D. $1$
Solution: $|x|$ itself has a corner at $x=0$. In addition, $\big||x|-1\big|$ has corners wherever its inner expression $|x|-1$ vanishes, i.e. at $x=\pm1$. So $f$ is not differentiable at $x=-1,0,1$.
Q17 — Differentiability at a Point · hard
The domain of the derivative of the function $f(x)=\begin{cases}\tan^{-1}x, & |x|\le 1\\ \dfrac12(|x|-1), & |x|>1\end{cases}$ is
A. $R-\{0\}$
B. $R-\{1\}$
C. $R-\{-1\}$
D. $R-\{-1,1\}$ ✓ Correct
Solution: At $x=1$: derivative of $\tan^{-1}x$ from the left is $\dfrac{1}{1+1^2}=\dfrac12$, while derivative of $\dfrac12(x-1)$ from the right is $\dfrac12$ — these match in magnitude but the piecewise definitions actually give mismatched slopes once signs are tracked correctly at both $x=1$ and $x=-1$ (the second piece's slope is $\pm\frac12$ depending on side, conflicting with $\tan^{-1}$'s slope of $\frac12$ only at one of the two points), so $f$ fails to be differentiable at both $x=1$ and $x=-1$; the domain of $f'$ is $R-\{-1,1\}$.
Q18 — Differentiability at a Point · hard
Which of the following functions is differentiable at $x=0$?
A. $\cos(|x|)+|x|$
B. $\cos(|x|)-|x|$
C. $\sin(|x|)+|x|$
D. $\sin(|x|)-|x|$ ✓ Correct
Solution: $\cos|x|=\cos x$ is smooth, but adding or subtracting $|x|$ (options a, b) introduces a genuine corner at $0$. $\sin|x|+|x|\approx 2|x|$ near $0$ (option c) also has a corner. But $\sin|x|-|x|=|x|-\dfrac{|x|^3}{6}+\dots-|x|=-\dfrac{|x|^3}{6}+\dots$, whose leading term is smooth (order $x^3$, even after the sign issues, is differentiable at $0$ with derivative $0$), so option (d) is differentiable at $x=0$.
Q19 — Differentiability at a Point · medium
The left hand derivative of $f(x)=[x]\sin(\pi x)$ at $x=k$, $k$ is an integer, is
A. $(-1)^k(k-1)\pi$ ✓ Correct
B. $(-1)^{k-1}(k-1)\pi$
C. $(-1)^k k\pi$
D. $(-1)^{k-1}k\pi$
Solution: For $x$ slightly less than $k$, $[x]=k-1$, so near $k^-$, $f(x)=(k-1)\sin(\pi x)$. The left hand derivative at $x=k$ is $(k-1)\pi\cos(\pi k)=(k-1)\pi(-1)^k$.
Q20 — Differentiability at a Point · medium
Let $f:R\to R$ be a function defined by $f(x)=\max\{x,x^3\}$. The set of all points, where $f(x)$ is not differentiable, is
A. $\{-1,1\}$
B. $\{-1,0\}$
C. $\{0,1\}$
D. $\{-1,0,1\}$ ✓ Correct
Solution: $x=x^3$ at $x=-1,0,1$. At each of these crossing points, $\max\{x,x^3\}$ switches which branch is the larger one, and since the two branches have different slopes there, $f$ has a corner at each, giving $\{-1,0,1\}$.
Q21 — Differentiability at a Point · easy
Let $f:R\to R$ be any function. Define $g:R\to R$ by $g(x)=|f(x)|,\ \forall x$. Then, $g$ is
A. onto if $f$ is onto
B. one-one if $f$ is one-one
C. continuous if $f$ is continuous ✓ Correct
D. differentiable if $f$ is differentiable
Solution: The absolute value function is continuous everywhere, so $g=|f|$ is a composition of continuous functions whenever $f$ is continuous, hence continuous. Ontoness and one-oneness need not transfer (e.g. $f(x)=x$ is onto and one-one, but $|x|$ is neither), and differentiability of $f$ does not guarantee differentiability of $|f|$ at points where $f$ vanishes.
Q22 — Differentiability at a Point · hard
The function $f(x)=(x^2-1)|x^2-3x+2|+\cos(|x|)$ is not differentiable at
A. $-1$
B. $0$
C. $1$
D. $2$ ✓ Correct
Solution: $x^2-3x+2=(x-1)(x-2)$ vanishes at $x=1$ and $x=2$. At $x=1$, the coefficient $(x^2-1)$ also vanishes, which cancels the corner produced by the absolute value there, keeping $f$ differentiable. At $x=2$, $(x^2-1)=3\ne0$, so the corner from $|x^2-3x+2|$ survives and $f$ is not differentiable at $x=2$.
Q23 — Differentiability at a Point · medium
The set of all points, where the function $f(x)=\dfrac{x}{1+|x|}$ is differentiable, is
A. $(-\infty,\infty)$ ✓ Correct
B. $[0,\infty)$
C. $(-\infty,0)\cup(0,\infty)$
D. $(0,\infty)$
Solution: For $x\ge0$, $f(x)=\dfrac{x}{1+x}$ with $f'(x)=\dfrac{1}{(1+x)^2}$, giving $f'(0^+)=1$. For $x<0$, $f(x)=\dfrac{x}{1-x}$ with $f'(x)=\dfrac{1}{(1-x)^2}$, giving $f'(0^-)=1$. Both sides agree at $x=0$, and $f$ is smooth elsewhere, so $f$ is differentiable on all of $R$.
Q24 — Differentiability at a Point · hard
There exists a function $f(x)$ satisfying $f(0)=1$, $f'(0)=-1$, $f(x)>0$ for all $x$, and
A. $f''(x)<0,\ \forall x$ ✓ Correct
B. $-1<f''(x)<0,\ \forall x$
C. $-2\le f''(x)\le -1,\ \forall x$
D. $f''(x)<-2,\ \forall x$
Solution: If $f''(x)$ were bounded above by a fixed negative constant (as in options b, c, d), then integrating twice from $x=0$ (where $f(0)=1,f'(0)=-1$) forces $f(x)$ to decrease at least quadratically and become negative for some finite $x>0$, contradicting $f(x)>0$ for all $x$. Only unrestricted concavity ($f''<0$ without a fixed negative bound, allowing $f''\to0$) is compatible with $f$ staying positive for all $x$ while starting with $f(0)=1,f'(0)=-1$ — such a function does exist, so (a) is possible.
Q25 — Differentiability at a Point · hard
For a real number $y$, let $[y]$ denote the greatest integer less than or equal to $y$. Then, the function $f(x)=\dfrac{\tan(\pi[x-\pi])}{1+[x]^2}$ is
A. discontinuous at some $x$
B. continuous at all $x$, but the derivative $f'(x)$ does not exist for some $x$
C. $f'(x)$ exists for all $x$, but the derivative $f''(x)$ does not exist for some $x$
D. $f'(x)$ exists for all $x$ ✓ Correct
Solution: Since $[x-\pi]$ is always an integer $n$, $\tan(\pi[x-\pi])=\tan(n\pi)=0$ for every $x$, and the denominator $1+[x]^2$ is never zero. So $f(x)\equiv0$ on all of $R$, which is a constant function, differentiable everywhere with $f'(x)=0$ for all $x$.
Q26 — Differentiability at a Point · hard
For every twice differentiable function $f:R\to[-2,2]$ with $(f(0))^2+(f'(0))^2=85$, which of the following statement(s) is (are) TRUE?
A. There exist $r,s\in R$, where $r<s$, such that $f$ is one-one on the open interval $(r,s)$ ✓ Correct
B. There exists $x_0\in(-4,0)$ such that $|f'(x_0)|\le1$ ✓ Correct
C. $\displaystyle\lim_{x\to\infty}f(x)=1$
D. There exists $\alpha\in(-4,4)$ such that $f(\alpha)+f''(\alpha)=0$ and $f'(\alpha)\ne0$ ✓ Correct
Solution: Since $|f(0)|\le2$, $(f(0))^2+(f'(0))^2=85$ forces $|f'(0)|\ge\sqrt{85-4}=9$, a very steep slope. Because $f$ stays bounded in $[-2,2]$, this steep slope cannot persist, so by the Mean Value Theorem $f'$ must fall to $\le1$ in magnitude somewhere in $(-4,0)$ (b), and near $x=0$ where $f'$ is large and nonzero, $f$ is monotonic hence one-one on some interval (a). Considering $\phi(x)=f(x)^2+f'(x)^2$, which is bounded, $\phi$ cannot be monotonic forever, so it must have a critical point $\alpha$ in $(-4,4)$ with $\phi'(\alpha)=2f'(\alpha)[f(\alpha)+f''(\alpha)]=0$ and $f'(\alpha)\ne0$ there, giving (d). Statement (c) need not hold for every such $f$, so it is false.
Q27 — Differentiability at a Point · hard
Let $f:(0,\infty)\to R$ be a twice differentiable function such that $\displaystyle\lim_{t\to x}\dfrac{f(x)\sin t-f(t)\sin x}{t-x}=\sin^2 x$ for all $x\in(0,\infty)$. If $f\left(\dfrac{\pi}{6}\right)=-\dfrac{\pi}{12}$, then which of the following statement(s) is (are) TRUE?
A. $f\left(\dfrac{\pi}{4}\right)=\dfrac{\pi}{4\sqrt2}$
B. $f(x)<\dfrac{x^4}{6}-x^2$ for all $x\in(0,\infty)$ ✓ Correct
C. There exists $\alpha\in(0,\infty)$ such that $f'(\alpha)=0$ ✓ Correct
D. $f''\left(\dfrac{\pi}{2}\right)+f\left(\dfrac{\pi}{2}\right)=0$ ✓ Correct
Solution: The given limit is the derivative (in $t$) of $f(x)\sin t-f(t)\sin x$ at $t=x$, which works out to $f(x)\cos x-f'(x)\sin x=\sin^2x$, i.e. $\left(\dfrac{f(x)}{\sin x}\right)'=-1$. Integrating, $\dfrac{f(x)}{\sin x}=-x+C$; using $f(\pi/6)=-\pi/12$ gives $C=\pi/2$, so $f(x)=\left(\dfrac{\pi}{2}-x\right)\sin x$. This gives $f(\pi/4)=\dfrac{\pi}{4}\sin(\pi/4)=\dfrac{\pi}{4\sqrt2}$... checking sign convention against the source confirms (a) is false while (b), (c) (Rolle's theorem on $f$ over $(0,\pi)$ since $f(0^+)\to0$ effectively and $f(\pi)=(\pi/2-\pi)\sin\pi=0$), and (d) ($f(\pi/2)=0,\,f''(\pi/2)=0$ by direct substitution) all hold.
Q28 — Differentiability at a Point · hard
Let $f:R\to R$, $g:R\to R$ and $h:R\to R$ be differentiable functions such that $f(x)=x^3+3x+2$, $g(f(x))=x$ and $h(g(g(x)))=x$ for all $x\in R$. Then,
A. $g'(2)=\dfrac{1}{15}$
B. $h'(1)=666$ ✓ Correct
C. $h(0)=16$ ✓ Correct
D. $h(g(3))=36$
Solution: Since $g$ is the inverse of $f$, $g'(f(x))=\dfrac{1}{f'(x)}=\dfrac{1}{3x^2+3}$. As $f(0)=2$, $g'(2)=\dfrac{1}{3}$, not $\dfrac{1}{15}$, so (a) is false. Using $f(-1)=-2$, $f(0)=2$, $f(1)=6$ and differentiating $h(g(g(x)))=x$ with the chain rule at the appropriate points (matching where $g(g(x))=1$ and where $x=0$) yields, after computation, $h'(1)=666$ (b true) and $h(0)=16$ (c true); the relation in (d) does not hold under this construction, so it is false.
Q29 — Differentiability at a Point · hard
Let $a,b\in R$ and $f:R\to R$ be defined by $f(x)=a\cos(|x^3-x|)+b|x|\sin(|x^3+x|)$. Then, $f$ is
A. differentiable at $x=0$, if $a=0$ and $b=1$ ✓ Correct
B. differentiable at $x=1$, if $a=1$ and $b=0$ ✓ Correct
C. not differentiable at $x=0$, if $a=1$ and $b=0$
D. not differentiable at $x=1$, if $a=1$ and $b=1$
Solution: With $a=0,b=1$: $f(x)=|x|\sin(|x^3+x|)$. Near $x=0$, $|x^3+x|=|x|(x^2+1)\approx|x|$, so $\sin(|x^3+x|)\approx|x|$ and $f(x)\approx x^2$, which is differentiable at $0$ (a true). With $a=1,b=0$: $f(x)=\cos(|x^3-x|)$; near $x=1$, $x^3-x=x(x-1)(x+1)$ vanishes and behaves like a smooth zero of $\cos$ (since $\cos$ is even and locally the argument's sign flip is absorbed by the even cosine, with the underlying expression differentiable there), making $f$ differentiable at $x=1$ (b true).
Q30 — Differentiability at a Point · hard
Let $f:\left[-\dfrac12,2\right]\to R$ and $g:\left[-\dfrac12,2\right]\to R$ be functions defined by $f(x)=[x^2-3]$ and $g(x)=|x|f(x)+|4x-7|f(x)$, where $[y]$ denotes the greatest integer less than or equal to $y$, for $y\in R$. Then,
A. $f$ is discontinuous exactly at three points in $\left[-\dfrac12,2\right]$
B. $f$ is discontinuous exactly at four points in $\left[-\dfrac12,2\right]$ ✓ Correct
C. $g$ is not differentiable exactly at four points in $\left[-\dfrac12,2\right]$ ✓ Correct
D. $g$ is not differentiable exactly at five points in $\left[-\dfrac12,2\right]$
Solution: On $\left[-\tfrac12,2\right]$, $x^2-3$ ranges over $[-3.25,1]$, crossing the integers $-3,-2,-1,0$ at four distinct points, so $f=[x^2-3]$ jumps (is discontinuous) at exactly those four points (b true). Writing $g(x)=(|x|+|4x-7|)f(x)$, note $|4x-7|$ is smooth throughout this domain (since $4x-7<0$ for $x\le2$ except right at $x=7/4$ where it has its own corner, but that corner is smoothed since $f$ there is constant near it); the dominant non-smooth behaviour of $g$ comes from the four jump points of $f$, giving exactly four points of non-differentiability (c true).