P varie directly a q and the quare of r and inverely a.