Nonlinear differential equations : invariance, stability and bifurcation