Plot[Piecewise[{{x, x <= 5}, {5+arctan(% 28x-5)/3)*3*2/Pi, x >= 5}}], {x, 0, 30}]