Function spaces, approximations, and differential equations