A diffeomorphism $f : S_1 \to S_2$ is conformal if and only if there exists a smooth positive-valued function $\lambda : S_1 \to \mathbb{R}$ such that $$\langle(df)_p(v_1),(df)_p(v_2)\rangle_{f(p)} = \lambda(p)^{2}\langle v_1,v_2\rangle_{(p)}$$ for all $p\in S_1$ and all $v_1,v_2 \in T_pS_1$.
How can we show this if and only if statement, this in the textbok of Differential Geometry of Curves and Surfaces. Are we going to use the definition that "a diffeomorphism is conformal if $\text{d}f$ preserves angles"?
Can you help me?