Constraining the parameter space of a function

5 replies · 2K views · last reply
spaghetti3451
Messages
1,311
Reaction score
31
Consider the function

$$f(x) = - \frac{1}{2}a^{2}x^{2} + \frac{1}{4}bx^{4} + d^{4}\cos(x/c),$$

where ##a##, ##b##, ##c## and ##d## are arbitrary parameters.

For some region(s) of the parameter space, there are oscillations in the function. My goal is to identify these regions of the parameter space.

Here are three examples:

Mathematica plot of -0.01x^2 + 0.01x^4 + cos(x/0.01) over x from -5 to 5, showing a dense band of oscillations filling a U-shaped curve with values from about 0 to 7.
Mathematica plot of -0.01x^2 + 0.01x^4 + Cos[x/10000] over x from -3 to 3, a smooth U-shaped curve rising from near 0 at the origin to about 1.7 at x = ±3, with a flat bottom and no visible oscillations.
Mathematica plot of -10000x^2 + 10000x^4 + Cos[x/0.1] over x from -3 to 3, showing a double-well curve with a flat, wiggly bottom near x = 0 and rising steeply on both sides to about 700000.
Mathematica plot of -0.01x^2 + 100x^4 + Cos[x/0.01] over x from -0.5 to 0.5, showing a U-shaped curve with rapid small oscillations, many dense wiggles across the flat bottom and up the steep sides.
Does this mean that there are bumps in the function only for ##c \sim a## (and any arbitrary value of ##b## and ##d##)?
 
I find that

$$f'(x) = - ax + bx^{3} - \frac{d^{4}}{c}\sin(x/c).$$

Therefore, the minima are given by the solutions to the equation

$$ bcx^{3} - acx = d^{4}\sin(x/c).$$

Finding a closed-form solution to this equation is a big ask, I suppose. But the question is really about the number of solutions to this equation, and not the solutions themselves.
 
mfb said:
There is no closed-form solution, but you know that the right side is limited by ##\pm d^4##.

So, ##bcx^{3} - acx = 0## is a cubic equation with solutions at ##x = 0, \pm \sqrt{\frac{a}{b}}##.

And, ##d^{4}\sin(x/c)## is a sinuosidal function with amplitude ##d^{4}## and period ##2\pi c##.

How can I set up constraints now?
 
You can consider what happens for small d or large c, for example. In which region can it be relevant for the full equation?
How often does the sine term change its sign in this region?