I have been trying to create a function with given local extrema and an extra parameter with no luck.
So as you can see in the image I need a function with local minimum at C with value -C and local maximum at -C with value C. It is also important that the function goes through the (-D,-D) and (D,D) points. Note that D is always grater then C. C and D are free parameters here. It is also important the function is differentiable and continuous.
I have been trying to create a polynomial with such a parameters with no luck. Could somebody help me out here?
