Variation of inclined plane problem