Skip to content
Official PYQ · 2015

GATE CS 2015 Set 3 QGA-5 — General Aptitude

Explain with AI

A function f(x)f(x) is linear and has a value of 2929 at x=−2x=-2 and 3939 at x=3x=3. Find its value at x=5x=5.

Choose one option
View worked solution

Answer: C

Since f(x)f(x) is a linear function, its rate of change (slope) is constant. We can find the value at x=5x = 5 using the property of constant slope:

Slope=f(x2)−f(x1)x2−x1\text{Slope} = \frac{f(x_2) - f(x_1)}{x_2 - x_1}

Using the given points x1=−2x_1 = -2 with f(−2)=29f(-2) = 29, and x2=3,x3=5x_2 = 3, x_3 = 5 with f(3)=39f(3) = 39:

f(5)−f(3)5−3=f(3)−f(−2)3−(−2)\frac{f(5) - f(3)}{5 - 3} = \frac{f(3) - f(-2)}{3 - (-2)}

Substitute the known values into the equation:

f(5)−392=39−293−(−2)\frac{f(5) - 39}{2} = \frac{39 - 29}{3 - (-2)}

f(5)−392=105=2\frac{f(5) - 39}{2} = \frac{10}{5} = 2

f(5)−39=2×2=4f(5) - 39 = 2 \times 2 = 4

f(5)=39+4=43f(5) = 39 + 4 = 43

Thus, the value of the function at x=5x = 5 is 43.

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

Published
Report a correction
Keep exploringMore General Aptitude questions