Why both intervals widen as you leave the data
You fit a simple linear regression and draw the interval band around the fitted line. It hugs the line tightly near the middle of your data and fans out toward the edges.
Explain the term that makes both the confidence and prediction intervals widen away from the center, and why it penalizes extrapolation.
Show a hint
Both interval variances share a piece that depends on how far the query point sits from the average of your training inputs.
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.