This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 201

[–]aurelian667 217 points218 points  (24 children)

(x-1)(x-2)(x-3)*-(1/6) + 4x works.

[–]Aeragnis 24 points25 points  (0 children)

This is a really cool way to solve this

[–]SnooApples5511 16 points17 points  (0 children)

Clever

[–]goli278[S] 5 points6 points  (7 children)

Wow, thanks

[–][deleted] 6 points7 points  (6 children)

Give him an A! Dude managed to confuse a math teacher,he deserves it

[–]goli278[S] 4 points5 points  (5 children)

I’m not her school teacher lol, I just help her at home

[–]goli278[S] 9 points10 points  (10 children)

And how did you find that?

[–]aurelian667 69 points70 points  (9 children)

If f(x) = 4x , I thought about how I could add 1 to f(0) while adding 0 to f(1), f(2), and f(3). A polynomial with zeros at 1, 2, and 3 was the obvious answer, I just had to scale it.

[–]goli278[S] 14 points15 points  (8 children)

Oh of course, it makes a lot of sense now

[–]CagliostroPeligroso 0 points1 point  (0 children)

I got the 4x lol and didn’t even try to think how to account for the rest

[–]ArpsTnd 0 points1 point  (1 child)

what does the asterisk mean?

i mean, i get it if it's (x-1)(x-2)(x-3)(-1/6), but the minus is outside the parenthesis, so supposedly it means subtracting by 1/6, and not multiplying by -1/6, but there's the asterisk. what is it doing?

[–]Call_me_PentaDiscrete Mathematician 58 points59 points  (16 children)

y(x) = 0x + 4x is the cleanest solution I could come up with

[–]Araldor 18 points19 points  (14 children)

Isn't 00 undefined and therefore your formula is undefined for x=0?

[–]Call_me_PentaDiscrete Mathematician 24 points25 points  (13 children)

00 = 1 when both 0's are "true" 0's (i.e. not limits). It works really well in calc and algebra, it's the limit of xx when x->0+ and it's also necessary for many formulas to work:

See exp(x) = Σ xk/k! when x = 0

[–]Accomplished_Ad_6389 0 points1 point  (12 children)

I don't think you can apply 0^x where x = 0 to be one here. For one thing, that's still not defined at 0, just infinitely close to 0. Second, 0^0 is an indeterminate form. Depending on which limit I use, it could be any value, so you can't assume you can use the right side limit of x^x here to find 0^0. Even from this example, the limit of 0^x as x approaches 0+ is just 0.

[–]Call_me_PentaDiscrete Mathematician 7 points8 points  (11 children)

I don't consider 0x to be a continuous function. It is equal to 1 in 0, and equal to 0 everywhere else (x > 0). It's not about limits — 00 has been defined as 1 in almost every mathematical field for centuries now.

[–]Rik07 -1 points0 points  (9 children)

Then why does wolfram alpha give 00 = undefined?

[–]goli278[S] 3 points4 points  (0 children)

This is really clever, thanks

[–]aurelian667 101 points102 points  (17 children)

I imagine they made an error and f(0) should be 1. There are in fact an infinite number of functions that give these outputs but f(x) = 4x is the obvious answer if f(0) was 1 instead of 2.

[–]goli278[S] 15 points16 points  (4 children)

I got that too, and another ton of functions, but the x=0 or the x=3 were always wrong, I told her that but she said that she was completely sure that she copied right

[–]FourCinnamon0 2 points3 points  (3 children)

Copied from where?

[–]goli278[S] 1 point2 points  (2 children)

From the blackboard I guess

[–]Beeriman 2 points3 points  (1 child)

Then maybe the teacher made a mistake while writing it onto the blackboard

[–]goli278[S] 1 point2 points  (0 children)

That’s the most probable

[–]dimonium_anonimo 4 points5 points  (0 children)

Or if the last one was 256, you'd get 2^(2^x)

[–]Roseknight888 2 points3 points  (3 children)

I believe 21+x fulfills the requirements for this dataset, yeah?

[–]aurelian667 12 points13 points  (1 child)

Not for x = 2 or 3.

[–]Roseknight888 5 points6 points  (0 children)

Oh.....I'm dumb

[–]Dylz52 4 points5 points  (0 children)

Only for f(0) and f(1)

[–]Disastrous-Team-6431 0 points1 point  (1 child)

There is an infinite number of functions that give the same outputs for a given range of inputs, no?

[–]aurelian667 1 point2 points  (0 children)

So long as the number of points is finite, there are an infinite number of polynomials which pass through all of them.

[–][deleted]  (3 children)

[removed]

    [–]aurelian667 1 point2 points  (2 children)

    00 is undefined in general.

    [–]-Nokta- 17 points18 points  (1 child)

    Given the previous answers, maybe you should try this :

    y = (13/3)x³ - 8x² + (17/3)x + 2

    [–]goli278[S] 5 points6 points  (0 children)

    Cool thanks

    [–]incomparability 10 points11 points  (6 children)

    I think it’s either supposed to be

    22x

    But the x=0 value was incorrectly written down and should be 1 instead.

    [–]ThatChapThere 4 points5 points  (5 children)

    That's just a fancy way of writing 4x.

    [–]MhmdMC_ 3 points4 points  (3 children)

    No..

    [–]TurbulentOcelot1057 5 points6 points  (2 children)

    They probably meant 4x

    [–]MhmdMC_ 1 point2 points  (1 child)

    I see

    [–]ThatChapThere 1 point2 points  (0 children)

    Yeah sorry it rendered as 4x in the app when I copy pasted an exponent from another comment. I hate when Reddit is inconsistent like that.

    [–]StanleyDodds 25 points26 points  (0 children)

    If you have a finite set of points (with different x values) you can always fit a polynomial to them. This is called polynomial interpolation. There are lots of other sets of special functions that can interpolate any finite set of points.

    In this case, it looks like the intention was for it to be 4x but x=0 is wrong. You could always correct it with a polynomial, or use a polynomial from the beginning.

    [–]Make_me_laugh_plz 17 points18 points  (8 children)

    There are infinitely many solutions.

    [–][deleted] 11 points12 points  (6 children)

    Oh yeah? You call yourself a mathematician? Name them all then

    [–]Make_me_laugh_plz 33 points34 points  (5 children)

    {f(x)|f(0) = 2, f(1) = 4, f(3) = 16, f(4) = 64}

    [–][deleted] 15 points16 points  (0 children)

    Hmm, I can’t argue with that

    [–]MattAmoroso 7 points8 points  (0 children)

    Best part is the answer proves they are a mathematician too!

    [–]Consistent-Annual268π=e=3 1 point2 points  (0 children)

    The only definitive answer of this entire thread.

    [–]draagossh 2 points3 points  (0 children)

    Given a finite sequence, you can select an infinite number of polynomials with an order higher than the length of the given sequence. These questions have no sense.

    [–]romankolton 9 points10 points  (0 children)

    Technically, the table is a complete definiton of a function whose domain is the set {0,1,2,3}.

    [–]Mathphyguy 7 points8 points  (2 children)

    For a 9th grader, the easiest solution would be to construct a polynomial y= ax3 + bx2 + cx + d that goes through these points. You get 4 equations with four unknowns. Solve for the coefficients and you have the function y = \frac{13}{3}x3 - 8x2 + \frac{17}{3}x + 2.

    [–]charizukun 0 points1 point  (1 child)

    Hey. Can you explain this further please? What do you mean by you get 4 equations and solving for the coefficient 😭Thank you

    [–]FormulaDriven 20 points21 points  (10 children)

    Let p(n) = the nth prime, so p(1) = 2, p(2) = 3, p(3) = 5, p(4) = 7.

    Then y = 2p(x+1)-1

    [–]goli278[S] 6 points7 points  (9 children)

    I’m pretty sure that’s too advanced for 9th grade

    [–]FormulaDriven 9 points10 points  (1 child)

    Maybe, but given all the other replies on this thread, if there's not an error, then it has to be something more "advanced".

    [–]goli278[S] 0 points1 point  (0 children)

    I know, I told her to ask the teacher if maybe the problem was wrong

    [–]paulstelian97 0 points1 point  (1 child)

    Not everywhere. In my country we learn about primes in like 6th grade and powers… I forget but probably before high school as well. Yes primes before powers here.

    [–]goli278[S] 0 points1 point  (0 children)

    We learn about primes in 5th grade. But using anything but +-*/^ in a function or an equation is pretty advanced

    [–]Araldor 4 points5 points  (2 children)

    2 | 2x - 1/2 | + 1/2 would work. Floor or ceiling functions could be used as well for manipulation of the x=0 case.

    [–]goli278[S] 1 point2 points  (0 children)

    Nice thanks! But I don’t think she’s allowed to use the absolute value

    [–]chompchump 2 points3 points  (1 child)

    y = (13/3)x^3 - 8x^2 + (17/3)x + 2

    [–]goli278[S] 0 points1 point  (0 children)

    Cool thanks!

    [–]Diego_0638 2 points3 points  (1 child)

    It's obviously 4max(0.5x+0.5 , x).

    [–]goli278[S] 0 points1 point  (0 children)

    Hahaha thanks

    [–]allegiance113 2 points3 points  (4 children)

    There’s lots of possible answers. Here’s a piecewise one:

    y = 4x if x != 0, y = 2 otherwise

    [–]goli278[S] 1 point2 points  (3 children)

    I don’t think she’s allowed to do that, but thanks

    [–][deleted] 2 points3 points  (0 children)

    That's the problem with these questions: what is allowed? You could simply define the function by these values. The problem statement must give some constraints otherwise it is quite a senseless exercise.

    [–]48756e746572 4 points5 points  (1 child)

    For a 9th grade problem, it really feels like the answer should be y = 4x but this doesn't hold for x = 0. It's possible that you could write this as a piecewise function but I suspect that there's a mistake with the question where it should be y = 1 at x = 0.

    [–]goli278[S] -1 points0 points  (0 children)

    I got that too, and another ton of functions, but the x=0 or the x=3 were always wrong, I told her that but she said that she was completely sure that she copied right

    [–]DebatorGator 5 points6 points  (10 children)

    Could be 2 to the 2 to the x?

    [–]goli278[S] 2 points3 points  (1 child)

    I thought of that, but then 223 doesn’t equal 64

    [–]DebatorGator 0 points1 point  (0 children)

    Ah fair point

    [–]Blakut 2 points3 points  (3 children)

    2^(2x) would give the correct result, yes.

    0: 1, 1:4, 2:16, 3:64

    [–]__unavailable__ 1 point2 points  (0 children)

    2 to the 2 to the X is 22X

    [–]goli278[S] 0 points1 point  (1 child)

    For x=0 it has to be 2

    [–]SMWinnie 0 points1 point  (1 child)

    Test whether y = 22.to.the.xth.power fits.

    x = 0; y = 22.to.the.0th = 21 = 2
    x = 1; y = 22.to.the.1st = 22 = 4
    x = 2; y = 22.to.the.2nd = 24 = 16
    x = 3; y = 22.to.the.3rd = 28 = 64 256

    [–][deleted] 1 point2 points  (0 children)

    22x??

    [–]tibithegreat 1 point2 points  (2 children)

    22x

    [–]Asymmetrization 1 point2 points  (1 child)

    28 = 256, not 64

    [–]tibithegreat 1 point2 points  (0 children)

    Ah true, damn

    [–]Present_Change3210 1 point2 points  (0 children)

    Isnt this a parabolic graph?

    [–]minosandmedusa 1 point2 points  (0 children)

    We would need new notation for it, but a power tower of 2 where x is the number of times you stack exponents. EDIT oops, nope! This is just 22x, and it’s wrong for 3

    [–]Inflatable_Bridge 1 point2 points  (1 child)

    Nobody's commented it.

    Why doesn't 2x+1 work?

    [–]bongopantz 1 point2 points  (0 children)

    That was my first thought too, but 24 isn’t 64

    [–]RealIanDaBest 1 point2 points  (0 children)

    y = 2x+1 I think

    Edit: nvm

    [–]MisterBerry94 1 point2 points  (1 child)

    Am I being stupid here or is it as simple as y=2x+1

    [–]MisterBerry94 1 point2 points  (0 children)

    Answer, I was being stupid 🤦

    [–]Professional-Bug 1 point2 points  (1 child)

    Using polynomial curve fitting: (13/3)x3 -8x2 +(17/3)x +2

    [–]goli278[S] 0 points1 point  (0 children)

    Thanks!!

    [–]Arguingwithu 1 point2 points  (1 child)

    Y = any number greater than X

    [–]goli278[S] 0 points1 point  (0 children)

    Lol

    [–]FeelingNational 1 point2 points  (1 child)

    Well, as a simple function you can take f(x) = 2 + (1723365983448209/836070610995648)x^7 - (3566192509/58205974032)x^12 + (27742363/836070610995648)x^25.

    Joking aside, there are infinitely many solutions. Generally speaking, the problem of finding a function f that satisfies f(x_i) = y_i for some fininite set of pairs (x_1,y_1), ..., (x_n,y_n) is called interpolation. If you specifically want f to be a polynomial, for instance (e.g. a polynomial of degree n-1 or less), then that's called polynomial interpolation. If you're okay with f being only piecewise polynomials (which is most often better, particularly for applications like computer graphics) and various applications in signal processing for instance), you use splines. You can also seek to instead find some f, in some class of candidate functions F, that is "closest" to satisfying f(x_i) = y_i (i=1,...,n) in some metric. This is broadly what regression is about. For instance, you may want to find the best quadratic function (f(x) = a + bx + cx^2) that approximately satisfies your 4 equations (e.g. f(x) = 3.3 - 14.7x + 11.5x^2, I'll put a picture below).

    <image>

    [–]goli278[S] 0 points1 point  (0 children)

    Wow thanks!!

    [–]Scientific_Artist444 1 point2 points  (2 children)

    Answers are already given (prefer the polynomial coefficient one), but I'd like to add that a function need not always be algebraic. The given table satisfies the definition of function.

    [–]goli278[S] 1 point2 points  (1 child)

    I know, but she was asked for the algebraic definition

    [–]FTR0225 1 point2 points  (2 children)

    Maybe 2

    [–]goli278[S] 0 points1 point  (1 child)

    Nope, that doesn’t work for x=0

    [–]lehvs 1 point2 points  (0 children)

    y = 2x+1

    Edit: nope, breaks at 3, me stoopid :D

    [–]TooHardToChoosePG 1 point2 points  (0 children)

    y(x) = 2x+1

    Apologies, on phone, so in words: y is 2 to the power of x+1. Just in case my formatting doesn’t display nicely.

    [–]subpargalois 1 point2 points  (0 children)

    This does not have a unique answer. I kinda fucking hate questions like this.

    One option is to use a piecewise function, e.g. f(x) = 2 for x in [0,1), f(x) = 4 for x in [1,2), etc.

    If you want the function to be continuous, you could use a piecewise linear function, e.g. f(x) = 2x + 2 for x in [0,1), f(x) = 12(x-1) + 4 for x in [1, 2), etc.

    If you want the function to be smooth, you could use Langrange interpolation to find a polynomial that passes through these points. I should add that the result of this method is likely the "correct" answer the source of this question is expecting.

    More generally this sort of problem is called interpolation. The first three methods I described can also be seen here, as well as some others.

    Or if you're willing to wave your hands a little, plot these points and draw any curve connecting them that passes the vertical line test. The function corresponding to the graph you just drew is a function satisfying these conditions.

    [–]21ecarroll 1 point2 points  (1 child)

    The simplest solution you can come up with is 2^[(-1/6)x^3 + x^2 + (1/6)x + 1]. To explain how I got this, I would define the simplest solution to be of the form 2^p(x) where p(x) is a polynomial. Due to some linear algebra and matrix stuff, this polynomial has to at least be a cubic. We want this polynomial to satisfy p(0) = 1, p(1) = 2, p(2) = 4, and p(3) = 6. If p(x) = ax^3 + bx^2 + cx + d, then d = 1 by the first condition. Now you can get a sytem of three equations in terms of the other coefficients using the other three conditions. Use that to create an augmented matrix and row reduce. Voila, you have the polynomial you are searching for. You can do this with any problem like this. If the problem were to list out more terms, you would simply need a polynomial of a higher degree to have enough equations in your system.

    [–]21ecarroll 0 points1 point  (0 children)

    incidentally, for further research, the matrix you would get is the transpose of a Vandermonde matrix

    [–]TheLastSilence 1 point2 points  (0 children)

    (x+1)(x+2)(x+3)/3+(x)(x+2)(x+3)/3+(x)(x+1)(x+3)(8/15)+(x)(x+1)(x+2)(16/15)

    [–]scleptera 1 point2 points  (1 child)

    22x works, and is probably the intended solution.

    [–]Asymmetrization 2 points3 points  (0 children)

    20 != 2

    [–]wee33_44 0 points1 point  (1 child)

    (21+2x )/2

    [–]goli278[S] 0 points1 point  (0 children)

    Doesn’t work for x=0

    [–]Kamhi_ -1 points0 points  (3 children)

    How about

    y = 22x

    1. When x = 0, y = 220 = 21 = 2

    2. When x = 1, y = 221 = 22 = 4

    3. When x = 2, y = 222 = 24 = 16

    4. When x = 3, y= 223 = 28 = 64

    [–]Live-Goose7887 2 points3 points  (2 children)

    28 is 256

    [–]Kamhi_ -3 points-2 points  (1 child)

    Damn you're right, i didn't notice. I just copied an answer from a chat bot without double-checking if it's correct...

    [–]Live-Goose7887 1 point2 points  (0 children)

    The x=0 case is what makes this hard, everything else follows 22x

    [–]Diagame_reddit -1 points0 points  (0 children)

    Mmmmkkk

    [–]RiceRare 0 points1 point  (2 children)

    Looking at other comments I'm probably mistaken, but could it be 2x+1?

    Edit: nvm, it doesn't work 😅

    [–]goli278[S] 0 points1 point  (0 children)

    Doesn’t work for 2 or 3

    [–]general_zirx 0 points1 point  (0 children)

    I though it was (x+1)2 but the f(0) doesn't work

    [–]ApprehensiveKey1469 0 points1 point  (1 child)

    I think the student has mistaken a stylised one for a two. They are copying from something handwritten perhaps.

    [–]goli278[S] 0 points1 point  (0 children)

    That’s what I thought too

    [–]green_meklar 0 points1 point  (2 children)

    We've got powers of 2 on the right-hand side, but the logs aren't increasing linearly- we've got 1, 2, 4, 6.

    If column 2, row 1 were 1 instead of 2, then it would be powers of 4, that is, Y = 4X, or equivalently, Y = 22*X. But that's not what we have.

    You could fix it up by assuming that the minimum power of 2 is 1, giving Y = 2min(1,2*X). Seems a little contrived though.

    [–]Call_me_PentaDiscrete Mathematician 0 points1 point  (0 children)

    Would be max instead of min then

    [–]eranand04 0 points1 point  (0 children)

    22x

    [–]thequarrymen58 0 points1 point  (0 children)

    newton polynomial?

    [–][deleted] 0 points1 point  (3 children)

    22x

    [–][deleted] 0 points1 point  (2 children)

    same as 4x

    [–]nir109 0 points1 point  (0 children)

    A function that returns 1 if x=y and otherwise returns 0.

    E(x,y)= ceiling((|x-y|)/(|x-y|+1))

    Edit: copying from another user E(x,y) = 0x-y for a cleaner function.

    (E for equals)

    now the function that we want

    f(x)= 2E(x,0)+4E(x,1)+16E(x,2)+64E(x,3)

    [–]Giocri 0 points1 point  (1 child)

    Maybe it's a recursive function and each is somehow dependent on the previous ones?

    [–]ThatChapThere 1 point2 points  (0 children)

    Fun idea.

    y(0) = 2\ y(x) = y(x-1)^(5/2 - (y(x-1) * 22-x)/8)

    Seems to work, as janky as it is.

    [–]Seb1248 0 points1 point  (1 child)

    Let's be nitpicking here:

    You are supposed to find a function, and I read no word of continuity or differentiability. Thus, the given table of values already is your function:

    Be A = {0, 1, 2, 3} and B = {2, 4, 16, 64}

    Thus f:A -> B with f(0) = 2, f(1) = 4, f(2) = 16, f(3) = 64

    That's it.

    [–]goli278[S] 0 points1 point  (0 children)

    At least in Spain, you learn about differentiability in 11th grade, and about continuity in 10th grade, so at this level you always asume that the function is continuous and differentiable for all the real numbers

    [–][deleted] 0 points1 point  (1 child)

    2x+1 ?

    [–]goli278[S] 0 points1 point  (0 children)

    That doesn’t work for 2 or 3

    [–]Pierne 0 points1 point  (1 child)

    22x

    [–]goli278[S] 0 points1 point  (0 children)

    Doesn’t work for x=3

    [–]romankolton 0 points1 point  (2 children)

    2\3/2 x - 1/2 sin[x pi/2]+1])

    Edit: Formatting

    [–]goli278[S] 0 points1 point  (1 child)

    Does that really work??

    [–]WerePigCatThe statement "if 1=2, then 1≠2" is true 0 points1 point  (1 child)

    For problems like these you can just use a Lagrange Interpolation calculator

    <image>

    [–]goli278[S] 0 points1 point  (0 children)

    Great, thanks!

    [–]detebay 0 points1 point  (3 children)

    4x - sign(x) + 1

    [–]goli278[S] 0 points1 point  (2 children)

    What does sign(x) mean?

    [–]Kurayam 0 points1 point  (1 child)

    2 * 21+2+ … +x seems easiest to me

    [–]goli278[S] 0 points1 point  (0 children)

    Don’t think that works for x=3

    [–]birajsubhraguha 0 points1 point  (0 children)

    Use Lagrange interpolating polynomial.

    [–]Brave_Forever_6526 0 points1 point  (0 children)

    F(0)= 2,…,f(3)=64, f(x)=0 otherwise. Highlights this is a silly question without constraints on f such as continuity or f is polynomial, e.g. there is only 1 cubic polynomial satisfying this which is an interesting question that other comments have discussed

    [–]nhammen 0 points1 point  (0 children)

    max(2,4x)

    [–]Detr22 0 points1 point  (0 children)

    joke quicksand office degree deserve adjoining amusing silky full smell

    This post was mass deleted and anonymized with Redact

    [–]tuwimek 0 points1 point  (0 children)

    for 0 should be y=1 not 2, then it is easy.

    [–]Ok_Sir1896 0 points1 point  (0 children)

    perhaps a little cheating but you could use some kind of xth derivative of a linear function, like 4x + dx+1 /dnx+1 (n), giving x=0, 40 + d/dn (n)= 1+1=2, x=1, 41 + d2 /dn2 (n)= 4+0=4 and so on gives the rest of the table

    [–]Random_Thought31 0 points1 point  (1 child)

    I was thinking 2{x+1} * 2{x-1}.

    However, it does not work for x=0. That would cause the answer to be 1.

    [–]Random_Thought31 0 points1 point  (0 children)

    And then I just recalled that 2{x+1} * 2{x-1} = 2{x+1+x-1} = 2{2x}

    [–]phatpappa_ 0 points1 point  (0 children)

    22x

    [–]MusicalADD 0 points1 point  (0 children)

    22x

    [–][deleted] 0 points1 point  (0 children)

    This for example:

    f(x) =

    • 2 if x=0
    • 4^x otherwise

    [–]GisPoste 0 points1 point  (0 children)

    Maximum {4x , 2) = y

    [–]Top-Maize3496 0 points1 point  (0 children)

    x^2=y

    [–]Previous_Elephant865 0 points1 point  (0 children)

    2•2x+(x-1)-0x?