Pencils and mathematical function graph