Solve the equation $\varphi(7^x)=294$
$\varphi$ represents Euler's totient function.
I don't understand the solution: $$\varphi(7^x)=7^x\cdot(1-\frac{1}{7})=7^{x-1}\cdot 6=294$$ $$7^{x-1}=49=7^2$$ $$x-1=2\Rightarrow x=3$$
Why is $\varphi(7^x)=7^x\cdot(1-\frac{1}{7})$?