hanegreefs.com/Math II
Home › Worked problems

Worked problems

Problems written for this site in the style of the exercise sessions, bonus tests and exams: new numbers, the same question types, every step worked out.

Quick reference

ProblemTopicChaptersMain exam skill
1Circle every correct statement about a set of vectorsCh. 2Use dimension counting instead of computation
2A hyperplane through three vectors in ℝ4Ch. 1, Ch. 2Find a normal vector by solving a homogeneous system
3Image of a vector when the map is known on another basisCh. 3Rewrite the input in the given basis first
4Kernel, range and the dimension theorem on polynomialsCh. 3, Ch. 5Gauss-Jordan on the coefficient system
5Which subspace do these vectors span?Ch. 2Normal vector and membership checks
6Eigenvalues with a parameter and an eigenbasisCh. 7Characteristic polynomial with a block structure
7Find and classify all critical pointsCh. 9Solve the first order conditions completely, then test each point
8Revenue under a marketing budgetCh. 9Ratio of the first two conditions
9A double integral that needs a swapCh. 10Redraw the region and change the order
10Classify, solve and fit a second-order equationCh. 11y = yh + yp, then the initial conditions
11Saving with continuous depositsCh. 11Equilibrium plus exponential
12Is this map an isomorphism?Ch. 6, Ch. 3det ≠ 0 exactly when the map is an isomorphism

Problem 1: Circle every correct statement about a set of vectors

Short question: statements about span, independence and bases · Related: Chapter 2

The problem

S = {s1, s2, s3} is a set of three vectors in a vector space V of dimension 5. Which statements are correct? (A) S can be a basis of V. (B) S can be linearly independent. (C) S can be linearly dependent. (D) span S is a subspace of V. (E) Removing vectors from S, you can always obtain an independent set. (F) Adding vectors to S, you can always obtain a basis of V.

Method

  1. A basis of V has exactly dim V = 5 vectors.
  2. Fewer than dim V vectors can be independent or dependent; nothing forces either.
  3. A span is always a subspace (examinable lemma).
  4. The empty set is independent; dependence can never be repaired by adding vectors.

Full solution

Worked example

Statement by statement

Compare the number of vectors with the dimension.

1

A

false: three vectors cannot span a 5-dimensional space
2

B and C

both true: e1, e2, e3 are independent, while s, 2s, 0 are dependent
3

D

true: the span of any subset is a subspace
4

E

true: keep a maximal independent subset (in the worst case the empty set)
5

F

false: if S is dependent, every superset of S is dependent
Answer

Correct: B, C, D and E.

Think further

  • Which answers change if S had five vectors?
  • Which change if S is known to be independent?
Common trapStatement F sounds like the extension theorem, but that theorem starts from an independent set.
Try it

Practice question

Now S has six vectors in a space of dimension 4. True or false: (A) S may span V; (B) S may be independent; (C) dim span S ≤ 4; (D) deleting any two vectors of S always leaves a basis.

Show the worked answer
  • A true (for example e1, ..., e4 plus two more vectors).
  • B false: more than dim V vectors are always dependent.
  • C true: span S is a subspace of V.
  • D false: the remaining four vectors may be dependent, for instance if two of them are equal.

Problem 2: A hyperplane through three vectors in ℝ4

Main problem: describe a 3-flat and cut it · Related: Chapter 1, Chapter 2

The problem

Describe the hyperplane H through the origin of ℝ4 that contains v1 = (1, 0, 1, 0), v2 = (0, 1, 0, 1) and v3 = (1, 1, 0, 2) with one Cartesian equation, and find the intersection of H with the x1x2-plane.

Method

  1. A hyperplane through 0 has an equation n · x = 0.
  2. n must be perpendicular to every given vector: three equations in four unknowns.
  3. Check that the three vectors are independent, otherwise they do not fix a 3-dimensional H.
  4. For the intersection add the equations x3 = x4 = 0.

Full solution

Worked example

Solving for the normal

Write n = (a, b, c, d).

1

Perpendicularity

a + c = 0, b + d = 0, a + b + 2d = 0
2

Solve

c = −a, b = −d, then a − d + 2d = 0 gives a = −d
3

Choose d = 1

n = (−1, −1, 1, 1): H is x3 + x4 = x1 + x2
4

Independence

the solution space for n is one-dimensional, so the three vectors have rank 3 and span H
5

Intersection

x3 = x4 = 0 gives x1 + x2 = 0: the line t(1, −1, 0, 0)
Answer

H: −x1 − x2 + x3 + x4 = 0; H meets the x1x2-plane in the line spanned by (1, −1, 0, 0).

Think further

  • What changes if H must pass through (1, 1, 1, 1) instead of the origin, with the same directions?
  • Why would two independent equations in ℝ4 give a plane rather than a line?
Common trapA normal vector of zero length (n = 0) solves the equations trivially but describes nothing. Pick a non-zero solution.
Try it

Practice question

Give a Cartesian equation of the hyperplane through the origin containing (1, 0, 0, 1), (0, 1, 1, 0) and (1, 1, 0, 0), and its intersection with x3 = x4 = 0.

Show the worked answer
  • a + d = 0, b + c = 0, a + b = 0 give n = (1, −1, 1, −1).
  • H: x1 − x2 + x3 − x4 = 0.
  • With x3 = x4 = 0: x1 = x2, the line t(1, 1, 0, 0).

Problem 3: Image of a vector when the map is known on another basis

Short question: use linearity · Related: Chapter 3

The problem

f : P3 → P is linear with f(1) = 2, f(x − 1) = x2, f(x2) = x + 1 and f(x3) = 0. Find f(2x3 + 3x2 + 4x + 5).

Method

  1. The four inputs 1, x − 1, x2, x3 form a basis of P3.
  2. Write the polynomial as a combination of exactly these four.
  3. Apply f term by term (linearity).

Full solution

Worked example

Rewrite, then map

Only the linear part needs work: 4x + 5 = 4(x − 1) + 9.

1

Combination

2x3 + 3x2 + 4x + 5 = 2 · x3 + 3 · x2 + 4 · (x − 1) + 9 · 1
2

Apply f

2 · 0 + 3(x + 1) + 4x2 + 9 · 2
Answer

f(2x3 + 3x2 + 4x + 5) = 4x2 + 3x + 21.

Think further

  • What is the kernel of f restricted to multiples of x3?
  • Is f one-to-one? Use f(x3) = 0.
Common trapDo not apply f to 4x as if f(x) were given: only f(x − 1) is known.
Try it

Practice question

g : ℝ2 → ℝ2 is linear with g(1, 2) = (3, 0) and g(1, 1) = (1, 1). Find g(4, 5) and the standard matrix of g.

Show the worked answer
  • (4, 5) = 1(1, 2) + 3(1, 1), so g(4, 5) = (3, 0) + 3(1, 1) = (6, 3).
  • e1 = −(1, 2) + 2(1, 1): g(e1) = (−1, 2). e2 = (1, 2) − (1, 1): g(e2) = (2, −1).
  • Standard matrix [[−1, 2], [2, −1]]; check: it sends (4, 5) to (6, 3).

Problem 4: Kernel, range and the dimension theorem on polynomials

Main problem in the style of the second bonus test · Related: Chapter 3, Chapter 5

The problem

h : P3 → ℝ3, h(a0 + a1x + a2x2 + a3x3) = (a0 − a3, a1 + a2, a0 + a1 + a2 − a3). (a) Find the null space and the nullity. (b) Find the range space and the rank. (c) Check the dimension theorem. (d) What is the size of a matrix representing h?

Method

  1. Write h(p) = 0 as a homogeneous system in a0, ..., a3 and reduce it.
  2. Free variables give a basis of the kernel; translate the columns back into polynomials.
  3. The range is spanned by the images of 1, x, x2, x3: the columns of the matrix.

Full solution

Worked example

Step by step

Coefficient matrix with rows (1, 0, 0, −1), (0, 1, 1, 0), (1, 1, 1, −1).

1

Gauss-Jordan

R3 → R3 − R1 − R2 gives a zero row; the matrix is already reduced
2

Kernel

a2 = s, a3 = t free; a0 = t, a1 = −s
3

As polynomials

N(h) = {s(x2 − x) + t(x3 + 1)}, basis x2 − x, x3 + 1; nullity 2
4

Range

pivot columns 1 and 2: span{(1, 0, 1), (0, 1, 1)}, the plane z = x + y; rank 2
5

Dimension theorem

2 + 2 = 4 = dim P3; the matrix is 3 × 4
Answer

h is neither one-to-one nor onto.

Think further

  • Check that h(x3 + 1) = (0, 0, 0).
  • Which single change to the third component of h would make h onto?
Common trapA kernel basis of a map on polynomials must consist of polynomials, not of coefficient columns.
Try it

Practice question

h(x, y, z) = (x + y + 2z, y + z, x + z). Find bases of N(h) and R(h).

Show the worked answer
  • Rows (1, 1, 2), (0, 1, 1), (1, 0, 1); R3 − R1 + R2 = 0: rank 2.
  • y = −z, x = −z: N(h) = span{(−1, −1, 1)}, nullity 1.
  • R(h) = span{(1, 0, 1), (1, 1, 0)} (columns 1 and 2); 2 + 1 = 3.

Problem 5: Which subspace do these vectors span?

Main problem: span, basis and equal spans · Related: Chapter 2

The problem

(a) Which subspace S of ℝ3 is spanned by (1, 2, 0) and (0, 1, −1)? Give a basis and a Cartesian equation. (b) Show that (1, 3, −1) and (2, 3, 1) span the same subspace.

Method

  1. Two independent vectors in ℝ3 span a plane through 0.
  2. A normal vector is perpendicular to both (cross product).
  3. Two sets span the same space when each vector of one set lies in the span of the other set and the dimensions agree.

Full solution

Worked example

Plane, basis and equality

Use the cross product for the normal.

1

Independent

the vectors are not multiples, so they form a basis of S and dim S = 2
2

Normal

(1, 2, 0) × (0, 1, −1) = (−2, 1, 1), so S: −2x + y + z = 0
3

Membership

−2 + 3 − 1 = 0 and −4 + 3 + 1 = 0: both new vectors lie in S
4

Explicitly

(1, 3, −1) = (1, 2, 0) + (0, 1, −1) and (2, 3, 1) = 2(1, 2, 0) − (0, 1, −1)
5

Dimension

the new vectors are independent, so they span a 2-dimensional subspace of S: all of S
Answer

S is the plane −2x + y + z = 0, spanned by either pair.

Think further

  • Give a third vector that extends the basis of S to a basis of ℝ3.
  • Is (1, 1, 1) in S?
Common trapShowing that the new vectors lie in S is only half the job; you also need that they span all of S (independence and dimension).
Try it

Practice question

Do {(1, 0, 1), (1, 1, 0)} and {(2, 1, 1), (0, 1, −1)} span the same subspace of ℝ3? Give its equation.

Show the worked answer
  • (2, 1, 1) = (1, 0, 1) + (1, 1, 0) and (0, 1, −1) = (1, 1, 0) − (1, 0, 1).
  • Both pairs are independent: yes, the same plane.
  • Normal (1, 0, 1) × (1, 1, 0) = (−1, 1, 1): −x + y + z = 0.

Problem 6: Eigenvalues with a parameter and an eigenbasis

Main problem: eigenvalues, eigenbasis and change of basis · Related: Chapter 7

The problem

G = 3a0220005. (a) For which a are the eigenvalues 4, 1 and 5? (b) Give an eigenbasis D. (c) Give the change of basis matrices between the standard basis and D. (d) Represent G with respect to D.

Method

  1. Expand det(G − λI) along the third row or column.
  2. Solve (G − λI)v = 0 for each eigenvalue.
  3. The matrix with the eigenvectors as columns converts D-coordinates to standard ones; its inverse goes back.

Full solution

Worked example

Solution

det(G − λI) = (5 − λ)[(3 − λ)(2 − λ) − 2a] = (5 − λ)(λ2 − 5λ + 6 − 2a).

1

Eigenvalues

5, and the roots of λ2 − 5λ + 6 − 2a; their sum is always 5, their product must be 4 · 1 = 4, so 6 − 2a = 4 and a = 1
2

Eigenvectors

λ = 4: (1, 1, 0); λ = 1: (1, −2, 0); λ = 5: (0, 0, 1)
3

From D to standard

P = 1101−20001
4

From standard to D

P−1 = 2/31/301/3−1/30001
5

G in the basis D

P−1GP = 400010005
Answer

Three distinct eigenvalues, so the eigenvectors form a basis and G is diagonal in it.

Think further

  • What happens for a = −1/8? Is G still diagonalisable?
  • Use the result to write G10 without multiplying ten times.
Common trapThe order of the columns of P must match the order of the eigenvalues on the diagonal.
Try it

Practice question

Diagonalise A = [[2, 1], [1, 2]] and compute A5.

Show the worked answer
  • Eigenvalues 3 with (1, 1) and 1 with (1, −1).
  • P = [[1, 1], [1, −1]], D = diag(3, 1), P−1 = (1/2)[[1, 1], [1, −1]].
  • A5 = P diag(243, 1) P−1 = [[122, 121], [121, 122]].

Problem 7: Find and classify all critical points

Main problem: unconstrained optimisation · Related: Chapter 9

The problem

Find and classify all critical points of f(x, y) = x3 − 3x + y3 − 12y.

Method

  1. Set fx = 0 and fy = 0 and find every solution.
  2. Compute the second partials once, as functions.
  3. Evaluate D = fxxfyy − fxy2 at each point.

Full solution

Worked example

Four points

fx = 3x2 − 3 and fy = 3y2 − 12.

1

Critical points

x = ±1 and y = ±2: (1, 2), (1, −2), (−1, 2), (−1, −2)
2

Second partials

fxx = 6x, fyy = 6y, fxy = 0, so D = 36xy
3

(1, 2)

D = 72 > 0, fxx = 6 > 0: local minimum, f = −18
4

(−1, −2)

D = 72 > 0, fxx = −6 < 0: local maximum, f = 18
5

(1, −2) and (−1, 2)

D = −72 < 0: saddle points
Answer

One minimum, one maximum and two saddle points.

Think further

  • Are the minimum and maximum global? Look at f along the x-axis for large |x|.
  • Check the result with the critical point finder lab.
Common trapx2 = 1 has two solutions; dropping x = −1 loses half of the points.
Try it

Practice question

Find and classify the critical points of f(x, y) = x2 + xy + y2 − 3x + 3y.

Show the worked answer
  • 2x + y − 3 = 0 and x + 2y + 3 = 0 give (3, −3).
  • fxx = 2, fyy = 2, fxy = 1: D = 3 > 0, fxx > 0.
  • Local minimum with f(3, −3) = −9.

Problem 8: Revenue under a marketing budget

Main problem: Lagrange in an economic setting · Related: Chapter 9

The problem

A firm launches a product with a marketing budget of 4000. A social media campaign costs 40 and a television spot 200, so 40c + 200t = 4000. Expected revenue is R(c, t) = 100 c0.6 t0.4. Find the budget split that maximises revenue, and interpret λ.

Method

  1. Write L = R − λ(40c + 200t − 4000).
  2. Divide Lc = 0 by Lt = 0 to remove λ.
  3. Substitute into the budget line.

Full solution

Worked example

Solving the Lagrange conditions

Rc = 0.6R/c and Rt = 0.4R/t.

1

Conditions

0.6R/c = 40λ and 0.4R/t = 200λ
2

Divide

(0.6/0.4)(t/c) = 40/200, so 40c = 1.5 · 200t: spending on c is 1.5 times spending on t
3

Budget

60% of 4000 = 2400 on campaigns (c = 60) and 1600 on TV (t = 8)
4

Revenue

R = 100 · 600.6 · 80.4 ≈ 2680
5

Multiplier

λ = 0.6R/(40c) ≈ 0.67
Answer

Run 60 campaigns and 8 TV spots. One extra unit of budget raises maximal revenue by about 0.67.

Think further

  • Why does the share of the budget equal the exponent for a Cobb-Douglas function?
  • What would the firm do if TV spots became cheaper?
Common trapDo not forget that both exponents sum to 1 here; the share rule a/(a + b) also works when they do not.
Try it

Practice question

Maximise U = 2x1/3y2/3 subject to 2x + 4y = 120 and give λ.

Show the worked answer
  • Share rule: 1/3 of 120 on x, 2/3 on y.
  • x = 40/2 = 20 and y = 80/4 = 20, U = 2 · 20 = 40.
  • λ = Ux/2 = (1/3)(40/20)/2 = 1/3.

Problem 9: A double integral that needs a swap

Main problem: iterated integrals · Related: Chapter 10

The problem

Evaluate ∫01 ∫√y1 √(1 + x3) dx dy.

Method

  1. The inner integral in x has no elementary antiderivative.
  2. Describe the region: 0 ≤ y ≤ 1 and √y ≤ x ≤ 1.
  3. Reverse: 0 ≤ x ≤ 1 and 0 ≤ y ≤ x2.

Full solution

Worked example

Swap and substitute

After the swap the inner integral is trivial.

1

New order

∫01 ∫0x2 √(1 + x3) dy dx = ∫01 x2 √(1 + x3) dx
2

Substitute u = 1 + x3

du = 3x2 dx, so the integral is (1/3)∫12 √u du
3

Evaluate

(1/3)(2/3)(23/2 − 1)
Answer

The value is (2/9)(2√2 − 1) ≈ 0.406.

Think further

  • Sketch the region: which curve bounds it?
  • Confirm the value with the double integral lab.
Common trapy = x2 and x = √y are the same curve; the region lies under it, not above.
Try it

Practice question

Compute ∫∫D 1/(1 + x2 + y2) dA over the unit disc D.

Show the worked answer
  • Polar: ∫02π∫01 r/(1 + r2) dr dθ.
  • Inner: (1/2) ln(1 + r2) from 0 to 1 = (1/2) ln 2.
  • Total π ln 2 ≈ 2.178.

Problem 10: Classify, solve and fit a second-order equation

Main problem: second-order linear ODE · Related: Chapter 11

The problem

Consider y′′ − 2y′ − 8y = 16. (a) Classify the equation. (b) Give the general solution. (c) Find the solution with y(0) = 1 and y′(0) = 2.

Method

  1. Classify on the four axes.
  2. Roots of the characteristic equation give yh.
  3. A constant right side calls for a constant yp.
  4. Fit C1, C2 on the full solution.

Full solution

Worked example

Full solution

Characteristic equation r2 − 2r − 8 = 0.

1

Classification

ODE, order 2, linear, heterogeneous
2

Roots

(r − 4)(r + 2) = 0: yh = C1e4x + C2e−2x
3

Particular solution

yp = A with −8A = 16: A = −2
4

Conditions

C1 + C2 − 2 = 1 and 4C1 − 2C2 = 2
5

Constants

C1 = 4/3, C2 = 5/3
Answer

y = (4/3)e4x + (5/3)e−2x − 2.

Think further

  • Which term dominates for large x?
  • Check the answer in the second-order lab with p = −2, q = −8, r = 16.
Common trapFitting the constants on yh alone, before adding yp, gives wrong constants.
Try it

Practice question

Solve y′′ − 4y′ + 4y = 8 with y(0) = 3 and y′(0) = 0.

Show the worked answer
  • r = 2 is a double root: yh = (C1 + C2x)e2x; yp = 2.
  • y(0) = C1 + 2 = 3: C1 = 1.
  • y′(0) = C2 + 2C1 = 0: C2 = −2. So y = (1 − 2x)e2x + 2.

Problem 11: Saving with continuous deposits

Modelling with a first-order linear ODE · Related: Chapter 11

The problem

A savings account holds 10,000, earns 3% per year compounded continuously, and receives deposits at a steady rate of 6,000 per year. When does it reach 100,000?

Method

  1. Model A′ = rA + d.
  2. The equilibrium is −d/r; the solution is equilibrium plus a multiple of ert.
  3. Solve A(t) = target with a logarithm.

Full solution

Worked example

Model and solve

A′ = 0.03A + 6000 with A(0) = 10,000.

1

Equilibrium

−6000/0.03 = −200,000 (unstable, the account grows away from it)
2

Solution

A(t) = −200,000 + 210,000 e0.03t
3

Target

210,000 e0.03t = 300,000, so e0.03t = 10/7
Answer

t = ln(10/7) / 0.03 ≈ 11.9 years.

Think further

  • How long would it take without deposits?
  • Check the time in the first-order models lab with a negative withdrawal.
Common trapThe deposit enters with a plus sign; a withdrawal with a minus sign. Mixing them up changes growth into depletion.
Try it

Practice question

A price adjusts as p′ = 0.5(D − S) with D = 100 − 2p and S = 20 + 2p and p(0) = 10. Find p(t) and its limit.

Show the worked answer
  • p′ = 0.5(80 − 4p) = 40 − 2p.
  • Equilibrium p* = 20; p(t) = 20 − 10e−2t.
  • p(t) → 20, the price where demand equals supply.

Problem 12: Is this map an isomorphism?

Short question: determinant with a parameter · Related: Chapter 6, Chapter 3

The problem

For which k is the map with matrix H = k101k101k an isomorphism of ℝ3? For k = 0, give a non-zero kernel vector.

Method

  1. Compute det H by Laplace along the first row.
  2. Isomorphism exactly when det H ≠ 0.
  3. For a singular case solve H x = 0.

Full solution

Worked example

Determinant and kernel

Expand along row 1.

1

Determinant

k(k2 − 1) − 1(k − 0) + 0 = k3 − 2k = k(k2 − 2)
2

Singular values

k = 0 or k = ±√2
3

Kernel for k = 0

y = 0 and x + z = 0: (1, 0, −1)
Answer

H is an isomorphism for every k except 0, √2 and −√2.

Think further

  • What is the rank of H for k = 0?
  • Give the inverse of H for k = 1 with the inverse lab.
Common trapA determinant that is a polynomial in k must be set to zero and solved completely; check every root.
Try it

Practice question

For which k is [[1, 1, 1], [1, 2, k], [1, 4, k2]] invertible?

Show the worked answer
  • This is a Vandermonde-type matrix: det = (2 − 1)(k − 1)(k − 2).
  • Singular for k = 1 and k = 2.
  • Invertible for all other k.