plot Piecewise[{{x,x<=500},{500+(x-500)^1.2,500<x<=40845},{8.25x,x>40845}}] and x between 0 and 50000