How is the Recurrence Relation Used in Function Definitions?

  • Thread starter Thread starter mubashirmansoor
  • Start date Start date
AI Thread Summary
The discussion centers on the recurrence relation f(x) = 3*f(x-1) - 3*f(x-2) + f(x-3), which is applicable to linear and quadratic functions. Participants explain how to derive such relations by solving simultaneous equations to find coefficients that work for specific functions like f(x) = 1, f(x) = x, and f(x) = x^2. The method highlights that these relations are linear mappings, allowing them to apply to broader classes of functions, including all linear and quadratic functions. Additionally, one user shares a unique derivation technique involving the concept of rates of increase, connecting it to the second derivative. The discussion concludes with the practical application of these relations in solving problems like projectile motion without needing detailed equations.
mubashirmansoor
Messages
258
Reaction score
0
Hello everybody,

I wanted to know the uses of such a function definition;

f(x) = 3*f(x-1) - 3*f(x-2) + f(x-3) This works in linear and quadratic functions.

I'll thankfull for your replies :)
 
Mathematics news on Phys.org
In what way does that 'work in linear and quadratic functions'?
 
matt grime said:
In what way does that 'work in linear and quadratic functions'?

As an example; say x^2 & assuming x = 4

f(4) = 3*f(3) - 3*f(2) + f(1) which is true: 16 = 3*9 - 3*4 +1

this is what I meant...

Do you know any interesting uses of such a thing?
Thanks for contributing :)
 
Let me explain how you can derive an equation like that one and why it works.

Say you started with a very simple linear recurrence relation,

1. f(x) = f(x-1) : This works for f(x) = 1.

Now let's look for one that works for f(x) = x and also for f(x) = 1.

Say f(x) = c f(x-1) + d f(x-2). Subst f(x)=1 and you find that "c+d=1". Next subst f(x)=x and you find that in addition to "c+d=1" we must also have "c + 2d = 0". Solving these give c=2 and d=-1. So our second recurance relation is,

2. f(x) = 2 f(x-1) - f(x-2) : This works with f(x) = 1 and with f(x) = x

Similar working with three simultaneous equations you can find the coefficients of a third order linear equation that works for f(x)=1 and for f(x)=x and for f(x)=x^2. This one turns out to be the one that you started this thread with. That is,

3. f(x) = 3f(x-1) - 3f(x-2) + f(x-3) : This works with f(x)=1 and with f(x)=x and with f(x)=x^2

Note that these are all linear mappings of the form, f(x) = L{ f(x-1), f(x-2), ...}

It is important to realize that these are all linear in "f", whether or not f is linear in x is irrelevant to this point.

By linearity L{ a f_1 + b f_2 + ... } = a L{f_1} + b L{f_2} + ...

So you can see for example that since the second relation above "works" for f_1(x)=1 and f_2(x)=x then it automatically must work for all linear functions f(x) = ax+b.

For the same reason the third relation must hold for all quadratic funtions and so on.
 
Last edited:
uart said:
Let me explain how you can derive an equation like that one and why it works.

Thankyou very much Uart, but I think I don't have enough knowledge of mathematics to understand this derivation but I'll certainly keep it in a safe place and check it out once I've learned more maths... Thanks once again :)

Actually I have derived this one by myself but using a very different technique which is given as follows;

lets say we have 3 consecutive terms; f(5), f(4) & f(3) .

f(5) - f(4) = rate of increase between these terms.

f(4) - f(3) = rate of increase between these terms, which is sth like first derivative.

Now ; f(5) - f(4) - ( f(4) - f(3) ) = rate of increase between the rates of increase which is sth like 2nd derivative.

2nd derivative of quadratic and linear functions is always constant, using this fact and a little logic we'll have;

f(5) - f(4) - ( f(4) - f(3) ) + ( f(5) - f(4) ) + f(5) = f(6)

which means; f(6) = 3*f(5) - 3*f(4) + f(3)

----------

Thats what I did...

So what are the uses of such function definitions?

One use of this was solving projectile motion without being concerned about the equation of motion & having quick estimates for many functions without trying to evaluate the function's eq. especially when concerned with an irregular function.

I'll be eagerly waiting for your reply :)
Thanks once again.
 
Last edited:
So the essentials of this method uart is doing is to think up of a recurrence relation and find let certain functions you want the recurrence relation to work with, to find out the exact recurrence relation? Relating the functions
 
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top