---
title: Problem set 3
heading: "Problem set 3: gradients and optimization"
eyebrow: A9 · Problem set 3
type: problems
---

::: hook
These problems use lessons 9 to 12: the gradient and the field it gives, maxima and minima of functions of two variables, and Lagrange multipliers. For each optimization, write down what's being maximized, over what, and under what constraint before differentiating anything.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 2 | 5; b = 1 | 3; x = 1 | 2; y = 1 | -1

## A potential is $V = \given{a}x^2 + \given{b}y^2$ volts ($x$, $y$ in meters).

::: part
answer: -2*a*x
unit: V/m

### What is $E_x = -\partial V/\partial x$ at $(\given{x}, \given{y})$?

::: misses
- [2*a*x] $\mathbf{E} = -\nabla V$: include the minus sign.
- [any] $-2ax$.
:::
:::

::: part
answer: sqrt((2*a*x)^2 + (2*b*y)^2)
unit: V/m
tolerance: 0.5%

### How strong is the field there?

::: misses
- [any] $|\nabla V|$.
:::
:::
:::

::: check
kind: parts
given: x = 1 | 3; y = 2 | 1; u1 = 3 | 1; u2 = 4 | 2

## $f = x^2y$ at $(\given{x}, \given{y})$, in the direction of $(\given{u1}, \given{u2})$ made into a unit vector.

::: part
answer: (2*x*y*u1 + x^2*u2)/sqrt(u1^2 + u2^2)
tolerance: 0.5%

### What is the directional derivative?

::: misses
- [2*x*y*u1 + x^2*u2] Normalize the direction first.
- [any] $\nabla f\cdot\hat{\mathbf{u}}$.
:::
:::

::: part
answer: sqrt((2*x*y)^2 + x^4)
tolerance: 0.5%

### What is the largest directional derivative there?

::: misses
- [any] $|\nabla f|$.
:::
:::
:::

::: check
kind: parts
given: c = 1..15 int

## $f = x^2 + xy + y^2 - \given{c}x$.

::: part
answer: 2*c/3
tolerance: 0.5%

### Where is its critical point? Give $x$.

::: misses
- [any] Solve $2x + y = c$, $x + 2y = 0$.
:::
:::

::: part
answer: -c^2/3
tolerance: 0.5%

### What is the minimum value?

::: misses
- [any] Evaluate at the critical point.
:::
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 1 | 7; c = 2 | 4

## $f = \given{a}x^2 + \given{b}xy + \given{c}y^2$.

::: part
answer: 4*a*c - b^2

### What is $D$ at the origin?

::: misses
- [any] $(2a)(2c) - b^2$.
:::
:::

::: part
answer: 2*sqrt(a*c)
tolerance: 0.5%

### Above what $b$ would the origin become a saddle?

::: misses
- [any] $4ac - b^2 = 0$.
:::
:::
:::

::: check
kind: parts
given: V = 5 | 12; Rs = 50 | 75; Xs = 20 | -40

## A source of {V} V RMS has impedance $\given{Rs} + j\given{Xs}\,\Omega$.

::: part
answer: -Xs
unit: Ω

### What load reactance takes the most power?

::: misses
- [any] The conjugate.
:::
:::

::: part
answer: V^2/(4*Rs)*1000
unit: mW
tolerance: 0.5%

### What is that most power?

::: misses
- [any] $\frac{V^2}{4R_s}$.
:::
:::
:::

::: check
kind: parts
given: V = 10 | 5; Rs = 50; R = 25 | 100

## A {V} V RMS source with a {Rs} Ω resistive impedance drives a resistive load of {R} Ω.

::: part
answer: V^2*R/(R + Rs)^2*1000
unit: mW
tolerance: 0.5%

### What power does the load get?

::: misses
- [any] $\frac{V^2R}{(R + R_s)^2}$.
:::
:::

::: part
answer: 100*4*R*Rs/(R + Rs)^2
tolerance: 0.5%

### What percent of the best possible power is that?

::: misses
- [any] Divide by $\frac{V^2}{4R_s}$.
:::
:::
:::

::: check
kind: parts
given: I = 2 | 5; R1 = 2 | 3; R2 = 6 | 12

## {I} A splits between {R1} Ω and {R2} Ω with the least power.

::: part
answer: I*R2/(R1 + R2)
unit: A
tolerance: 0.5%

### What flows through {R1} Ω?

::: misses
- [any] The current divider.
:::
:::

::: part
answer: 2*I*R1*R2/(R1 + R2)
unit: W/A
tolerance: 0.5%

### What is the Lagrange multiplier $\lambda$, in watts per amp?

::: misses
- [any] $\lambda = 2I_1R_1$, twice the common voltage.
:::
:::
:::

::: check
kind: parts
given: P = 8..100 step 4

## A rectangle has perimeter {P} m.

::: part
answer: P^2/16
unit: m²
tolerance: 0.5%

### What is its largest area, in m²?

::: misses
- [any] A square.
:::
:::

::: part
answer: P/4
unit: m
tolerance: 0.5%

### What is the side length then?

::: misses
- [any] $P/4$.
:::
:::
:::

::: check
kind: parts
given: r = 1..12 int

## On the circle $x^2 + y^2 = \given{r}^2$.

::: part
answer: r*sqrt(2)
tolerance: 0.5%

### What is the largest value of $x + y$?

::: misses
- [any] $x = y = r/\sqrt 2$.
:::
:::

::: part
answer: r^2/2
tolerance: 0.5%

### What is the largest value of $xy$?

::: misses
- [any] Also at $x = y = r/\sqrt 2$.
:::
:::
:::

::: check
kind: parts
given: s = 3..30 int

## Positive $x$, $y$, $z$ with $x + y + z = \given{s}$.

::: part
answer: (s/3)^3
tolerance: 0.5%

### What is the largest $xyz$?

::: misses
- [any] All equal.
:::
:::

::: part
answer: s^2/3
tolerance: 0.5%

### What is the smallest $x^2 + y^2 + z^2$?

::: misses
- [any] All equal, $s/3$ each.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 3; b = 2 | 5

## The potential $V = \given{a}x + \given{b}y$.

::: part
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

### How strong is the field?

::: misses
- [any] $|\nabla V|$.
:::
:::

::: part
answer: atan(b/a)*180/pi + 180
tolerance: 0.5%

### At what angle, in degrees from the $+x$ axis, does $\mathbf{E}$ point?

::: misses
- [atan(b/a)*180/pi] $\mathbf{E} = -\nabla V$ points downhill, opposite the gradient.
- [any] The direction of $(-a, -b)$.
:::
:::
:::

::: check
kind: parts
given: x0 = 1 | 2; y0 = 3 | 1

## Fit a constant $c$ to two measurements, {x0} and {y0}, minimizing $(c - \given{x0})^2 + (c - \given{y0})^2$.

::: part
answer: (x0 + y0)/2
tolerance: 0.5%

### What is the best $c$?

::: misses
- [any] Set the derivative to zero.
:::
:::

::: part
answer: (x0 - y0)^2/2
tolerance: 0.5%

### What is the smallest sum of squares?

::: misses
- [any] Evaluate at the mean.
:::
:::
:::

::: check
kind: parts
given: S = 12..216 step 6

## A closed box has surface area {S} m².

::: part
answer: (S/6)^1.5
unit: m³
tolerance: 0.5%

### What is the largest volume it can hold?

::: misses
- [S/6] That's a face's area; the best box is a cube of side $\sqrt{S/6}$.
- [any] A cube with $6x^2 = S$.
:::
:::
:::

::: check
kind: parts
given: x = 1 | 2; y = 1 | 2

## How fast does $f = x^2y$ change at $(\given{x}, \given{y})$ in the direction $(3, 4)$?

::: part
answer: (2*x*y*3 + x^2*4)/5
tolerance: 0.5%

### What is the directional derivative?

::: misses
- [2*x*y*3 + x^2*4] Use the unit vector.
- [any] $\nabla f\cdot\mathbf u$ with $\nabla f = (2xy, x^2)$.
:::
:::
:::

::: check
kind: parts
given: I = 2 | 6; R1 = 1 | 2; R2 = 3 | 5

## {I} A splits between {R1} Ω and {R2} Ω in parallel so as to dissipate the least power.

::: part
answer: I*R2/(R1 + R2)
unit: A
tolerance: 0.5%

### How much flows in the {R1} Ω resistor?

::: misses
- [I*R1/(R1 + R2)] More current takes the smaller resistance.
- [any] Lagrange: $R_1i_1 = R_2i_2$ with $i_1 + i_2 = I$.
:::
:::

::: part
answer: I^2*R1*R2/(R1 + R2)
unit: W
tolerance: 0.5%

### What is the power?

::: misses
- [any] $I^2$ times the parallel resistance.
:::
:::
:::
:::
