Some of the most important investments a nation makes are not visible in earnings reports. They happen in laboratories, universities, research centers, and classrooms.