Please follow https://www.irs.gov/newsroom/things-taxpayers-should-know-about-claiming-dependents.