Skip to content
Official PYQ · 2000

GATE CS 2000 Q2.4 — Sets, Relations and Functions

Explain with AI

A polynomial p(x)p(x) satisfies the following:

  • p(1)=p(3)=p(5)=1p(1) = p(3) = p(5) = 1 
  • p(2)=p(4)=−1p(2) = p(4) = -1

The minimum degree of such a polynomial is

Choose one option
View worked solution

Answer: D

We are given 55 distinct data points for the polynomial p(x)p(x):

  • (1,1)(1, 1)
  • (2,−1)(2, -1)
  • (3,1)(3, 1)
  • (4,−1)(4, -1)
  • (5,1)(5, 1)

By polynomial interpolation, any nn distinct points can always be fitted by a unique polynomial of degree at most n−1n-1. With 55 points, there exists a unique polynomial of degree at most 44.

To see if a lower degree is possible, suppose the degree of p(x)p(x) is at most 33. Since p(1)=p(3)=p(5)=1p(1) = p(3) = p(5) = 1, the polynomial p(x)−1p(x) - 1 must have roots at x=1,3,5x = 1, 3, 5. Thus, we can write:

p(x)−1=c(x−1)(x−3)(x−5)p(x) - 1 = c(x-1)(x-3)(x-5)

for some constant cc. Now, we substitute the remaining conditions:

  • For x=2x = 2: p(2)−1=c(1)(−1)(−3)  ⟹  −2=3c  ⟹  c=−23p(2) - 1 = c(1)(-1)(-3) \implies -2 = 3c \implies c = -\frac{2}{3}
  • For x=4x = 4: p(4)−1=c(3)(1)(−1)  ⟹  −2=−3c  ⟹  c=23p(4) - 1 = c(3)(1)(-1) \implies -2 = -3c \implies c = \frac{2}{3}

Since we obtain two conflicting values for cc, no polynomial of degree ≤3\le 3 can satisfy all the given conditions. Thus, the minimum degree of p(x)p(x) is 44.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sets, Relations and Functions questions