Polar to rectangular coordinates

  • #1
perplexabot
Gold Member
329
5

Main Question or Discussion Point

Hello all.
I am trying to change:
E = (1/r) ar

To rectangular coordinate system. Where ar is a unit vector.

So I know r = √(x^2 + y^2)
i also think ar = ax+ay, where ax and ay are unit vectors along the x axis and y axis respectively.

So that would give me: E = (1/√(x^2 + y^2)) (ax + ay) = ax/√(x^2 + y^2) + ay/√(x^2 + y^2)... Which is wrong.

The correct answer is: (x ax)/(x^2 + y^2) + (y ay)/(x^2 + y^2)

So what am I doing wrong? Thank you.
 

Answers and Replies

  • #2
834
2
i also think ar = ax+ay, where ax and ay are unit vectors along the x axis and y axis respectively.
Yeah, adding two unit vectors doesn't usually give you another unit vector. This is the big issue.
 
  • #3
perplexabot
Gold Member
329
5
Oh, that makes a lot of sense. Thank you. So I would have to divide by the magnitude of their sums. I will try and figure that out.
 
  • #4
perplexabot
Gold Member
329
5
Oh, that makes a lot of sense. Thank you. So I would have to divide by the magnitude of their sums. I will try and figure that out.
Ok, I tried figuring this out but with negative outcome. Here is what I did:

ar = (ax + ay) / |ax + ay| = (ax + ay) / √(x^2 + y^2)

So: E = 1/r ar = (1 / √(x^2 + y^2)) * [(ax + ay) / √(x^2 + y^2)] = (ax + ay) / (x^2 + y^2)

Still, this is wrong. What did I muck up this time?
 
  • #5
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
9,970
132
[(ax + ay) / √(x^2 + y^2)]
This is again an incorrect decomposition of the unit vector ar.
 
  • #6
perplexabot
Gold Member
329
5
[(ax + ay) / √(x^2 + y^2)]
This is again an incorrect decomposition of the unit vector ar.
Ok thanks. I will give it one last try tomorrow (maybe even tonight). But if I can't do it please direct me towards the right path.

Is this part correct: ar = (ax + ay) / |ax + ay|
?
 
  • #7
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
9,970
132
No.
You need to learn how to decompose vectors correctly.

We have:
ar=(x*(ax)+y*(ay))/r
 
  • #8
perplexabot
Gold Member
329
5
Thank you.
 
  • #9
perplexabot
Gold Member
329
5
So you multiply x with ax so that ax points in the direction of x, am I right? Same with y and ay?
 

Related Threads on Polar to rectangular coordinates

  • Last Post
Replies
5
Views
9K
Replies
5
Views
2K
Replies
3
Views
4K
  • Last Post
Replies
6
Views
1K
Replies
5
Views
568
Replies
1
Views
3K
Replies
3
Views
5K
Replies
8
Views
6K
  • Last Post
Replies
3
Views
775
Top