In the context of the wave theory the axial intensity of a focused Gaussian beam has been calculated to the first order of the perturbation theory in the nonlinearity parameter for stationary and nonstationary regimes of thermal defocusing. An approximation formula has been derived that allows the generalization of the obtained results to be made, including strong nonlinearity.