Inverse of the function and find if is surjective/injective

In summary, the given function f(x)=\frac{3x-2}{x+2} requires finding the inverse by exchanging the roles of x and y and then solving for y. The function is not surjective as it does not have a solution for y=3. However, it is injective as each element in the codomain has at most one original. To prove this, it can be shown that if f is not injective, then there exist x_1, x_2, y \in \mathbb R such that y=f(x_1)=f(x_2), which leads to a contradiction. The correct inverse is x=-\frac{2y+2}{y-3}. Overall,
  • #1
theakdad
211
0
For the given function i have to find if is surjective/injective and find the inverse of the function:

\(\displaystyle f(x)=\frac{3x-2}{x+2}\)

I now that for inverse i have to express $x$ somehow,but i don't know how to do it...
Thank you for the help!
 
Mathematics news on Phys.org
  • #2
wishmaster said:
For the given function i have to find if is surjective/injective and find the inverse of the function:

\(\displaystyle f(x)=\frac{3x-2}{x+2}\)

I now that for inverse i have to express $x$ somehow,but i don't know how to do it...
Thank you for the help!
Let y = f(x) so you have
\(\displaystyle y=\frac{3x-2}{x+2}\)

To find the inverse exchange the roles of x and y:
\(\displaystyle x=\frac{3y-2}{y+2}\)

Now solve for y.

-Dan
 
  • #3
What about surjective and injective?
 
  • #4
wishmaster said:
What about surjective and injective?

You will need the inverse to answer those questions.

Does every value in the codomain have at least one original?
Does every value in the codomain have at most one original?
 
  • #5
I understand this,but how to prove it mathematicly?
 
  • #6
wishmaster said:
I understand this,but how to prove it mathematicly?

Can you write down the inverse function first?
 
  • #7
I like Serena said:
Can you write down the inverse function first?

I have calculated that inverse is : \(\displaystyle -\frac{2-2x}{x-3}\)
 
  • #8
wishmaster said:
I have calculated that inverse is : \(\displaystyle -\frac{2-2x}{x-3}\)

Good.
So pick any element in $\mathbb R$.
Your formula gives a unique original of that value for the original function f.
There is 1 exception: the value 3 does not have an original.

So each element in the codomain $\mathbb R$ of f has either 1 or 0 originals.
As such the function f is injective, since each element has at most 1 original.
But the function f is not surjective, since not every element has at least 1 original.
Therefore, f is not bijective either.

If we restrict the codomain to $\mathbb R \backslash \{ 3 \}$, it is both surjective and bijective.
 
  • #9
I like Serena said:
Good.
So pick any element in $\mathbb R$.
Your formula gives a unique original of that value for the original function f.
There is 1 exception: the value 3 does not have an original.

So each element in the codomain $\mathbb R$ of f has either 1 or 0 originals.
As such the function f is injective, since each element has at most 1 original.
But the function f is not surjective, since not every element has at least 1 original.
Therefore, f is not bijective either.

If we restrict the codomain to $\mathbb R \backslash \{ 3 \}$, it is both surjective and bijective.

Thank you very much! But how do i prove this mathematicly? This is theory,i have to calculate it somehow...
 
  • #10
wishmaster said:
Thank you very much! But how do i prove this mathematicly? This is theory,i have to calculate it somehow...

First off, I just noticed that your inverse is incorrect.
If you have \(\displaystyle y=f(x)=\frac{3x-2}{x+2}\), then \(\displaystyle x = -\frac{2y+2}{y-3}\).Anyway, I guess you want it a bit more formal?Well, $f(x)=3$ has no solution, which we can see from the formula \(\displaystyle x = -\frac{2y+2}{y-3}\), which we deduced from $f(x)=y$, therefore f is not surjective (proof by counter example).Then suppose f is not injective, then there are $x_1, x_2, y \in \mathbb R$, with $x_1 \ne x_2$, such that $y=f(x_1)=f(x_2)$.
That means that \(\displaystyle x_1 = -\frac{2y+2}{y-3}\), but also that \(\displaystyle x_2 = -\frac{2y+2}{y-3}\).
These are both the same value, which is a contradiction.
Therefore f is injective (proof by contradiction).
 
  • #11
I like Serena said:
First off, I just noticed that your inverse is incorrect.
If you have \(\displaystyle y=f(x)=\frac{3x-2}{x+2}\), then \(\displaystyle x = -\frac{2y+2}{y-3}\).Anyway, I guess you want it a bit more formal?Well, $f(x)=3$ has no solution, which we can see from the formula \(\displaystyle x = -\frac{2y+2}{y-3}\), which we deduced from $f(x)=y$, therefore f is not surjective (proof by counter example).Then suppose f is not injective, then there are $x_1, x_2, y \in \mathbb R$, with $x_1 \ne x_2$, such that $y=f(x_1)=f(x_2)$.
That means that \(\displaystyle x_1 = -\frac{2y+2}{y-3}\), but also that \(\displaystyle x_2 = -\frac{2y+2}{y-3}\).
These are both the same value, which is a contradiction.
Therefore f is injective (proof by contradiction).

i don't know...seems inverse is correct,checked by many programs...

Yes,i want it formal,and you have given me a great answer,for what I am very thankful!
 
  • #14
wishmaster said:
I have calculated that inverse is : \(\displaystyle -\frac{2-2x}{x-3}\)

wishmaster said:

Wolfram's result from your link is:
$$- \frac{2(x+1)}{x-3}$$
Note that it is not what you originally gave.
There's a difference with a minus sign.
Ah well.
Anyway,it doesn't matter,i did my work,and i got 100%,which i could not get without your help! Thanks!

Good! :)
 
  • #15
I like Serena said:
Wolfram's result from your link is:
$$- \frac{2(x+1)}{x-3}$$
Note that it is not what you originally gave.
There's a difference with a minus sign.
Ah well.
Good! :)
Im not as close so smart as you,but arent those results the same?

Yes,good for me! (Tongueout)
 
  • #16
wishmaster said:
Im not as close so smart as you,but arent those results the same?

I'm afraid not.
Let me try and show it:
\begin{array}{}
- \frac{2(x+1)}{x-3}
& =- \frac{2+2x}{x-3} & \qquad (1)\\
&= \frac{-(2+2x)}{x-3} \\
&= \frac{-2-2x}{x-3} & \qquad (2) \\
&\ne -\frac{2-2x}{x-3} & \qquad (\text{your version})
\end{array}
I'm trying to show here that (1) and (2) are proper alternate forms of the inverse.
However, (your version) is different from either of them.
 
  • #17
I like Serena said:
I'm afraid not.
Let me try and show it:
\begin{array}{}
- \frac{2(x+1)}{x-3}
& =- \frac{2+2x}{x-3} & \qquad (1)\\
&= \frac{-(2+2x)}{x-3} \\
&= \frac{-2-2x}{x-3} & \qquad (2) \\
&\ne -\frac{2-2x}{x-3} & \qquad (\text{your version})
\end{array}
I'm trying to show here that (1) and (2) are proper alternate forms of the inverse.
However, (your version) is different from either of them.

Isnt \(\displaystyle -\frac{1}{3}\) or \(\displaystyle \frac{-1}{3}\) the same thing?
But yes,i believe it was my mistake,i don't want to be a smart guy here,just want to learn proper math ;)
 
  • #18
wishmaster said:
Isnt \(\displaystyle -\frac{1}{3}\) or \(\displaystyle \frac{-1}{3}\) the same thing?
But yes,i believe it was my mistake,i don't want to be a smart guy here,just want to learn proper math ;)

Yes, that is the same thing.

However, \(\displaystyle -\frac{1+1}{3}=- \frac 2 3\) and \(\displaystyle \frac{-1+1}{3} = 0\) are not the same thing.
 
  • #19
I like Serena said:
I'm afraid not.
Let me try and show it:
\begin{array}{}
- \frac{2(x+1)}{x-3}
& =- \frac{2+2x}{x-3} & \qquad (1)\\
&= \frac{-(2+2x)}{x-3} \\
&= \frac{-2-2x}{x-3} & \qquad (2) \\
&\ne -\frac{2-2x}{x-3} & \qquad (\text{your version})
\end{array}
I'm trying to show here that (1) and (2) are proper alternate forms of the inverse.
However, (your version) is different from either of them.
look like this:
\(\displaystyle -\frac{2-2x}{x-3} =\frac{-(2-2x)}{x-3} \)
so \(\displaystyle -\frac{1}{3}=\frac{-(1)}{3}\)
does this make it easy to see?

Regards,
\(\displaystyle |\pi\rangle\)
 

FAQ: Inverse of the function and find if is surjective/injective

What is the inverse of a function?

The inverse of a function is a new function that undoes the original function. It is obtained by swapping the input and output values of the original function.

How do you find the inverse of a function?

To find the inverse of a function, follow these steps:1. Replace the function notation with y.2. Swap the x and y variables.3. Solve for y.4. Replace y with the notation for inverse function, f-1.The resulting function is the inverse of the original function.

What does it mean for a function to be surjective?

A function is surjective if every element in the range of the function has at least one corresponding element in the domain. In other words, every output value has at least one input value that maps to it.

How do you determine if a function is surjective?

To determine if a function is surjective, you can use the horizontal line test. Draw horizontal lines across the graph of the function. If every horizontal line intersects the graph at least once, the function is surjective. Alternatively, you can check if the range of the function is equal to its co-domain.

What does it mean for a function to be injective?

A function is injective if each element in the domain maps to a unique element in the range. In other words, no two input values have the same output value.

Similar threads

Replies
1
Views
1K
Replies
2
Views
2K
Replies
7
Views
1K
Replies
4
Views
3K
Replies
1
Views
1K
Replies
7
Views
2K
Back
Top