Find a function H such that H(H(x)) = H(x) for all numbers x, and such that H(1) = 36, H(2) = pi/3 and H(13) = 47.
It's an optional question in one of my textbook's chapters, but it is quite interesting!
So you are looking for help on the bonus question, so that you can score extra points on your assignment?![]()
Lol
Nah, actually it's just a regular ole question in my textbook's chapter. Its a gay textbook, the author adds random questions just to piss us off. At least he tells us in advance that these are only bonus "challenges".
I've figured out an answer, it's not pretty but I think it's correct. Don't want to spoil the puzzle for others yet though.
Find a function H such that H(H(x)) = H(x) for all numbers x, and such that H(1) = 36, H(2) = pi/3 and H(13) = 47.
It's an optional question in one of my textbook's chapters, but it is quite interesting!
H(36)=36
H(pi/3)=pi/3
H(47)=47
hmmm
Since there's pi in there, guessing it has some trig in it.
like all strictly mathematical problems...what does solving this actually get you? it's just like finding the probability of the sun rising tomorrow. sure, there's a possibility it won't, but it's absolutely meaningless.
on the other hand, if you need to engineer something, there's a set of math problems worth solving...![]()
H(36)=36
H(pi/3)=pi/3
H(47)=47
hmmm
Since there's pi in there, guessing it has some trig in it.
So, the function must be periodic, but the period also varies with x. I'll think about it.
Most important thing to note is H(H(x))=H(x).
Are there any other constraints? Like, does it have to be continuous and smooth (infinitely differentiable)?
but do you know if there is anyway of determining a continuous/smooth function from the given points without haphazardly trying various possible curves?
For what its worth, my answer was
Let f(x) = g(x) + Indicator_fn{x in range of f(x)}*[x - g(x)]
And then fit whatever you like to g(x), as long as it satisfies the three points. I'm not particularly happy with my answer, seems like a cop-out. The question was marked 'hard' in the textbook, so I don't think it is as easy as I make it out to be.
H(H(x))=H(x)
[H'(H(x))][H'(x)]=H'(x)
H'(H(x))=1
I don't know if that's the proper use of the chain rule, but if it is, I don't see how the function could have a slope of 1 at each x, satisfy the conditions above and be continuous.
H(H(x))=H(x)
[H'(H(x))][H'(x)]=H'(x)
H'(H(x))=1
I don't know if that's the proper use of the chain rule, but if it is, I don't see how the function could have a slope of 1 at each x, satisfy the conditions above and be continuous.
Yes, that technique is called splining and is a field in applied mathematics/numerical methods. It has applications in computer graphics. There are techniques to fit smooth curves through points. If you want any old curve, it shouldn't be hard (i.e., given a set of points, you can draw a curve by hand pretty easily). The techniques normally consist of finding the appropriate superposition of a basis set of smooth functions (i.e., cubic spline is a technique using cubics).
Spline:
http://en.wikipedia.org/wiki/Spline_(mathematics)
Cubic Spline:
http://mathworld.wolfram.com/CubicSpline.html
If you don't require it to be smooth or continuous, then yes, you can manufacture tons of different discontinuous, weird functions that satisfy your constraints. Mine above works fine, and I don't know about yours but it seems like it should work too.
Find a function H such that H(H(x)) = H(x) for all numbers x, and such that H(1) = 36, H(2) = pi/3 and H(13) = 47.
It's an optional question in one of my textbook's chapters, but it is quite interesting!
