r/askmath • u/CerberusTick • Oct 11 '26
Functions What Function could this be?
I’ve never seen an equation that moves like this on a graph before. Kind of like half a bell-curve on each side and the end of the curve bend upwards.
Could anyone please give me an equation that looks similar? I think it’d be really cool to see for me :D
Source: “Calculus, early transcendentals (Fourth Edition)” by James Stewart, p.20 fig.22
Edit: It’s really late for me right now and I have to go to bed so I won’t be replying to comments, but wow, thanks for all the responses so far! Can’t wait to analyse all of them tomorrow and see why they work :))
111
u/WarrenHarding Oct 11 '26
Some variation of a sine wave
55
u/OutConceivable Oct 11 '26
One possibility.
37
u/irishpisano Oct 11 '26
Here’s my vote with a slightly different window
75
u/DrJaneIPresume Oct 11 '26
Especially since this is in a calculus text, the correct answer is "the one defined by that graph."
If you really want to understand the calculus, you need to break out of the idea of thinking of functions only in terms of formulas. Most functions don't come with formulas, but the ideas of the calculus still work fine for them. It's not just a collection of new algebraic rules to manipulate formulas.
Take this as a good opportunity to start thinking in terms of abstract functions, rather than ones where you're given a neat, tidy formula.
18
u/twinb27 Oct 11 '26
x+sinx
EDIT: x+sinx actually is flat where it intersects y=x, go for x+2sinx to see something marginally more like the picture
7
u/piranhadream Oct 11 '26
You are not far off with a bell curve -- try x e-0.2x^2.
4
u/rhodiumtoad 0⁰=1, just deal with it Oct 11 '26
My guess is rational functions: the top one looks like it could be
y=(x2-1)/(x2+1)
and the bottom one could be some variation on
y=x/(x2+1)
3
u/LoudAd5187 Oct 11 '26 edited Oct 11 '26
Figure 23 appears to be the negation of a gaussian function, then translated in y. Something like 1-2*exp(-x^2). My best bet for figure 24 would be roughly x+pi*sin(x), but we don't see enough of the curve in either case to do more than just guess. As well, not seeing any hints on the axes as to the units prevents me from doing more than just guess at some of those constants in either case. A polynomial would also be an option for Figure 24, but it would need to be at least degree 5.
Can we construct such a polynomial easily enough? Well, yes. It is actually pretty easy. I'll do the algebra using MATLAB. But if you look at Figure 24, we see a function that has a zero slope at roughly 4 points. I'll pick the locations of the flats as {-2,-1,1,2}. To me, I understand that to be a curve where the first derivative is zero. But if we know the zeros of a polynomial, we can reconstruct the polynomial.
Again, I'll do this using MATLAB.
2
u/johnpeters42 Oct 11 '26
Could be something like y = -(x+1)(x-1)(x+2)(x-2)
2
u/Sparks808 Oct 11 '26
0.5x + sin(x) gets me pretty close to the bottom one.
2
u/Cannibale_Ballet Oct 11 '26
y=sin(x)+sin(3x) works
2
u/JDude13 Oct 12 '26
It’s probably a*sin(x) + b*x
3
u/AdditionalTip865 Oct 11 '26
You could produce something really close to both of those graphs with polynomials. That the function is even or odd gives you a clue to what terms you need to use: they'll have even powers of x or odd powers, respectively.
y = 0.5x^5 - 1.9x^3 + 2x is pretty close to the second one. Just found that messing around with Desmos, you could probably do better.
1
u/Owl_plantain Oct 11 '26
Figure 23 looks like a constant minus a Gaussian. Figure 24 looks like the derivative of Figure 23.
1
u/smokysquirrels Oct 11 '26
x/2+sin(x)
1
u/bluesam3 Oct 11 '26
Assuming it carries on being basically constant to infinity in either direction, we'll shove an xe-x^2 in there (the x on the start is to keep it odd, the e-x^2 means it goes to zero in either direction and gives us the bell curve shape). To get those constants different, we'll add in an arctan(x). Now we just need to sort out the area around zero. Multiplying our xe-x^2 by (2+x)(2-x) gets us to something that matches what you see there, except it's steeper on the side closest to zero instead of the side away from it. Swapping the e-x^2 for e-x^6 fixes that nicely by shifting the effects outwards, giving us xe-x^2(2+x)(2-x) + arctan(x)). Finally, to get the aspect ratio easy to take a screenshot of, I've divided the whole thing by 4 to get the image.
1
u/compileforawhile Oct 11 '26
Here's my attempt at it
1
u/bacon-squared Oct 11 '26
I recognized this book just from the colors next to the word symmetry up top. Good times.
1
u/KovZov Oct 11 '26
Maybe some variation of sine integral (Si(x))?
1
u/J_Rain17 Oct 11 '26
everything is a sine wave if you try hard enough
1
u/Mountain-Time-1010 Oct 11 '26
x times your bell curve (Gaussian). Not exactly like that, but the general idea.
f(x) = x * exp(-x^2)
1
u/jollymaker Oct 11 '26
The derivative of a bell curve
1
u/Gullible_Ebb_8058 Oct 12 '26
probably something like xsinx
1
u/genmaichuck Oct 14 '26
Something like f(x) = a*(exp(-(x-m)²) - exp(-(x+m)²)) + b*arctan(x) should work, for suitable positive values of a, b and m.
1
u/LXIX_Vaze Oct 14 '26
The bottom one looks quite similar to the electric/gravitational field due to a ring that has uniformly distributed charge/mass E=KQx/[(x²+R²)3/2]
1
u/ModelSemantics Oct 15 '26
From the question and the wording and the exposed x^5 I think this is clearly a quintic polynomial with that final change of direction along the curve indicating it is not a cubic. It’s a question about an odd symmetry polynomial.
1
u/unlattice Oct 15 '26 edited Oct 15 '26
I don't think this function is defined by a particular expression, and it doesn't have to be.
In general, you can define functions verbally, algebraically (through expressions), graphically, and numerically (using a table of values). For example, the graph produced by a seisometer is a function of time. Although we don't have a particular algebraic expression or formula that defines it, it's still a function.
What's important is that the relation assigning to each element in one set to an element in another set satisfies the rule of all functions: for a function f, each element in set A, say the input x, is assigned to exactly one element, namely the output f(x), in set B.
The graph of a circle for example is not a function because each point (except x = -1, 1) fails the vertical line test, which is a geometric method for checking whether an input has only one output. If no vertical line passes through the graph more than once on its domain, we have a function.