It was Neymar’s first goal of the tournament but he also may have been lucky to escape with just a yellow card for chopping down Andres Roa and provoking a brawl between the two teams just before half-time.
Brazil were the better team throughout and Luan got the second goal they deserved seven minutes from time when he lifted a sublime chip over the goalkeeper from 25 yards out.
“It was very important that we scored early and that helped us not fall into their trap of winding us up,” said defender Marquinhos after the game in Sao Paulo.
“We are very disciplined to not lose a goal and when we score early that allows us to open up a bit. We held it together at the back and we played well.”
Brazil will face Honduras in Wednesday’s semi-final in Rio after the Central Americans stunned South Korea 1-0 thanks to Alberth Elis’ 59th-minute winner in Belo Horizonte.
Earlier, Germany had hammered Portugal 4-0 to set up a semi-final clash with Nigeria in Sao Paulo on Wednesday