Salta al contenuto
Note per Studenti Calculus 2 - Mock Exam 1 Report

Calculus 2 - Mock Exam 1

Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.

In questa pagina 5

Mock exam built on the model of the written papers of the equivalent Italian-language course (Analisi Matematica 2, Information Engineering, UniPD); it is not an official paper. The real papers have three or four exercises of 6 to 10 points each, three hours of time, no books, notes, phones or calculators, and every statement must be justified. Here: four exercises, 8 + 8 + 7 + 7 = 30 points, 3 hours. How to use it: work under exam conditions, writing every step and naming every theorem you use; only afterwards open the result and, if something does not match, the full solution.

Exercise 1 (points 8)

Let f(x,y)=x3+y3−3x−3y,f(x,y)=x^3+y^3-3x-3y, and let TT be the triangle with vertices (−2,−2)(-2,-2), (2,−2)(2,-2) and (−2,2)(-2,2), boundary included, that is T={(x,y)∈R2: x≥−2, y≥−2, x+y≤0}.T=\{(x,y)\in\mathbb{R}^2:\ x\ge -2,\ y\ge -2,\ x+y\le 0\}.

a) Find the critical points of ff in R2\mathbb{R}^2 and determine their nature using the Hessian matrix. (3 points)

b) Does ff have an absolute maximum or minimum in R2\mathbb{R}^2? Justify. (1 point)

c) Find the absolute maximum and minimum of ff on TT and the points where they are attained. (4 points)

Show the result

a) Critical points: (1,1)(1,1), (−1,−1)(-1,-1), (1,−1)(1,-1), (−1,1)(-1,1). The point (1,1)(1,1) is a local minimum (f=−4f=-4), (−1,−1)(-1,-1) is a local maximum (f=4f=4), (1,−1)(1,-1) and (−1,1)(-1,1) are saddle points (f=0f=0).

b) No absolute maximum and no absolute minimum in R2\mathbb{R}^2: lim⁡x→±∞f(x,0)=±∞\lim_{x\to\pm\infty}f(x,0)=\pm\infty.

c) Absolute maximum on TT: 44, attained only at (−1,−1)(-1,-1). Absolute minimum on TT: −4-4, attained at the three points (−2,−2)(-2,-2), (1,−2)(1,-2), (−2,1)(-2,1).

Show the full solution

a) Critical points and Hessian. The function is a polynomial, hence of class C2C^2 on R2\mathbb{R}^2, and every extremum is at a point where the gradient vanishes (see Free Extrema in Several VariablesIf f is differentiable and has a relative extremum at an interior point x0, then grad f(x0) = 0 (Fermat): interior extrema are found among the critical points. If f is C^2, at a critical point: Hessian positive definite gives a minimum, negative definite a maximum, indefinite a saddle, semidefinite means the test is inconclusive and one studies the sign of f(x) - f(x0). In two variables: det H > 0 and f_xx > 0 minimum, det H > 0 and f_xx < 0 maximum, det H < 0 saddle.Free Extrema in Several Variables →): ∇f=(3x2−3, 3y2−3)=(0,0)  ⟺  x2=1 and y2=1.\nabla f=(3x^2-3,\ 3y^2-3)=(0,0)\iff x^2=1\ \text{and}\ y^2=1 . The two equations are independent (the first contains only xx, the second only yy), so every combination of signs is a solution: four critical points (±1,±1)(\pm1,\pm1). A common mistake is to stop at (1,1)(1,1) and (−1,−1)(-1,-1).

The Hessian matrix (Hessian Matrix and Taylor FormulaThe second derivatives form the Hessian matrix H_f, symmetric by Schwarz's theorem (continuous mixed derivatives). Second-order Taylor: f(x0 + h) = f(x0) + grad f(x0)·h + (1/2) h^T H_f(x0) h + o(‖h‖^2). A symmetric matrix is positive or negative definite, semidefinite or indefinite according to the sign of the quadratic form h^T A h, recognized via eigenvalues or leading principal minors (in 2x2: determinant and first entry).Hessian Matrix and Taylor Formula →) is Hf(x,y)=(6x006y)H_f(x,y)=\begin{pmatrix} 6x & 0\\ 0 & 6y\end{pmatrix} (the mixed derivatives fxy=fyx=0f_{xy}=f_{yx}=0). We evaluate it at each point and apply the second-order conditions: if det⁡H>0\det H>0 the point is an extremum, a minimum when fxx>0f_{xx}>0 and a maximum when fxx<0f_{xx}<0; if det⁡H<0\det H<0 it is a saddle.

point HfH_f det⁡Hf\det H_f fxxf_{xx} nature ff
(1,1)(1,1) diag⁡(6,6)\operatorname{diag}(6,6) 36>036>0 6>06>0 local minimum 1+1−3−3=−41+1-3-3=-4
(−1,−1)(-1,-1) diag⁡(−6,−6)\operatorname{diag}(-6,-6) 36>036>0 −6<0-6<0 local maximum −1−1+3+3=4-1-1+3+3=4
(1,−1)(1,-1) diag⁡(6,−6)\operatorname{diag}(6,-6) −36<0-36<0 66 saddle 1−1−3+3=01-1-3+3=0
(−1,1)(-1,1) diag⁡(−6,6)\operatorname{diag}(-6,6) −36<0-36<0 −6-6 saddle −1+1+3−3=0-1+1+3-3=0

b) Global behaviour. Along the xx-axis f(x,0)=x3−3xf(x,0)=x^3-3x, which tends to +∞+\infty for x→+∞x\to+\infty and to −∞-\infty for x→−∞x\to-\infty. So ff is unbounded above and below: it has neither an absolute maximum nor an absolute minimum on R2\mathbb{R}^2. In particular the local maximum f(−1,−1)=4f(-1,-1)=4 is not a global one (for instance f(3,0)=18f(3,0)=18), and the local minimum −4-4 is not global either (f(−3,0)=−18f(-3,0)=-18). Local does not mean global.

c) Absolute extrema on TT. The set TT is closed (it is defined by three non-strict inequalities between continuous functions) and bounded (−2≤x≤2-2\le x\le 2 and −2≤y≤2-2\le y\le 2, because x≤−y≤2x\le -y\le 2 and y≤−x≤2y\le -x\le 2). It is therefore compact and ff is continuous, so by Weierstrass' theorem the absolute maximum and minimum exist; to find them we follow the method of Absolute Extrema on Compact SetsWeierstrass theorem: a continuous function on a compact (closed and bounded) subset of R^n has an absolute maximum and minimum. They are found by comparing the values at the interior critical points, at the critical points of the restrictions to the (parametrized) pieces of the boundary, and at the vertices. On an unbounded closed set, if f tends to +infinity at infinity the minimum exists and the maximum does not.Absolute Extrema on Compact Sets →: interior critical points, then the restriction of ff to each side, then the vertices, then compare all values.

Grafico interattivo: The triangle T with vertices (-2,-2), (2,-2), (-2,2) and the critical points of f: (-1,-1) is inside (f = 4, maximum), (1,-1) and (-1,1) lie on the hypotenuse x + y = 0, (1,1) is outside T

Interior. The interior of TT is {x>−2, y>−2, x+y<0}\{x>-2,\ y>-2,\ x+y<0\}. Of the four critical points, (1,1)(1,1) is not in TT (since 1+1>01+1>0); (1,−1)(1,-1) and (−1,1)(-1,1) satisfy x+y=0x+y=0, so they are on the hypotenuse, not in the interior; (−1,−1)(-1,-1) has x>−2x>-2, y>−2y>-2, x+y=−2<0x+y=-2<0: it is interior. Value f(−1,−1)=4f(-1,-1)=4.

Side y=−2y=-2, −2≤x≤2-2\le x\le 2. Here f(x,−2)=x3−3x−8+6=x3−3x−2=(x+1)2(x−2)f(x,-2)=x^3-3x-8+6=x^3-3x-2=(x+1)^2(x-2). Call it g(x)g(x): g′(x)=3x2−3=0g'(x)=3x^2-3=0 for x=±1x=\pm1. Candidates: g(−2)=−4g(-2)=-4, g(−1)=0g(-1)=0, g(1)=−4g(1)=-4, g(2)=0g(2)=0. So the points (−2,−2)(-2,-2), (−1,−2)(-1,-2), (1,−2)(1,-2), (2,−2)(2,-2) with values −4,0,−4,0-4,0,-4,0.

Side x=−2x=-2, −2≤y≤2-2\le y\le 2. By the symmetry x↔yx\leftrightarrow y of ff: f(−2,y)=y3−3y−2f(-2,y)=y^3-3y-2, candidates (−2,−2)(-2,-2), (−2,−1)(-2,-1), (−2,1)(-2,1), (−2,2)(-2,2) with values −4,0,−4,0-4,0,-4,0.

Hypotenuse y=−xy=-x, −2≤x≤2-2\le x\le 2. f(x,−x)=x3+(−x)3−3x−3(−x)=0f(x,-x)=x^3+(-x)^3-3x-3(-x)=0: the function is identically zero on this side. Every point has value 00 (the saddles (1,−1)(1,-1), (−1,1)(-1,1) among them), and no further candidate is needed.

Vertices. (−2,−2)→−4(-2,-2)\to-4, (2,−2)→0(2,-2)\to 0, (−2,2)→0(-2,2)\to 0 (already included above).

Comparison. The values found are 44 (interior), and −4-4, 00 on the boundary. Hence:

  • absolute maximum 44 at (−1,−1)(-1,-1) only;
  • absolute minimum −4-4 at (−2,−2)(-2,-2), (1,−2)(1,-2) and (−2,1)(-2,1).

Typical mistakes: forgetting a side (here the hypotenuse is the one that gives only the value 00) or the points where g′=0g'=0 on the sides; including the critical point (1,1)(1,1), which is outside TT; reporting only one minimum point; confusing the local maximum in R2\mathbb{R}^2 with a maximum on TT (here they happen to coincide, but it must be proved with the boundary study).

Exercise 2 (points 8)

Let DD be the set of the points of the plane lying between the circles of centre the origin and radii 11 and 33 (circles included), in the angular sector between the positive xx-axis and the bisector of the first quadrant: D={(x,y)∈R2: 1≤x2+y2≤9,  0≤y≤x}.D=\{(x,y)\in\mathbb{R}^2:\ 1\le x^2+y^2\le 9,\ \ 0\le y\le x\}.

a) Sketch DD, describe it in polar coordinates and compute its area. (2 points)

b) Compute ∬Darctan⁡ ⁣(yx) dx dy\displaystyle\iint_D \arctan\!\Big(\frac yx\Big)\,dx\,dy. (3 points)

c) Compute the centroid (xG,yG)(x_G,y_G) of DD (constant density), and check that it belongs to DD. (3 points)

Show the result

a) In polar coordinates D={1≤ρ≤3, 0≤θ≤π/4}D=\{1\le\rho\le 3,\ 0\le\theta\le\pi/4\}; area =π=\pi.

b) ∬Darctan⁡yx dx dy=π28\displaystyle\iint_D\arctan\frac yx\,dx\,dy=\frac{\pi^2}{8}.

c) xG=1323π≈1.951,yG=13 (2−2)3π≈0.808\displaystyle x_G=\frac{13\sqrt2}{3\pi}\approx 1.951,\qquad y_G=\frac{13\,(2-\sqrt2)}{3\pi}\approx 0.808; the centroid lies on the bisector y=(2−1)xy=(\sqrt2-1)x of the sector and at distance about 2.112.11 from the origin, so it is in DD.

Show the full solution

a) Description and area. The conditions 1≤x2+y2≤91\le x^2+y^2\le 9 mean 1≤ρ≤31\le\rho\le3 (the annulus). The conditions 0≤y≤x0\le y\le x mean: y≥0y\ge0 (upper half-plane) and y≤xy\le x (below the bisector y=xy=x); together they give the angular sector 0≤θ≤π40\le\theta\le\frac\pi4 (note that x≥y≥0x\ge y\ge 0 forces x>0x>0 because ρ≥1\rho\ge1). So DD is a piece of annulus, bounded by two arcs (ρ=1\rho=1 and ρ=3\rho=3) and by two straight segments, on the xx-axis (1≤x≤31\le x\le3) and on the bisector (12≤x≤32\frac1{\sqrt2}\le x\le\frac3{\sqrt2}).

Grafico interattivo: The annulus sector D: 1 <= rho <= 3, 0 <= theta <= pi/4, bounded by the x-axis, the bisector y = x and the circles of radius 1 and 3; the centroid G lies on the line at angle pi/8

By the Change of Variables and Polar CoordinatesIf Phi(u,v) = (x,y) is C1, one-to-one up to zero-area sets and has nonzero Jacobian determinant, then the double integral of f over the image equals the integral of f composed with Phi times the absolute value of the Jacobian determinant over the original domain; in polar coordinates dx dy = r dr dtheta, which suits discs, annuli and sectors.Change of Variables and Polar Coordinates → formula (x=ρcos⁡θx=\rho\cos\theta, y=ρsin⁡θy=\rho\sin\theta, dx dy=ρ dρ dθdx\,dy=\rho\,d\rho\,d\theta) the integral over DD becomes an integral over the rectangle [1,3]×[0,π4][1,3]\times[0,\frac\pi4] in the plane (ρ,θ)(\rho,\theta), so it splits into a product (Double Integrals and Fubini's TheoremThe double integral of a bounded function over a rectangle is defined through lower and upper Darboux sums (for f nonnegative it is the volume under the graph) and is extended to a bounded domain by setting f to zero outside it; for continuous f on a y-simple or x-simple domain Fubini's theorem reduces it to iterated one-variable integrals, and swapping the order can make an integral computable.Double Integrals and Fubini's Theorem →): Area(D)=∫0π/4 ⁣ ⁣∫13ρ dρ dθ=π4⋅[ρ22]13=π4⋅4=π.\text{Area}(D)=\int_0^{\pi/4}\!\!\int_1^3\rho\,d\rho\,d\theta=\frac\pi4\cdot\Big[\frac{\rho^2}{2}\Big]_1^3=\frac\pi4\cdot4=\pi . Check with the elementary formula: a sector of angle α\alpha has area 12αR2\frac12\alpha R^2, so 12⋅π4 (9−1)=π\frac12\cdot\frac\pi4\,(9-1)=\pi. Forgetting the factor ρ\rho of the Jacobian would give π4⋅2=π2\frac\pi4\cdot2=\frac\pi2.

b) The integral. In DD we have x>0x>0 and yx=tan⁡θ\frac yx=\tan\theta with θ∈[0,π4]⊂(−π2,π2)\theta\in[0,\frac\pi4]\subset(-\frac\pi2,\frac\pi2), so arctan⁡yx=θ\arctan\frac yx=\theta (the arctangent returns the angle exactly because θ\theta lies in its range). Then ∬Darctan⁡yx dx dy=∫0π/4θ dθ∫13ρ dρ=12(π4)2⋅4=π232⋅4=π28.\iint_D\arctan\frac yx\,dx\,dy=\int_0^{\pi/4}\theta\,d\theta\int_1^3\rho\,d\rho=\frac12\Big(\frac\pi4\Big)^2\cdot4=\frac{\pi^2}{32}\cdot4=\frac{\pi^2}{8}. In polar coordinates the integrand depends only on θ\theta and the integral becomes a product of two trivial integrals. Do not forget ρ\rho from dx dydx\,dy: without it the second factor would be ∫13dρ=2\int_1^3d\rho=2.

c) Centroid. With constant density, xG=1Area∬Dx dx dyx_G=\frac1{\text{Area}}\iint_Dx\,dx\,dy and yG=1Area∬Dy dx dyy_G=\frac1{\text{Area}}\iint_Dy\,dx\,dy. In polar coordinates the integrand x=ρcos⁡θx=\rho\cos\theta times the Jacobian ρ\rho gives ρ2cos⁡θ\rho^2\cos\theta: ∬Dx dx dy=∫0π/4cos⁡θ dθ∫13ρ2 dρ=sin⁡π4⋅27−13=22⋅263=1323,\iint_Dx\,dx\,dy=\int_0^{\pi/4}\cos\theta\,d\theta\int_1^3\rho^2\,d\rho=\sin\frac\pi4\cdot\frac{27-1}{3}=\frac{\sqrt2}{2}\cdot\frac{26}{3}=\frac{13\sqrt2}{3}, ∬Dy dx dy=∫0π/4sin⁡θ dθ∫13ρ2 dρ=(1−cos⁡π4)⋅263=(1−22)263=13(2−2)3.\iint_Dy\,dx\,dy=\int_0^{\pi/4}\sin\theta\,d\theta\int_1^3\rho^2\,d\rho=\Big(1-\cos\frac\pi4\Big)\cdot\frac{26}{3}=\Big(1-\frac{\sqrt2}{2}\Big)\frac{26}{3}=\frac{13(2-\sqrt2)}{3}. Dividing by the area π\pi: xG=1323π≈1.951,yG=13(2−2)3π≈0.808.x_G=\frac{13\sqrt2}{3\pi}\approx1.951,\qquad y_G=\frac{13(2-\sqrt2)}{3\pi}\approx0.808 . Checks: (i) the ratio yGxG=2−22=2−1=tan⁡π8\frac{y_G}{x_G}=\frac{2-\sqrt2}{\sqrt2}=\sqrt2-1=\tan\frac\pi8, so GG lies on the symmetry axis of the sector (the half-line at angle π8\frac\pi8), as it must; (ii) ρG=xG2+yG2≈2.11∈[1,3]\rho_G=\sqrt{x_G^2+y_G^2}\approx2.11\in[1,3], so G∈DG\in D. A typical mistake is to compute only the integrals and forget to divide by the area, or to take the centroid of the full annulus.

Exercise 3 (points 7)

Consider the differential equation y′′+2y′+5y=8 e−tcos⁡2t,t∈R.y''+2y'+5y=8\,e^{-t}\cos 2t,\qquad t\in\mathbb{R}.

a) Find the general solution of the associated homogeneous equation. (2 points)

b) Find a particular solution of the complete equation and write its general solution. (3 points)

c) Solve the Cauchy problem with y(0)=1y(0)=1, y′(0)=0y'(0)=0, and compute lim⁡t→+∞y(t)\displaystyle\lim_{t\to+\infty}y(t). (2 points)

Show the result

a) y0(t)=e−t (c1cos⁡2t+c2sin⁡2t)y_0(t)=e^{-t}\,(c_1\cos2t+c_2\sin2t), c1,c2∈Rc_1,c_2\in\mathbb{R}.

b) A particular solution is yp(t)=2t e−tsin⁡2ty_p(t)=2t\,e^{-t}\sin2t; general solution y(t)=e−t(c1cos⁡2t+c2sin⁡2t+2tsin⁡2t)y(t)=e^{-t}\big(c_1\cos2t+c_2\sin2t+2t\sin2t\big).

c) y(t)=e−t(cos⁡2t+12sin⁡2t+2tsin⁡2t)y(t)=e^{-t}\Big(\cos2t+\dfrac12\sin2t+2t\sin2t\Big), and lim⁡t→+∞y(t)=0\displaystyle\lim_{t\to+\infty}y(t)=0.

Show the full solution

The equation is linear of the second order with constant coefficients and continuous right-hand side, so the Cauchy problem has a unique solution defined on the whole of R\mathbb{R} (Existence and Uniqueness for the Cauchy ProblemFor y' = f(t, y), y(t0) = y0, Peano's theorem gives local existence when f is continuous (not uniqueness: y' = sqrt|y|), Cauchy-Lipschitz gives local existence and uniqueness when f is also Lipschitz in y (it suffices that f and df/dy are continuous), solutions may blow up in finite time (y' = y^2), global existence holds when f is Lipschitz on the whole strip, and an equation of order n reduces to a first-order system.Existence and Uniqueness for the Cauchy Problem →, Linear Differential Equations and SystemsFor linear systems Y' = A(t)Y + B(t) with continuous coefficients the Cauchy problem has a unique solution on the whole interval, the homogeneous solutions form an n-dimensional space spanned by the columns of a fundamental matrix, constant coefficients are handled with eigenvalues and eigenvectors, the matrix exponential or elimination, and variation of constants gives particular solutions for any continuous forcing term.Linear Differential Equations and Systems →).

a) Homogeneous equation. The characteristic equation λ2+2λ+5=0\lambda^2+2\lambda+5=0 has discriminant 4−20=−164-20=-16, hence λ=−1±2i\lambda=-1\pm2i. With α=−1\alpha=-1, β=2\beta=2 two independent real solutions are y1=e−tcos⁡2ty_1=e^{-t}\cos2t and y2=e−tsin⁡2ty_2=e^{-t}\sin2t, and y0=e−t(c1cos⁡2t+c2sin⁡2t).y_0=e^{-t}(c_1\cos2t+c_2\sin2t).

b) Particular solution. The forcing term 8e−tcos⁡2t8e^{-t}\cos2t is exactly of the form of the homogeneous solutions (resonance): an ansatz e−t(Acos⁡2t+Bsin⁡2t)e^{-t}(A\cos2t+B\sin2t) would be annihilated by the left-hand side and could never give 8e−tcos⁡2t8e^{-t}\cos2t. The method that always works is variation of constants. The Wronskian of y1,y2y_1,y_2 is W=y1y2′−y2y1′=e−2t(cos⁡2t (2cos⁡2t−sin⁡2t)−sin⁡2t (−2sin⁡2t−cos⁡2t))=2e−2t.W=y_1y_2'-y_2y_1'=e^{-2t}\big(\cos2t\,(2\cos2t-\sin2t)-\sin2t\,(-2\sin2t-\cos2t)\big)=2e^{-2t}. Writing f(t)=8e−tcos⁡2tf(t)=8e^{-t}\cos2t, the formulas C1′=−y2fWC_1'=-\frac{y_2f}{W}, C2′=y1fWC_2'=\frac{y_1f}{W} give C1′=−e−tsin⁡2t⋅8e−tcos⁡2t2e−2t=−4sin⁡2tcos⁡2t=−2sin⁡4t,C2′=e−tcos⁡2t⋅8e−tcos⁡2t2e−2t=4cos⁡22t=2+2cos⁡4t.C_1'=-\frac{e^{-t}\sin2t\cdot8e^{-t}\cos2t}{2e^{-2t}}=-4\sin2t\cos2t=-2\sin4t,\qquad C_2'=\frac{e^{-t}\cos2t\cdot8e^{-t}\cos2t}{2e^{-2t}}=4\cos^22t=2+2\cos4t . Primitives (any one will do): C1=12cos⁡4tC_1=\frac12\cos4t, C2=2t+12sin⁡4tC_2=2t+\frac12\sin4t. Therefore yp=e−t[12cos⁡4tcos⁡2t+(2t+12sin⁡4t)sin⁡2t]=e−t[2tsin⁡2t+12cos⁡(4t−2t)]=e−t[2tsin⁡2t+12cos⁡2t],y_p=e^{-t}\Big[\tfrac12\cos4t\cos2t+\Big(2t+\tfrac12\sin4t\Big)\sin2t\Big]=e^{-t}\Big[2t\sin2t+\tfrac12\cos(4t-2t)\Big]=e^{-t}\Big[2t\sin2t+\tfrac12\cos2t\Big], using cos⁡4tcos⁡2t+sin⁡4tsin⁡2t=cos⁡2t\cos4t\cos2t+\sin4t\sin2t=\cos2t. The term 12e−tcos⁡2t\frac12e^{-t}\cos2t solves the homogeneous equation and can be absorbed in c1c_1: so yp=2te−tsin⁡2ty_p=2te^{-t}\sin2t is a particular solution. (Shortcut: since the right-hand side resonates, the correct ansatz is t e−t(Acos⁡2t+Bsin⁡2t)t\,e^{-t}(A\cos2t+B\sin2t); substituting gives −4Asin⁡2t+4Bcos⁡2t=8cos⁡2t-4A\sin2t+4B\cos2t=8\cos2t, that is A=0A=0, B=2B=2, the same result.) The general solution is y(t)=e−t(c1cos⁡2t+c2sin⁡2t+2tsin⁡2t).y(t)=e^{-t}\big(c_1\cos2t+c_2\sin2t+2t\sin2t\big).

c) Cauchy problem. Impose the data on the complete solution, not on y0y_0 alone. First y(0)=c1=1y(0)=c_1=1. For the derivative, y′(t)=−e−t(c1cos⁡2t+c2sin⁡2t+2tsin⁡2t)+e−t(−2c1sin⁡2t+2c2cos⁡2t+2sin⁡2t+4tcos⁡2t),y'(t)=-e^{-t}\big(c_1\cos2t+c_2\sin2t+2t\sin2t\big)+e^{-t}\big(-2c_1\sin2t+2c_2\cos2t+2\sin2t+4t\cos2t\big), so y′(0)=−c1+2c2=0y'(0)=-c_1+2c_2=0, giving c2=12c_2=\frac12. Hence y(t)=e−t(cos⁡2t+12sin⁡2t+2tsin⁡2t).y(t)=e^{-t}\Big(\cos2t+\tfrac12\sin2t+2t\sin2t\Big). Limit: ∣y(t)∣≤e−t(1+12+2∣t∣)→0|y(t)|\le e^{-t}\big(1+\frac12+2|t|\big)\to0 for t→+∞t\to+\infty, because the exponential decay beats the linear growth of tt (lim⁡te−t=0\lim te^{-t}=0). So lim⁡t→+∞y(t)=0\lim_{t\to+\infty}y(t)=0: the resonance makes the amplitude grow like tt inside the envelope e−te^{-t}, which first increases the oscillation but does not prevent the decay. A typical mistake: writing the ansatz without the factor tt and finding 0=8cos⁡2t0=8\cos2t; or imposing y′(0)=0y'(0)=0 only on the homogeneous part.

Exercise 4 (points 7)

Let u(x,y)=ex (xcos⁡y−ysin⁡y),(x,y)∈R2.u(x,y)=e^{x}\,(x\cos y-y\sin y),\qquad (x,y)\in\mathbb{R}^2 .

a) Show that uu is harmonic in R2\mathbb{R}^2. (2 points)

b) Find the harmonic conjugate vv of uu with v(0,0)=0v(0,0)=0 and write the holomorphic function f=u+ivf=u+iv as a function of z=x+iyz=x+iy. (2 points)

c) With ff as in b), compute ∮γ1f(z)z2+1 dzand∮γ2f(z)z2+1 dz,\oint_{\gamma_1}\frac{f(z)}{z^2+1}\,dz\qquad\text{and}\qquad\oint_{\gamma_2}\frac{f(z)}{z^2+1}\,dz, where γ1\gamma_1 is the circle ∣z−i∣=1|z-i|=1 and γ2\gamma_2 is the circle ∣z∣=2|z|=2, both run once counterclockwise. (3 points)

Show the result

a) uxx+uyy=0u_{xx}+u_{yy}=0 in R2\mathbb{R}^2.

b) v(x,y)=ex(xsin⁡y+ycos⁡y)v(x,y)=e^{x}(x\sin y+y\cos y) and f(z)=z ezf(z)=z\,e^{z}.

c) ∮γ1=πi ei=−πsin⁡1+iπcos⁡1\displaystyle\oint_{\gamma_1}=\pi i\,e^{i}=-\pi\sin1+i\pi\cos1, and ∮γ2=2πicos⁡1\displaystyle\oint_{\gamma_2}=2\pi i\cos1.

Show the full solution

a) Harmonicity. A function of class C2C^2 is harmonic if uxx+uyy=0u_{xx}+u_{yy}=0 (Complex Functions and the Cauchy-Riemann EquationsA complex function f = u + iv is complex-differentiable at z0 if the difference quotient has the same limit along every direction; this forces the Cauchy-Riemann equations u_x = v_y, u_y = -v_x (sufficient when the partial derivatives are continuous), holomorphic functions have harmonic real and imaginary parts, and the Jacobian is a rotation-dilation by f'(z0).Complex Functions and the Cauchy-Riemann Equations →). Compute: ux=ex(xcos⁡y−ysin⁡y)+excos⁡y=ex(xcos⁡y−ysin⁡y+cos⁡y),u_x=e^x(x\cos y-y\sin y)+e^x\cos y=e^x(x\cos y-y\sin y+\cos y), uxx=ex(xcos⁡y−ysin⁡y+cos⁡y)+excos⁡y=ex(xcos⁡y−ysin⁡y+2cos⁡y),u_{xx}=e^x(x\cos y-y\sin y+\cos y)+e^x\cos y=e^x(x\cos y-y\sin y+2\cos y), uy=ex(−xsin⁡y−sin⁡y−ycos⁡y),uyy=ex(−xcos⁡y−cos⁡y−cos⁡y+ysin⁡y)=ex(−xcos⁡y+ysin⁡y−2cos⁡y).u_y=e^x(-x\sin y-\sin y-y\cos y),\qquad u_{yy}=e^x(-x\cos y-\cos y-\cos y+y\sin y)=e^x(-x\cos y+y\sin y-2\cos y). Summing, uxx+uyy=0u_{xx}+u_{yy}=0 everywhere.

b) Harmonic conjugate. A function vv makes f=u+ivf=u+iv holomorphic if and only if the Cauchy-Riemann equations hold: ux=vyu_x=v_y and uy=−vxu_y=-v_x. Since R2\mathbb{R}^2 is simply connected the conjugate exists. Integrate the first equation in yy: v(x,y)=∫ex(xcos⁡y−ysin⁡y+cos⁡y) dy=ex(xsin⁡y+ycos⁡y)+c(x),v(x,y)=\int e^x(x\cos y-y\sin y+\cos y)\,dy=e^x\big(x\sin y+y\cos y\big)+c(x), because ∫−ysin⁡y dy=ycos⁡y−sin⁡y\int-y\sin y\,dy=y\cos y-\sin y (by parts), so −sin⁡y-\sin y cancels against ∫cos⁡y dy=sin⁡y\int\cos y\,dy=\sin y. Now impose the second equation: vx=ex(xsin⁡y+ycos⁡y+sin⁡y)+c′(x)v_x=e^x(x\sin y+y\cos y+\sin y)+c'(x) must equal −uy=ex(xsin⁡y+sin⁡y+ycos⁡y)-u_y=e^x(x\sin y+\sin y+y\cos y), hence c′(x)=0c'(x)=0 and cc is a constant. The condition v(0,0)=0v(0,0)=0 gives c=0c=0: v(x,y)=ex(xsin⁡y+ycos⁡y).v(x,y)=e^x(x\sin y+y\cos y). To write ff in terms of zz, restrict to the real axis: f(x)=u(x,0)+iv(x,0)=x exf(x)=u(x,0)+iv(x,0)=x\,e^x, so f(z)=z ezf(z)=z\,e^z (a holomorphic function is determined by its values on the real axis). Direct check: z ez=(x+iy)ex(cos⁡y+isin⁡y)z\,e^z=(x+iy)e^x(\cos y+i\sin y) has real part ex(xcos⁡y−ysin⁡y)=ue^x(x\cos y-y\sin y)=u and imaginary part ex(xsin⁡y+ycos⁡y)=ve^x(x\sin y+y\cos y)=v.

c) The integrals. Here f(z)z2+1=z ez(z−i)(z+i)\frac{f(z)}{z^2+1}=\dfrac{z\,e^z}{(z-i)(z+i)}, with two simple poles at z=±iz=\pm i. Use Complex Integration - Cauchy's Theorem and Integral FormulaThe integral of a complex function along a curve z(t) is the integral of f(z(t)) z'(t) dt and depends in general on the path; for holomorphic functions on simply connected domains integrals over closed curves vanish (Cauchy's theorem), paths can be deformed across no singularity, the integral of 1/(z - z0) around z0 is 2 pi i, and Cauchy's integral formula gives f(z0) and all derivatives from boundary values.Complex Integration - Cauchy's Theorem and Integral Formula →: if gg is holomorphic on and inside a simple closed curve γ\gamma run counterclockwise and z0z_0 is inside, ∮γg(z)z−z0dz=2πi g(z0)\oint_\gamma\frac{g(z)}{z-z_0}dz=2\pi i\,g(z_0).

Circle γ1\gamma_1: ∣z−i∣=1|z-i|=1. It encloses ii (its centre) and not −i-i (the distance from ii to −i-i is 2>12>1). Write the integrand as g(z)z−i\frac{g(z)}{z-i} with g(z)=z ezz+ig(z)=\dfrac{z\,e^z}{z+i}, holomorphic in the disc (its only singularity is −i-i, outside). Then ∮γ1=2πi g(i)=2πi⋅i ei2i=πi ei=πi(cos⁡1+isin⁡1)=−πsin⁡1+iπcos⁡1.\oint_{\gamma_1}=2\pi i\,g(i)=2\pi i\cdot\frac{i\,e^i}{2i}=\pi i\,e^i=\pi i(\cos1+i\sin1)=-\pi\sin1+i\pi\cos1 .

Circle γ2\gamma_2: ∣z∣=2|z|=2. Both ii and −i-i are inside, so the formula cannot be applied directly. Decompose in partial fractions: zz2+1=12(1z−i+1z+i)\dfrac{z}{z^2+1}=\dfrac12\Big(\dfrac1{z-i}+\dfrac1{z+i}\Big) (check: 12⋅2zz2+1\frac12\cdot\frac{2z}{z^2+1}). Then ∮γ2z ezz2+1dz=12∮γ2ezz−idz+12∮γ2ezz+idz=12 2πi ei+12 2πi e−i=2πi ei+e−i2=2πicos⁡1,\oint_{\gamma_2}\frac{z\,e^z}{z^2+1}dz=\frac12\oint_{\gamma_2}\frac{e^z}{z-i}dz+\frac12\oint_{\gamma_2}\frac{e^z}{z+i}dz=\frac12\,2\pi i\,e^{i}+\frac12\,2\pi i\,e^{-i}=2\pi i\,\frac{e^i+e^{-i}}2=2\pi i\cos1, applying the Cauchy integral formula to eze^z (entire) at the two points inside γ2\gamma_2. Alternatively, deform the path (deformation of paths, same note) into two small circles around ii and −i-i, and the integral over the small circle around ii is exactly the value found for γ1\gamma_1. Typical mistakes: using 2πi g(i)2\pi i\,g(i) with gg evaluated without the factor 1z+i\frac1{z+i} (i.e. f(i)f(i) alone, which gives 2πi⋅iei2\pi i\cdot ie^i); counting also the pole −i-i for γ1\gamma_1; forgetting the factor 2πi2\pi i.

Self-assessment grid
exercise points what must be there for full marks typical mistakes
1 a) 3 gradient system solved with all four points; Hessian diag⁡(6x,6y)\operatorname{diag}(6x,6y) evaluated at each point; nature with det⁡\det and fxxf_{xx} stopping at two points; not evaluating det⁡H\det H at each point; mixing up saddle and extremum
1 b) 1 f(x,0)→±∞f(x,0)\to\pm\infty for x→±∞x\to\pm\infty: no absolute extrema; local ≠\ne global declaring −4-4 and 44 global
1 c) 4 compactness of TT and Weierstrass; interior critical point (−1,−1)(-1,-1) only; both sides with g′=0g'=0 at x=±1x=\pm1; hypotenuse f≡0f\equiv0; comparison; max 44 at one point, min −4-4 at three points including (1,1)(1,1); forgetting a side or a stationary point on a side; missing two of the minimum points
2 a) 2 1≤ρ≤31\le\rho\le3, 0≤θ≤π40\le\theta\le\frac\pi4; area π\pi with the factor ρ\rho missing ρ\rho (area π2\frac\pi2); wrong angle
2 b) 3 arctan⁡yx=θ\arctan\frac yx=\theta on DD and why; product of integrals; π28\frac{\pi^2}{8} missing ρ\rho; arctan⁡yx=θ\arctan\frac yx=\theta without checking the range
2 c) 3 ρ2cos⁡θ\rho^2\cos\theta and ρ2sin⁡θ\rho^2\sin\theta integrals, division by the area, coordinates, check G∈DG\in D not dividing by π\pi; forgetting that ∫ρ⋅ρ dρ=263\int\rho\cdot\rho\,d\rho=\frac{26}{3}
3 a) 2 roots −1±2i-1\pm2i and real form leaving complex exponentials without the real form
3 b) 3 resonance recognised; variation of constants or ansatz with tt; yp=2te−tsin⁡2ty_p=2te^{-t}\sin2t; general solution ansatz without tt; absorbing 12e−tcos⁡2t\frac12e^{-t}\cos2t incorrectly
3 c) 2 conditions imposed on the complete solution; c1=1c_1=1, c2=12c_2=\frac12; limit 00 with justification y′(0)y'(0) without the derivative of the particular part; limit stated without reason
4 a) 2 uxxu_{xx} and uyyu_{yy} computed with the product rule; sum zero missing the term cos⁡y\cos y in uxu_x
4 b) 2 vy=uxv_y=u_x integrated, c′(x)=0c'(x)=0 from vx=−uyv_x=-u_y, v(0,0)=0v(0,0)=0; f=zezf=ze^z wrong sign in vx=−uyv_x=-u_y; not fixing the constant
4 c) 3 γ1\gamma_1: only z=iz=i inside, g(i)g(i) with the factor 1z+i\frac1{z+i}, πiei\pi ie^i; γ2\gamma_2: partial fractions and both poles, 2πicos⁡12\pi i\cos1 counting −i-i for γ1\gamma_1; applying the formula once for γ2\gamma_2