PDA

View Full Version : question on inverses


lewis198
Jan1-08, 06:23 AM
I was wondering how you would find the inverse of a function if it contained a floor function.
Since I can't expand it, I can't set y as a function of x, so to speak. Should I use a series approximation?

lewis198
Jan1-08, 06:24 AM
* x as a function of y

HallsofIvy
Jan1-08, 06:44 AM
You keep talking about "containing" the floor function without explaining what you mean by that. In general a function has an inverse if and only if it is "one-to-one" and "onto". Since the floor function is not one-to-one- its value at any number between 0 and 1 is 1- 1 the floor function itself does not have an inverse. I cannot answer your question about functions "containing the floor function" because I do not know exactly what you man by one function "containing" another. Does f(x)= [1- floor(x)]+ floor(x) "contain the floor function? Is so then that is an example that does have an inverse: it is simply f(x)= x.

lewis198
Jan1-08, 07:26 AM
This is what the equation looks like:

f(x)=A.[(x/T+rho)-floor(x/T+rho)]

I need to make x the subject of the equation, A,T and rho are constants.

slider142
Jan1-08, 07:39 AM
This is what the equation looks like:

f(x)=A.[(x/T+rho)-floor(x/T+rho)]

I need to make x the subject of the equation, A,T and rho are constants.
Simplify it as g(x) = u - floor(u). This function is then periodic with period 1, which makes your function periodic with period T, and thus it has no global inverse. rho just moves the function around horizontally and A scales it vertically. So your function is invertible on any interval of length T, and you can add z*T to the inverse to get another solution, where z is some integer. A simple inverse for g is g-1(v) = v, where the interval is [0, 1). For your function, you would choose an interval like [0, T) and the inverse on this interval would just be the inverse of f(x) = A(x/T + rho) which is f-1(y) = T(y/A - rho).

Dodo
Jan1-08, 07:41 AM
So it is
f(x) = A . frac(x/T + rho)
with 'frac' representing the fractional part after disregarding the integer part.

As Halls points out, frac(1.87) = frac(2.87) = frac(3.87) ... = 0.87, so it is really not possible to get the original number back, starting from 0.87. Technically, the 'inverse' does not qualify as a function.

You could, however, define x = T . (y/A - rho + C), where C is any integer, and say that you have multiple solutions for the equation y = f(x), if this is useful.

lewis198
Jan1-08, 08:58 AM
How did you guys see that so quickly? Amazing. God given gifts. Thanks for the help.

HallsofIvy
Jan1-08, 01:05 PM
They learned the definitions!