Skip to main content

1983 AIME Problem 2

Problem 2 of 15EasierAlgebraProblem-Solving Techniques

Let f(x)=∣x−p∣+∣x−15∣f(x)=|x-p|+|x-15| +∣x−p−15∣,{}+|x-p-15|, where 0<p<15.0<p<15. Determine the minimum value taken by f(x)f(x) for xx in the interval p≤x≤15.p\leq x\leq15.

Your answer

Integer from 0 to 999
Show solution

Solution

Since p≤x≤15,p\leq x\leq15, we have ∣x−p∣=x−p,∣x−15∣=15−x,∣x−p−15∣=p+15−x. \begin{aligned} |x-p|&=x-p,\\ |x-15|&=15-x,\\ |x-p-15|&=p+15-x. \end{aligned} Hence f(x)=30−x.f(x)=30-x. This is minimized at the right endpoint x=15,x=15, where its value is 15.15.
AoPS wiki

Tagged: absolute value · optimization

More practice