This article shows a technique of evaluating a definite integral by introducing a suitable parameter. This however doesn't throw light on motivation for introducing that particular parameter.
For inctance:
$1)$ $\int_0^\infty \dfrac{\sin x}{x}dx $ can be evaluated by introducing the function $f(b)=\int_0^\infty \dfrac{\sin x}{x}e^{bx}dx$
$2)$ $\int_0^{\pi/2} x\cot x dx$ can be evaluated by introducing $f(b)=\int_0^{\pi/2}\dfrac{\arctan(b\tan(x))}{\tan (x)} dx$
What is the motivation behind these parameters, in general how would I find a parameter to evaluate a particular definite integral without trail and error?