Link to home
Start Free TrialLog in
Avatar of InfoTechEE
InfoTechEE

asked on

Discrete Math Functions

For f: R -> R defined by
             
             3x - 5, x > 0;
f(x) = {
             -3x + 1, x <= 0,

determine f^-1([-5,5]).

Can someone help out and show how to do this. This is a sample problem for a test.
Avatar of GwynforWeb
GwynforWeb
Flag of Canada image

Draw the graph of f(x) first, the inverse becomes obvious. The inverse is multi valued btw.
Avatar of InfoTechEE
InfoTechEE

ASKER

It needs to be in a form of a proof.
Avatar of TommySzalapski
Can you give an example of one that you do know how to do so that we can see how it should be structured?

f(x) is one-to-one and linear over x>0 and over x<=0 separately, so the domain that gives the range -5,5 should be easy to find. Then you just set y=f(x) and solve for x (again separately for the different pieces).
I'm not sure how to do this at all, but your explanation was very clear. The way the problem is worded to begin with is very confusing as I'm not sure what they are asking you to do. So just to clarify, that problem asks to simply find the domain and solve for x?

If so, do you just solve for x, and then plug in the range [-5, 5] into the y values?

Example 1: y = 3x -5
--> x = (y + 5)/3
--> x = (5 + 5)/3
--> x = 10/3

Example 2: y = -3x + 1
--> x = (y - 1)/-3
--> x = (-5 - 1)/-3
--> x = 2

Still a bit confused as you can tell.
ASKER CERTIFIED SOLUTION
Avatar of TommySzalapski
TommySzalapski
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Again, all of the answers will be clear in a graph if it's carefully drawn.
Almost everything is clear except one piece of terminiology:

"But you need to find the ranges separately for each of the two options."

if you have set A and B where a is a member of A and b is a member of B, and if f(a)=b, then f^-1(b) = a, right?

According to above statement, b is in the range, and a is in the domain.

Then -->according to  f^-1([-5,5])  --> [-5,5] is the range right, and the inverse would be the domain right? Then how come your quote above says that you need to find the RANGES separately. Don't we already know the Range to be [-5,5], and we need to find the DOMAIN not the RANGE?
Well, the domain of f is the same as the range of f^-1

"if you have set A and B where a is a member of A and b is a member of B, and if f(a)=b, then f^-1(b) = a, right?"

In your case, the domain of f is A and the range of f is B but for f^-1 it's flipped. The domain of f^-1 is B and the range is A.
Excellent. Can you tell me if the question was worded a bit differently like below, what would change as far as my appraoch goes. No need to solve the below, I'm just curious what happens when you say its no longer R --> R, and now Z --> N. What happens? And now stating it is one-to-one and onto? How does that change my appraoch as well?

The function f: Z --> N defined by
            2x - 1, if x > 0;
f(x) = {
            -2x, otherwise.

is one-to-one and onto. Fine f^-1.
If it's one-to-one and onto, then the inverse will be defined everywhere on the whole domain.
If f is Z->N, it doesn't really change anything. Just f^-1 will of course be N->Z
And since this time they are not providing a domain as in f^-1[-5,5] and instead only asking to find f^-1, all they are asking for is to solve for x in the 2 functions below?

The function f: Z --> N defined by
     
               2x - 1, if x > 0;
f(x) = {
              -2x, otherwise.

is one-to-one and onto. Fine f^-1.
Yes. All you need to do is reverse the function. It will have a { and two options just like f did.