The method of variational inequalities is a useful theoretical tool in stochastic control, but there are few problems in which this method leads to an explicit solution. We present such a problem drawn from portfolio management. An agent can distribute his wealth between two investments, one...