# Math Help - Forumulating equations subject to constraints (inequalities and unequalities(?))

1. ## Forumulating equations subject to constraints (inequalities and unequalities(?))

I'm a little rusty on my algebra so I'm hoping this is fairly easy. I'm trying to write some equations describing the Euclidean distance between two points but are subject to the constraints that the distance must be greater than zero and must also not be equal to one. Here is what I have so far:

Let $(x_1,y_1)$ and $(x_2,y_2)$ be the two points, Let the $d$ be the distance between them.

Then I should be able to use the following equation to require that the distance be anything greater than zero:

$((x_1-x_2)^2+(y_1-y_2)^2)^\frac{1}{2} > 0$

could be written as:

$t_1((x_1-x_2)^2+(y_1-y_2)^2)^\frac{1}{2}-1=0$

I think this would work because $\frac{1}{t_1}$ can never be zero. I don't think $t_1$ needs to be squared because if it's negative, there won't be a solution.

So where I'm stuck is: how would I write the distance equation subject to the constraint that:
$((x_1-x_2)^2+(y_1-y_2)^2)^\frac{1}{2} \neq 1$

Any suggestions to get me on the right foot?

2. $0 < (x-h)^2 + (y-k)^2 < 1$ describes the set of all points $(x,y)$ inside a circle of radius 1 centered at coordinates $(h,k)$ such that $x \ne h$ and $y \ne k$

3. Ok, I think i got it. It would be something to the effect of:

$((x_1-x_2)^2+(y_1-y_2)^2)^\frac{1}{2} = \frac{1}{t_1}+1$
or
$t_1(((x_1-x_2)^2+(y_1-y_2)^2)^\frac{1}{2} -1)-1= 0$
{"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": 15, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.928773045539856, "perplexity": 117.71465650779903}, "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": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-27/segments/1435376073161.33/warc/CC-MAIN-20150627033433-00081-ip-10-179-60-89.ec2.internal.warc.gz"}