Can Mathematica prove inequalities involving complex numbers?
$begingroup$
I am given two complex numbers $z$ and $w$ that satisfy the following constraint
$$ |z - overline{z}w| + |w|^2 < 1. $$
I want to see if the following inequality is true
$$ z^2 overline{w} + overline{z}^2w + |w|^2(z^2 overline{w} + overline{z}^2w - 4|z|^2) geq 0. $$
Is it possible for Mathematica to prove or disprove the above inequality?
inequalities
$endgroup$
add a comment |
$begingroup$
I am given two complex numbers $z$ and $w$ that satisfy the following constraint
$$ |z - overline{z}w| + |w|^2 < 1. $$
I want to see if the following inequality is true
$$ z^2 overline{w} + overline{z}^2w + |w|^2(z^2 overline{w} + overline{z}^2w - 4|z|^2) geq 0. $$
Is it possible for Mathematica to prove or disprove the above inequality?
inequalities
$endgroup$
1
$begingroup$
Could you please provide code for those inequalities?
$endgroup$
– Andrew
Dec 29 '18 at 19:32
$begingroup$
|z - conjugate[z]w| + |w|^2 < 1
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:39
$begingroup$
z^2 * conjugate[w] + conjugate[z]^2 * w + |w|^2 * (z^2 * conjugate[w] + conjugate[z]^2 * w - 4|z|^2) >= 0
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:47
$begingroup$
That's not what he was looking for
$endgroup$
– user6014
Dec 30 '18 at 17:33
$begingroup$
People here generally like users to post code as Mathematica code instead of just images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. You may find this this meta Q&A helpful
$endgroup$
– Michael E2
Jan 1 at 16:28
add a comment |
$begingroup$
I am given two complex numbers $z$ and $w$ that satisfy the following constraint
$$ |z - overline{z}w| + |w|^2 < 1. $$
I want to see if the following inequality is true
$$ z^2 overline{w} + overline{z}^2w + |w|^2(z^2 overline{w} + overline{z}^2w - 4|z|^2) geq 0. $$
Is it possible for Mathematica to prove or disprove the above inequality?
inequalities
$endgroup$
I am given two complex numbers $z$ and $w$ that satisfy the following constraint
$$ |z - overline{z}w| + |w|^2 < 1. $$
I want to see if the following inequality is true
$$ z^2 overline{w} + overline{z}^2w + |w|^2(z^2 overline{w} + overline{z}^2w - 4|z|^2) geq 0. $$
Is it possible for Mathematica to prove or disprove the above inequality?
inequalities
inequalities
asked Dec 29 '18 at 19:17
JaikrishnanJaikrishnan
1062
1062
1
$begingroup$
Could you please provide code for those inequalities?
$endgroup$
– Andrew
Dec 29 '18 at 19:32
$begingroup$
|z - conjugate[z]w| + |w|^2 < 1
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:39
$begingroup$
z^2 * conjugate[w] + conjugate[z]^2 * w + |w|^2 * (z^2 * conjugate[w] + conjugate[z]^2 * w - 4|z|^2) >= 0
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:47
$begingroup$
That's not what he was looking for
$endgroup$
– user6014
Dec 30 '18 at 17:33
$begingroup$
People here generally like users to post code as Mathematica code instead of just images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. You may find this this meta Q&A helpful
$endgroup$
– Michael E2
Jan 1 at 16:28
add a comment |
1
$begingroup$
Could you please provide code for those inequalities?
$endgroup$
– Andrew
Dec 29 '18 at 19:32
$begingroup$
|z - conjugate[z]w| + |w|^2 < 1
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:39
$begingroup$
z^2 * conjugate[w] + conjugate[z]^2 * w + |w|^2 * (z^2 * conjugate[w] + conjugate[z]^2 * w - 4|z|^2) >= 0
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:47
$begingroup$
That's not what he was looking for
$endgroup$
– user6014
Dec 30 '18 at 17:33
$begingroup$
People here generally like users to post code as Mathematica code instead of just images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. You may find this this meta Q&A helpful
$endgroup$
– Michael E2
Jan 1 at 16:28
1
1
$begingroup$
Could you please provide code for those inequalities?
$endgroup$
– Andrew
Dec 29 '18 at 19:32
$begingroup$
Could you please provide code for those inequalities?
$endgroup$
– Andrew
Dec 29 '18 at 19:32
$begingroup$
|z - conjugate[z]w| + |w|^2 < 1
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:39
$begingroup$
|z - conjugate[z]w| + |w|^2 < 1
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:39
$begingroup$
z^2 * conjugate[w] + conjugate[z]^2 * w + |w|^2 * (z^2 * conjugate[w] + conjugate[z]^2 * w - 4|z|^2) >= 0
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:47
$begingroup$
z^2 * conjugate[w] + conjugate[z]^2 * w + |w|^2 * (z^2 * conjugate[w] + conjugate[z]^2 * w - 4|z|^2) >= 0
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:47
$begingroup$
That's not what he was looking for
$endgroup$
– user6014
Dec 30 '18 at 17:33
$begingroup$
That's not what he was looking for
$endgroup$
– user6014
Dec 30 '18 at 17:33
$begingroup$
People here generally like users to post code as Mathematica code instead of just images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. You may find this this meta Q&A helpful
$endgroup$
– Michael E2
Jan 1 at 16:28
$begingroup$
People here generally like users to post code as Mathematica code instead of just images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. You may find this this meta Q&A helpful
$endgroup$
– Michael E2
Jan 1 at 16:28
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
Your inequalities:
z = x + I y;
w = u + I v;
ineq1 = Abs[z - Conjugate[z] w] + Abs[w]^2 < 1 // ComplexExpand;
ineq2 = z^2*Conjugate[w] + Conjugate[z]^2*w +
Abs[w]^2*(z^2*Conjugate[w] + Conjugate[z]^2*w - 4 Abs[z]^2) >= 0 //
ComplexExpand;
This gives a counterexample:
res = FindInstance[{ineq1, ! ineq2}, {x, y, u, v}, Reals]
$
left{left{xto -frac{11}{32},yto frac{29}{32},uto -frac{3}{4},vto
-frac{7}{16}right}right}
$
Check:
{ineq1, ineq2} /. res
$left(
begin{array}{cc}
text{True} & text{False} \
end{array}
right)$
$endgroup$
add a comment |
$begingroup$
Resolve[
ForAll[{z, w},
Abs[z - Conjugate[z] w] + Abs[w]^2 < 1,
z^2 Conjugate[w] + Conjugate[z]^2 w +
Abs[w]^2 (z^2 Conjugate[w] + Conjugate[z]^2 w - 4 Abs[z]^2) >= 0
],
Complexes
]
False
$endgroup$
$begingroup$
Or simplyinequality /. {z -> I, w -> 1}.
$endgroup$
– Michael E2
Dec 29 '18 at 20:53
$begingroup$
@MichaelE2 It's always easier if you already have a counterexample ;) Nice catch though! The truth is i just love existential quantifiers ^_^
$endgroup$
– Thies Heidecke
Dec 29 '18 at 20:56
$begingroup$
My first try on complicated expressions is usually to plug in a bunch ofRandom*stuff and check, which is pretty easy in M. This inequality came out mostly false, so I tried something simple. Already upvoted cuz I like quantifiers too. :)
$endgroup$
– Michael E2
Dec 29 '18 at 21:00
add a comment |
$begingroup$
With your inequality you should be careful about what you mean by "greater" or "less". Since the complex plane is principally vectors it is natural to compare magnitudes or 'radus' from the origin. Hence people normally use the absolute value.
You can naievely compare the real parts however this can result in absurd inequalities since moving along the complex axis retains the equality. 2 + i = 2 + 100 i
I'm afraid in the way you constructed your second inequality this is how Mathematica will handle the problem.
https://math.stackexchange.com/questions/1116022/can-a-complex-number-ever-be-considered-bigger-or-smaller-than-a-real-number
$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: "387"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
},
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%2fmathematica.stackexchange.com%2fquestions%2f188552%2fcan-mathematica-prove-inequalities-involving-complex-numbers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Your inequalities:
z = x + I y;
w = u + I v;
ineq1 = Abs[z - Conjugate[z] w] + Abs[w]^2 < 1 // ComplexExpand;
ineq2 = z^2*Conjugate[w] + Conjugate[z]^2*w +
Abs[w]^2*(z^2*Conjugate[w] + Conjugate[z]^2*w - 4 Abs[z]^2) >= 0 //
ComplexExpand;
This gives a counterexample:
res = FindInstance[{ineq1, ! ineq2}, {x, y, u, v}, Reals]
$
left{left{xto -frac{11}{32},yto frac{29}{32},uto -frac{3}{4},vto
-frac{7}{16}right}right}
$
Check:
{ineq1, ineq2} /. res
$left(
begin{array}{cc}
text{True} & text{False} \
end{array}
right)$
$endgroup$
add a comment |
$begingroup$
Your inequalities:
z = x + I y;
w = u + I v;
ineq1 = Abs[z - Conjugate[z] w] + Abs[w]^2 < 1 // ComplexExpand;
ineq2 = z^2*Conjugate[w] + Conjugate[z]^2*w +
Abs[w]^2*(z^2*Conjugate[w] + Conjugate[z]^2*w - 4 Abs[z]^2) >= 0 //
ComplexExpand;
This gives a counterexample:
res = FindInstance[{ineq1, ! ineq2}, {x, y, u, v}, Reals]
$
left{left{xto -frac{11}{32},yto frac{29}{32},uto -frac{3}{4},vto
-frac{7}{16}right}right}
$
Check:
{ineq1, ineq2} /. res
$left(
begin{array}{cc}
text{True} & text{False} \
end{array}
right)$
$endgroup$
add a comment |
$begingroup$
Your inequalities:
z = x + I y;
w = u + I v;
ineq1 = Abs[z - Conjugate[z] w] + Abs[w]^2 < 1 // ComplexExpand;
ineq2 = z^2*Conjugate[w] + Conjugate[z]^2*w +
Abs[w]^2*(z^2*Conjugate[w] + Conjugate[z]^2*w - 4 Abs[z]^2) >= 0 //
ComplexExpand;
This gives a counterexample:
res = FindInstance[{ineq1, ! ineq2}, {x, y, u, v}, Reals]
$
left{left{xto -frac{11}{32},yto frac{29}{32},uto -frac{3}{4},vto
-frac{7}{16}right}right}
$
Check:
{ineq1, ineq2} /. res
$left(
begin{array}{cc}
text{True} & text{False} \
end{array}
right)$
$endgroup$
Your inequalities:
z = x + I y;
w = u + I v;
ineq1 = Abs[z - Conjugate[z] w] + Abs[w]^2 < 1 // ComplexExpand;
ineq2 = z^2*Conjugate[w] + Conjugate[z]^2*w +
Abs[w]^2*(z^2*Conjugate[w] + Conjugate[z]^2*w - 4 Abs[z]^2) >= 0 //
ComplexExpand;
This gives a counterexample:
res = FindInstance[{ineq1, ! ineq2}, {x, y, u, v}, Reals]
$
left{left{xto -frac{11}{32},yto frac{29}{32},uto -frac{3}{4},vto
-frac{7}{16}right}right}
$
Check:
{ineq1, ineq2} /. res
$left(
begin{array}{cc}
text{True} & text{False} \
end{array}
right)$
answered Dec 29 '18 at 19:55
AndrewAndrew
1,9511215
1,9511215
add a comment |
add a comment |
$begingroup$
Resolve[
ForAll[{z, w},
Abs[z - Conjugate[z] w] + Abs[w]^2 < 1,
z^2 Conjugate[w] + Conjugate[z]^2 w +
Abs[w]^2 (z^2 Conjugate[w] + Conjugate[z]^2 w - 4 Abs[z]^2) >= 0
],
Complexes
]
False
$endgroup$
$begingroup$
Or simplyinequality /. {z -> I, w -> 1}.
$endgroup$
– Michael E2
Dec 29 '18 at 20:53
$begingroup$
@MichaelE2 It's always easier if you already have a counterexample ;) Nice catch though! The truth is i just love existential quantifiers ^_^
$endgroup$
– Thies Heidecke
Dec 29 '18 at 20:56
$begingroup$
My first try on complicated expressions is usually to plug in a bunch ofRandom*stuff and check, which is pretty easy in M. This inequality came out mostly false, so I tried something simple. Already upvoted cuz I like quantifiers too. :)
$endgroup$
– Michael E2
Dec 29 '18 at 21:00
add a comment |
$begingroup$
Resolve[
ForAll[{z, w},
Abs[z - Conjugate[z] w] + Abs[w]^2 < 1,
z^2 Conjugate[w] + Conjugate[z]^2 w +
Abs[w]^2 (z^2 Conjugate[w] + Conjugate[z]^2 w - 4 Abs[z]^2) >= 0
],
Complexes
]
False
$endgroup$
$begingroup$
Or simplyinequality /. {z -> I, w -> 1}.
$endgroup$
– Michael E2
Dec 29 '18 at 20:53
$begingroup$
@MichaelE2 It's always easier if you already have a counterexample ;) Nice catch though! The truth is i just love existential quantifiers ^_^
$endgroup$
– Thies Heidecke
Dec 29 '18 at 20:56
$begingroup$
My first try on complicated expressions is usually to plug in a bunch ofRandom*stuff and check, which is pretty easy in M. This inequality came out mostly false, so I tried something simple. Already upvoted cuz I like quantifiers too. :)
$endgroup$
– Michael E2
Dec 29 '18 at 21:00
add a comment |
$begingroup$
Resolve[
ForAll[{z, w},
Abs[z - Conjugate[z] w] + Abs[w]^2 < 1,
z^2 Conjugate[w] + Conjugate[z]^2 w +
Abs[w]^2 (z^2 Conjugate[w] + Conjugate[z]^2 w - 4 Abs[z]^2) >= 0
],
Complexes
]
False
$endgroup$
Resolve[
ForAll[{z, w},
Abs[z - Conjugate[z] w] + Abs[w]^2 < 1,
z^2 Conjugate[w] + Conjugate[z]^2 w +
Abs[w]^2 (z^2 Conjugate[w] + Conjugate[z]^2 w - 4 Abs[z]^2) >= 0
],
Complexes
]
False
answered Dec 29 '18 at 20:50
Thies HeideckeThies Heidecke
6,9462638
6,9462638
$begingroup$
Or simplyinequality /. {z -> I, w -> 1}.
$endgroup$
– Michael E2
Dec 29 '18 at 20:53
$begingroup$
@MichaelE2 It's always easier if you already have a counterexample ;) Nice catch though! The truth is i just love existential quantifiers ^_^
$endgroup$
– Thies Heidecke
Dec 29 '18 at 20:56
$begingroup$
My first try on complicated expressions is usually to plug in a bunch ofRandom*stuff and check, which is pretty easy in M. This inequality came out mostly false, so I tried something simple. Already upvoted cuz I like quantifiers too. :)
$endgroup$
– Michael E2
Dec 29 '18 at 21:00
add a comment |
$begingroup$
Or simplyinequality /. {z -> I, w -> 1}.
$endgroup$
– Michael E2
Dec 29 '18 at 20:53
$begingroup$
@MichaelE2 It's always easier if you already have a counterexample ;) Nice catch though! The truth is i just love existential quantifiers ^_^
$endgroup$
– Thies Heidecke
Dec 29 '18 at 20:56
$begingroup$
My first try on complicated expressions is usually to plug in a bunch ofRandom*stuff and check, which is pretty easy in M. This inequality came out mostly false, so I tried something simple. Already upvoted cuz I like quantifiers too. :)
$endgroup$
– Michael E2
Dec 29 '18 at 21:00
$begingroup$
Or simply
inequality /. {z -> I, w -> 1}.$endgroup$
– Michael E2
Dec 29 '18 at 20:53
$begingroup$
Or simply
inequality /. {z -> I, w -> 1}.$endgroup$
– Michael E2
Dec 29 '18 at 20:53
$begingroup$
@MichaelE2 It's always easier if you already have a counterexample ;) Nice catch though! The truth is i just love existential quantifiers ^_^
$endgroup$
– Thies Heidecke
Dec 29 '18 at 20:56
$begingroup$
@MichaelE2 It's always easier if you already have a counterexample ;) Nice catch though! The truth is i just love existential quantifiers ^_^
$endgroup$
– Thies Heidecke
Dec 29 '18 at 20:56
$begingroup$
My first try on complicated expressions is usually to plug in a bunch of
Random* stuff and check, which is pretty easy in M. This inequality came out mostly false, so I tried something simple. Already upvoted cuz I like quantifiers too. :)$endgroup$
– Michael E2
Dec 29 '18 at 21:00
$begingroup$
My first try on complicated expressions is usually to plug in a bunch of
Random* stuff and check, which is pretty easy in M. This inequality came out mostly false, so I tried something simple. Already upvoted cuz I like quantifiers too. :)$endgroup$
– Michael E2
Dec 29 '18 at 21:00
add a comment |
$begingroup$
With your inequality you should be careful about what you mean by "greater" or "less". Since the complex plane is principally vectors it is natural to compare magnitudes or 'radus' from the origin. Hence people normally use the absolute value.
You can naievely compare the real parts however this can result in absurd inequalities since moving along the complex axis retains the equality. 2 + i = 2 + 100 i
I'm afraid in the way you constructed your second inequality this is how Mathematica will handle the problem.
https://math.stackexchange.com/questions/1116022/can-a-complex-number-ever-be-considered-bigger-or-smaller-than-a-real-number
$endgroup$
add a comment |
$begingroup$
With your inequality you should be careful about what you mean by "greater" or "less". Since the complex plane is principally vectors it is natural to compare magnitudes or 'radus' from the origin. Hence people normally use the absolute value.
You can naievely compare the real parts however this can result in absurd inequalities since moving along the complex axis retains the equality. 2 + i = 2 + 100 i
I'm afraid in the way you constructed your second inequality this is how Mathematica will handle the problem.
https://math.stackexchange.com/questions/1116022/can-a-complex-number-ever-be-considered-bigger-or-smaller-than-a-real-number
$endgroup$
add a comment |
$begingroup$
With your inequality you should be careful about what you mean by "greater" or "less". Since the complex plane is principally vectors it is natural to compare magnitudes or 'radus' from the origin. Hence people normally use the absolute value.
You can naievely compare the real parts however this can result in absurd inequalities since moving along the complex axis retains the equality. 2 + i = 2 + 100 i
I'm afraid in the way you constructed your second inequality this is how Mathematica will handle the problem.
https://math.stackexchange.com/questions/1116022/can-a-complex-number-ever-be-considered-bigger-or-smaller-than-a-real-number
$endgroup$
With your inequality you should be careful about what you mean by "greater" or "less". Since the complex plane is principally vectors it is natural to compare magnitudes or 'radus' from the origin. Hence people normally use the absolute value.
You can naievely compare the real parts however this can result in absurd inequalities since moving along the complex axis retains the equality. 2 + i = 2 + 100 i
I'm afraid in the way you constructed your second inequality this is how Mathematica will handle the problem.
https://math.stackexchange.com/questions/1116022/can-a-complex-number-ever-be-considered-bigger-or-smaller-than-a-real-number
answered Dec 30 '18 at 16:16
DrewDrew
111
111
add a comment |
add a comment |
Thanks for contributing an answer to Mathematica 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%2fmathematica.stackexchange.com%2fquestions%2f188552%2fcan-mathematica-prove-inequalities-involving-complex-numbers%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$
Could you please provide code for those inequalities?
$endgroup$
– Andrew
Dec 29 '18 at 19:32
$begingroup$
|z - conjugate[z]w| + |w|^2 < 1
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:39
$begingroup$
z^2 * conjugate[w] + conjugate[z]^2 * w + |w|^2 * (z^2 * conjugate[w] + conjugate[z]^2 * w - 4|z|^2) >= 0
$endgroup$
– Jaikrishnan
Dec 29 '18 at 19:47
$begingroup$
That's not what he was looking for
$endgroup$
– user6014
Dec 30 '18 at 17:33
$begingroup$
People here generally like users to post code as Mathematica code instead of just images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. You may find this this meta Q&A helpful
$endgroup$
– Michael E2
Jan 1 at 16:28