how to derive fraction?????