BRIDGEVIEW, Ill. (AP) — Julie Ertz, Tobin Heath and Alex Morgan scored second-half goals and the United States took control to beat Brazil 4-1 on Thursday night for the Tournament of Nations title.

Heath's curling goal in the 62nd minute put the United States up 3-1 and gave the team the margin it needed to edge defending tournament champion Australia. The Matildas edged Japan 2-0 earlier in the day at Toyota Park, putting pressure on the Americans to beat Brazil by two goals to finish atop the table.

Morgan helped secure the title with her 90th international goal in the 77th minute and the Americans extended their undefeated streak to 19 matches. The United States has not dropped a match since losing 1-0 to Australia in the Tournament of Nations last year.

There was concern in the final moments when Morgan was stretched off with an apparent injury, but she was on her feet for the trophy ceremony following the game. Morgan had four goals in the tournament.

"Brazil's so technical, so we knew that they were going to bring it. There's a lot of things that we can learn as well," Ertz said. "This tournament was huge for use in terms of progress, obviously with qualifying coming up. We're got to tweak a few things but I'm just so proud of this team and how hard we work for each other."

The United States, ranked No. 1 in the world, is gearing up for World Cup qualifying in October. The Americans hope to defend their title next summer at the World Cup in France.

Brazil, ranked No. 7 in the world and led by five-time FIFA World Player of the Year Marta, has already qualified for France.

The Brazilians struck first with an own goal that hit Tierna Davidson in the 16th minute. But Lavelle tied it with her third international goal in the 33rd minute.

"I think we knew we couldn't take our foot off the pedal, even though they got that goal. We knew we still had to keep being aggressive and be on our front foot and attacking and not let it get to us," said Lavelle, who started. "Thankfully it worked."

Ertz pulled the United States in front with a sliding goal off Heath's cross to the far post in the 53rd minute before Heath added her own goal.

Alanna Kennedy and Sam Kerr each scored for Australia in the opening game at Toyota Park. The eight-ranked Matildas have a secured a spot in the World Cup.

Japan, ranked sixth, has also qualified from France.