Dear Uncle Colin,

I need to find a unit vector in the xy-plane that makes an angle of 45 degrees with the vector 3i+4j. How would you do that?

- Don’t Enjoy Maths Of Integer Vectors Rotating Enough

Hi, DEMOIVRE, and thanks for your message! I can think of several ways to approach this.

Method 1: sneaky complex numbers

Instead of the vector 3i+4j, consider the complex number 3+4i.

To rotate the point in the Argand diagram corresponding to z by π4 1, you multiply by 12(1±i), with a positive sign for an anti-clockwise rotation.

Ignoring the 2 since we’ll be dividing out the modulus shortly, (3+4i)(1±i)=(34)+i(4±3), which is either 1+7i or 7+i.

The modulus of these numbers is 52, so the corresponding vectors are 152i+752j and 752i+152j.

Method 2: a dot product

Suppose the required vector is xi+yj. Then we have (3i+4j)(xi+yj)5×|(xi+yj)|=12. (Any vector at 45 degrees to the original one will satisfy this; the 12 is the cosine of the angle between the vectors).

Let’s make live easy for ourselves and suppose that |xi+yj|=2, making our equation (3i+4j)(xi+yj)=5.

We’ve now got simultaneous equations: x2+y2=2, from the supposition, and 3x+4y=5, from the dot product.

Letting 3x=54y, and considering 9x2+9y2=18, we get (54y)2+9y2=18, or 2540y+25y2=18

Rearranging, 25y240y+7=0, which factorises as (5y7)(5y1).

This gives y=75 (with x=15) or y=15 (with x=75) - and when we normalise, we get the same vector as above.

Method 3: Use the perpendicular

If you construct a perpendicular vector of the same length - either 4i+3j or 4i3j - and find the midpoint of the ends of the two vectors, the vector this point will be at 45 degrees to the original vector.

The two possible midpoints are at 12i+72j and 72i+12j; both of these, when normalised, give the same answer as method 1.

Method 4: compound angle formula

Let θ be the angle between the x-axis and 3i+4j, so that tan(θ)=43

tan(θ±45o)=43±1143

=4±334, giving either -7 or 17.

The first corresponds to a vector parallel to i+7j and the second to 7i+j; again, these normalise to the correct answer.


Hope that’s helpful!

- Uncle Colin

Footnotes:

1. In Argand-world, we do not degree.