All practice sets

Mathematics · Introductory college

Linear algebra & optimization

Solve a system, multiply matrices, identify dependence, and evaluate a linear objective.

4 questions · 30–40 minutes

Before you begin: Simultaneous equations, matrix notation, and plotting linear inequalities.

Work on paper or use the notes boxes. Numeric checks assess only the labeled value; compare your full reasoning with the solution. Nothing is submitted or saved.

01

Solve a resource problem

A workshop sells standard and extended sessions. Two standard sessions and one extended session total 7 hours; one standard and two extended sessions total 8 hours. Find the duration of each type.

Need a hint?

Use 2s + e = 7 and s + 2e = 8. Eliminate one variable.

Worked solution & reasoning

From the first equation e = 7 − 2s. Substitute into the second: s + 14 − 4s = 8, so s = 2.

Then e = 3. Standard: 2 hours; extended: 3 hours. Check: 2·2 + 3 = 7 and 2 + 2·3 = 8.

02

Multiply in order

Let A = [[1, 2], [0, 3]] and B = [[2, 0], [1, 4]], where each inner bracket is a row. Compute AB and BA. Are they equal?
Need a hint?

Each entry is a row of the left matrix dotted with a column of the right matrix.

Worked solution & reasoning

AB = [[4, 8], [3, 12]] and BA = [[2, 4], [1, 14]].

For example, the top-left entry of AB is 1·2 + 2·1 = 4. Since AB ≠ BA, this example shows that matrix multiplication is not generally commutative.

03

Recognize dependence

Consider C = [[1, 2], [2, 4]]. Is C invertible? How many solutions does Cx = [3, 6] have? What changes if the right-hand side is [3, 7]?
Need a hint?

Compare the two rows and the corresponding right-hand-side entries.

Worked solution & reasoning

det(C) = 1·4 − 2·2 = 0, so C is not invertible.

With [3, 6], the second equation is twice the first. There are infinitely many solutions: x₂ = t and x₁ = 3 − 2t.

With [3, 7], the equations contradict each other: doubling the first requires 6, not 7. There is no solution.

04

Optimize within constraints

Maximize P = 30x + 20y subject to x + y ≤ 8, 2x + y ≤ 10, and x, y ≥ 0. List all feasible corner points and evaluate P at each.

Need a hint?

The two slanted boundary lines intersect at (2, 6). Also check the axes and origin.

Worked solution & reasoning

The feasible corners are (0, 0), (5, 0), (2, 6), and (0, 8).

Their objective values are 0, 150, 180, and 160, respectively. The maximum is 180 at (2, 6).

The feasible region is a nonempty bounded polygon. A linear objective attains a maximum at a corner, though some problems also have an entire edge of optimal solutions.

Review your work

Choose one question you can now explain and one you would like to revisit.