You need to complete Form 8862 and attach it to your tax return if:
Your earned income credit (EIC), child tax credit (CTC)/additional child tax credit (ACTC), credit for other dependents (ODC) or American opportunity credit (AOTC) was reduced or disallowed for any reason other than a math or clerical error.
You want to take the credit(s) and meet all the requirements.