How to subtract complex numbers in polar form?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I tried to subtract two complex numbers in polar form without transforming them into the cartesian form. Therefore I used the approach made by Mark Viola in the following link.



Adding two polar vectors



I managed to get the following result.



$$e^i(phi-phi_1)=fracr_1-r_2e^i(phi_2-phi_1)sqrtr_1^2+r_2^2-2r_1r_2cos (phi_2-phi_1) tag 1$$



At this point I do not know how to achieve the final equation like mentioned in the link. I post the final equation for adding two complex numbers in polar form:



$$phi=phi_1+operatornamearctan2left(r_2sin(phi_2-phi_1),r_1+r_2cos(phi_2-phi_1)right) tag 2$$



Any help or hints which leading to the final equation are appreciated.







share|cite|improve this question

















  • 1




    Hint: to compute $z_1 - z_2$, you can compute $z_1 + (-z_2)$. So if you can negate $z_2$ (in polar form), then you can apply the addition formula from the other page to get the result you want. Hint: to negate $(r, theta)$, try $(r, theta + pi)$.
    – John Hughes
    Jul 23 at 16:26










  • Thanks for the hint and the quick answer, I will try your approach.
    – Pavel
    Jul 25 at 19:12














up vote
1
down vote

favorite












I tried to subtract two complex numbers in polar form without transforming them into the cartesian form. Therefore I used the approach made by Mark Viola in the following link.



Adding two polar vectors



I managed to get the following result.



$$e^i(phi-phi_1)=fracr_1-r_2e^i(phi_2-phi_1)sqrtr_1^2+r_2^2-2r_1r_2cos (phi_2-phi_1) tag 1$$



At this point I do not know how to achieve the final equation like mentioned in the link. I post the final equation for adding two complex numbers in polar form:



$$phi=phi_1+operatornamearctan2left(r_2sin(phi_2-phi_1),r_1+r_2cos(phi_2-phi_1)right) tag 2$$



Any help or hints which leading to the final equation are appreciated.







share|cite|improve this question

















  • 1




    Hint: to compute $z_1 - z_2$, you can compute $z_1 + (-z_2)$. So if you can negate $z_2$ (in polar form), then you can apply the addition formula from the other page to get the result you want. Hint: to negate $(r, theta)$, try $(r, theta + pi)$.
    – John Hughes
    Jul 23 at 16:26










  • Thanks for the hint and the quick answer, I will try your approach.
    – Pavel
    Jul 25 at 19:12












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I tried to subtract two complex numbers in polar form without transforming them into the cartesian form. Therefore I used the approach made by Mark Viola in the following link.



Adding two polar vectors



I managed to get the following result.



$$e^i(phi-phi_1)=fracr_1-r_2e^i(phi_2-phi_1)sqrtr_1^2+r_2^2-2r_1r_2cos (phi_2-phi_1) tag 1$$



At this point I do not know how to achieve the final equation like mentioned in the link. I post the final equation for adding two complex numbers in polar form:



$$phi=phi_1+operatornamearctan2left(r_2sin(phi_2-phi_1),r_1+r_2cos(phi_2-phi_1)right) tag 2$$



Any help or hints which leading to the final equation are appreciated.







share|cite|improve this question













I tried to subtract two complex numbers in polar form without transforming them into the cartesian form. Therefore I used the approach made by Mark Viola in the following link.



Adding two polar vectors



I managed to get the following result.



$$e^i(phi-phi_1)=fracr_1-r_2e^i(phi_2-phi_1)sqrtr_1^2+r_2^2-2r_1r_2cos (phi_2-phi_1) tag 1$$



At this point I do not know how to achieve the final equation like mentioned in the link. I post the final equation for adding two complex numbers in polar form:



$$phi=phi_1+operatornamearctan2left(r_2sin(phi_2-phi_1),r_1+r_2cos(phi_2-phi_1)right) tag 2$$



Any help or hints which leading to the final equation are appreciated.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 23 at 16:29
























asked Jul 23 at 16:18









Pavel

133




133







  • 1




    Hint: to compute $z_1 - z_2$, you can compute $z_1 + (-z_2)$. So if you can negate $z_2$ (in polar form), then you can apply the addition formula from the other page to get the result you want. Hint: to negate $(r, theta)$, try $(r, theta + pi)$.
    – John Hughes
    Jul 23 at 16:26










  • Thanks for the hint and the quick answer, I will try your approach.
    – Pavel
    Jul 25 at 19:12












  • 1




    Hint: to compute $z_1 - z_2$, you can compute $z_1 + (-z_2)$. So if you can negate $z_2$ (in polar form), then you can apply the addition formula from the other page to get the result you want. Hint: to negate $(r, theta)$, try $(r, theta + pi)$.
    – John Hughes
    Jul 23 at 16:26










  • Thanks for the hint and the quick answer, I will try your approach.
    – Pavel
    Jul 25 at 19:12







1




1




Hint: to compute $z_1 - z_2$, you can compute $z_1 + (-z_2)$. So if you can negate $z_2$ (in polar form), then you can apply the addition formula from the other page to get the result you want. Hint: to negate $(r, theta)$, try $(r, theta + pi)$.
– John Hughes
Jul 23 at 16:26




Hint: to compute $z_1 - z_2$, you can compute $z_1 + (-z_2)$. So if you can negate $z_2$ (in polar form), then you can apply the addition formula from the other page to get the result you want. Hint: to negate $(r, theta)$, try $(r, theta + pi)$.
– John Hughes
Jul 23 at 16:26












Thanks for the hint and the quick answer, I will try your approach.
– Pavel
Jul 25 at 19:12




Thanks for the hint and the quick answer, I will try your approach.
– Pavel
Jul 25 at 19:12










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










In fact, you can't avoid the conversion from polar to Cartesian and back to polar, even if done in a single go (any expression you will find will be of a comparable complexity).



The combined equations are



$$r^2=(r_1cosphi_1-r_2cosphi_2)^2+(r_1sinphi_1-r_2sinphi_2)^2
\=r_1^2-2r_1r_2cos(phi_1-phi_2)+r_2^2$$



and



$$tanphi=fracr_1sinphi_1-r_2sinphi_2r_1cosphi_1-r_2cosphi_2.$$



I don't think there is a nice simplification of the expression of the argument. And computationally, the simplification of the modulus is not so attractive as it involves an additional evaluation of a circular function.






share|cite|improve this answer





















  • Thank you for the quick answer. I get the point with the transformation. Maybe I can rearrange the expression when putting the $phi_2$ and $phi_1$ in relation. For example when both phase values are quite close to each other. Thanks again
    – Pavel
    Jul 25 at 19:10










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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2860532%2fhow-to-subtract-complex-numbers-in-polar-form%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










In fact, you can't avoid the conversion from polar to Cartesian and back to polar, even if done in a single go (any expression you will find will be of a comparable complexity).



The combined equations are



$$r^2=(r_1cosphi_1-r_2cosphi_2)^2+(r_1sinphi_1-r_2sinphi_2)^2
\=r_1^2-2r_1r_2cos(phi_1-phi_2)+r_2^2$$



and



$$tanphi=fracr_1sinphi_1-r_2sinphi_2r_1cosphi_1-r_2cosphi_2.$$



I don't think there is a nice simplification of the expression of the argument. And computationally, the simplification of the modulus is not so attractive as it involves an additional evaluation of a circular function.






share|cite|improve this answer





















  • Thank you for the quick answer. I get the point with the transformation. Maybe I can rearrange the expression when putting the $phi_2$ and $phi_1$ in relation. For example when both phase values are quite close to each other. Thanks again
    – Pavel
    Jul 25 at 19:10














up vote
1
down vote



accepted










In fact, you can't avoid the conversion from polar to Cartesian and back to polar, even if done in a single go (any expression you will find will be of a comparable complexity).



The combined equations are



$$r^2=(r_1cosphi_1-r_2cosphi_2)^2+(r_1sinphi_1-r_2sinphi_2)^2
\=r_1^2-2r_1r_2cos(phi_1-phi_2)+r_2^2$$



and



$$tanphi=fracr_1sinphi_1-r_2sinphi_2r_1cosphi_1-r_2cosphi_2.$$



I don't think there is a nice simplification of the expression of the argument. And computationally, the simplification of the modulus is not so attractive as it involves an additional evaluation of a circular function.






share|cite|improve this answer





















  • Thank you for the quick answer. I get the point with the transformation. Maybe I can rearrange the expression when putting the $phi_2$ and $phi_1$ in relation. For example when both phase values are quite close to each other. Thanks again
    – Pavel
    Jul 25 at 19:10












up vote
1
down vote



accepted







up vote
1
down vote



accepted






In fact, you can't avoid the conversion from polar to Cartesian and back to polar, even if done in a single go (any expression you will find will be of a comparable complexity).



The combined equations are



$$r^2=(r_1cosphi_1-r_2cosphi_2)^2+(r_1sinphi_1-r_2sinphi_2)^2
\=r_1^2-2r_1r_2cos(phi_1-phi_2)+r_2^2$$



and



$$tanphi=fracr_1sinphi_1-r_2sinphi_2r_1cosphi_1-r_2cosphi_2.$$



I don't think there is a nice simplification of the expression of the argument. And computationally, the simplification of the modulus is not so attractive as it involves an additional evaluation of a circular function.






share|cite|improve this answer













In fact, you can't avoid the conversion from polar to Cartesian and back to polar, even if done in a single go (any expression you will find will be of a comparable complexity).



The combined equations are



$$r^2=(r_1cosphi_1-r_2cosphi_2)^2+(r_1sinphi_1-r_2sinphi_2)^2
\=r_1^2-2r_1r_2cos(phi_1-phi_2)+r_2^2$$



and



$$tanphi=fracr_1sinphi_1-r_2sinphi_2r_1cosphi_1-r_2cosphi_2.$$



I don't think there is a nice simplification of the expression of the argument. And computationally, the simplification of the modulus is not so attractive as it involves an additional evaluation of a circular function.







share|cite|improve this answer













share|cite|improve this answer



share|cite|improve this answer











answered Jul 23 at 16:42









Yves Daoust

111k665203




111k665203











  • Thank you for the quick answer. I get the point with the transformation. Maybe I can rearrange the expression when putting the $phi_2$ and $phi_1$ in relation. For example when both phase values are quite close to each other. Thanks again
    – Pavel
    Jul 25 at 19:10
















  • Thank you for the quick answer. I get the point with the transformation. Maybe I can rearrange the expression when putting the $phi_2$ and $phi_1$ in relation. For example when both phase values are quite close to each other. Thanks again
    – Pavel
    Jul 25 at 19:10















Thank you for the quick answer. I get the point with the transformation. Maybe I can rearrange the expression when putting the $phi_2$ and $phi_1$ in relation. For example when both phase values are quite close to each other. Thanks again
– Pavel
Jul 25 at 19:10




Thank you for the quick answer. I get the point with the transformation. Maybe I can rearrange the expression when putting the $phi_2$ and $phi_1$ in relation. For example when both phase values are quite close to each other. Thanks again
– Pavel
Jul 25 at 19:10












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2860532%2fhow-to-subtract-complex-numbers-in-polar-form%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?