For horizontal compressions, I know you do it if x is greater than 1, but do you divide or multiply the x value by the c value?

**Why would it be a vertical compression of c?**So if you had f(x)=2x, what would you do with the 2 and the x values?

For horizontal stretches (0<x<1), I basically have the same question. What would you do as far as the c and the x values?

**Why would it be a vertical compression by c?**So if you had f(x)=1/2x, what would you do with the 1/2 and the x values?

**Basically, if you could explain the first answer given and why that would work, that'd be great. Thank you!**