Making a Function that Strictly Increases and Decreases Once between Roots

55 Views Asked by At

Given any continuous function with finite roots such that $f(x) \geq 0$ for all $x$, is there a way to modify it so that it strictly increases and decreases once between those roots? You may not necessarily know where the roots are, but you do have intervals for where the roots lie.

Here is a picture of the output of the modification to a function: enter image description here