https://www.irs.gov/taxtopics/tc553.html
Note that it says for fulltime students over 19 using form 8615 applies if their earned income is less than half of their support.
If your D has only investment income she wouldn’t have earned income, only unearned.