This set practises the first three lessons of the course: vectors and the dot product, determinants and the cross product and matrices. It follows MIT's Problem Set 1, in our own words.
MIT's set has two parts. Part B holds MIT's five longer problems (27 points), for which OpenCourseWare has no solutions. All five are written out below, with hints and solutions of our own. Part A is a list of short exercises, most of them from MIT's own Supplementary Notes, which also hold their solutions. Those are not rewritten here: the last section of this page lists them and links to MIT's exercises and solutions.
MIT labels each problem with the day on which its lecture was given. Problems 1 and 2 belong to Lecture 1 (the dot product), except part (d) of Problem 1, which needs Lecture 2. Problem 3 belongs to Lecture 2 (the cross product), and Problems 4 and 5 to Lecture 3 (matrices). MIT's lecture numbers are the same as this site's here.
How to answer#
Work each problem on paper first. Then type your result in the answer box and press Check. A formula box takes plain typing, for example 2*cos(theta), and accepts every correct way of writing the answer. Type theta for . A number box wants a decimal number, not a fraction or a square root, and its question says how exact your value must be: keep all the digits your calculator shows while you work. Unless a box asks for more digits, give 3 significant figures in the box; an answer with only 2 significant figures may or may not be accepted. Angles are asked in degrees. The points, and their split over the parts of a problem, are MIT's. If you are stuck, open the hints one at a time. Each problem or part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Parts that ask you to show or explain something have no answer box, or a box for only a piece of them: compare your work with the solution and mark it yourself. Your score is kept in this browser only.
Problem 1#
A tetrahedron in a cube, and the methane molecule
A cube with sides of length has its centre at the origin and its sides parallel to the axes. Its eight vertices (corners) are the points , with every choice of the three signs.
(a)2 points
Four of the eight vertices, one of which is , are the vertices of a regular tetrahedron: a pyramid with four faces whose six edges all have the same length. Find the other three vertices. Confirm your answer by finding the length of an edge, and explain why all six edges have that length. Give the length as a decimal, to three decimal places.
Hint
Start from . A neighbouring corner of the cube differs from it in one coordinate. What are the other possible distances between two corners of the cube?
Hint
The edges of the cube are too few to make a tetrahedron out of them: try the diagonals of the faces of the cube.
Solution
The idea. Two corners of the cube lie at one of three distances from each other: along an edge of the cube, along the diagonal of a face, or along a diagonal through the centre. Six equal edges are possible only with face diagonals.
Choose the vertices
Take the corners that differ from in exactly two coordinates:
In words
P nought equals (1, 1, 1), P one equals (1, minus 1, minus 1), P two equals (-1, 1, minus 1), P three equals (-1, minus 1, 1)
(The names to are ours.) These are the four corners of the cube with an even number of minus signs. A look at the list shows that any two of them differ in exactly two coordinates.
The length of an edge
The vector from to is . With the lesson's formula for the length of a vector,
In words
the absolute value of vector P nought P one equals the square root of 0 squared plus (-2) squared plus (-2) squared, end of root, equals the square root of 8 equals 2 the square root of 2 equals 2.828
Why all six edges are equal
Any two of the four vertices differ in exactly two coordinates, and each of those coordinates jumps from to or back. So the vector between them has two components of size and one that is , and its length is every time. In the picture: each of the six edges is a diagonal of one of the six square faces of the cube, and all those diagonals are equally long.
Check the result
A face of the cube is a square of side , and the diagonal of such a square is by Pythagoras. The three neighbours of , which are , and , do not work: each is at distance from but at distance from the other two.
(b)1 point
In a molecule of methane, four hydrogen atoms sit at the vertices of a regular tetrahedron and a carbon atom sits at its centre. Find the bond angle: the angle between the vectors from the carbon atom to two of the hydrogen atoms. Use a calculator and give the angle in degrees, to one decimal place.
Hint
Where is the centre of the tetrahedron of part (a)? Then the vectors from the centre to the vertices are easy to write down.
Hint
The lesson finds an angle from a dot product: is the dot product divided by the two lengths.
Solution
The idea. Use the tetrahedron of part (a): its size does not matter for an angle. Its centre is the origin, so the vectors from the carbon atom to the hydrogen atoms are the position vectors of the vertices.
The centre
The centre of the cube is the origin, and it is at the same distance, , from all eight corners. So it is the centre of the tetrahedron too. Take the vectors to two vertices, and .
The angle
The lesson's formula for the dot product is
In words
vector capital A dot vector capital B equals the absolute value of vector capital A the absolute value of vector capital B cos theta
Here and both lengths are :
In words
cos theta equals minus 1 over the quantity the square root of 3 the square root of 3, equals minus one third, theta equals 109.47° is approximately 109.5°
Check the result
The dot product is negative, so the angle must be more than 90°, as it is. Every other pair of vertices gives the same dot product , because two vertices always differ in two coordinates: two products are and one is . A calculator that gives was fed : that is the angle between one bond and the line of another bond continued backwards through the carbon atom, and the two angles add up to 180°.
(c)1 point
Use the dot product to find the angle between two adjacent edges of the tetrahedron (two edges that share a vertex), and the angle between two opposite edges (two edges that share no vertex). Give both in degrees. Explain your answers by symmetry.
Hint
For the adjacent edges, take the two vectors from to two other vertices.
Hint
The edge opposite to the one between two vertices is the edge between the other two vertices.
Solution
The idea. Write each edge as a vector, the difference of two vertices, and use the dot product as in part (b).
Adjacent edges
Two edges from are and . Their dot product is and both have length :
In words
cos theta equals 4 over the quantity 2 the square root of 2 times 2 the square root of 2, equals four eighths equals one half, theta equals 60°
Opposite edges
The edge from to is opposite to the edge from to :
In words
vector P nought P one dot vector P two P three equals the average of 0, minus 2, minus 2 times the average of 0, minus 2, 2 equals 0 plus 4 minus 4 equals 0, theta equals 90°
The symmetry behind 60°
Two adjacent edges are two sides of one face. All six edges are equally long, so every face is an equilateral triangle, and the angles of an equilateral triangle are 60°.
The symmetry behind 90°
Swap the and coordinates of every point: this is the reflection in the plane . It leaves and where they are, and it exchanges and . So the tetrahedron lands on itself, the edge stays as it is, and the opposite edge is reversed. A reflection does not change angles, so the angle between the two edges equals the angle between and the reversed edge, which is . That forces .
Check the result
A second way to see the right angle: the two opposite edges are diagonals of the two opposite faces and of the cube. Looking along the -axis, they are the two different diagonals of a square, and those cross at a right angle.
(d)1 point
Find the area of a face of the tetrahedron, as a decimal to three decimal places. (This part needs the cross product of Lecture 2.)
Hint
A face is a triangle with two edges from as sides. Which parallelogram is it half of?
Hint
The lesson gives the area of a parallelogram in space as the length of a cross product.
Solution
The idea. A triangle with sides and is half of the parallelogram with those sides, and the lesson gives the area of the parallelogram:
In words
area equals the absolute value of vector capital A cross vector capital B
The cross product
Take the face with vertices , , , with sides and :
In words
vector P nought P one times vector P nought P two equals the average of (-2)(-2) minus (-2)(0), minus the quantity (0)(-2) minus (-2)(-2), (0)(0) minus (-2)(-2) equals the average of 4, 4, minus 4
Half its length
In words
area equals one half the square root of 4 squared plus 4 squared plus (-4) squared, end of root, equals one half the square root of 48 equals 2 the square root of 3 equals 3.464
Check the result
The face is an equilateral triangle with sides of length and angles of 60°, so half base times height gives as well. The cross product is perpendicular to both edges: its dot products with and are both times. It points along , away from the fourth vertex on the other side of the origin.
Problem 2#
The three altitudes of a triangle meet in one point
A triangle in the plane has vertices , and . An altitude of the triangle is the whole line through a vertex that is perpendicular to the opposite side (not only the piece of it between the vertex and that side).
Let be a point of the plane, and let , and be the vectors from , and to .
(a)1 point
Write, with the dot product and the three vectors, the condition that lies on the altitude from the vertex .
Hint
is on the altitude from exactly when the vector from to is perpendicular to the opposite side. Which two vertices does that side join?
Hint
Write the vector along that side with and : go from to , and then from to .
Solution
The idea. Two vectors are perpendicular exactly when their dot product is zero. The altitude from is perpendicular to the side from to .
The side as a difference
Going from to and then from to gives
In words
vector P two P three equals vector P two P plus vector P P three equals vector v two minus vector v three
The condition
is on the altitude from exactly when is perpendicular to that side (or when , and then is the zero vector and the dot product is zero too):
In words
vector v one dot the quantity vector v two minus vector v three, equals 0, that is vector v one dot vector v two equals vector v one dot vector v three
Check the result
Take . Then is the zero vector and the condition reads : the sides from to and from to are perpendicular. That is right: lies on the altitude from only in a triangle with a right angle at .
(b)1 point
Assume that is the point where the altitudes from and from cross. Show that
In words
vector v one dot vector v two equals vector v one dot vector v three equals vector v two dot vector v three
Hint
Part (a) gives one equation for the altitude from . Write the same kind of equation for the altitude from .
Solution
The idea. Use the condition of part (a) twice, once for each altitude.
Two altitudes, two equations
is on the altitude from , so by part (a). is also on the altitude from , which is perpendicular to the side from to , and :
In words
vector v two dot the quantity vector v one minus vector v three, equals 0, that is vector v two dot vector v one equals vector v two dot vector v three
Join them
The dot product does not depend on the order, . So equals by the first equation and by the second: all three are equal.
Check with numbers
Our own example: , , . The altitudes from and cross at , so , and . The three dot products are , and .
(c)1 point
Under the assumption of part (b), show that is also on the altitude from . So the three altitudes of a triangle meet in one point. It is called the orthocentre of the triangle.
Hint
What is the condition of part (a) for the vertex ? Compare it with what part (b) has given you.
Solution
The idea. The condition for the third altitude is one more equality of dot products, and part (b) has already proved it.
The condition for the third altitude
The altitude from is perpendicular to the side from to , and . By part (b), , so
In words
vector v three dot the quantity vector v one minus vector v two, equals vector v three dot vector v one minus vector v three dot vector v two equals 0
Conclude
So is perpendicular to the side opposite to (or ): lies on the altitude from . The point where two altitudes cross is on the third one as well.
Check with numbers
In the example of part (b), the side from to lies along the -axis, so the altitude from is the vertical line . The point is on it.
Problem 3#
The area vectors of a tetrahedron add up to zero
Take any tetrahedron, regular or not. On each of its four faces stands a vector that is perpendicular to the face, points outwards, and has a length equal to the area of the face. Show that the sum of these four vectors is the zero vector.
Do not use coordinates. This problem has no answer box: compare your proof with the solution and mark it yourself.
Hint
MIT's own hint: let , and be the three edges that start from one vertex. Write each of the four vectors with , and , and add them.
Hint
A face with sides and is half a parallelogram, so has the right length and is perpendicular to the face. It may point inwards: then use .
Hint
The fourth face does not contain the chosen vertex. Two of its sides are and . Multiply out their cross product.
Solution
The idea. Half the cross product of two sides of a triangle is perpendicular to the triangle and as long as its area. Written with the three edges from one vertex, the four cross products cancel in pairs.
Set up
Call the chosen vertex , and let , , be the edges from to the other three vertices. Name them in such an order that the triple product is positive. (It is not zero, because a tetrahedron has a volume. If it is negative, exchange the names of and .) The triple product keeps its value when the three vectors move round in a circle:
In words
vector capital A dot ( vector capital B cross vector C ) equals vector capital B dot ( vector C cross vector capital A ) equals vector C dot ( vector capital A cross vector capital B ) equals the determinant of ( vector capital A, vector capital B, vector C ) greater than 0
(The lesson gives . That the three triple products are equal is not in the lesson: written out with the lesson's formulas, each of them is the same sum of six products of components.)
The three faces at the chosen vertex
The face with sides and has area , and is perpendicular to it. The rest of the tetrahedron lies on the side of this face where points. Since , the vector points to that same side: inwards. The outward vector is the opposite one, . The same reasoning for the other two faces at gives
In words
one half vector capital B cross vector capital A, one half vector C cross vector capital B, one half vector capital A cross vector C
The fourth face
The fourth face has the end points of , and as vertices. Two of its sides are and . The cross product can be multiplied out like an ordinary product, as long as the order of the factors is kept (each of its components is a sum of products of one component of each factor). With :
In words
one half the quantity vector capital B minus vector capital A, all times the quantity vector C minus vector capital A, equals one half the quantity vector capital B cross vector C minus vector capital B cross vector capital A minus vector capital A cross vector C, equals one half the quantity vector capital B cross vector C plus vector capital A cross vector capital B plus vector C cross vector capital A
It is perpendicular to the fourth face and as long as its area. Is it the outward one? The vertex is on the inner side of this face, and runs from to a point of the face, so an outward vector has a positive dot product with . Here and , because a cross product is perpendicular to both of its factors. What is left is , which is positive. So this vector points outwards.
Add the four vectors
In words
one half the quantity vector capital B cross vector capital A plus vector C cross vector capital B plus vector capital A cross vector C, all plus one half the quantity vector capital A cross vector capital B plus vector capital B cross vector C plus vector C cross vector capital A, equals vector 0
Each term in the first bracket is cancelled by a term in the second, because .
Check with numbers
Our own example (coordinates are allowed in a check): , , , with triple product . The three vectors at are , and : each points away from the tetrahedron, along a negative axis. The fourth is . The four add up to . The areas of the faces are , , and .
Problem 4#
Orthogonal matrices: rotations and reflections
The transpose of a matrix is the matrix with the rows of written as columns. A square matrix is called orthogonal when
In words
capital A capital A ^ capital T equals capital I
where is the identity matrix. A matrix that undoes a square matrix from one side also undoes it from the other (MIT points to exercise 1G-9b of its Notes for this), so holds as well, and is the inverse of . Entry by entry, says that the rows of are perpendicular to each other and have length : the entries of are the dot products of the rows of with each other. In the same way says that the columns of are perpendicular to each other and have length .
The geometric meaning, which MIT states without proof: multiplying by an orthogonal matrix keeps the length of every vector, , and keeps the size of the angle between any two vectors. There are two types of orthogonal matrices: rotations and reflections.
(a)1 point
In the plane, the rotations are given by the matrices
In words
capital A sub theta equals cos theta minus sine theta; sine theta cos theta
Find and , and draw and for . The box asks for one of the four components.
Hint
Write and as columns, with entries and , and multiply.
Solution
The idea. Multiplying a matrix by picks out its first column, and multiplying by picks out its second column.
Multiply
In words
vector u equals capital A sub theta 1; 0 equals cos theta; sine theta, vector v equals capital A sub theta 0; 1 equals minus sine theta; cos theta
The picture for
Both and are , so and . Draw the axes and the unit circle. The arrow runs from the origin to the point of the circle halfway between the positive -axis and the positive -axis, 45° above the -axis. The arrow runs to the point halfway between the positive -axis and the negative -axis. Each is its unit vector, or , turned counterclockwise through 45°.
Check the result
For every both vectors have length , and : they stay perpendicular unit vectors, as and are. For they are and , as for the lesson's rotation by 90°.
(b)2 points
Use the addition formulas for the sine and the cosine to show that
In words
capital A sub theta one capital A sub theta two equals capital A sub theta one plus theta two
Say in words what this formula means about rotations.
Hint
Multiply the two matrices: each entry of the product is a row of the first times a column of the second.
Hint
The addition formulas are and .
Solution
The idea. Multiply the matrices and recognise each entry as one of the addition formulas.
Multiply
In words
capital A sub theta one capital A sub theta two equals cos theta one cos theta two minus sine theta one sine theta two minus cos theta one sine theta two minus sine theta one cos theta two; sine theta one cos theta two plus cos theta one sine theta two minus sine theta one sine theta two plus cos theta one cos theta two
Use the addition formulas
The two entries on the diagonal are . The bottom left entry is and the top right entry is minus that:
In words
capital A sub theta one capital A sub theta two equals cos of the quantity theta one plus theta two, minus sine of the quantity theta one plus theta two; sine of the quantity theta one plus theta two, cos of the quantity theta one plus theta two, equals capital A sub theta one plus theta two
In words
By the lesson, the product means: first apply , then . So the formula says that turning through the angle and then through is the same as turning once through : the angles of rotations about the same point add up. The sum does not depend on the order, so for these matrices , although matrices in general do not commute.
Check the result
With the formula says that two quarter turns make the rotation through the angle . Its matrix has twice on the diagonal and elsewhere: it is . That is the lesson's result that the square of the rotation by 90° is , a half turn.
(c)2 points
Calculate the inverse matrix , and use it to verify that : rotations are orthogonal matrices. Verify also that , and give a geometric reason for it. The box asks for one entry of the inverse.
Hint
The lesson's method works for a 2 × 2 matrix too: minors, cofactors, transpose, divide by the determinant. The minor of an entry is the one entry left when its row and column are deleted.
Hint
What is the determinant of ?
Solution
The idea. Find the inverse with the cofactor method of the lesson. It turns out to be the transpose, and also the rotation through .
The inverse
The determinant is . The minors are the entries opposite: and in the first row, and in the second. The cofactors have the sign changed in the top right and bottom left places: , in the first row and , in the second. Transposing, and dividing by the determinant :
In words
capital A sub theta to the power minus 1 equals cos theta sine theta; minus sine theta cos theta
Rotations are orthogonal
Writing the rows of as columns gives exactly this matrix, so . Then, by the definition of the inverse,
In words
capital A sub theta capital A sub theta ^ capital T equals capital A sub theta capital A sub theta to the power minus 1 equals capital I
The inverse is the rotation through −θ
Put in place of in the rotation matrix. The cosine does not notice, , and the sine changes sign, :
In words
capital A sub minus theta equals cos theta sine theta; minus sine theta cos theta equals capital A sub theta to the power minus 1
The geometric reason: the inverse undoes what the matrix does. To undo a turn through the angle , turn back through the same angle, which is a rotation through .
Check the result
Multiply directly: the top left entry of is , and the top right entry is . Part (b) agrees: is the rotation matrix for the angle , which has on the diagonal and elsewhere. That is the identity matrix.
(d)2 points
Find the four orthogonal 2 × 2 matrices whose top left entry is . (MIT's hint: try different signs.) Here is the top right entry, the bottom left entry and the bottom right entry.
(Our addition: the four matrices differ in the signs of and .) The boxes ask for in two of them, as a decimal to four decimal places.
Hint
The first row has length . What does that leave for ?
Hint
The first column has length too. Once the signs of and are chosen, the condition that the two rows are perpendicular fixes .
Solution
The idea. Rows and columns of an orthogonal matrix have length , and its rows are perpendicular. That fixes the size of every entry and leaves two signs free.
The sizes
The first row has length : , so and . The first column has length as well, so in the same way.
The last entry
The two rows are perpendicular:
In words
a one one a two one plus a one two a two two equals 0 which gives a two two equals minus a one one a two one over a one two
With this gives when and have the same sign, and when their signs differ.
The four matrices
Two signs can be chosen in four ways. (The names to are ours.)
In words
Q one equals 1 over the square root of 2 minus 1 minus 1; 1 minus 1, Q two equals 1 over the square root of 2 minus 1 1; minus 1 minus 1, Q three equals 1 over the square root of 2 minus 1 1; 1 1, Q four equals 1 over the square root of 2 minus 1 minus 1; minus 1 1
The first box is about and the second about .
Check the result
In each matrix every row and every column has length . The two rows of have dot product , and so have its two columns. The other three pass the same test. So each of the four satisfies .
(e)2 points
Draw the letter F in the plane, and next to each of the four matrices of part (d) draw what the matrix does to it. Explain how the sign of the determinant of the matrix shows in the look of the new F.
Two of the four matrices have determinant and are rotation matrices : the first two boxes ask for their angles, in degrees between 0 and 360. (These two boxes are our addition.)
Hint
The columns of a matrix are the images of and . Draw the F with its stem along and its two arms along : then the columns tell you where the stem and the arms go.
Hint
For a rotation matrix the first column is , . The sign of the sine tells you whether the angle is below or above 180°.
Solution
The idea. A matrix sends to its first column and to its second column. Draw the F with its stem from the origin along and its two arms pointing along . In the first F the arms point to the right of the stem: seen from the foot of the stem, they are on its clockwise side.
The determinants
For : . For : . For : . For : .
Determinant +1: two rotations
has the form of with and , so . has and , so , which is the same as a turn of 135° clockwise. Under the stem points down and to the left, along , and the arms up and to the left, along . Under the stem points down and to the right and the arms down and to the left. Both are ordinary letters F, turned: the arms are still on the clockwise side of the stem, and turning the page makes them readable.
Determinant −1: two reflections
Under the stem points up and to the right, along , and the arms up and to the left, along . Under the stem points up and to the left and the arms down and to the left. In both, the arms are on the counterclockwise side of the stem. That is a mirror image of the F, the letter as seen in a mirror, and no turning of the page makes it readable.
The rule
The determinant of a 2 × 2 matrix is also the determinant of its two columns, the images of and of : both are . By the lesson, that determinant is positive when lies counterclockwise from and negative when it lies clockwise. For and themselves it is : is counterclockwise from . So a positive determinant means that the matrix keeps the sense of turning, and the F stays an F. A negative determinant means that the sense of turning is reversed, and the F becomes its mirror image. For the orthogonal matrices of the plane, the determinant is for a rotation and for a reflection.
Check the result
is the reflection in the line through the origin at 67.5° to the -axis (our addition): the unit vector along that line, , is sent to , itself. A rotation of the plane other than the identity leaves no vector in place except the zero vector, so is no rotation. The two angles also fit part (b): , and indeed , because the first row of times the first column of is and times the second column .
Problem 5#
A matrix of pastries
Cookies, doughnuts and croissants are made of the same four ingredients, flour, sugar, egg and butter, in different proportions. One cookie takes 22 grams of flour, one doughnut 40 grams and one croissant 50 grams. MIT collects all such amounts, in grams, in a matrix with four rows and three columns:
In words
capital M equals 22 40 50; 18 10 3; 5 14 5; 10 10 22
Each row belongs to one ingredient: from top to bottom flour, sugar, egg and butter. Each column belongs to one kind of pastry: from left to right a cookie, a doughnut and a croissant.
(a)1 point
An assortment has cookies, doughnuts and croissants. Put these numbers in a column vector:
In words
capital X equals x one; x two; x three
What do the entries of the vector stand for?
Hint
Write out the first entry of : the first row of times the column . What is each of its three terms?
Solution
The idea. Each entry of is a row of times the column , and each row of belongs to one ingredient.
The first entry
In words
22 x one plus 40 x two plus 50 x three
This is 22 grams of flour for each cookie, 40 for each doughnut and 50 for each croissant: the grams of flour in the whole assortment.
All four entries
In the same way the second, third and fourth entries are the grams of sugar, egg and butter. So is a column of four numbers: how much of each ingredient the assortment contains.
Check the result
has three columns and has three rows, so the product exists, and it has four rows, one for each ingredient. Our own example: one pastry of each kind, , gives the row sums of : grams of flour, of sugar, of egg and of butter.
(b)2 points
Each ingredient has its nutritional value. For example, 100 grams of flour contain 10 grams of protein, 76 grams of carbohydrates and 1 gram of fat. The same facts for all four ingredients, per gram of ingredient, make a matrix with three rows and four columns:
In words
N equals 0.10 0 0.13 0; 0.76 1.00 0.01 0; 0.01 0 0.10 0.82
Each column belongs to one ingredient, in the order of the rows of . From top to bottom it holds the grams of protein, of carbohydrates and of fat in one gram of that ingredient.
Give a matrix formula for the total nutritional value of the assortment of part (a): its grams of protein, carbohydrates and fat. MIT asks for the formula only, not for numbers. As a check of your formula (our addition), the second box asks for the grams of protein in an assortment of one cookie, one doughnut and one croissant, to two decimal places.
Hint
Part (a) gave the grams of each ingredient in the assortment. Which matrix turns grams of ingredients into grams of protein, carbohydrates and fat?
Hint
The lesson reads a product from right to left: the matrix next to acts first.
Solution
The idea. Two steps, one after the other: from numbers of pastries to grams of ingredients with , and from grams of ingredients to grams of nutrients with .
Compose
is the column of the four amounts of ingredients. Multiplying it by adds up, for each nutrient, what the four ingredients contribute. With the lesson's rule that means first , then :
In words
N( capital M capital X ) equals (N capital M ) capital X
Its three entries are the grams of protein, carbohydrates and fat in the assortment.
Check the sizes
has four columns and has four rows, so exists, and it has three rows and three columns. The other order does not fit the question: is a matrix with four rows and four columns, which cannot multiply the three numbers in .
Check with numbers
For one pastry of each kind, is the column of part (a). The first row of gives the protein: grams. Only the flour and the egg bring protein.
(c)2 points
Now turn the question round. Give a matrix formula for the numbers , , of pastries that together hold grams of protein, grams of carbohydrates and grams of fat. Write it as , where is the column vector with entries , , . Give a formula for and the numerical values of its entries.
MIT lets its students use a calculator or MATLAB here. Use any tool you like: a calculator, a spreadsheet or a computer algebra program. Doing it by hand with the lesson's cofactor method works too. The boxes ask for the first row of , each entry within 1%.
Hint
Part (b) gives from . Which operation on a matrix reverses a relation of that kind?
Hint
Only a square matrix can have an inverse. Which of , and are square?
Solution
The idea. By part (b), . The lesson solves such a relation for with the inverse matrix.
The formula
In words
capital X equals (N capital M ) to the power minus 1 capital Y, capital A equals (N capital M ) to the power minus 1
It cannot be written as : neither nor is square, so neither has an inverse. Their product is square.
The product NM
Each entry is a row of times a column of . The top left one is : the grams of protein in one cookie. All nine:
In words
N capital M equals 2.85 5.82 5.65; 34.77 40.54 41.05; 8.92 10.00 19.04
Its columns are the grams of protein, carbohydrates and fat in one cookie, one doughnut and one croissant.
The inverse
A computer gives the inverse at once. By hand, expand the determinant along the first row:
In words
the determinant of (N capital M ) equals 2.85 times 361.3816 minus 5.82 times 295.8548 plus 5.65 times (-13.9168) equals minus 770.567
The first of the three minors is , and it is also the cofactor that ends up in the top left corner of the inverse: . The other entries go the same way. To four significant digits:
In words
capital A equals (N capital M ) to the power minus 1 equals minus 0.4690 0.07048 minus 0.01280; 0.3839 minus 0.005017 minus 0.1031; 0.01806 minus 0.03039 0.1127
Check the result
One pastry of each kind holds grams of protein, grams of carbohydrates and grams of fat (the row sums of ). The first row of must turn those back into one cookie: . The units fit as well: is in grams per pastry, so is in pastries per gram.
(d)2 points
For a diet of 2000 calories a day, the recommended daily amounts that MIT quotes are 50 grams of protein, 300 grams of carbohydrates and 65 grams of fat. Suppose you wanted to follow those guidelines while eating nothing but cookies, doughnuts and croissants. How many pastries of each kind should you eat every day? What is wrong with your answer? Explain.
Give each number to two decimal places. Each box accepts a value within about 1% of ours, so use at least four significant digits of every entry of .
Hint
Here is the column . Part (c) gives .
Hint
Look at the signs of the three numbers.
Solution
The idea. Multiply the matrix of part (c) by the column of the three recommended amounts.
Multiply
In words
capital X equals capital A 50; 300; 65 equals minus 3.136; 10.99; minus 0.889
For example, the first entry is with the rounded entries of , and with all digits.
What is wrong
The answer says: eat about 11 doughnuts a day, and eat about minus 3 cookies and minus 0.9 croissants. Nobody can eat a negative number of pastries. The mathematics is not at fault: the three equations have exactly one solution, and this is it. So no diet of these three pastries meets the three guidelines exactly.
Why it had to fail (our explanation)
Compare fat with carbohydrates. The guidelines ask for grams of fat for each gram of carbohydrates. From the columns of , a cookie has , a doughnut and a croissant . Every pastry is richer in fat, for its carbohydrates, than the guidelines allow. So is every mixture of them with positive amounts. The only way to bring the ratio down is to take pastries away that were never there.
Check the result
Put the answer back into . The first row gives grams of protein, as asked. The third row gives grams of fat.
More practice: MIT's own solved exercises#
Part A of MIT's Problem Set 1 (15 points at MIT, not scored here) is a list of short exercises. Most come from the problems section of MIT's "18.02 Supplementary Notes and Problems", which is on MIT OpenCourseWare under the same licence as the rest of the course, with solutions to the exercises that are not marked with a star. They are not rewritten here: open the exercises (section 1, Vectors and matrices), try them, then compare with MIT's solutions.
An exercise number such as 1B-5 means section 1, group B, exercise 5; the letters after it are its parts. MIT assigned these, day by day:
| For | Exercises in section 1 of the Notes |
|---|---|
| The recitation before Lecture 1: adding and scaling vectors, the first part of vectors and the dot product | 1A-1, 1A-5, 1A-6, 1A-7, 1A-8, 1A-9, 1A-11 |
| Lecture 1: the dot product | 1B-1, 1B-2, 1B-5a, b, 1B-11, 1B-12, 1B-13, 1B-14 |
| Lecture 2: determinants and the cross product | 1C-1, 1C-2, 1C-3, 1C-5a, 1C-6, 1C-7; 1D-1, 1D-2, 1D-3, 1D-4, 1D-5, 1D-7 |
| Lecture 3: matrices and inverse matrices | 1F-5a, b, 1F-8a, 1F-9; 1G-3, 1G-4, 1G-5 |
Problem 4 above points to three more exercises of the Notes: 1F-9 and 1F-10 on orthogonal matrices, and 1G-9b on why a matrix that undoes from one side also undoes it from the other.
MIT's list also has three exercises for the recitation from the course textbook (Edwards and Penney, Multivariable Calculus, 6th edition), and sections of that book to read. The textbook is not openly licensed and is not used on this site, so they are not part of this page.