This article concerns an optimal control problem arising in neo-classical macro-economics, where the objective is to maximize expenditure on social programs over the time horizon by choosing the appropriate balance between investment for growth and consumption. The underlying model and utility function are due to Solow and have their origins in a planning problem studied by Ramsey. The problem is of control theoretic interest, because the right side of the controlled differential equation and also the utility integrand are not uniformly Lipschitz continuous with respect to the state variable, owing to the presence of a fractional singularity. We introduce and apply a nonstandard verification technique, the verification function for which has infinite slope at a point approaching the boundary of its domain, to deal with these singularities and to provide a detailed solution to the problem and analyze its structure, for arbitrary initial data.