A function $f(z)$ is analytic within a closed contour $C$ (and continuous on $C$). If $f(z)\neq 0$ within $C$ and $|f(z)|\leq M$ on $C$, show that $|f(z)|\leq M$ for all points within $C$.
Hint: Consider $w(z)=\frac{1}{f(z)}$
I am unable to make any progress in this question, it lies under the section of Cauchy Integral Formula. Any help is appreciated. Thanks.
Note I suspect you stated the problem wrong, because what you say you want has nothing to do with $w=1/f$, it's just the Maximum Modulus Principle.
My conjecture is the problem actually says that if $|f|\ge M$ on $C$ then $|f|\ge M$ in the interior. Assuming that's what we want:
This is just the Maximum Modulus Principle applied to $w=1/f$.
Of course MMP gets stated in various ways; some versions contain what we need to prove as a special case, other versions require a little argument. There's a trick for getting MMP from the Cauchy Integral Formula:
For convenience let's say $A(C)$ is the class of functions analytic inside $C$ and continuous up to $C$, and assume that $C$ has winding number $1$ about every point in the interior. Say the interior is $V$, and define $$||w|||_C=\sup_{\xi\in C}|w(\xi)|.$$
And now the trick:
Proof: If $w\in A(C)$ and $n$ is a positive integer then $w^n\in A(C)$, so $$|w(z)|^n\le c_z||w^n||_C=c_z||w||_C^n.$$Take $n$-th roots and let $n\to\infty$.