Most likely coming from chain rule. Whenever the thing you are taking derivative of is not in the proper chain rule is required.
In this case let u = tan^-1(x/3)
To keep things simple try finding first d/dx (tan^-1(x/3)) use a online differentiation calculator if need be.