cubic function factoring equation