How to add a cubic function and cube root function with domain