We study a system consisting of a superconducting flux qubit strongly coupled to a microwave cavity. The fundamental cavity mode is externally driven and the response is investigated in the weak nonlinear regime. We find that near the crossing point, at which the resonance frequencies of the cavity mode and qubit coincide, the sign of the Kerr coefficient changes, and consequently the type of nonlinear response changes from softening to hardening. Furthermore, the cavity response exhibits superharmonic resonances when the ratio between the qubit frequency and the cavity fundamental mode frequency is tuned close to an integer value. The nonlinear response is characterized by the method of intermodulation and both signal and idler gains are measured. Cavity quantum electrodynamics (CQED) [1] is the study of the interaction between photons confined in a cavity and atoms (natural or artificial). The interaction is commonly described by the Rabi or Jaynes-Cummings Hamiltonians [2], and it has been the subject of numerous theoretical and experimental investigations. An on-chip CQED system can be realized by integrating a Josephson qubit [3][4][5] (playing the role of an artificial atom) with a superconducting microwave resonator (cavity) [6][7][8]. Superconducting CQED systems have generated a fast growing interest due to the possibility to reach the strong [7] and ultra-strong [9, 10] coupling regimes, and due to potential applications in quantum information processing [4,[11][12][13].In this study we investigate the driven dynamics of a strongly interacting system composed of a superconducting flux qubit [15,16] and a coplanar waveguide (CPW) microwave cavity [9,14,[17][18][19][20][21]. The nonlinear cavity response [22][23][24][25][26][27][28][29][30][31][32][33][34][35][36] is measured as a function of the magnetic flux that is applied to the qubit. At weak driving and when the ratio between the qubit frequency and the cavity fundamental mode frequency is tuned close to the value ω a /ω c = 1 the common Jaynes-Cummings resonance, which henceforth is referred to as the primary resonance, is observed. With stronger driving, however, and when the ratio ω a /ω c is tuned close to integer values larger than unity, superharmonic resonances appear in the measured response. Intermodulation (IMD) measurements are employed to characterize the nonlinear response [37][38][39]. The results are compared with the predictions of a theoretical model, which is based on linearization of the equations of motion that govern the dynamics of the CQED system under study.