For this we should know the dependence of the physical quantity on other quantities and consider it as a product type of the dependence.
Q)Consider a simple pendulum, having a bob attached to a string, that oscillates under the action of the force of gravity. Suppose that the period of oscillation of the simple pendulum depends on its length (l), mass of the bob (m) and acceleration due to gravity (g). Derive the expression for its time period using method of dimensions.
The dependence of time period T on the quantities l, g and m as a product may be written as
where k is dimensionless constant and x, y and z are the exponents. By considering dimensions on both sides, we have