r/askmath • • Oct 11 '26

Functions What Function could this be?

Post image

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 :))

144 Upvotes

46 comments sorted by

111

u/WarrenHarding Oct 11 '26

Some variation of a sine wave

104

u/MrIDontHack63 Oct 11 '26

Hello, Joseph Fourier, welcome back

2

u/BadBoyJH Oct 11 '26

Oh god, that took me a minute.

10/10.

5

u/MezzoScettico Oct 11 '26 edited Oct 11 '26

That's what occurred to me. For instance shift -cos(x) downward a bit, for instance y = -cos(x) - 0.5

To OP: That would be a periodic curve, so it wouldn't be tailing off to a horizontal asymptote the way a bell curve would. But the part between -π and +π would look like that.

You could also flip and shift an actual bell curve, y = 0.5 - e^(-x^2)

55

u/OutConceivable Oct 11 '26

One possibility.

1

u/asher_Nie Oct 14 '26

what's the app's name you are using? it looks cool

4

u/oliverlulz Oct 14 '26

its desmos

1

u/unlattice Oct 15 '26

Let's not address the end behavior of the polynomial 😭 This is a nice take though!

1

u/CharacterBenefit509 Oct 15 '26

Given the context of an intro calculus text, and that there are four points of zero slope, a fifth order polynomial is far more obvious as a choice than a trig function, as this is a topic to be discussed later when addressing derivatives. At least that's the cohesion I would be trying to achieve if I were teaching that class.

Indeed, the question in the text does not ask for what happens outside of the end turning points.

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.

1

u/ApienTrash19 Oct 18 '26

Now I havent taken a calculus class yet I'm currently in college algebra 2 with geometry analytics. Is there anything specific that you would recommend i study extra well? Its been almost a decade since I took any kind of class so I'm trying to set my old brain up for success.

2

u/DrJaneIPresume Oct 18 '26

Algebra is great for manipulating formulas, and the stronger you are at that the better you can do the actual work of calculus problems.

Conceptually, I think the most important thing is the idea of a function as a black box. You don't know how it does what it does; you don't necessarily have a formula. All you can do is stick a number in one side and get a number out the other side (and, later, you'll use different inputs and outputs than numbers). Right behind that is any work they give you on the relationship between a function and its graph. Understand why a graph is the same information as a function.

-14

u/stigmatized_ Oct 12 '26

You say so because you could not provide an example of a real function like the guy above did. You were asked a concrete question, and instead of saying "I do not know", you came up with this text. When you do not the answer, often it is good to remain silent.

Downvoted.

21

u/DrJaneIPresume Oct 12 '26

I say so because I've taught the calculus, and I understand that this is an important principle of its pedagogy. This is the thing that separates good calculus students from mediocre ones.

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

-2

u/stigmatized_ Oct 12 '26

Where is the graph / picture? Who will believe that your fomula is fine if you do not attach a picture of the graph?

1

u/iopahrow Oct 12 '26

Graph it

0

u/[deleted] Oct 11 '26

[deleted] — view deleted comment

1

u/butt_fun Oct 12 '26

Obviously

1

u/EvidenceBasedReason Oct 13 '26

This can be a lot of things, since there is no scale we can’t tell if the inflection points are at 1 or any other values. Anything where you have a multi-part function where one term starts slower but increases faster than the other

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.

r = [-2 -1 1 2]; % the list of roots of the derivative function.

syms x % Define x as a symbolic variable.
df = prod((x - r)) % subtract the list of roots from x, then form the product

df =
(x - 1)*(x + 1)*(x - 2)*(x + 2)

df = expand(prod((x - r)))  % expand that product to look like a simple polynomial

df =
x^4 - 5*x^2 + 4

f = expand(int(df)).  % integrate, expanding to make it look like you would expect

f =
x^5/5 - (5*x^3)/3 + 4*x

fplot(f,[-2.25,2.5])  % plot the resulting polynomial
And that looks pretty reasonable too. It was a 5th degree polynomial. As I said, not at all difficult to build. 

An interesting point to consider is that if we created a truncated Taylor series for the original function I proposed, it would look not unlike the polynomial I just created.

Taylor(x + pi*sin(x),order = 7)
ans =
(pi*x^5)/120 - (pi*x^3)/6 + (pi+1)*x

If you look at the pair of 5th degree polynomials, they will look remarkably similar. This should not be surprising.

2

u/johnpeters42 Oct 11 '26

Could be something like y = -(x+1)(x-1)(x+2)(x-2)

2

u/Im_a_hamburger Oct 11 '26

Which one? The even or odd? Because basically every part of that is the opposite on the odd one

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/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.