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