plot{Abs[ArcTan[x] - Piecewise[{{(9x+3x^3)/(9+6x^2), x <= 1}, {pi/2-(9(1/x)+3(1/x)^3)/(9+6(1/x)^2), x > 1}}]]}, x = 0..3