Ta có: \(\frac{1}{c}=\frac{1}{2}.\left(\frac{1}{a}+\frac{1}{b}\right)\)
\(\Rightarrow\frac{1}{c}:\frac{1}{2}=\frac{1}{a}+\frac{1}{b}\)
\(\Rightarrow\frac{2}{c}=\frac{a}{1}+\frac{b}{1}\)
\(\Rightarrow\frac{2}{c}=\frac{a}{ab}+\frac{b}{ab}\)
\(\Rightarrow\frac{2}{c}=\frac{a+b}{ab}\)
\(\Rightarrow2ab=\left(a+b\right).c\)
\(\Rightarrow2ab=ac+bc\)
\(\Rightarrow ab+ab=ac+bc\)
\(\Rightarrow ab-bc=ac-ab\)
\(\Rightarrow b.\left(a-c\right)=a.\left(c-b\right)\)
\(\Rightarrow\frac{a}{b}=\frac{a-c}{c-b}\left(đpcm\right).\)
Chúc bạn học tốt!