To any engineer on the Metro-North Railroad’s Hudson line, the stretch where a train derailed on Sunday was well known: It includes one of the sharpest curves in the system, with tracks swinging east along the Harlem River, splitting from an Amtrak corridor that remains on a relative straightaway beside the Hudson River.