To invest means to allocate resources, usually money, with the expectation of generating an income or profit in the future. In the context of long-run aggregate supply, investment is crucial as it enhances productive capacity by increasing the amount of capital available in an economy, such as machinery, buildings, and technology. This boost in capital contributes to economic growth and shifts the long-run aggregate supply curve to the right, reflecting a higher potential output over time.