find squarer of a function