We exploit analytic continuation to prolongate to the region of real chemical potentials the (pseudo)critical lines of QCD with two degenerate staggered fermions at nonzero temperature and quark or isospin density obtained in the region of imaginary chemical potentials. We determine the curvatures at zero chemical potential and quantify the deviation between the cases of finite quark and of finite isospin chemical potential. In both circumstances deviations from a quadratic dependence of the pseudocritical lines on the chemical potential are clearly seen. We try different extrapolations and, for the nonzero isospin chemical potential, confront them with the results of direct Monte Carlo simulations. We also find that, as for the finite quark chemical potential, an imaginary isospin chemical potential can strengthen the transition till turning it into strong first order.