Functions, Domains, And equality

  • Thread starter Thread starter L Huyghe
  • Start date Start date
  • Tags Tags
    domains Functions
AI Thread Summary
The discussion revolves around finding two distinct functions, f and g, that equal each other for all rational numbers but differ at irrational numbers. A suggested approach is to define f as a piecewise function that outputs 0 for rational inputs and 1 for irrational inputs, while g outputs 0 for rationals and a different value, such as 14, for irrationals. Participants express confusion over the problem's placement in a precalculus context, as the concept of piecewise functions is typically covered earlier. The original poster is self-studying precalculus and seeks clarity on the topic. The conversation emphasizes the importance of understanding function definitions and their properties.
L Huyghe
Messages
4
Reaction score
0

Homework Statement



Given an example of two different functions f and g, both of which have the set of real numbers as their domain, such that f(x)=g(x) for every rational number.

2. The attempt at a solution

I have yet to figure a way to approach this problem. Since it appears as though they are only equal for rational numbers.
 
Physics news on Phys.org
It doesn't seem from the problem statement that they are only equal for rational numbers, but in that case, why not just use that in the function definitions? You could define a function that is 0 for all rational numbers and 1 at all irrational numbers, for example. Then come up with a second function that meets the problem criteria.
 
You are right in doesn't necessarily state that all they are not equal in terms of irrational numbers in their domain
 
L Huyghe said:

Homework Statement



Given an example of two different functions f and g, both of which have the set of real numbers as their domain, such that f(x)=g(x) for every rational number.

2. The attempt at a solution

I have yet to figure a way to approach this problem. Since it appears as though they are only equal for rational numbers.
That is the approach! Define f to be whatever you want, then define g to be that same function on the rationals, but something else on the irrationals. Remember that a "function" does not necessarily mean a single "formula". Such a function cannot be "continuous" anywhere. I do wonder why such a problem would be posted under "precalculus". Since you are the same person who posted the "find f(x) that maps (0, 1) to [0, 1]", what course are these for?
 
The problem does say that f and g are different. So they have to have a different value at one point, at least.
 
HallsofIvy said:
I do wonder why such a problem would be posted under "precalculus".
Don't people generally learn the basics of functions in a precalculus class, or earlier?

It sounds like he just did the chapter on piecewise-defined functions. (Tip to opening poster: information such as what lesson you have just learned can be useful both to give you ideas, and to help those who want to help you)
 
Sorry about that, It's probably a good idea to give some more background knowledge about myself. It's not for a course, Just reading precalculus in advance for next year, and I found these problems in the book. I know about piecewise function, but they have yet to be clearly defined in the book yet. These question are in the intro to functions section.

*Also I am still having trouble answering original question, It would be great if u could give me an example. Sorry If i was vague before.
 
f(x)=\left\{\begin{array}{cc}0,&amp;\mbox{ if }<br /> x \in \matbb{Q} \\1, &amp; \mbox{ otherwise }\end{array}\right.

g(x)=\left\{\begin{array}{cc}0,&amp;\mbox{ if }<br /> x \in \matbb{Q} \\14, &amp; \mbox{ otherwise }\end{array}\right.
 
Back
Top