To compress horizontally means you multiply the scale factor by "x"
Divide both sides by :
Substitute , so that .
Divide both sides by :
The left side can be condensed as the derivative of a product:
Integrate both sides. The integral on the right side can be done by parts.
Now solve for .