We find the transformation properties of the prepotential F of N=2 SUSY gauge theory with gauge group SU(2). In particular we show that G(a)=πi(F(a)−21a∂aF(a)) is modular invariant. This function satisfies the non-linear differential equation (1−G2)G′′+41aG′3=0, implying that the instanton contribution are determined by recursion relations. Finally, we find u=u(a) and give the explicit expression of F as function of u. These results can be extended to more general cases.