# Thread:

1. ## Question on functions & domains

Im having a hard time wrapping my mind around domains. I have no problem finding the domain of a function but what is stumping me is determining the function of a given domain. An example would be find the function with the given domain: [-5,-2)U(2,5].

Thanks for your help

2. This can be tricky. For this problem, we have two restrictions to make. After -5, 5 we need the domain to be undefined but include the endpoints and at 2 we need F to be undefined. The way you can restrict a function from being able to extend beyond a point is by using square roots. Cross over into a negative square root and the domain is done. To remove a point, use a rational function. (1/(x-2)) - now x=2 is undefined. To make this easier at the end points though let's use 3/(x-2). So at x=-5, 5 we want F=0 so it is included in the domain. The sign will be different though at the different endpoints, but if we square the expression above, both points will be positive. $\left( \frac{3}{x-2} \right) ^2$. We need to subtract 1 from this though to make f=0 at x=-5,5 and this in fact works.

$\sqrt{\left( \frac{3}{x-2} \right) ^2 -1}$ If you check for values beyond the endpoints of the required domain I think it checks out. This isn't easy to follow but I kind of just wrote down my inner monologue. I hope it helps.

EDIT: Oh my God. Grrrrrrrrrrrrrrrrrrr. I missed a crucial negative. [-5,-2)U(2,5] Disregard this but maybe it can help some. Sorry.
{"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": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 2, "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.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "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.9132272601127625, "perplexity_flag": "head"}