I've been reading Hull's chapter about Martingales and measures where he states that if you have the dynamics of two securities as follows:
\begin{align} \frac{df}{f} = (r + \lambda \sigma_f) dt + \sigma_f dW_t^{\mathbb{P}} \\ \frac{dg}{g} = (r + \lambda \sigma_g) dt + \sigma_g dW_t^{\mathbb{P}} \end{align}
and we choose $\lambda=\sigma_g$ (which he calls market price of risk) then the process $(\frac{f}{g})$ becomes a martingale. I understand why it becomes a martingale but I'd like to know if there's some relation between doing this and Girsanov's theorem? or is this approach commonly used when pricing derivatives?