2\frac{\cos(ax)-\cos(a+1)x}{x^2}=-4\frac{\sin(a+1/2)x\sin x/2}{x^2}