# Is there a function or anything else that gives the same result on an interval? [duplicate]

Possible Duplicate:
Is there a function or anything else that gives the same result on a set?

I want to know if there is a function, for example, that gives the same result on the interval $[10,15]$. I want to have these function values

$$f(10)=25,\, f(11)=25,\, f(12)=25,\, f(13)=25,\, f(14)=25,\, f(15)=25$$

Thanks.

-

1
How about $f: [10, 15]\to \mathbb R, x \mapsto 25$ – martini Apr 30 '12 at 9:00

2
Of course there is. For example the constant function $f(x) = 25$, for all $x \in \mathbb{R}$. – Martin Wanvik Apr 30 '12 at 9:03
Exuse me i just asked a more specific question thank you – Boubouh Apr 30 '12 at 9:28

1
@Boubouh: As I said, edit your original question. There is no need to ask another one. – Martin Wanvik Apr 30 '12 at 9:30
@Boubouh: You might also use $f(x)=25\cos (2\pi x)$ for $x\in\mathbb R$. – Dejan Govc Apr 30 '12 at 9:48
show 2 more comments

## marked as duplicate by Did, Willie Wong♦Apr 30 '12 at 10:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

## 1 Answer

Actually, following Dejan Govc's lead, you could take any Fourier Series $$f(x) = a_0 + \sum_{n=1}^\infty a_n \cos\left(2\pi nx\right) + b_n \sin\left(2\pi nx\right)$$ whose cosine coefficients $a_n$ sum to $25$ (the $b_n$ are completely free). The constant function corresponds to $(a_0,a_1,\dots)=(25,0,0,\dots)$ and Dejan's to $(0,25,0,\dots)$, both with all $b_n=0$. The complete function space would look like the set of periodic functions on the unit interval with the boundary condition $f(0)=f(1)=f(k)=25$ for all $k\in\mathbb{Z}$. This is a pretty large space of functions!

-

+1. Nice observation! – Dejan Govc Apr 30 '12 at 10:17
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 14, "mathjax_display_tex": 2, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": false}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.8996891975402832, "perplexity_flag": "middle"}