Not sure what this prob is really looking for..would this maybe work:
Dirichlet defined a func. g into a piecewise function depending on whether the input is rational or not. That is:
Using the same idea that Dirchlet did with his constructions, make a function on such that it's diferentiable at a single point.