Medium
Simplify both sides. The left side max{x,2}−min{x,2} always equals ∣x−2∣. The right side ∣x+2∣−∣x−2∣ is piecewise linear. Equate and count the distinct real solutions.
1
Rewrite the left side. For any two numbers, max−min is the absolute difference.
max{x,2}−min{x,2}=∣x−2∣
2
Analyse by region. The breakpoints are x=−2 and x=2. The equation is ∣x−2∣=∣x+2∣−∣x−2∣, i.e. 2∣x−2∣=∣x+2∣.
For x≥2: 2(x−2)=x+2⇒x=6(valid, ≥2)⇒ For −2≤x<2: 2(2−x)=x+2⇒x=32(valid)⇒ For x<−2: 2(2−x)=−(x+2)⇒x=6(rejected, not <−2)
3
Count distinct solutions. The valid roots are x=32 and x=6.
number of distinct real x=2