Based on a mathematical formula developed by the Department of Transportation, the ninth digit is used to detect incorrect VINs.