Math - Quaternion Multiplication (Part 2)

In this lecture we continued our exploration of multiplying two quaternions.

We found that we could reduce our previous polynomial expansion into an easy to read formula and in the process, discovered how both the dot and cross product of two vectors were originally used to help with quaternion multiplication.

We then looked at how to construct a 4x4 matrix for quaternion multiplication.

As a challenge, you were asked to try multiplying the quaternions:
(1 + 2i + 3j + 4k) (5 + 6i + 7j + 8k)

Of the three multiplication options we looked at; which did you use, and which is your favourite?

Hi there
found 0 at cross product, 65 at dot product, finally to obtain
60 + 16i + 22j + 28k

@Caval, great work attempting this challenge.
You are really close to the correct answer, but it looks like you made a mistake when working out the cross product.

Don’t be discouraged though. It’s a big calculation with a lot of moving parts, so it’s easy for minor mistakes to slip in.

Here are the complete calculations so you can double check them against your own:

Edit (30/01/2021):
The image above previously had an error in the final line.
The correct value for the real part is -60, not 60. Apologies for any confusion caused.

Somehow I added the component of the cross product together to make zero, weird sub consciou reflex… I had no reason to do that since the output of cross product is a vector. Thanks for the correction

1 Like

Don’t worry, it happens to the best of us!
Glad I could help.

-60 + (12i, 30j, 24k) I got this and then I looked at your explanation to Caval, and I don’t get why 5-65 gives 60 and not -60. I might be having a brain fart. The rest I get.

Great spot @DefectiveButCaring, you’re absolutely right!
That looks like a typo on my part, so I must have messed up my LaTeX input when formatting the answer.

The final output should be -60 + (12i, 30j, 24k).

I’ve edited my post above to reflect this.

@garypettie Mistakes happen, I just thought I was missing something and I was lost. glad either way. Thanks for being around to help and such.

1 Like

here is my result:

I like this way of solving the best because, in my opinion, it needs the least amount of thinking. You can just put the numbers in this equation. Then you can just mechanically calculate it by following the rules that you did learn before.

1 Like

I got -60+(12i,30j,24k)

1 Like

The first method I have used is the matrix multiplication, and it was quite straightforward, the second method took me longer but now I kind of figure out how it works.

Not going through the first method, but now I see that it looks scary but it’s way easier than I thought

Here’s the results

[-60, 12i, 30j, 24k]

1 Like