Please follow https://www.irs.gov/newsroom/what-taxpayers-need-to-know-about-claiming-the-credit-for-other-dependents.