http://www.irs.gov/publications/p970/ch07.html
Note that this differs from qualified educational expenses for determining taxable scholarship income.