The perimeter of a square with a length of 5x can be represented by the expression 45x. This is because the perimeter of a square is equal to the length of any side of the square multiplied by the total number of sides, which is 4 for a square. So, for a square with a length of 5x, the perimeter would be 45x, or 20x.