a problem relate to analytic function Suppose $f$ is an analytic function on $|z|\leq 1$ with $f(0)=0$, and let $|f(z)|$ have a maximum for $|z|\leq 1$ at 1, show that $f'(1)\neq 0$ unless $f$ is a constant. 

Remarks:
1, At first attempt, I tried to construct some function related to $f$, and then try to use Schwarz's lemma, but I got stuck; now I guess there exists an direction from $1$ such that the modulus locally increase.
2, To be precise, when applying Schwarz's lemma to $\frac{f}{|f(1)|}$, I got stuck because 1 is not in the open disk. 
 A: Suppose that $f$ is not a constant function and $f'(1)=0$. Let $f(1)=Me^{i\theta}$, where $M=|f(1)|$. It suffice to show that there exists $z$ with $|z|<1$, such that $|f(z)|>M$.
Since $f$ is analytic at $z=1$, $f'(1)=0$ and $f$ is not a constant function, there exists $n\ge 2$ and $a\ne 0$, such that when $z$ is close to $1$,
$$f(z)=f(1)+a(z-1)^n+R_n(z),$$
where $\lim_{z\to 1}\frac{|R_n(z)|}{|z-1|^n}=0$. In particular, when $|z-1|$ is small, $|R_n(z)|\le\frac{|a|}{4}|z-1|^n$, and hence 
$$|f(z)|\ge |f(1)+a(z-1)^n|-|R_n(z)|\ge |M+ae^{-i\theta}(z-1)^n|-\frac{|a|}{4}|z-1|^n.\tag{1}$$
Since $n\ge 2$, there exists $\frac{\pi}{2}<\phi<\frac{3\pi}{2}$, such that 
$$\mathrm{Re}(ae^{-i\theta}e^{in\phi})>\frac{|a|}{2}.\tag{2}$$ Since $\cos\phi<0$, when $r>0$ is sufficiently small, for $z=1+re^{i\phi}$, $|z|<1$.
Therefore, according to $(1)$ and $(2)$,
$$|f(z)|\ge \mathrm{Re}(M+ae^{-i\theta}(z-1)^n)-|R_n(z)|\ge M+\frac{|a|}{4}r^n>M,$$
which completes the proof.
A: Take $ g = \dfrac{f}{M} $, where $ M $ is the maximum of $ f $ on the unit disk. Observe that $ |g(z)| = |z| $ holds iff $ g'(z) = az $, so $ |a| = 1 $ by Schwarz's Lemma. But this implies that $ |g'(0)| > 0 $, so $ |f'(0)| > 0 $.
