Wikipedia has given the correct approach .
First calculate B(x) on the common axis . ( to do this just superpose two fields of two coils by putting x= x ; and x= ( h-x) = ( R-x) respectively . )
Now evaluate the derivatives at x=R/2;
But for first two derivatives , if u know vector calculus , it will directly follow from the differential version of Maxwell's law .
We always have div B = 0 so B , at the common axis being a fn of only x we get dB/dx= 0 ............( 1)
again curl B = 0 ( since at the midpoint J = 0 and B here a static field )
so curl curl B = 0
so del squared B = 0 ( as div.B = 0 )
i.e. d2B/dx2 = 0