Los Angeles, CA (SportsNetwork.com) - The Los Angeles Dodgers used a power surge to beat the San Francisco Giants 7-3 on Wednesday night in the rubber match of a three-game series.

The Dodgers hit four home runs off Giants starter Ryan Vogelsong, three in the first inning.

After wobbly start to his outing, Los Angeles right-hander Zack Greinke (4-0) settled down to pitch six innings. He gave three runs on seven hits with two walks and six strikeouts, improving to 6-0 in eight career starts against the Giants.

Joc Pederson, Adrian Gonzalez, Andre Ethier and Jimmy Rollins all homered off Vogelsong (0-2), who allowed only one other hit in his three innings of work.

"Ryan was flat in general," said Giants manager Bruce Bochy. "His pitches were elevated. He couldn't get the ball down. He just couldn't get us deep into the game."

The Dodgers fell behind 1-0 on Brandon Belt's RBI single, but Pederson led off the bottom of the first by sending Vogelsong's second pitch over the right- center field wall.

After Vogelsong retired the next two batters on groundouts, Gonzalez and Ethier sandwiched homers around a Scott Van Slyke walk.

Ethier did it with the glove, too. He made a diving grab in right center to end the second with two men aboard.

Rollins joined the home run derby with a leadoff blast to right in the third. Howie Kendrick then doubled and eventually scored on Van Slyke's sacrifice fly.

San Francisco trimmed its deficit to 6-3 in the fourth on Brandon Crawford's two-run homer.

The Dodgers got a run back in the bottom of the inning on a sac fly by Greinke.

"I threw a lot of pitches early," Greinke said. "I didn't know if I could get through five innings today. I had great defensive plays behind me."

Los Angeles relievers Adam Liberatore, Chris Hatcher and Yimi Garcia each tossed a hitless inning to finish off the game.

Game Notes

The Dodgers have hit 19 home runs in their 12 home games this season ... San Francisco scored more than two runs off Greinke for just the second time ... Los Angeles third baseman Juan Uribe doubled to extend his hitting streak to 11 games.