This is an introduction to stochastic control theory with applications to economics, first published in 2004.