Skip to content

Continuity and differentiability of x2sin⁡(A/x)x^2\sin(A/x)

Math I: Calculus · Weekly test 2025-26, Week 3, open question · 7 points · Lectures 5–6

Problem

Let A,B∈RA,B\in\mathbb{R} and define f ⁣:R→Rf\colon\mathbb{R}\to\mathbb{R} by

f(x)={x2sin⁡(A/x),x≠0,B,x=0.f(x)= \begin{cases} x^2\sin(A/x), & x\neq0,\\ B, & x=0. \end{cases}
  • (a) Find all A,BA,B for which ff is continuous at 0.0\text{.} [2 points]
  • (b) Find all A,BA,B for which ff is differentiable at 0,0\text{,} and determine f′(0).f'(0)\text{.} [3 points]
  • (c) Find all A,BA,B for which f′f' is continuous at 0.0\text{.} [2 points]

What you need

Plan

The factor x2x^2 beats the oscillation of sin⁡(A/x)\sin(A/x) in (a) and (b), so AA never matters there; only BB does. In (c) the derivative for x≠0x\neq0 has a term −Acos⁡(A/x)-A\cos(A/x) with no xx in front, which keeps oscillating. Two sequences that pick out cos⁡=1\cos=1 and cos⁡=−1\cos=-1 show the limit fails unless A=0.A=0\text{.}

Step-by-step solution

Try each step yourself before you open it.

(a) · Continuity at 0 (2 points)

For x≠0,x\neq0\text{,} 0≤∣x2sin⁡(A/x)∣≤x2,0\leq|x^2\sin(A/x)|\leq x^2\text{,} and x2→0.x^2\to0\text{.} By the squeeze theorem,

lim⁡x→0f(x)=0\lim_{x\to0}f(x)=0

for every A.A\text{.} So ff is continuous at 00 exactly when f(0)=B=0,f(0)=B=0\text{,} with AA arbitrary.

Concept: Squeeze theorem for functions

(b) Step 1 · Differentiability forces B = 0 (1 point)

A function that is differentiable at a point is continuous there. By (a), B=0B=0 is necessary.

(b) Step 2 · Compute the difference quotient (2 points)

With B=0,B=0\text{,}

f(x)−f(0)x−0=xsin⁡(Ax),\frac{f(x)-f(0)}{x-0}=x\sin\left(\frac{A}{x}\right),

and ∣xsin⁡(A/x)∣≤∣x∣→0.|x\sin(A/x)|\leq|x|\to0\text{.} So f′(0)=0f'(0)=0 for every A.A\text{.} Hence ff is differentiable at 00 exactly when B=0,B=0\text{,} and then f′(0)=0.f'(0)=0\text{.}

(c) Step 1 · The derivative away from 0

For x≠0,x\neq0\text{,} the product rule and chain rule give

f′(x)=2xsin⁡(Ax)+x2cos⁡(Ax)⋅(−Ax2)=2xsin⁡(Ax)−Acos⁡(Ax).f'(x)=2x\sin\left(\frac{A}{x}\right) +x^2\cos\left(\frac{A}{x}\right)\cdot\left(-\frac{A}{x^2}\right) =2x\sin\left(\frac{A}{x}\right)-A\cos\left(\frac{A}{x}\right).

The first term tends to 0.0\text{.} The second term has no factor xx to damp it.

(c) Step 2 · If A ≠ 0 the limit of f′ does not exist (with Step 3: 2 points)

Take, for positive integers k,k\text{,}

xk=A2πk,yk=A(2k+1)π.x_k=\frac{A}{2\pi k},\quad y_k=\frac{A}{(2k+1)\pi}.

Both tend to 0.0\text{.} At these points sin⁡(A/x)=0,\sin(A/x)=0\text{,} while cos⁡(A/xk)=1\cos(A/x_k)=1 and cos⁡(A/yk)=−1.\cos(A/y_k)=-1\text{.} So

f′(xk)=−A,f′(yk)=A.f'(x_k)=-A,\quad f'(y_k)=A.

Since A≠−AA\neq-A when A≠0,A\neq0\text{,} lim⁡x→0f′(x)\lim_{x\to0}f'(x) does not exist, and f′f' is not continuous at 0.0\text{.}

(c) Step 3 · The remaining case

For f′f' to be continuous at 00 it must first exist there, so B=0B=0 by (b). If also A=0,A=0\text{,} then f≡0,f\equiv0\text{,} so f′≡0,f'\equiv0\text{,} which is continuous. Therefore f′f' is continuous at 00 exactly when A=B=0.A=B=0\text{.}

Where marks are lost

  • Using the derivative formula at x=0.x=0\text{.} The formula from (c) Step 1 is only valid for x≠0.x\neq0\text{.} At 00 you must use the difference quotient.
  • Concluding from "cos⁡(A/x)\cos(A/x) has no limit" without proof. Give two sequences with different limits of f′,f'\text{,} as above.
  • Forgetting BB in (b) and (c). Differentiability and continuity of f′f' both need ff to be continuous at 00 first.

Try next

Symbols: delta, element of, epsilon, pi, real numbers