Roger Federer began his quest for a sixth Indian Wells title with a 6-1 7-5 win over Germany's Peter Gojowczyk.