178k views
0 votes
Im taking my final right now and don't want to fail please help.

Im taking my final right now and don't want to fail please help.-example-1
User Michpohl
by
8.4k points

1 Answer

0 votes

Answer:

3n+2

Explanation:

  • they informed that it is a linear function.
  • so, let the required linear function be ax+b.

[where, a and b are some constants and x is a variable ( input values)]

  • when x=1, the output is 5
  • so, if x=1, ax+b=5

so, a+b=5

  • if x=2, ax+b=8

so,2a+b=8

  • solving the above 2 equations,

subtract the first equation from second:

2a+b-a-b=8-5

a=3.

by substituting the value of a in one of the above equations,

you will get b as 2

so, when the input is n, output will be : 3n+2

User Linefeed
by
7.7k points

No related questions found