p varies jointly as q and square of z​