## Second Midterm-Practice test

You know the drill: work these problems and let me know if you have any trouble. I will try to answer *some* questions until Monday evening (Oct 10). This is a good opportunity to compare notes and work with other students. Enjoy!

- Find three positive numbers whose sum is 12 and the sum of whose squares is as small as possible.
- The base of an aquarium with volume 9,000cm
^{3}is made of slate and the sides are made of glass. If slate costs five times as much as glass (per square centimeter), find the dimensions of the aquarium that minimizes the cost of the materials. - If where and show that
- If where and show that
- Suppose that over a certain region of space the electrical potential is given by
- Find the rate of change of the potential at the point in the direction of the vector
- In which direction does change most rapidly at
- What is the maximum rate of change at

- Find the directional derivative of at in the direction of
- Find the local maximum and minimum values and saddle point of the function
- Find the local maximum and minimum values and saddle point of the function in the square
- Find the absolute maximum and minimum values of in the set
- Find and sketch the domain of the following functions
- Find the following limits if they exist, or show that they do not exist:
- Find all the second partial derivatives of
- Verify that the function is a solution of the three-dimensional Laplace equation
- Find an equation of the tangent plane to the surface at the point
- Use differentials to estimate the amount of tin in a closed tin can with diameter 8cm and height 12cm if the tin is 0.04cm thick.
- if and changes from to compare the values of and
- Four positive numbers, each less than 50, are rounded to the first decimal place and then multiplied together. Use differentials to estimate the maximum possible error in the computed product that might result from the rounding.

### Leave a Reply Cancel reply

### We have moved!

On November 2014, I migrated this blog to blancosilva.github.io. Please update your bookmarks and RSS feeds accordingly.

### In the news:

### Recent Posts

- Migration
- Computational Geometry in Python
- Searching (again!?) for the SS Central America
- Jotto (5-letter Mastermind) in the NAO robot
- Robot stories
- Advanced Problem #18
- Book presentation at the USC Python Users Group
- Areas of Mathematics
- More on Lindenmayer Systems
- Some results related to the Feuerbach Point
- An Automatic Geometric Proof
- Sympy should suffice
- A nice application of Fatou’s Lemma
- Have a child, plant a tree, write a book
- Project Euler with Julia
- Seked
- Nezumi San
- Ruthless Thieves Stealing a Roll of Cloth
- Which one is the fake?
- Stones, balances, matrices
- Buy my book!
- Trigonometry
- Naïve Bayes
- Math still not the answer
- Sometimes Math is not the answer
- What if?
- Edge detection: The Convolution Approach
- OpArt
- So you want to be an Applied Mathematician
- Smallest Groups with Two Eyes
- The ultimate metapuzzle
- Where are the powers of two?
- Geolocation
- Boundary operators
- The Cantor Pairing Function
- El País’ weekly challenge
- Math Genealogy Project
- Basic Statistics in sage
- A Homework on the Web System
- Apollonian gaskets and circle inversion fractals
- Toying with basic fractals
- Unusual dice
- Wavelets in sage
- Edge detection: The Scale Space Theory
- Bertrand Paradox
- Voronoi mosaics
- Image Processing with numpy, scipy and matplotlibs in sage
- Super-Resolution Micrograph Reconstruction by Nonlocal-Means Applied to HAADF-STEM
- The Nonlocal-means Algorithm
- The hunt for a Bellman Function.
- Presentation: Hilbert Transform Pairs of Wavelets
- Presentation: The Dual-Tree Complex Wavelet Transform
- Presentation: Curvelets and Approximation Theory
- Poster: Curvelets vs. Wavelets (Mathematical Models of Natural Images)
- Wavelet Coefficients
- Modeling the Impact of Ebola and Bushmeat Hunting on Western Lowland Gorillas
- Triangulations
- Mechanical Geometry Theorem Proving

### Pages

- About me
- Books
- Curriculum Vitae
- Research
- Teaching
- Mathematical Imaging
- Introduction to the Theory of Distributions
- An Introduction to Algebraic Topology
- The Basic Practice of Statistics
- MA598R: Measure Theory
- MA122—Fall 2014
- MA141—Fall 2014
- MA142—Summer II 2012
- MA241—Spring 2014
- MA242—Fall 2013
- Past Sections
- MA122—Spring 2012
- MA122—Spring 2013
- Lesson Plan—section 007
- Lesson Plan—section 008
- Review for First part (section 007)
- Review for First part (section 008)
- Review for Second part (section 007)
- Review for Third part (section 007)
- Review for the Second part (section 008)
- Review for the Fourth part (section 007)
- Review for Third and Fourth parts (section 008)

- MA122—Fall 2013
- MA141—Spring 2010
- MA141—Fall 2012
- MA141—Spring 2013
- MA141—Fall 2013
- MA141—Spring 2014
- MA141—Summer 2014
- MA142—Fall 2011
- MA142—Spring 2012
- MA241—Fall 2011
- MA241—Fall 2012
- MA241—Spring 2013
- MA242—Fall 2012
- MA242—Spring 2012
- First Midterm Practice Test
- Second Midterm-Practice Test
- Third Midterm—Practice Test
- Review for the fourth part of the course
- Blake Rollins’ code in Java
- Ronen Rappaport’s project: messing with strings
- Sam Somani’s project: Understanding Black-Scholes
- Christina Papadimitriou’s project: Diffusion and Reaction in Catalysts

- Problem Solving
- Borsuk-Ulam and Fixed Point Theorems
- The Cantor Set
- The Jordan Curve Theorem
- My oldest plays the piano!
- How many hands did Ernie shake?
- A geometric fallacy
- What is the next number?
- Remainders
- Probability and Divisibility by 11
- Convex triangle-square polygons
- Thieves!
- Metapuzzles
- What day of the week?
- Exact Expression
- Chess puzzles
- Points on a plane
- Sequence of right triangles
- Sums of terms from Fibonacci
- Alleys
- Arithmetic Expressions
- Three circles
- Pick a point
- Bertrand Paradox
- Unusual dice
- El País’ weekly challenge
- Project Euler with Julia

- LaTeX

### Categories

aldebaran
algebra
algorithm
analysis
applied mathematics
approximation theory
books
calculus
catalyst
chemical engineering
circumcenter
coding
combinatorics
computational geometry
curvelets
data mining
Delaunay
denoising
differential geometry
edge detection
engineering
Euclidean geometry
fractal
functional analysis
geometry
harmonic analysis
history of math
image
image processing
imdb
Japan
L-system
LaTeX
latitude
Lindenmayer system
linear algebra
longitude
mathematical imaging
mathematics
matplotlibs
Measure Theory
metacritic
movie critics
movies
nonlocal means
numerical analysis
numpy
oxide
pattern recognition
physics
probability
programming
puzzles
python
sage
scanning transmission electron microscopy
scientific computing
scipy
segmentation
signal processing
statistics
stats
STEM
super-resolution
tex
tikz
tomography
topology
triangle
triangulation
trigonometry
Voronoi
voronoi diagram
wavelets
weights

### Archives

- November 2014
- September 2014
- August 2014
- July 2014
- June 2014
- March 2014
- December 2013
- October 2013
- September 2013
- July 2013
- June 2013
- April 2013
- January 2013
- December 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- November 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- February 2011
- January 2011
- December 2010
- May 2010
- April 2010
- September 2008
- September 2007
- August 2007

### @eseprimo

- About to place notes for my upcoming Nonlinear Optimization course online in @overleaf #LaTeX @xkcdComic @SymPy… twitter.com/i/web/status/8… 8 hours ago
- I'm using @overleaf, the free online collaborative LaTeX editor - it's awesome and easy to use! overleaf.com/signup?ref=b35… 10 hours ago
- RT @rgbkrk: Download nteract 0.2.0, install pandas >= v0.20, set `pd.options.display.html.table_schema = True`, display a table, provide fe… 3 days ago
- Just got the #totalsolareclipse glasses that @UofSC issues to all employees. Now, time for some #finalexam… twitter.com/i/web/status/8… 1 week ago
- @jamestanton I think not. Grab a circle, divide in equal six arcs, sub each other arc by a segment. Star-shaped con… twitter.com/i/web/status/8… 1 week ago
- RT @jmitani: 錯視立体で有名な杉原厚吉先生と昼休憩にいろいろ話をさせていただきました。 杉原先生の、鏡に映すと違う立体に見える作品が会場に展示されています。 写真は、4つ並んだハートの断面が、鏡の中ではスペード、ハート、クラブ、ダイヤに見えるというもの。 https… 1 week ago
- RT @UofSC: Wondering what the 🐿 and 🐜 will be up to during #TotalEclipseCAE? So is #UofSC naturalist, Rudy Mancke. sc.edu/eclipse… 1 week ago
- Having the ability to include @xkcdComic style graphs with #tikz (#latex) or with @matplotlib (#Python) in class no… twitter.com/i/web/status/8… 2 weeks ago
- Just posted a photo instagram.com/p/BW5HP5on1NPW… 4 weeks ago
- RT @thecommongreen: The only human, alive or dead, not contained within the frame of this photo is Michael Collins. The ultimate anti-selfi… 1 month ago
- How many different file types? $ find Dropbox/Documents/Research/ -print0 | xargs -0 file -b | LC_ALL='C' sort | LC… twitter.com/i/web/status/8… 1 month ago
- Let's try this again: how many lines of #Python have you written lately? $ find Dropbox/ -iname "*.py" -print0 |… twitter.com/i/web/status/8… 1 month ago
- RT @lineofmargarets: My first week at @UofSC, I was sent to interview a math professor. Gulp. I gave it a go: Tackling the messes https://t… 1 month ago
- $ find Dropbox/ -iname "*.py" -print0 | xargs -0 wc | tail -1 630876 2301324 21962525 total #python #bash #xargs #find #wc #tail 1 month ago
- RT @ArtsSciencesUSC: Mathematics professor Frank Thorne looks for answers to messy problems ow.ly/Hpoo30dGFwf 1 month ago
- Wait. @RAEinforma accepting #iros cause nbdy uses correct expr? This is like accepting $(fg)'=f'g'$ #calculus… twitter.com/i/web/status/8… 1 month ago
- RT @doctorow: Free on the Internet Archive: 255 issues of Galaxy Magazines, 1950-1976 boingboing.net/2017/07/16/emb… https://t.co/jlspVVfDpf 1 month ago
- RT @escabellat: Things are getting a little tense https://t.co/EjewHe5Gsx 1 month ago
- RT @Sopas: Spain is different doi.org/10.1016/j.meas… @CientificoenEsp https://t.co/1VCwf7pqT0 1 month ago
- RT @emmavaast: Really cool! Algorithm generates optimal origami folding pattern to produce any 3-D structure buff.ly/2sNRJmX https:… 1 month ago

### Math updates on arXiv.org

- Portfolio Optimization with Entropic Value-at-Risk. (arXiv:1708.05713v1 [q-fin.PM])
- Global analysis of an infection age SEI model with a large class of nonlinear incidence rates. (arXiv:1708.05726v1 [math.DS])
- Some nilpotence theorems for Chow motives. (arXiv:1708.05731v1 [math.AG])
- Geometry Of The Expected Value Set And The Set-Valued Sample Mean Process. (arXiv:1708.05735v1 [math.PR])
- Auxiliary Space Multigrid Method Based on Additive Schur Complement Approximation for Graph Laplacian. (arXiv:1708.05738v1 [math.NA])
- Dynamic Connectivity Game for Adversarial Internet of Battlefield Things Systems. (arXiv:1708.05741v1 [cs.IT])
- Universal Series for Hilbert Schemes and Strange Duality. (arXiv:1708.05743v1 [math.AG])
- Universism and Extensions of V. (arXiv:1708.05751v1 [math.LO])
- Nodal intersections and Geometric Control. (arXiv:1708.05754v1 [math.AP])
- Zero Entropy Interval Maps And MMLS-MMA Property. (arXiv:1708.05755v1 [math.DS])

### Computational Geometry updates on arXiv.org

- Computer-aided position planning of miniplates to treat facial bone defects. (arXiv:1708.05711v1 [cs.CV])
- Minimum Hidden Guarding of Histogram Polygons. (arXiv:1708.05815v1 [cs.CG])
- Balanced partitions of 3-colored geometric sets in the plane. (arXiv:1708.06062v1 [cs.CG])
- Helly Numbers of Polyominoes. (arXiv:1708.06063v1 [cs.CG])
- Geodesic Order Types. (arXiv:1708.06064v1 [cs.CG])
- 3D Visibility Representations of 1-planar Graphs. (arXiv:1708.06196v1 [cs.CG])
- Algorithms for Covering Multiple Barriers. (arXiv:1704.06870v2 [cs.CG] UPDATED)

### sagemath

- An error has occurred; the feed is probably down. Try again later.

I need help with number 3 and number 4. How do you get the second partials with the s and t variables?

Look at example 7 in page 905

Hey, Nate. For number 4 this is what did:

The partial derivative of z with respect to s= the partial derivative of z with respect to x times the partial derivative of x with repsect to s plus the partial derviative of z with respect to y times the partial derivative of y with respect to s. The partial derivative of x with respect to s = 1, and the partial derivative of y with respect to s =1. Therefore, the partial derivative of z with repsect to s = the partial dervative of z with respect to x + the partial derivative of z with respect to y. Next, the partial derivative of z with respect to t =the partial derivative of z with repsect to x time the partial derivative of x with repsect to t plus the partial derivative of z with respect to y times the partial derivative of y with respect to t. The partial derivative of x with repsect to t equals 1 and the partial derivative of y with repsect to t= -1. Thus, the partial derivative of z with respect to t = the partial derivative of z with respect to x – the partial derivitive of z with repsect to y. Therefore the partial derivative of z with respect to s times the partial derivative of t with respect to t= (the partial derivative of z with respect to x + the partial derivative of z with repsect to y) times (the partial derivative of z with respect to x – the partial derivative of z with repsect to y). When you foil it, you get (the partial derivative of z with respect to x)^2 – (the partial derivative of z with respect to y)^2. Hence, you have shown what the question wants you to show.

p.s. sorry i had to write everything out in words, but i have no clue how to type it to make it look nice.

Lauretta, thanks a lot for the help. Something that might make solutions easier to read is using for example Maple’s notation instead of words. Something like “diff(f,x,x)” is easier to interpret, for example.

Y’all are doing a good job, keep it up!

Hello. For number one I got x=4, y=4, and z=4, which I think is correct. Is that correct? Also, I used the Lagrange method. How would you go about solving the problem if it said that the sum of the squares was a large as possible?

Did you take into account all the different constraints?

With only the first constraint you may apply the method of Lagrange multipliers. Note how it gave you only one solution for this particular problem. This is very significative, right? It means that, with only one of the constraints of this problem, there is only one critical point that satisfies the solution. This point might be either a max or a min—did you check that it is a min? (it is)

It also means that (with only one constraint) there is no max: you can find three numbers that add up to 12 and the sum of whose squares is as big as you want.

We need to use the other constraints of the problem: if all of the variables are to be non-negative, then the maximum is attained at or

We did in class a problem where the method of Lagrange multipliers gave us four critical points: two were min and two were max. If the method gives you only one, then you only have one kind.

Good question!

Also, in number two we are assuming the aquarium is in the shape of a rectangular prism, correct?

Yes

For #2, if x and y represent the dimension of the base of the aquarium and z represents the height of the aquarium, I got that x= (3600)^(1/3), y=(3600)^(1/3), and z= (5/2)(3600)^(1/3). Are those the correct dimensions?

For #2 I’m having problems with solving the system of equations. My constraint function is g(x,y,z) = xyz – 9000 and my function to minimize is f(x,y,z) = 2xz + 2yz + 5xy

Are these correct functions to start with? The reason I ask is that I get some crazy system of equations that is really difficult to solve. For example, my first equation is yz / (2z + 5y) = lamda. The other three look the same. I’m having trouble solving for x, y, and z with these equations.

It looks good, except that it should be, for example the first equation, (it looks like you placed the lambda in the wrong side of the equation). If you consider now the first two equations and equal the lambdas, you should get (after simplifying) something like Go from there.

Aaah, you are right. I switched my two gradient vectors. Thanks!

I got the exact same answer…

For #5, I got

1) 32/(3^(1/3))

2)

3) 1624^(1/2)

Are those answers correct?

For this one I actually got

1) 50 / 3^(1/2)

2)

3) 2164^(1/2)

Hah, I think putting vectors in angle brackets is making the blog think that we’re using html tags… Anyway, for part 2 my vector is

(38, 24, 12)

I got

1) 32/(3^(1/2))

2) <38,6,12

3) 1624^(1/2)

Also, is there an answer key anywhere so I don’t have to keep asking you if my answers are right?

Nope. I want y’all to obtain the correct answers through “networking.” It is part of the learning process. I will only offer hints in the right direction.

Is the answer to #6 2/5 ?

That’s what I got.

When you are finding local maxima and minima and saddle points, what do you do if the second partial derivative of the function with respect to x twice of a critical point = 0?

That’s a good question. If then most probably your Hessian is negative (substitute in the formula to realize this fact). This means that you have a saddle point.

The other possibility is that the Hessian is zero, and you have no means to decide the kind of critical point with this method. We use then other methods.

For number 8 I found 11 critical points. Am I on the right track?

There are many critical points, yes. Which ones did you find?

Yeah, I actually found 13 critical points. I got

(pi/2, pi/2) (pi/2, -pi/2)

(-pi/2, pi/2) (-pi/2, -pi/2)

(pi, pi) (pi, -pi) (pi, 0)

(-pi, pi) (-pi, -pi) (-pi, 0)

(0, pi) (0, -pi) (0, 0)

for number 5, what exactly is it asking in part 2? im kind of confused

Guys…i have a bunch of problems…i cannot figure this out…the second partials on numbers 3 and 4…i also dont understand d^2x/dxdy or d^2y/dydx…i need some major help

On number 9, how do we find the boundary given by x^2+ y^2 ≤ 3? I got two of the boundaries since we can say that the max y value will happen when x is 0 and the max x value will happen when y is 0, so our two boundaries are (0,0) to (root(3), 0) and (0,0) to (0, root(3)), however since the last boundary occurs on a curve and not a straight line, how do we account for this?

Also, when we find critical points where all points of the form (0, a) are critical points and the Hessian comes out to 0 such as in number 7, how do we conclude this? If you look at the function for number 7 you can see that the points (0, a) are minima, but they all occur in a straight line, so are they still local minima or are they not critical points at all?

Good questions too!

About the first one: That part of the boundary is a piece of a circle, so you can parametrize it as You just have to find what values of give you that piece of the circle. Go from there.

About the second part: good job at realizing that the points of the form are indeed critical points. Since the second derivative test doesn’t give you information, we need to do something different. This one is specially tricky. Some of the points are going to be maxima, and some others are going to be minima! Graph the function (with WolframAlpha, or Maple or whatever) to realize it, and see how you can prove it algebraically.

For #7 I keep getting that y(x^2) = 0. Wouldn’t this yield an infinite number of critical points when either x, y, or both are 0?

Remember to combine the “zeros” with both equations. The first equation will give you three possibilities (something like or . The second equation will give you some other possibilities… but then you have to combine them all: (1) the first possibility from the first equation, with the first possibility of the second equation; (2) the first from the first, with the second of the second; (3) first from first, third from second; etc.

Note that at most, you will have to make eight different combinations, since the “degrees” of your expressions are 4 and 4.

Are both of the limits in #11 DNE?

I got zero for the first limit and DNE for the second limit.

Would the last problem be equal to 50^4 – 49.95^4 ?

In number 17, I’m not sure how to set up the problem. Since there are constraints, it seems like it should be a LaGrange Multipliers problem but I don’t see anyway to relate all of the variables in a single equation. Also, for the equation that we need to maximize, I set it up as

F(w,x,y,z) = (w+0.05)(x+0.05)(y+0.05)(z+0.05) – wxyz

I did this because 0.05 is the maximum error per number that could be caused by rounding to the first decimal place but I’m not sure if this is correct.

You’re going about number 17 the wrong way. You use differentials to solve this one.

Your equation is f(w,x,y,z) = wxyz So the first thing to do is calculate the differential. The differential is

df = xyz(dw) + wyz(dx) + wxz(dy) + wxy(dz)

When you’re using differentials to estimate df you simply use dx = delta(x), etc…

The tricky part to this problem is what to do with the actually parameters he gave you. You’re definitely right about the maximum error. It would be 0.05. But what about the “less than 50” part? Well… the question just asks what the maximum error could be…

Think about it this way… Four numbers multiplied together… would your error be very big if, say, all the numbers were really small (like less than 1)? No, you’d have a really small error. The difference between multiplying 0.90^4 and 0.95^4 is not that big… So… what about if the four numbers were really big? The difference between 49.90^4 and 49.95^4 is pretty significant. So if we want to find the MAXIMUM POSSIBLE ERROR, then we should consider a number as close to 50 as we can get.

So then you just take your differential equation (above) and substitute in w = x = y = z = 50 and dw = dx = dy = dz = 0.05 .

The answer I got was 25000 as the maximum possible error.

Thanks, that makes a lot more sense! I got the same answer once I worked it out.

Also, for number 11 you said that you got 0 for the first limit and DNE for the second limit.

I got DNE for both of them. I plugged in the polar coordinates and got 0/[4*sin^2(theta)]. So in most cases the limit is 0, however in the direction of theta = 0, pi, -pi and so forth wouldn’t you get 0/0? Maybe I interpreted this wrong but I just wanted to see what your thoughts were on it.

Yeah, you’re exactly right. I totally forgot to take into account when sin^2theta was zero. Good catch.

Can anyone help me with number 13?

Hey Nate, I figured this one out earlier after I left the tutoring center. The best way to work this one out is to make sure you always keep the (x^2 + y^2 + z^2)^(-1/2) and anything similar to it as just a negative exponent and not try to move it around.

For starters, just look at the partial of u for x. You should get something like this:

(-1/2) * (x^2 + y^2 + z^2)^(-3/2) * (2x)

Now take the second partial of u for x of this using the product rule. Leave the (x^2 + y^2 + z^2) stuff alone for the moment but simplify the rest of it and you should get something like this:

3x^2 * (x^2 + y^2 + z^2)^(-5/2) – (x^2 + y^2 + z^2)^(-3/2)

Notice at this point that all of the second partials will look exactly like this. The only difference is that the second differential for y will have 3y^2 at the beginning instead of 3x^2 and the z will have 3z^2. Put all three of these second partials together and you will notice that each of the parts of this whole equation has (x^2 + y^2 + z^2) to some sort of fractional exponent. Since the base is the same for all of them, you can go ahead and pull out (x^2 + y^2 + z^2)^(-5/2). What this means for the ones that are raised to the (-3/2) is that they are now raised to the 1st power since if you were to multiply them out and add exponents then (-5/2) + 1 = (-3/2). So now you have two sets of equations multiplied by each other and only one of them needs to equal 0, so you can ignore (x^2 + y^2 + z^2)^(-5/2). Now if you combine everything together in the other equation and simplify as much as possible you should be able to cancel out the rest of the equation.