How do I find the middle(1/2), 1/3, 1/4, etc, of a line?
$begingroup$
Similar to this question: How to calculate the middle of a line? where it's explained how to find the middle of a line (x,y), so that's half the line 1/2, but I also need to find one third of the line, one fourth, and so on.
I tried dividing by 4 instead of 2 to get 1/4 but it didn't seem to work:
1/2 (works):
$x = dfrac{x_1 + x_2}{2}$ $y = dfrac{y_1 + y_2}{2}$
1/4 (doesn't work):
$x = dfrac{x_1 + x_2}{4}$ $y = dfrac{y_1 + y_2}{4}$
geometry coordinate-systems
$endgroup$
add a comment |
$begingroup$
Similar to this question: How to calculate the middle of a line? where it's explained how to find the middle of a line (x,y), so that's half the line 1/2, but I also need to find one third of the line, one fourth, and so on.
I tried dividing by 4 instead of 2 to get 1/4 but it didn't seem to work:
1/2 (works):
$x = dfrac{x_1 + x_2}{2}$ $y = dfrac{y_1 + y_2}{2}$
1/4 (doesn't work):
$x = dfrac{x_1 + x_2}{4}$ $y = dfrac{y_1 + y_2}{4}$
geometry coordinate-systems
$endgroup$
add a comment |
$begingroup$
Similar to this question: How to calculate the middle of a line? where it's explained how to find the middle of a line (x,y), so that's half the line 1/2, but I also need to find one third of the line, one fourth, and so on.
I tried dividing by 4 instead of 2 to get 1/4 but it didn't seem to work:
1/2 (works):
$x = dfrac{x_1 + x_2}{2}$ $y = dfrac{y_1 + y_2}{2}$
1/4 (doesn't work):
$x = dfrac{x_1 + x_2}{4}$ $y = dfrac{y_1 + y_2}{4}$
geometry coordinate-systems
$endgroup$
Similar to this question: How to calculate the middle of a line? where it's explained how to find the middle of a line (x,y), so that's half the line 1/2, but I also need to find one third of the line, one fourth, and so on.
I tried dividing by 4 instead of 2 to get 1/4 but it didn't seem to work:
1/2 (works):
$x = dfrac{x_1 + x_2}{2}$ $y = dfrac{y_1 + y_2}{2}$
1/4 (doesn't work):
$x = dfrac{x_1 + x_2}{4}$ $y = dfrac{y_1 + y_2}{4}$
geometry coordinate-systems
geometry coordinate-systems
edited Apr 13 '17 at 12:21
Community♦
1
1
asked Nov 12 '13 at 7:08
01AutoMonkey01AutoMonkey
165138
165138
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
$begingroup$
Think about the formula for the midpoint of a line as
$$x = frac{1}{2}x_{1} + frac{1}{2}x_{2}.$$
We find the midpoint by taking equal contributions from either end of the line.
If we want to find a point which is one third of the way along the line we should use the following
$$x = frac{2}{3}x_{1} + frac{1}{3}x_{2}$$
where we take uneven contributions from the two endpoints.
The point one quarter of the way along the line can be found using
$$x = frac{3}{4}x_{1} + frac{1}{4}x_{2}.$$
The y-coordinates are found in a similar manner.
$endgroup$
add a comment |
$begingroup$
Divide your segment into even parts.
From the last point you can find that
$$
x_2 = x_1 + nDelta implies Delta = frac {x_2 - x_1}n
$$
You need to find second point in that division, so
$$
x' = x_1 + Delta = x_1 + frac {x_2-x_1}n = frac {n-1}n x_1 + frac 1n x_2
$$
So, let's say you want to divide your segment into 2 even parts, then $n = 2$ and
$$
x' = frac {x_1}2 + frac {x_2}2
$$
If $n = 3$ (3 even parts)
$$
x' = frac 23 x_1 + frac 13 x_2
$$
$n = 4$ (4 even parts)
$$
x' = frac 34 x_1 + frac 14 x_2
$$
$endgroup$
add a comment |
$begingroup$
Treat $x_1$ as the offset, and $x_2-x_1$ as the distance that needs sectioning: $$x=x_1+frac{x_2-x_1}nquad,quad y=y_1+frac{y_2-y_1}nquad,quad z=z_1+frac{z_2-z_1}n$$ For $x_1=y_1=z_1=0$, the result becomes self-evident.
$endgroup$
add a comment |
$begingroup$
Let $P$ and $Q$ be two distinct points and define the (ruler) function
$f : mathbb R to overleftrightarrow{PQ}$, from the set of real numbers into the line $overleftrightarrow{PQ}$, by $f(t) = (1-t)P + tQ$. This function lays a ruler over the line $overleftrightarrow{PQ}$ such that the ordinate of $P$ is $0$ ($f(0)= P$) and the ordinate of $Q$ is $1$ $(f(1) = Q)$. So, for example, the point $dfrac34$ of the way from $P$ to $Q$ is $fleft( dfrac 34 right) = dfrac 14 P + dfrac 34 Q$.
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f563566%2fhow-do-i-find-the-middle1-2-1-3-1-4-etc-of-a-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Think about the formula for the midpoint of a line as
$$x = frac{1}{2}x_{1} + frac{1}{2}x_{2}.$$
We find the midpoint by taking equal contributions from either end of the line.
If we want to find a point which is one third of the way along the line we should use the following
$$x = frac{2}{3}x_{1} + frac{1}{3}x_{2}$$
where we take uneven contributions from the two endpoints.
The point one quarter of the way along the line can be found using
$$x = frac{3}{4}x_{1} + frac{1}{4}x_{2}.$$
The y-coordinates are found in a similar manner.
$endgroup$
add a comment |
$begingroup$
Think about the formula for the midpoint of a line as
$$x = frac{1}{2}x_{1} + frac{1}{2}x_{2}.$$
We find the midpoint by taking equal contributions from either end of the line.
If we want to find a point which is one third of the way along the line we should use the following
$$x = frac{2}{3}x_{1} + frac{1}{3}x_{2}$$
where we take uneven contributions from the two endpoints.
The point one quarter of the way along the line can be found using
$$x = frac{3}{4}x_{1} + frac{1}{4}x_{2}.$$
The y-coordinates are found in a similar manner.
$endgroup$
add a comment |
$begingroup$
Think about the formula for the midpoint of a line as
$$x = frac{1}{2}x_{1} + frac{1}{2}x_{2}.$$
We find the midpoint by taking equal contributions from either end of the line.
If we want to find a point which is one third of the way along the line we should use the following
$$x = frac{2}{3}x_{1} + frac{1}{3}x_{2}$$
where we take uneven contributions from the two endpoints.
The point one quarter of the way along the line can be found using
$$x = frac{3}{4}x_{1} + frac{1}{4}x_{2}.$$
The y-coordinates are found in a similar manner.
$endgroup$
Think about the formula for the midpoint of a line as
$$x = frac{1}{2}x_{1} + frac{1}{2}x_{2}.$$
We find the midpoint by taking equal contributions from either end of the line.
If we want to find a point which is one third of the way along the line we should use the following
$$x = frac{2}{3}x_{1} + frac{1}{3}x_{2}$$
where we take uneven contributions from the two endpoints.
The point one quarter of the way along the line can be found using
$$x = frac{3}{4}x_{1} + frac{1}{4}x_{2}.$$
The y-coordinates are found in a similar manner.
answered Nov 12 '13 at 7:15
in_mathematica_we_trustin_mathematica_we_trust
2,530819
2,530819
add a comment |
add a comment |
$begingroup$
Divide your segment into even parts.
From the last point you can find that
$$
x_2 = x_1 + nDelta implies Delta = frac {x_2 - x_1}n
$$
You need to find second point in that division, so
$$
x' = x_1 + Delta = x_1 + frac {x_2-x_1}n = frac {n-1}n x_1 + frac 1n x_2
$$
So, let's say you want to divide your segment into 2 even parts, then $n = 2$ and
$$
x' = frac {x_1}2 + frac {x_2}2
$$
If $n = 3$ (3 even parts)
$$
x' = frac 23 x_1 + frac 13 x_2
$$
$n = 4$ (4 even parts)
$$
x' = frac 34 x_1 + frac 14 x_2
$$
$endgroup$
add a comment |
$begingroup$
Divide your segment into even parts.
From the last point you can find that
$$
x_2 = x_1 + nDelta implies Delta = frac {x_2 - x_1}n
$$
You need to find second point in that division, so
$$
x' = x_1 + Delta = x_1 + frac {x_2-x_1}n = frac {n-1}n x_1 + frac 1n x_2
$$
So, let's say you want to divide your segment into 2 even parts, then $n = 2$ and
$$
x' = frac {x_1}2 + frac {x_2}2
$$
If $n = 3$ (3 even parts)
$$
x' = frac 23 x_1 + frac 13 x_2
$$
$n = 4$ (4 even parts)
$$
x' = frac 34 x_1 + frac 14 x_2
$$
$endgroup$
add a comment |
$begingroup$
Divide your segment into even parts.
From the last point you can find that
$$
x_2 = x_1 + nDelta implies Delta = frac {x_2 - x_1}n
$$
You need to find second point in that division, so
$$
x' = x_1 + Delta = x_1 + frac {x_2-x_1}n = frac {n-1}n x_1 + frac 1n x_2
$$
So, let's say you want to divide your segment into 2 even parts, then $n = 2$ and
$$
x' = frac {x_1}2 + frac {x_2}2
$$
If $n = 3$ (3 even parts)
$$
x' = frac 23 x_1 + frac 13 x_2
$$
$n = 4$ (4 even parts)
$$
x' = frac 34 x_1 + frac 14 x_2
$$
$endgroup$
Divide your segment into even parts.
From the last point you can find that
$$
x_2 = x_1 + nDelta implies Delta = frac {x_2 - x_1}n
$$
You need to find second point in that division, so
$$
x' = x_1 + Delta = x_1 + frac {x_2-x_1}n = frac {n-1}n x_1 + frac 1n x_2
$$
So, let's say you want to divide your segment into 2 even parts, then $n = 2$ and
$$
x' = frac {x_1}2 + frac {x_2}2
$$
If $n = 3$ (3 even parts)
$$
x' = frac 23 x_1 + frac 13 x_2
$$
$n = 4$ (4 even parts)
$$
x' = frac 34 x_1 + frac 14 x_2
$$
edited Jan 17 at 23:26
Community♦
1
1
answered Nov 12 '13 at 7:29
KasterKaster
9,06221729
9,06221729
add a comment |
add a comment |
$begingroup$
Treat $x_1$ as the offset, and $x_2-x_1$ as the distance that needs sectioning: $$x=x_1+frac{x_2-x_1}nquad,quad y=y_1+frac{y_2-y_1}nquad,quad z=z_1+frac{z_2-z_1}n$$ For $x_1=y_1=z_1=0$, the result becomes self-evident.
$endgroup$
add a comment |
$begingroup$
Treat $x_1$ as the offset, and $x_2-x_1$ as the distance that needs sectioning: $$x=x_1+frac{x_2-x_1}nquad,quad y=y_1+frac{y_2-y_1}nquad,quad z=z_1+frac{z_2-z_1}n$$ For $x_1=y_1=z_1=0$, the result becomes self-evident.
$endgroup$
add a comment |
$begingroup$
Treat $x_1$ as the offset, and $x_2-x_1$ as the distance that needs sectioning: $$x=x_1+frac{x_2-x_1}nquad,quad y=y_1+frac{y_2-y_1}nquad,quad z=z_1+frac{z_2-z_1}n$$ For $x_1=y_1=z_1=0$, the result becomes self-evident.
$endgroup$
Treat $x_1$ as the offset, and $x_2-x_1$ as the distance that needs sectioning: $$x=x_1+frac{x_2-x_1}nquad,quad y=y_1+frac{y_2-y_1}nquad,quad z=z_1+frac{z_2-z_1}n$$ For $x_1=y_1=z_1=0$, the result becomes self-evident.
edited Nov 12 '13 at 8:18
answered Nov 12 '13 at 7:33
LucianLucian
41.3k159130
41.3k159130
add a comment |
add a comment |
$begingroup$
Let $P$ and $Q$ be two distinct points and define the (ruler) function
$f : mathbb R to overleftrightarrow{PQ}$, from the set of real numbers into the line $overleftrightarrow{PQ}$, by $f(t) = (1-t)P + tQ$. This function lays a ruler over the line $overleftrightarrow{PQ}$ such that the ordinate of $P$ is $0$ ($f(0)= P$) and the ordinate of $Q$ is $1$ $(f(1) = Q)$. So, for example, the point $dfrac34$ of the way from $P$ to $Q$ is $fleft( dfrac 34 right) = dfrac 14 P + dfrac 34 Q$.
$endgroup$
add a comment |
$begingroup$
Let $P$ and $Q$ be two distinct points and define the (ruler) function
$f : mathbb R to overleftrightarrow{PQ}$, from the set of real numbers into the line $overleftrightarrow{PQ}$, by $f(t) = (1-t)P + tQ$. This function lays a ruler over the line $overleftrightarrow{PQ}$ such that the ordinate of $P$ is $0$ ($f(0)= P$) and the ordinate of $Q$ is $1$ $(f(1) = Q)$. So, for example, the point $dfrac34$ of the way from $P$ to $Q$ is $fleft( dfrac 34 right) = dfrac 14 P + dfrac 34 Q$.
$endgroup$
add a comment |
$begingroup$
Let $P$ and $Q$ be two distinct points and define the (ruler) function
$f : mathbb R to overleftrightarrow{PQ}$, from the set of real numbers into the line $overleftrightarrow{PQ}$, by $f(t) = (1-t)P + tQ$. This function lays a ruler over the line $overleftrightarrow{PQ}$ such that the ordinate of $P$ is $0$ ($f(0)= P$) and the ordinate of $Q$ is $1$ $(f(1) = Q)$. So, for example, the point $dfrac34$ of the way from $P$ to $Q$ is $fleft( dfrac 34 right) = dfrac 14 P + dfrac 34 Q$.
$endgroup$
Let $P$ and $Q$ be two distinct points and define the (ruler) function
$f : mathbb R to overleftrightarrow{PQ}$, from the set of real numbers into the line $overleftrightarrow{PQ}$, by $f(t) = (1-t)P + tQ$. This function lays a ruler over the line $overleftrightarrow{PQ}$ such that the ordinate of $P$ is $0$ ($f(0)= P$) and the ordinate of $Q$ is $1$ $(f(1) = Q)$. So, for example, the point $dfrac34$ of the way from $P$ to $Q$ is $fleft( dfrac 34 right) = dfrac 14 P + dfrac 34 Q$.
answered Jun 24 '17 at 2:26
steven gregorysteven gregory
18.2k32258
18.2k32258
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f563566%2fhow-do-i-find-the-middle1-2-1-3-1-4-etc-of-a-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown