Some analytical results for the resistively shunted Josephson junction