Plotting contours of the paraboloid $f(x_1, x_2) = 4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1$
$begingroup$
I have the following function:
$$f(x_1, x_2) = 4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1$$
and I need to plot its contours.
My Attempt
I recognized this is a conic section given in its Cartesian form:
$$Ax^{2}+Bxy+Cy^{2}+Dx+Ey+F=0$$
Since $B^2-4AC=16 - 4times 4 = 0$ we know this is a parabola.
Looking at the General Case of a parabola, I rewrite the contours in this way:
$$4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1=C quad quad text{for } Cinmathbb{R} $$
$$x_2^2+2x_2(1-2x_1) + 4x_1^2-4x_1+1 - C = 0$$
$$(x_2 + (1-2x_1))^2 - C = 0$$
This would mean that
$$x_2 + 1 - 2x_1 = 0$$
is the directrix of the parabola, i.e. $x_2 = 2x_1 - 1$. Here's a plot of that:
However, I have no idea how to proceed from here. I am not even sure that what I've done makes sense, to be honest.
calculus geometry multivariable-calculus
$endgroup$
add a comment |
$begingroup$
I have the following function:
$$f(x_1, x_2) = 4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1$$
and I need to plot its contours.
My Attempt
I recognized this is a conic section given in its Cartesian form:
$$Ax^{2}+Bxy+Cy^{2}+Dx+Ey+F=0$$
Since $B^2-4AC=16 - 4times 4 = 0$ we know this is a parabola.
Looking at the General Case of a parabola, I rewrite the contours in this way:
$$4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1=C quad quad text{for } Cinmathbb{R} $$
$$x_2^2+2x_2(1-2x_1) + 4x_1^2-4x_1+1 - C = 0$$
$$(x_2 + (1-2x_1))^2 - C = 0$$
This would mean that
$$x_2 + 1 - 2x_1 = 0$$
is the directrix of the parabola, i.e. $x_2 = 2x_1 - 1$. Here's a plot of that:
However, I have no idea how to proceed from here. I am not even sure that what I've done makes sense, to be honest.
calculus geometry multivariable-calculus
$endgroup$
1
$begingroup$
Well, I would first ask Wolfram Alpha: wolframalpha.com/input/…
$endgroup$
– Matti P.
Dec 31 '18 at 11:08
1
$begingroup$
Wolfram Alpha tells that (replacing $x_1 = y$ and $x_2=y$) the equation is equal to $$ f = (2x-y-1)^2 $$ So therefore, if you set $f=text{constant} Rightarrow (2x-y-1) = sqrt{text{constant}} = text{constant}$ ...
$endgroup$
– Matti P.
Dec 31 '18 at 11:09
add a comment |
$begingroup$
I have the following function:
$$f(x_1, x_2) = 4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1$$
and I need to plot its contours.
My Attempt
I recognized this is a conic section given in its Cartesian form:
$$Ax^{2}+Bxy+Cy^{2}+Dx+Ey+F=0$$
Since $B^2-4AC=16 - 4times 4 = 0$ we know this is a parabola.
Looking at the General Case of a parabola, I rewrite the contours in this way:
$$4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1=C quad quad text{for } Cinmathbb{R} $$
$$x_2^2+2x_2(1-2x_1) + 4x_1^2-4x_1+1 - C = 0$$
$$(x_2 + (1-2x_1))^2 - C = 0$$
This would mean that
$$x_2 + 1 - 2x_1 = 0$$
is the directrix of the parabola, i.e. $x_2 = 2x_1 - 1$. Here's a plot of that:
However, I have no idea how to proceed from here. I am not even sure that what I've done makes sense, to be honest.
calculus geometry multivariable-calculus
$endgroup$
I have the following function:
$$f(x_1, x_2) = 4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1$$
and I need to plot its contours.
My Attempt
I recognized this is a conic section given in its Cartesian form:
$$Ax^{2}+Bxy+Cy^{2}+Dx+Ey+F=0$$
Since $B^2-4AC=16 - 4times 4 = 0$ we know this is a parabola.
Looking at the General Case of a parabola, I rewrite the contours in this way:
$$4x_1^2+x_2^2-4x_1x_2-4x_1+2x_2+1=C quad quad text{for } Cinmathbb{R} $$
$$x_2^2+2x_2(1-2x_1) + 4x_1^2-4x_1+1 - C = 0$$
$$(x_2 + (1-2x_1))^2 - C = 0$$
This would mean that
$$x_2 + 1 - 2x_1 = 0$$
is the directrix of the parabola, i.e. $x_2 = 2x_1 - 1$. Here's a plot of that:
However, I have no idea how to proceed from here. I am not even sure that what I've done makes sense, to be honest.
calculus geometry multivariable-calculus
calculus geometry multivariable-calculus
edited Dec 31 '18 at 16:54
greedoid
45k1157112
45k1157112
asked Dec 31 '18 at 10:57
Euler_SalterEuler_Salter
2,0671336
2,0671336
1
$begingroup$
Well, I would first ask Wolfram Alpha: wolframalpha.com/input/…
$endgroup$
– Matti P.
Dec 31 '18 at 11:08
1
$begingroup$
Wolfram Alpha tells that (replacing $x_1 = y$ and $x_2=y$) the equation is equal to $$ f = (2x-y-1)^2 $$ So therefore, if you set $f=text{constant} Rightarrow (2x-y-1) = sqrt{text{constant}} = text{constant}$ ...
$endgroup$
– Matti P.
Dec 31 '18 at 11:09
add a comment |
1
$begingroup$
Well, I would first ask Wolfram Alpha: wolframalpha.com/input/…
$endgroup$
– Matti P.
Dec 31 '18 at 11:08
1
$begingroup$
Wolfram Alpha tells that (replacing $x_1 = y$ and $x_2=y$) the equation is equal to $$ f = (2x-y-1)^2 $$ So therefore, if you set $f=text{constant} Rightarrow (2x-y-1) = sqrt{text{constant}} = text{constant}$ ...
$endgroup$
– Matti P.
Dec 31 '18 at 11:09
1
1
$begingroup$
Well, I would first ask Wolfram Alpha: wolframalpha.com/input/…
$endgroup$
– Matti P.
Dec 31 '18 at 11:08
$begingroup$
Well, I would first ask Wolfram Alpha: wolframalpha.com/input/…
$endgroup$
– Matti P.
Dec 31 '18 at 11:08
1
1
$begingroup$
Wolfram Alpha tells that (replacing $x_1 = y$ and $x_2=y$) the equation is equal to $$ f = (2x-y-1)^2 $$ So therefore, if you set $f=text{constant} Rightarrow (2x-y-1) = sqrt{text{constant}} = text{constant}$ ...
$endgroup$
– Matti P.
Dec 31 '18 at 11:09
$begingroup$
Wolfram Alpha tells that (replacing $x_1 = y$ and $x_2=y$) the equation is equal to $$ f = (2x-y-1)^2 $$ So therefore, if you set $f=text{constant} Rightarrow (2x-y-1) = sqrt{text{constant}} = text{constant}$ ...
$endgroup$
– Matti P.
Dec 31 '18 at 11:09
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
$(x_2 + (1-2x_1))^2 - C = 0$ is correct and makes sense. From here, if $C>0$ we get two lines taking along them the same value $C$ for $f$, $r_1:x_2 + (1-2x_1)=sqrt{C}$ and $r_2:x_2 + (1-2x_1)=-sqrt{C}$ When $C=0$ there is only one line and if $C<0$ there are no solutions as $f$ does not reach negative values. Cutting the surface with a plane perpendicular to these lines $2x_2+x_1=K$ ($z$ any) we get the profile of a parabola.
The plot must consist mostly in two parallel lines.
$endgroup$
add a comment |
$begingroup$
Besides the discriminant, you also have to examine the full $3times3$ determinant of the matrix of this family of conics. It turns out to vanish identically, so the level curves are all degenerate: they are pairs of parallel (or coincident) lines.
$endgroup$
$begingroup$
I think you can show that the 3 by 3 determinant is just -4 times the discriminant, so that if the discriminant is zero, also the determinant is zero
$endgroup$
– Euler_Salter
Jan 1 at 13:35
$begingroup$
@Euler_Salter That’s not at all true for a general conic section. The discriminant only involves the quadratic part of the equation—it’s a multiple of the principal $2times2$ minor of the matrix. Compare the discriminants and full determinants of $y^2=x$ or $x^2=y^2$, for instance. For the former, the discriminant vanishes, but the $3times3$ determinant doesn’t, and vice-versa for the latter.
$endgroup$
– amd
Jan 1 at 20:22
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%2f3057604%2fplotting-contours-of-the-paraboloid-fx-1-x-2-4x-12x-22-4x-1x-2-4x-12x%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
$(x_2 + (1-2x_1))^2 - C = 0$ is correct and makes sense. From here, if $C>0$ we get two lines taking along them the same value $C$ for $f$, $r_1:x_2 + (1-2x_1)=sqrt{C}$ and $r_2:x_2 + (1-2x_1)=-sqrt{C}$ When $C=0$ there is only one line and if $C<0$ there are no solutions as $f$ does not reach negative values. Cutting the surface with a plane perpendicular to these lines $2x_2+x_1=K$ ($z$ any) we get the profile of a parabola.
The plot must consist mostly in two parallel lines.
$endgroup$
add a comment |
$begingroup$
$(x_2 + (1-2x_1))^2 - C = 0$ is correct and makes sense. From here, if $C>0$ we get two lines taking along them the same value $C$ for $f$, $r_1:x_2 + (1-2x_1)=sqrt{C}$ and $r_2:x_2 + (1-2x_1)=-sqrt{C}$ When $C=0$ there is only one line and if $C<0$ there are no solutions as $f$ does not reach negative values. Cutting the surface with a plane perpendicular to these lines $2x_2+x_1=K$ ($z$ any) we get the profile of a parabola.
The plot must consist mostly in two parallel lines.
$endgroup$
add a comment |
$begingroup$
$(x_2 + (1-2x_1))^2 - C = 0$ is correct and makes sense. From here, if $C>0$ we get two lines taking along them the same value $C$ for $f$, $r_1:x_2 + (1-2x_1)=sqrt{C}$ and $r_2:x_2 + (1-2x_1)=-sqrt{C}$ When $C=0$ there is only one line and if $C<0$ there are no solutions as $f$ does not reach negative values. Cutting the surface with a plane perpendicular to these lines $2x_2+x_1=K$ ($z$ any) we get the profile of a parabola.
The plot must consist mostly in two parallel lines.
$endgroup$
$(x_2 + (1-2x_1))^2 - C = 0$ is correct and makes sense. From here, if $C>0$ we get two lines taking along them the same value $C$ for $f$, $r_1:x_2 + (1-2x_1)=sqrt{C}$ and $r_2:x_2 + (1-2x_1)=-sqrt{C}$ When $C=0$ there is only one line and if $C<0$ there are no solutions as $f$ does not reach negative values. Cutting the surface with a plane perpendicular to these lines $2x_2+x_1=K$ ($z$ any) we get the profile of a parabola.
The plot must consist mostly in two parallel lines.
edited Dec 31 '18 at 11:42
answered Dec 31 '18 at 11:36
Rafa BudríaRafa Budría
5,8151825
5,8151825
add a comment |
add a comment |
$begingroup$
Besides the discriminant, you also have to examine the full $3times3$ determinant of the matrix of this family of conics. It turns out to vanish identically, so the level curves are all degenerate: they are pairs of parallel (or coincident) lines.
$endgroup$
$begingroup$
I think you can show that the 3 by 3 determinant is just -4 times the discriminant, so that if the discriminant is zero, also the determinant is zero
$endgroup$
– Euler_Salter
Jan 1 at 13:35
$begingroup$
@Euler_Salter That’s not at all true for a general conic section. The discriminant only involves the quadratic part of the equation—it’s a multiple of the principal $2times2$ minor of the matrix. Compare the discriminants and full determinants of $y^2=x$ or $x^2=y^2$, for instance. For the former, the discriminant vanishes, but the $3times3$ determinant doesn’t, and vice-versa for the latter.
$endgroup$
– amd
Jan 1 at 20:22
add a comment |
$begingroup$
Besides the discriminant, you also have to examine the full $3times3$ determinant of the matrix of this family of conics. It turns out to vanish identically, so the level curves are all degenerate: they are pairs of parallel (or coincident) lines.
$endgroup$
$begingroup$
I think you can show that the 3 by 3 determinant is just -4 times the discriminant, so that if the discriminant is zero, also the determinant is zero
$endgroup$
– Euler_Salter
Jan 1 at 13:35
$begingroup$
@Euler_Salter That’s not at all true for a general conic section. The discriminant only involves the quadratic part of the equation—it’s a multiple of the principal $2times2$ minor of the matrix. Compare the discriminants and full determinants of $y^2=x$ or $x^2=y^2$, for instance. For the former, the discriminant vanishes, but the $3times3$ determinant doesn’t, and vice-versa for the latter.
$endgroup$
– amd
Jan 1 at 20:22
add a comment |
$begingroup$
Besides the discriminant, you also have to examine the full $3times3$ determinant of the matrix of this family of conics. It turns out to vanish identically, so the level curves are all degenerate: they are pairs of parallel (or coincident) lines.
$endgroup$
Besides the discriminant, you also have to examine the full $3times3$ determinant of the matrix of this family of conics. It turns out to vanish identically, so the level curves are all degenerate: they are pairs of parallel (or coincident) lines.
answered Jan 1 at 0:53
amdamd
30.7k21050
30.7k21050
$begingroup$
I think you can show that the 3 by 3 determinant is just -4 times the discriminant, so that if the discriminant is zero, also the determinant is zero
$endgroup$
– Euler_Salter
Jan 1 at 13:35
$begingroup$
@Euler_Salter That’s not at all true for a general conic section. The discriminant only involves the quadratic part of the equation—it’s a multiple of the principal $2times2$ minor of the matrix. Compare the discriminants and full determinants of $y^2=x$ or $x^2=y^2$, for instance. For the former, the discriminant vanishes, but the $3times3$ determinant doesn’t, and vice-versa for the latter.
$endgroup$
– amd
Jan 1 at 20:22
add a comment |
$begingroup$
I think you can show that the 3 by 3 determinant is just -4 times the discriminant, so that if the discriminant is zero, also the determinant is zero
$endgroup$
– Euler_Salter
Jan 1 at 13:35
$begingroup$
@Euler_Salter That’s not at all true for a general conic section. The discriminant only involves the quadratic part of the equation—it’s a multiple of the principal $2times2$ minor of the matrix. Compare the discriminants and full determinants of $y^2=x$ or $x^2=y^2$, for instance. For the former, the discriminant vanishes, but the $3times3$ determinant doesn’t, and vice-versa for the latter.
$endgroup$
– amd
Jan 1 at 20:22
$begingroup$
I think you can show that the 3 by 3 determinant is just -4 times the discriminant, so that if the discriminant is zero, also the determinant is zero
$endgroup$
– Euler_Salter
Jan 1 at 13:35
$begingroup$
I think you can show that the 3 by 3 determinant is just -4 times the discriminant, so that if the discriminant is zero, also the determinant is zero
$endgroup$
– Euler_Salter
Jan 1 at 13:35
$begingroup$
@Euler_Salter That’s not at all true for a general conic section. The discriminant only involves the quadratic part of the equation—it’s a multiple of the principal $2times2$ minor of the matrix. Compare the discriminants and full determinants of $y^2=x$ or $x^2=y^2$, for instance. For the former, the discriminant vanishes, but the $3times3$ determinant doesn’t, and vice-versa for the latter.
$endgroup$
– amd
Jan 1 at 20:22
$begingroup$
@Euler_Salter That’s not at all true for a general conic section. The discriminant only involves the quadratic part of the equation—it’s a multiple of the principal $2times2$ minor of the matrix. Compare the discriminants and full determinants of $y^2=x$ or $x^2=y^2$, for instance. For the former, the discriminant vanishes, but the $3times3$ determinant doesn’t, and vice-versa for the latter.
$endgroup$
– amd
Jan 1 at 20:22
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%2f3057604%2fplotting-contours-of-the-paraboloid-fx-1-x-2-4x-12x-22-4x-1x-2-4x-12x%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
1
$begingroup$
Well, I would first ask Wolfram Alpha: wolframalpha.com/input/…
$endgroup$
– Matti P.
Dec 31 '18 at 11:08
1
$begingroup$
Wolfram Alpha tells that (replacing $x_1 = y$ and $x_2=y$) the equation is equal to $$ f = (2x-y-1)^2 $$ So therefore, if you set $f=text{constant} Rightarrow (2x-y-1) = sqrt{text{constant}} = text{constant}$ ...
$endgroup$
– Matti P.
Dec 31 '18 at 11:09