Considering small length of the rod, the charge will be given by

Hence, potential at point will be given by

where 'r' is the distance of the small element from

could not be calculated from expression for potential derived in (a) because it requires the expression to be a function of x whereas in (a) it has been derived as function of y.