#Polynomial question

114 messages · Page 1 of 1 (latest)

gloomy fox
gleaming emberBOT
#
  1. Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
  2. Wait patiently for a helper to come along.
  3. Once someone helps you, say thank you and close the thread with:
    +close
    
  4. Feel free to nominate the person for helper of the week in #helper-nominations
  5. Do not ping the mods, unless someone is breaking the rules.
  6. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
jagged juniper
# gloomy fox

We do it using remainder theorm. It involves more of logical thinking than math

#

So, if u analyze it like this, it will work out

#

Here Q(x) is the quotient and R(x) is the remainder expression. Since we took a 4 degree polynomial along with Q(x), R(x) must be a 3 degree polynomial(a degree lesser than that)

#

If u analyze properly, u get r(x) as $x^{3}+2 x^{2} + 1$. I think you can figure it out from here.

tawny epochBOT
#

TON 618

daring slate
#

If you restrict the scope to polynomials of degree less than 4, then sure there should be a unique polynomial P
Otherwise aren't there multiple polynomials fitting any real value for P(40)?

jagged juniper
#

So its true for all possible polynomials

daring slate
#

Nah, you can add any multiple of (x-1)(x-2)(x-9) and the prerequisite is still satisfied, yet the value of P(40) varies

gloomy fox
#

ur the best

#

ty

#

💙

daring slate
#

Under either restriction, sure, but neither restriction is given in the problem setting

gloomy fox
#

.close

quaint mossBOT
#

Unable to parse the channel name

gloomy fox
#

.solved

#

how do i close

daring slate
#

I'd advise you not to, yet

jagged juniper
daring slate
#

It does not matter to the values of P(1), P(2) and P(9)

jagged juniper
#

We don't know Q(x), so the idea is to eliminate it

daring slate
jagged juniper
daring slate
gloomy fox
gloomy fox
jagged juniper
daring slate
gloomy fox
#

💀

jagged juniper
daring slate
#

Fitting different polynomials in can result in different values for P(40), which satisfy the problem setting all the same

daring slate
gloomy fox
daring slate
#

In a way you restricted the degree of R(x) to 3, but that isn't required by the problem setting

jagged juniper
gloomy fox
jagged juniper
daring slate
#

Sorry I am too busy to really evaluate, but you can construct a degree 3 polynomial P using Lagrange polynomials,
where P(1) = 4, P(2) = 17, P(9) = 892 and P(40) = 0

#

That would satisfy the problem setting all the same

jagged juniper
daring slate
jagged juniper
#

Lemme explain

daring slate
#

@modest stirrup Can you help make a Lagrange interpolation?

odd current
#

Clash of two smart ppl🔥🔥

daring slate
#

Degree 3, P(1) = 4, P(2) = 17, P(9) = 892 and P(40) = 0

jagged juniper
daring slate
gloomy fox
#

who did bro just spawn

daring slate
#

\begin{array}{c} \left(\left(14-\frac{21259 (x-9)}{45942}\right) (x-2)+13\right) (x-1)+4 \ = \ -\frac{21259 x^3}{45942}+\frac{149716 x^2}{7657}-\frac{1948829 x}{45942}+\frac{209260}{7657} \end{array}

tawny epochBOT
#

Rafain
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

gloomy fox
#

oh no

#

where is this going

odd current
#

Damn🔥🔥

modest stirrup
#

well its enough to construct a degree 2 polynomial and just multiply it by (x - 40)

modest stirrup
#

wait no

#

that'll mess up other points

daring slate
daring slate
#

So its value at 40 is 0

modest stirrup
daring slate
#

Forgot about that

modest stirrup
#

because if we just do it blindly, the value at P(1) will get multiplied by -39

modest stirrup
#

anyways we do the old method, we find g_i(x) and sum em up

jagged juniper
#

And yeah I am talking about real coefficients ofc. Don't generate one with imaginary coefficients

daring slate
#

Man I am trying to get your eyes open, don't embarrass yourself...

#

Rationals are real...

jagged juniper
jagged stratus
daring slate
#

,w -21259/4594240^3 + 149716/765740^2 - 1948829/45942 * 40 + 209260/7657

jagged stratus
#

The rule is that n points uniquely determine a polynomial of degree n - 1.

elfin parcel
#

sry to interupt but i beleive there can be inf possibilities

jagged stratus
#

But there are infinitely many polynomials of degree n or greater that pass through n points.

daring slate
#

Thanks guys, please take over from here
I am calm enough to return to work, grateful to yall

modest stirrup
# daring slate <@475874071482073088> Can you help make a Lagrange interpolation?

g_0(x) = (x - 2)(x - 9)(x - 40)/(1 - 2)(1 - 9)(1 - 40) = -1/312 (x^3 - 51x^2 + 458x - 720)
g_1(x) = (x - 1)(x - 9)(x - 40)/(2 - 1)(2 - 9)(2 - 40) = 1/266 (x^3 - 50x^2 + 409x - 360)
g_2(x) = (x - 1)(x - 2)(x - 40)/(9 - 1)(9 - 2)(9 - 40) = -1/1736 (x^3 - 43x^2 + 122x - 80)
g_3(x) = (x - 1)(x - 2)(x - 9)/(40 - 1)(40 - 2)(40 - 9) = 1/45942 (x^3 - 12x + 29x - 18)

f(x) = 4 g0(x) + 17 g1(x) + 892 g2(x) + 0 g3(x)

#

shouldve told me to do Newton interpolation

jagged stratus
modest stirrup
#

wait whats the problem with the question? you are given three points, you can use it to uniquely define a quadratic. then you plug in x = 40

jagged stratus
modest stirrup
#

it is implied

jagged stratus
#

Implied how?

modest stirrup
#

well theres only one definitive answer if you make a quadratic, which is the easiest to make out of all other options. for higher degrees anything can be an answer

so the solution is either "its a trick question, anything can be an answer" or you find the quadratic

jagged stratus
#

And the answer is it's a trick question, or at least poorly written. As written there is no solution, and you always always always solve math problems as written, because if you just start assuming they meant something else you could wind up assuming literally anything.

modest stirrup
#

then its probably the best strategy is to cover both bases and say "well the solution is any value because yadda yadda, but to still get marks i will write down the solution i think you wanted to see"

#

to both be right and give them what they expect to see

daring slate
#

if one's ability allows

modest stirrup
#

welp i guess from here its easy enough to use just Newton or Lagrange interpolation

daring slate
jagged juniper
modest stirrup
#

degree equal to 2 specifically

daring slate
jagged juniper
daring slate
modest stirrup
#

im just saying that, for example, P(1) = 1, P(2) = 2, P(3) = 3 has a polynomial of degree 1 going through these points

daring slate
#

Yeah got what you meant, just messing around

modest stirrup
#

lol