In a closed economy, all output is sold domestically, and expenditure is divided into three components: consumption, investment, and government purchases.
If output exceeds domestic spending s, we export the difference: net exports are positive.