**This is an old revision of the document!**

# Differentials

## Prerequisites

Students should be able to:

- Determine an ordinary derivative from a symbolic expression.
- Hold variables constant when finding a derivative.
- Sketch graphs and identify points and changes between points on those graphs.

## In-class Content

- QUIZ/Derivatives pretest (10 min)
- Differentials of 1D Functions (Lec - 20 min)
- Total Differentials on a Surface (SGA - 10 min)
- Evaluating Total Differentials (SGA - 10 min)

- New Surfaces activity - Covariation in Thermal Systems (SGA - 10 min)

## Homework for Energy and Entropy

- (mbZapWithD)
*Find the differential of special functions.*Find the differential of each of the following expressions, ie. zap each of the following with $d$:

$$f=3x-5z^2+2xy$$

$$g=\sin^2(\omega t)$$

$$h=\frac{\mu B}{k_B T}$$

$$j=\exp\left(\frac{\mu B}{k_B T}\right)$$

$$k=\ln\left(e^{\frac{\mu B}{k_B T}} +e^{-\frac{\mu B}{k_B T}}\right)$$

- (mbDifferentials)
*Finding the differential abstractly.*Find the differential of $R$ where\ldots

$R(B,C) = B^2 + C^2$

$R(B,C) = BC$

$R(B,C) = e^{B^2+C^2}$

$R(B,C) = e^{S(B,C)}$

$R(B,C) = ST$, where $S = S(B,C)$ and $T = T(B,C)$

- (mbDerivVSDiff)
*Find the differential of special functions.*Consider $V=-A\cos(kx)$, where $A$ is a constant with dimensions of electrostatic potential.

Find $dV$ and $\frac{dV}{dx}$. Discuss the differences and similarities between the two.

What are the dimensions of $k$, $V$, $dx$, $dV$, and $\frac{dV}{dx}$?

- (mbMathematicaContours)
*Plot contours, Change of Variable.*On this problem, you will use Mathematica to graph and interpret some functions following the steps below. Mathematica can be found in the computers on campus, or you can download a student license for free, or even use online tools like sandbox.open.wolframcloud.com. Please include both your graphs and your source code to make grading easier!

Create a contour plot of the function $G = A^4 + B^2$. Play around with the options until you have a graph that has all of the following features:

The axes are labeled. The contours are numbered. The plot is titled. There are 8 contours. The colored shading on the contours is different from the default.

Describe how your contour plot changes if you modify the plot range (

*i.e.,*zooming in or out)?Suppose that $5A = 4U + 3V$ and $5B = 4V - 3U$.

Make a contour plot of $G$ in terms of the new variables $U$ and $V$. Label and present your new graph as described above.

Make a contour plot of $G$ in terms of the variables $A$ and $V$. Label and present your new graph as described above.

Explain why all three of the contour plots you have made are valid representations of $G$. What is different about the three graphs?

- (CoffeeAndBagels)
*A thermo-like system. Requires Clairaut's theorem.*\newcommand\juice{\ensuremath{\mathcal{O}}} \newcommand\cocoa{\ensuremath{\mathcal{C}}} \newcommand\priceorange{\ensuremath{\mathcal{P_O}}} \newcommand\pricecocoa{\ensuremath{\mathcal{P_C}}}

In economics, the term

*utility*is roughly related to overall happiness. Many things affect your happiness, including the amount of money you have and the amount of coffee you drink. We cannot directly measure your happiness, but we*can*measure how much money you are willing to give up in order to obtain coffee or bagels. If we assume you choose wisely, we can thus determine that your happiness increases when you decrease your amount of money by that amount in exchange for increasing your coffee consumption. Thus money is a (poor) measure of happiness or utility.Money is also a nice quantity because it is conserved—just like energy! You may gain or lose money, but you always do so by a transaction. (There are some exceptions to the conservation of money, but they involve either the Fed, counterfeiters, or destruction of cash money, and we will ignore those issues.)

In this problem, we will assume that you have bought all the coffee and bagels you want (and no more), so that your happiness has been maximized. Thus you are in equilibrium with the coffee shop. We will assume further that you remain in equilibrium with the coffee shop at all times, and that you can sell coffee and bagels back to the coffee shop at cost.\footnote{Yes, this is ridiculous. It would be slightly less ridiculous if we were talking about nations and commodities, but also far less humorous.}

Thus your savings $S$ can be considered to be a function of your bagels $B$ and coffee $C$. In this problem we will also discuss the prices $P_B$ and $P_C$, which you may

*not*assume are independent of $B$ and $C$. It may help to imagine that you haveThe prices of bagels and coffee $P_B$ and $P_C$ have derivative relationships between your savings and the quantity of coffee and bagels that you have. What are the units of these prices? What is the mathematical definition of $P_C$ and $P_B$?

Write down the total differential of your savings, in terms of $B$, $C$, $P_B$ and $P_C$.

Use the equality of mixed partial derivatives (Clairut's theorem) to find a relationship between $P_B$, $P_C$, $B$ and $C$. Write this relationship mathematically, and also describe in words what it means.

Solve for the total differential of your net worth. Once again use Clairut's theorem considering second derivatives of $W$ to find a different partial derivative relationship between $P_B$, $P_C$, $B$ and $C$.