• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:07
CEST 03:07
KST 10:07
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Ro4 Preview: On Course12Code S Season 1 - RO8 Preview7[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16
Community News
Code S Season 1 (2026) - RO8 Results1Weekly Cups (May 4-10): Clem, MaxPax, herO win1Maestros of The Game 2 announcement and schedule !11Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12
StarCraft 2
General
Team Liquid Map Contest #22 - The Finalists Code S Season 1 (2026) - RO8 Results MaNa leaves Team Liquid Weekly Cups (May 4-10): Clem, MaxPax, herO win Code S Season 1 - RO8 Preview
Tourneys
KSL Week 89 2026 GSL Season 2 Qualifiers Maestros of The Game 2 announcement and schedule ! $5,000 WardiTV Spring Championship 2026 SC2 INu's Battles#16 <BO.9>
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 525 Wheel of Misfortune The PondCast: SC2 News & Results Mutation # 524 Death and Taxes Mutation # 523 Firewall
Brood War
General
ASL21 General Discussion vespene.gg — BW replays in browser Pros React to: TvT Masterclass in FlaSh vs Light BGH Auto Balance -> http://bghmmr.eu/ ASL21 Strategy, Pimpest Plays Discussions
Tourneys
Escore Tournament StarCraft Season 2 [ASL21] Semifinals B [Megathread] Daily Proleagues [ASL21] Semifinals A
Strategy
Fighting Spirit mining rates [G] Hydra ZvZ: An Introduction Simple Questions, Simple Answers Muta micro map competition
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Warcraft III: The Frozen Throne Starcraft Tabletop Miniature Game PC Games Sales Thread
Dota 2
The Story of Wings Gaming
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread UK Politics Mega-thread YouTube Thread European Politico-economics QA Mega-thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1668 users

[H] Calculus (realy!)

Blogs > infinity21
Post a Reply
Normal
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
October 18 2007 02:52 GMT
#1
I don't know where to start for this question:

Does there exist a function f:R -> R that is continuous at each rational but discontinuous at each irrational?

Does anyone have an idea of what to do? I swear math wasn't this hard in high school

Official Entusman #21
fight_or_flight
Profile Blog Joined June 2007
United States3988 Posts
October 18 2007 02:53 GMT
#2
what do you mean by f:R -> R ?
Do you really want chat rooms?
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
Last Edited: 2007-10-18 02:54:33
October 18 2007 02:53 GMT
#3
a function that is mapped on a real plane to another real plane
R =
[image loading]
Official Entusman #21
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
Last Edited: 2007-10-18 02:57:35
October 18 2007 02:57 GMT
#4
LOL i mispelled really ;;
speaking of which, can a mod change that? thanks x_x
Official Entusman #21
fight_or_flight
Profile Blog Joined June 2007
United States3988 Posts
Last Edited: 2007-10-18 03:15:54
October 18 2007 03:10 GMT
#5
Well, I'm not a math major, and don't know how to do this. However, copying your question into google gives the answer:

http://www.google.com/search?hl=en&q=continuous at each rational but discontinuous at each irrational?&btnG=Google Search

http://www.jstor.org/view/0025570x/di021166/02p0055m/0

The answer is no. However, if you switch the words "irrational" and "rational" then the answer is yes.

edit: btw this seems pretty bizarre, and interesting. What class is this?
Do you really want chat rooms?
Chill
Profile Blog Joined January 2005
Calgary25998 Posts
October 18 2007 03:49 GMT
#6
On October 18 2007 11:57 infinity21 wrote:
LOL i mispelled really ;;
speaking of which, can a mod change that? thanks x_x


Nope =]
Moderator
Kau *
Profile Joined March 2007
Canada3502 Posts
Last Edited: 2007-10-18 03:53:40
October 18 2007 03:51 GMT
#7
I think that theoretically you could have a function that is discontinuous at every irrational number, but it would require an infinite amount of polynomials. For example if you have the function 1/x, it is continuous at every number except 0. If you have the function 1/(x-pi), your function is continuous at every number except the irrational number pi. Now suppose you did that for every irrational number (we'll call an irrational number U). You'd have 1/(x-U_1)(x-U_2)...(x-U_n), thus being continuous at every rational number, but discontinuous at every irrational number. The only problem is that there are infinitely many irrational numbers.

Edit: So I guess I'd say that such a function doesn't exist.
Moderator
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
October 18 2007 03:58 GMT
#8
I find it interesting that when my internet's down, the only things that still work are the university website, MSN, and teamliquid.net =/
Official Entusman #21
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
October 18 2007 03:59 GMT
#9
This is 1st year advanced calculus for the person who asked.
Official Entusman #21
fight_or_flight
Profile Blog Joined June 2007
United States3988 Posts
October 18 2007 04:04 GMT
#10
On October 18 2007 12:58 infinity21 wrote:
I find it interesting that when my internet's down, the only things that still work are the university website, MSN, and teamliquid.net =/

Well that sucks. Maybe this will help:

+ Show Spoiler +

[image loading]

[image loading]

[image loading]

Do you really want chat rooms?
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
October 18 2007 04:07 GMT
#11
On October 18 2007 13:04 fight_or_flight wrote:
Show nested quote +
On October 18 2007 12:58 infinity21 wrote:
I find it interesting that when my internet's down, the only things that still work are the university website, MSN, and teamliquid.net =/

Well that sucks. Maybe this will help:

+ Show Spoiler +

[image loading]

[image loading]

[image loading]


Thanks for trying but it's not working too well. I'll just take a look at it when my internet starts to work again. I'm not in a hurry -- this question is a bonus question and we are allowed to submit this at any time of the term.
Official Entusman #21
Ender
Profile Blog Joined October 2003
United States294 Posts
Last Edited: 2007-10-18 04:21:12
October 18 2007 04:10 GMT
#12
Ok to show a limit at a point we must show that lim as x approaches c of f(x) = L. Now in rigorous terms this means for any epsilon>0, there exists a delta>0 such that if 0<|x-c|<delta then |f(x)-L|<epsilon.

I'll work on your particular problem later, but let's say we had the function g(x) = xf(x) where f(x) was 1 for x rational and 0 for x irrational. Let's say we wanted to prove that the limit as x approaches 0 of xf(x) = 0. This means for |xf(x)-0|<epsilon, there exists a 0<|x|<delta. Note that since f(x) can be 1 at the most, then we can choose delta = epsilon and our limit is proved.

Now for continuity, we need to show that for each epsilon>0 there exists a delta>0 such that if 0<|x-c|<delta, then |f(x)-f(c)|<epsilon. Hope that starts you off a little.
The beatings will continue until the morale improves.
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
Last Edited: 2007-10-18 04:35:11
October 18 2007 04:34 GMT
#13
On October 18 2007 13:10 Ender wrote:
Ok to show a limit at a point we must show that lim as x approaches c of f(x) = L. Now in rigorous terms this means for any epsilon>0, there exists a delta>0 such that if 0<|x-c|<delta then |f(x)-L|<epsilon.

I'll work on your particular problem later, but let's say we had the function g(x) = xf(x) where f(x) was 1 for x rational and 0 for x irrational. Let's say we wanted to prove that the limit as x approaches 0 of xf(x) = 0. This means for |xf(x)-0|<epsilon, there exists a 0<|x|<delta. Note that since f(x) can be 1 at the most, then we can choose delta = epsilon and our limit is proved.

Now for continuity, we need to show that for each epsilon>0 there exists a delta>0 such that if 0<|x-c|<delta, then |f(x)-f(c)|<epsilon. Hope that starts you off a little.

I'm not entirely sure I understood what you said. Does f(x) simply look like y = 1 and y = 0 and g(x) look like y = x and y = 0 when graphed? (albeit with infinitely many holes)

Would I have to come up with a function f(x) where f(a) is defined for all a in rationals and is not defined for all a in irrationals?
Official Entusman #21
Ender
Profile Blog Joined October 2003
United States294 Posts
October 18 2007 05:25 GMT
#14
OK now let's extend our use of xf(x) where f(x) is 1 for x rational and 0 for x irrational. Let's analyze continuity: if x approaches a rational number c, then for continuity, L = cf(c) = c. we need to show that for any epsilon, |xf(x)-c|<epsilon imples that |x-c|<delta. Note that at the most, xf(x) = 1 so |xf(x)-c|<|x-c| < delta. So, if we choose delta = epsilon, then |xf(x) -c|<epsilon and we have constricted the limit to whatever epsilon we choose.. Thus, xf(x) is continuous for rational numbers.

Now consider irrational numbers. Here, L = c(0) = 0. So, for any epsilon |xf(x)|<epsilon implies that |x-c|<delta. hmmm...this one's tricky...yeah according to the links other people have been giving, it seems that the irrational numbers must be continuous so there must be an epsilon that works here but i have an exam tomorrow so ill do more stuff later.
The beatings will continue until the morale improves.
oneofthem
Profile Blog Joined November 2005
Cayman Islands24199 Posts
October 18 2007 06:09 GMT
#15
function 0 when rational, 1/x when irrational. or soemthing liek that. then you do a bunch of episilon delta analysis or limit analysis, and i forgot. look at what ender did
We have fed the heart on fantasies, the heart's grown brutal from the fare, more substance in our enmities than in our love
r0ar
Profile Joined June 2005
Australia24 Posts
October 18 2007 06:26 GMT
#16
ok

there are no restrictions on the function

first of all
there is an irrational number between any two rational numbers
so i dont really get what they mean by continous on the rationals, maybe defined on the rationals
assuming that i would suggest

x if x is rational
x=
1/0 if x is irrational

have you been given a rigorous defn of continuity yet?
LxRogue
Profile Blog Joined March 2007
United States1415 Posts
October 18 2007 06:54 GMT
#17
2^x i think qualifies?
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
October 18 2007 06:57 GMT
#18
On October 18 2007 15:26 r0ar wrote:
ok

there are no restrictions on the function

first of all
there is an irrational number between any two rational numbers
so i dont really get what they mean by continous on the rationals, maybe defined on the rationals
assuming that i would suggest

x if x is rational
x=
1/0 if x is irrational

have you been given a rigorous defn of continuity yet?

fairly rigorous, I'd say.
Official Entusman #21
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
October 18 2007 07:00 GMT
#19
On October 18 2007 15:54 LxRogue wrote:
2^x i think qualifies?

How so? It's continuous for all real numbers, including the irrationals.
Official Entusman #21
LxRogue
Profile Blog Joined March 2007
United States1415 Posts
Last Edited: 2007-10-18 07:06:46
October 18 2007 07:06 GMT
#20
2^x doesn't exist at irrationals. The exponent must be expressed in terms of a ratio.

Well i guess that only means it doesn't exist at irrationals...not really saying anything about ccontinuity.
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
October 18 2007 07:10 GMT
#21
if 2^x doesn't exist at irrationals, does 2^2^(1/2) exist?
Official Entusman #21
LxRogue
Profile Blog Joined March 2007
United States1415 Posts
October 18 2007 07:36 GMT
#22
No, it doesn't. How would you calculate that expression? If you put it into a calculator you probably get an answer, but thats only because the calculator rounds off root 2 and treats it as a rational number.

Say for simplicity it represents root 2 as 7/5. It then finds the 5th root of 2^7. The only way to calculate this is when the exponent can be expressed as a ratio of integers, meaning it's rational.
GeneralCash
Profile Joined December 2005
Croatia346 Posts
Last Edited: 2007-10-18 10:25:07
October 18 2007 10:18 GMT
#23
hmmmm. i'm a physics student and i'm not good at math but i might have an idea about getting the function you're looking for.

in mechanics, the phase space of 2 pendulums (or any oscilator with 2 degrees of freedom) in action/angle coordinates is represented by a torus where one pendulum's phase portret is the circle around the center of the torus and the other's is the outline of the vertical diametrical cross-section. representation, the pendulums orbit around the center of the torus and around the center of the cross-section forming a bent spiral. hope you understand what i'm saying, it seems my english sucks at this. anyway, it's easy to prove that if the ratio of the frequencies is rational, the trajectory in the phase space is closed, and it's not if the ratio is irrational. so a simple line itegral over the whole trajectory with both bondries at the same point should converge if the ratio is rational (divided by some system-dependant factor, it should give the number of periods it takes for for pendulums to end up in the same point of the phase space, it takes it infinite number of periods if the ratio irrational). simply put f(x)=i where i is the integral and x is the ratio of the frequencies. i have no idea how to calculate that integral or if it's even possible...

meh, forget the pendulums if it's confusing, simply imagine a line moving in a spiral motion over the surface of a torus, making A turns around the center of the torus and B turns around the center of the vertical cross-section. the function is a simple superposition of sinusoidal terms (sullutions for 2 different x"+kx=0 equasions). the line integral from a to a (a being the point on the spiral) repersents the lenght of the spiral before it reaches the same point in 3d space again. obviosly, disregard the sollution that is 0 and the ones representing more than one full circle. that integral should be your function as it infinite if the ratio is irrational and periodic if it's not.

hope i helped. this is the final extent of both my math and my english and i don't feel like i've helped a lot. fuck it. gonna ask around the colledge when i actualy manage to drag my ass there.

and 2^x is still continuous at irrational numbers. it's expand a(n), n being the order of expansion used is a cauchy sequence (<-- corect term??) that converges within rationals. it has no discontinuities.

ps. oh how i hate math. oh how i hate mechanics. man, this brought back a lot of painful memories. sure hope it was worth it...
betaben
Profile Blog Joined September 2007
681 Posts
Last Edited: 2007-10-18 11:12:27
October 18 2007 10:46 GMT
#24
I don't understand the question: "continuous" means that f(x+deltax)=f(x)+deltaf(x), i.e small changes in x result in small changes in the function. a small change in a rational number gives an irrational number- they're on the same scale, or real number line. the question of continuousness has to apply to a function for both irrational and rational numbers, because the definition of it requires you to compare the two.
Zanno
Profile Blog Joined February 2007
United States1484 Posts
Last Edited: 2007-10-18 16:41:49
October 18 2007 16:38 GMT
#25
i think the equation you're looking for is X^X for negative values
On October 18 2007 12:51 Kau wrote:
I think that theoretically you could have a function that is discontinuous at every irrational number, but it would require an infinite amount of polynomials. For example if you have the function 1/x, it is continuous at every number except 0. If you have the function 1/(x-pi), your function is continuous at every number except the irrational number pi. Now suppose you did that for every irrational number (we'll call an irrational number U). You'd have 1/(x-U_1)(x-U_2)...(x-U_n), thus being continuous at every rational number, but discontinuous at every irrational number. The only problem is that there are infinitely many irrational numbers.

Edit: So I guess I'd say that such a function doesn't exist.
an infinite number of polynomials is called a taylor series and those functions collapse into regular functions provided they can exist.
aaaaa
Muirhead
Profile Blog Joined October 2007
United States556 Posts
Last Edited: 2007-10-18 19:11:49
October 18 2007 18:40 GMT
#26
The answer is no... (and it is not so easy)

The standard proof involves first showing that the set of points at which f is continuous is a G_delta set (i.e. a countable intersection of open sets)

To do this, let K_n be the set of points x for which there exists some delta such that |f(x)-f(y)|<1/n whenever |x-y|<delta

Each K_n is open and the set of points where f is continuous is the intersection of the K_n

Now, you must show that the rationals are not a G_delta set.

First of all, notice that the set of irrationals is a G_delta set ( it is the intersection over all rational q of {all reals number except for q} )

The problem is reduced to the following general fact:
If the set of all real numbers is the disjoint union of X and Y, where both X and Y are dense, then at most one of X,Y is G_delta.

This follows directly from the Baire Category Theorem, which is very well-known and you can look up online.

I hope this helps... ask if you need any clarification
starleague.mit.edu
Normal
Please log in or register to reply.
Live Events Refresh
The PiG Daily
21:30
Best Games
Maru vs Rogue
ByuN vs herO
Maru vs Classic
SHIN vs Zoun
Clem vs MaxPax
SHIN vs ByuN
PiGStarcraft499
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft499
ByuN 317
ProTech125
Ketroc 24
Dota 2
NeuroSwarm180
Counter-Strike
taco 256
Other Games
gofns17200
tarik_tv9789
summit1g6231
FrodaN2807
C9.Mang0383
JimRising 375
monkeys_forever362
ViBE97
Trikslyr63
Livibee52
PPMD22
WinterStarcraft4
Organizations
Other Games
gamesdonequick784
BasetradeTV84
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 11 non-featured ]
StarCraft 2
• Hupsaiya 99
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
Korean StarCraft League
1h 53m
davetesta7
RSL Revival
8h 53m
Clem vs Rogue
Bunny vs Lambo
IPSL
14h 53m
Dewalt vs nOmaD
Ret vs Cross
BSL
17h 53m
Bonyth vs Doodle
Dewalt vs TerrOr
GSL
1d 6h
Cure vs herO
SHIN vs Maru
IPSL
1d 14h
Bonyth vs Napoleon
G5 vs JDConan
BSL
1d 17h
OyAji vs JDConan
DragOn vs TBD
Replay Cast
2 days
Monday Night Weeklies
2 days
Replay Cast
2 days
[ Show More ]
The PondCast
3 days
GSL
4 days
Replay Cast
4 days
GSL
5 days
Replay Cast
5 days
Sparkling Tuna Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Escore Tournament S2: W7
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
KK 2v2 League Season 1
BSL 22 Non-Korean Championship
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
Heroes Pulsing #1
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2

Upcoming

YSL S3
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
WardiTV Spring 2026
2026 GSL S2
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.