A method of generating integral representations