GDP is a measure of the total value of goods and services produced in a country over time. It is made up of 4 categories: investments, personal consumption, net exports, and government expenditures. The document compares these GDP categories for Denmark and Portugal over 5 years and calculates their rates of economic growth to assess direction and growth over time.