Bifurcation Theory: An Introduction with Applications