Given piecewise function
We have
f ( x ) = { ∣ 4 x 2 − 8 x + 5 ∣ , if 8 x 2 − 6 x + 1 ≥ 0 , [ 4 x 2 − 8 x + 5 ] , if 8 x 2 − 6 x + 1 < 0 , f(x)=
\begin{cases}
|4x^2-8x+5|, & \text{if } 8x^2-6x+1\ge 0,\\[4pt]
\left[4x^2-8x+5\right], & \text{if } 8x^2-6x+1<0,
\end{cases} f ( x ) = { ∣4 x 2 − 8 x + 5∣ , [ 4 x 2 − 8 x + 5 ] , if 8 x 2 − 6 x + 1 ≥ 0 , if 8 x 2 − 6 x + 1 < 0 ,
where [ α ] [\alpha] [ α ] is the greatest integer function.
We must find the number of points in R \mathbb R R where f f f is not differentiable .
First find where each branch applies
Consider
8 x 2 − 6 x + 1 = ( 4 x − 1 ) ( 2 x − 1 ) . 8x^2-6x+1=(4x-1)(2x-1). 8 x 2 − 6 x + 1 = ( 4 x − 1 ) ( 2 x − 1 ) .
So,
8 x 2 − 6 x + 1 ≥ 0 ⟺ x ≤ 1 4 or x ≥ 1 2 , 8x^2-6x+1\ge 0 \iff x\le \frac14 \quad \text{or} \quad x\ge \frac12, 8 x 2 − 6 x + 1 ≥ 0 ⟺ x ≤ 4 1 or x ≥ 2 1 ,
and
8 x 2 − 6 x + 1 < 0 ⟺ 1 4 < x < 1 2 . 8x^2-6x+1<0 \iff \frac14 < x < \frac12. 8 x 2 − 6 x + 1 < 0 ⟺ 4 1 < x < 2 1 .
Thus,
for x ≤ 1 4 x\le \frac14 x ≤ 4 1 or x ≥ 1 2 x\ge \frac12 x ≥ 2 1 , f ( x ) = ∣ 4 x 2 − 8 x + 5 ∣ f(x)=|4x^2-8x+5| f ( x ) = ∣4 x 2 − 8 x + 5∣ ,
for 1 4 < x < 1 2 \frac14<x<\frac12 4 1 < x < 2 1 , f ( x ) = [ 4 x 2 − 8 x + 5 ] f(x)=[4x^2-8x+5] f ( x ) = [ 4 x 2 − 8 x + 5 ] .
Simplify the quadratic inside
Let
g ( x ) = 4 x 2 − 8 x + 5 = 4 ( x − 1 ) 2 + 1. g(x)=4x^2-8x+5=4(x-1)^2+1. g ( x ) = 4 x 2 − 8 x + 5 = 4 ( x − 1 ) 2 + 1.
Since
4 ( x − 1 ) 2 + 1 ≥ 1 > 0 for all x , 4(x-1)^2+1\ge 1>0 \quad \text{for all } x, 4 ( x − 1 ) 2 + 1 ≥ 1 > 0 for all x ,
we have
∣ g ( x ) ∣ = g ( x ) . |g(x)|=g(x). ∣ g ( x ) ∣ = g ( x ) .
So the outer branch is simply
f ( x ) = 4 x 2 − 8 x + 5 for x ≤ 1 4 or x ≥ 1 2 . f(x)=4x^2-8x+5 \quad \text{for } x\le \frac14 \text{ or } x\ge \frac12. f ( x ) = 4 x 2 − 8 x + 5 for x ≤ 4 1 or x ≥ 2 1 .
Hence the function becomes
f ( x ) = { 4 x 2 − 8 x + 5 , x ≤ 1 4 or x ≥ 1 2 , [ 4 x 2 − 8 x + 5 ] , 1 4 < x < 1 2 . f(x)=
\begin{cases}
4x^2-8x+5, & x\le \frac14 \text{ or } x\ge \frac12,\\[4pt]
\left[4x^2-8x+5\right], & \frac14 < x < \frac12.
\end{cases} f ( x ) = { 4 x 2 − 8 x + 5 , [ 4 x 2 − 8 x + 5 ] , x ≤ 4 1 or x ≥ 2 1 , 4 1 < x < 2 1 .
Study the middle interval ( 1 4 , 1 2 ) \left(\frac14,\frac12\right) ( 4 1 , 2 1 )
On this interval,
g ( x ) = 4 x 2 − 8 x + 5. g(x)=4x^2-8x+5. g ( x ) = 4 x 2 − 8 x + 5.
Let us find its range there.
Since
g ′ ( x ) = 8 x − 8 < 0 for all x < 1 , g'(x)=8x-8<0 \quad \text{for all } x<1, g ′ ( x ) = 8 x − 8 < 0 for all x < 1 ,
in particular on ( 1 4 , 1 2 ) \left(\frac14,\frac12\right) ( 4 1 , 2 1 ) , g g g is strictly decreasing.
Now,
g ( 1 4 ) = 4 ⋅ 1 16 − 8 ⋅ 1 4 + 5 = 1 4 − 2 + 5 = 13 4 = 3.25 , g\left(\frac14\right)=4\cdot\frac1{16}-8\cdot\frac14+5=\frac14-2+5=\frac{13}{4}=3.25, g ( 4 1 ) = 4 ⋅ 16 1 − 8 ⋅ 4 1 + 5 = 4 1 − 2 + 5 = 4 13 = 3.25 ,
g ( 1 2 ) = 4 ⋅ 1 4 − 8 ⋅ 1 2 + 5 = 1 − 4 + 5 = 2. g\left(\frac12\right)=4\cdot\frac14-8\cdot\frac12+5=1-4+5=2. g ( 2 1 ) = 4 ⋅ 4 1 − 8 ⋅ 2 1 + 5 = 1 − 4 + 5 = 2.
Since endpoints are not included in the middle interval,
g ( x ) ∈ ( 2 , 13 4 ) for 1 4 < x < 1 2 . g(x)\in (2,\tfrac{13}{4}) \quad \text{for } \frac14<x<\frac12. g ( x ) ∈ ( 2 , 4 13 ) for 4 1 < x < 2 1 .
Therefore,
{ 3 , 3 ≤ g ( x ) < 4 , 2 , 2 ≤ g ( x ) < 3. \begin{cases}
3, & 3\le g(x)<4,\\
2, & 2\le g(x)<3.
\end{cases} { 3 , 2 , 3 ≤ g ( x ) < 4 , 2 ≤ g ( x ) < 3.
Since g ( x ) < 13 4 < 4 g(x)<\frac{13}{4}<4 g ( x ) < 4 13 < 4 , only values 2 2 2 and 3 3 3 occur.
So the floor-function branch can change only where
g ( x ) = 3. g(x)=3. g ( x ) = 3.
Find discontinuity/non-differentiability inside the middle interval
Solve
4 x 2 − 8 x + 5 = 3. 4x^2-8x+5=3. 4 x 2 − 8 x + 5 = 3.
This gives
4 x 2 − 8 x + 2 = 0 4x^2-8x+2=0 4 x 2 − 8 x + 2 = 0
2 x 2 − 4 x + 1 = 0 2x^2-4x+1=0 2 x 2 − 4 x + 1 = 0
x = 4 ± 16 − 8 4 = 1 ± 2 2 . x=\frac{4\pm\sqrt{16-8}}{4}=1\pm \frac{\sqrt2}{2}. x = 4 4 ± 16 − 8 = 1 ± 2 2 .
Among these, only
x = 1 − 2 2 x=1-\frac{\sqrt2}{2} x = 1 − 2 2
lies in ( 1 4 , 1 2 ) \left(\frac14,\frac12\right) ( 4 1 , 2 1 ) .
At this point, the floor function jumps from 3 3 3 to 2 2 2 , so f f f is discontinuous there, hence not differentiable there.
So one non-differentiable point is
x = 1 − 2 2 . x=1-\frac{\sqrt2}{2}. x = 1 − 2 2 .
Check the boundary points x = 1 4 x=\frac14 x = 4 1 and x = 1 2 x=\frac12 x = 2 1
These are where the definition changes, so they must be tested carefully.
At x = 1 4 x=\frac14 x = 4 1
Since x = 1 4 x=\frac14 x = 4 1 belongs to the first branch,
f ( 1 4 ) = g ( 1 4 ) = 13 4 . f\left(\frac14\right)=g\left(\frac14\right)=\frac{13}{4}. f ( 4 1 ) = g ( 4 1 ) = 4 13 .
For x → ( 1 4 ) − x\to \left(\frac14\right)^- x → ( 4 1 ) − ,
f ( x ) = g ( x ) → 13 4 . f(x)=g(x) \to \frac{13}{4}. f ( x ) = g ( x ) → 4 13 .
For x → ( 1 4 ) + x\to \left(\frac14\right)^+ x → ( 4 1 ) + , we are in the floor branch. Since on ( 1 4 , 1 2 ) \left(\frac14,\frac12\right) ( 4 1 , 2 1 ) ,
g ( x ) < 13 4 < 4 and g ( x ) > 3 , g(x)<\frac{13}{4}<4 \quad \text{and} \quad g(x)>3, g ( x ) < 4 13 < 4 and g ( x ) > 3 ,
so
[ g ( x ) ] = 3. [g(x)]=3. [ g ( x )] = 3.
Thus
lim x → ( 1 / 4 ) + f ( x ) = 3 ≠ 13 4 . \lim_{x\to (1/4)^+} f(x)=3 \ne \frac{13}{4}. lim x → ( 1/4 ) + f ( x ) = 3 = 4 13 .
Hence f f f is discontinuous at x = 1 4 x=\frac14 x = 4 1 , so it is not differentiable there.
At x = 1 2 x=\frac12 x = 2 1
Since x = 1 2 x=\frac12 x = 2 1 belongs to the first branch,
f ( 1 2 ) = g ( 1 2 ) = 2. f\left(\frac12\right)=g\left(\frac12\right)=2. f ( 2 1 ) = g ( 2 1 ) = 2.
For x → ( 1 2 ) − x\to \left(\frac12\right)^- x → ( 2 1 ) − , in the floor branch we have g ( x ) > 2 g(x)>2 g ( x ) > 2 but close to 2 2 2 , so
[ g ( x ) ] = 2. [g(x)]=2. [ g ( x )] = 2.
Thus
lim x → ( 1 / 2 ) − f ( x ) = 2. \lim_{x\to (1/2)^-} f(x)=2. lim x → ( 1/2 ) − f ( x ) = 2.
For x → ( 1 2 ) + x\to \left(\frac12\right)^+ x → ( 2 1 ) + ,
f ( x ) = g ( x ) → 2. f(x)=g(x) \to 2. f ( x ) = g ( x ) → 2.
So f f f is continuous at x = 1 2 x=\frac12 x = 2 1 .
Now check differentiability:
Left of 1 2 \frac12 2 1 , f ( x ) = 2 f(x)=2 f ( x ) = 2 in a neighborhood sufficiently close to 1 2 \frac12 2 1 (inside the middle interval), so
f − ′ ( 1 2 ) = 0. f'_-(\tfrac12)=0. f − ′ ( 2 1 ) = 0.
Right of 1 2 \frac12 2 1 , f ( x ) = g ( x ) f(x)=g(x) f ( x ) = g ( x ) , so
f + ′ ( 1 2 ) = g ′ ( 1 2 ) = 8 ⋅ 1 2 − 8 = − 4. f'_+(\tfrac12)=g'(\tfrac12)=8\cdot\frac12-8=-4. f + ′ ( 2 1 ) = g ′ ( 2 1 ) = 8 ⋅ 2 1 − 8 = − 4.
Since
f − ′ ( 1 2 ) ≠ f + ′ ( 1 2 ) , f'_-(\tfrac12) \ne f'_+(\tfrac12), f − ′ ( 2 1 ) = f + ′ ( 2 1 ) ,
f f f is not differentiable at x = 1 2 x=\frac12 x = 2 1 .
Count all non-differentiable points
They are:
x = 1 4 x=\frac14 x = 4 1
x = 1 − 2 2 x=1-\frac{\sqrt2}{2} x = 1 − 2 2
x = 1 2 x=\frac12 x = 2 1
So the total number of points is
3 . \boxed{3}. 3 .
Comparison with stored answer
Derived answer = 3 3 3 .
Stored correct answer = 3 3 3 .
They agree.