Question
Question: Let $f(x)=|x-\alpha|+|x-\beta|$, where $\alpha, \beta$ are the roots of the equation $x^2-3x+2=0$. T...
Let f(x)=∣x−α∣+∣x−β∣, where α,β are the roots of the equation x2−3x+2=0. Then the number of points in [α,β] at which f is not differentiable is

2
0
1
infinite
2
Solution
The roots of the equation x2−3x+2=0 are found by factoring: (x−1)(x−2)=0. The roots are x=1 and x=2. Let α and β be the roots. Without loss of generality, let α=1 and β=2.
The function is given by f(x)=∣x−α∣+∣x−β∣=∣x−1∣+∣x−2∣. We need to find the number of points in the interval [α,β]=[1,2] at which f is not differentiable.
The function ∣x−c∣ is not differentiable at x=c. The function f(x)=∣x−1∣+∣x−2∣ is a sum of two absolute value functions. The points where the terms inside the absolute value become zero are x=1 and x=2. These are the potential points of non-differentiability.
Let's define f(x) piecewise based on the intervals determined by x=1 and x=2:
- For x<1: x−1<0 and x−2<0.
f(x)=−(x−1)−(x−2)=−x+1−x+2=−2x+3. - For 1≤x<2: x−1≥0 and x−2<0.
f(x)=(x−1)−(x−2)=x−1−x+2=1. - For x≥2: x−1≥0 and x−2≥0.
f(x)=(x−1)+(x−2)=x−1+x−2=2x−3.
The function is defined as: f(x)=⎩⎨⎧−2x+312x−3if x<1if 1≤x<2if x≥2
A function is differentiable at a point if the left-hand derivative (LHD) and the right-hand derivative (RHD) exist at that point and are equal. The derivative of f(x) for x=1 and x=2 is: f′(x)=⎩⎨⎧−202if x<1if 1<x<2if x>2
Now let's check differentiability at x=1 and x=2.
At x=1:
LHD at x=1: f′(1−)=limh→0−hf(1+h)−f(1). For small h<0, 1+h<1.
f(1+h)=−2(1+h)+3=−2−2h+3=1−2h.
f(1)=1.
f′(1−)=limh→0−h(1−2h)−1=limh→0−h−2h=−2.
RHD at x=1: f′(1+)=limh→0+hf(1+h)−f(1). For small h>0, 1<1+h<2.
f(1+h)=1.
f(1)=1.
f′(1+)=limh→0+h1−1=limh→0+h0=0.
Since f′(1−)=f′(1+), f(x) is not differentiable at x=1.
At x=2:
LHD at x=2: f′(2−)=limh→0−hf(2+h)−f(2). For small h<0, 1<2+h<2.
f(2+h)=1.
f(2)=∣2−1∣+∣2−2∣=1+0=1.
f′(2−)=limh→0−h1−1=limh→0−h0=0.
RHD at x=2: f′(2+)=limh→0+hf(2+h)−f(2). For small h>0, 2+h>2.
f(2+h)=2(2+h)−3=4+2h−3=1+2h.
f(2)=1.
f′(2+)=limh→0+h(1+2h)−1=limh→0+h2h=2.
Since f′(2−)=f′(2+), f(x) is not differentiable at x=2.
The points where f is not differentiable are x=1 and x=2. The interval in question is [α,β]=[1,2]. Both points x=1 and x=2 lie within the interval [1,2]. Therefore, there are 2 points in [α,β] at which f is not differentiable.