If a<b<c<d & xϵR then the least value of the function, f(x)=|x−a|+|x−b|+|x−c|+|x−d| is
A
c−d+b−a
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
c+d−b−a
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
c+d−b+a
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
c−d+b+a
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is Ac+d−b−a f(x)=⎧⎪
⎪
⎪
⎪
⎪⎨⎪
⎪
⎪
⎪
⎪⎩(a+b+c+d)−4xx<a(b+c+d)−a−2xa≤x<bc+d−a−bb≤x<c2x−(a+b+c)+dc≤x<d4x−(a+b+c+d)x≥d
We can see that upto b, graph is decreasing and it is constant from b to c and incrasing after c. Hence, from the graph ,its clear that least value of the function is (c+d−a−b)