cubic equations explained