18.303 Problem Set 3 Solutions Problem 1: (5+5+10+10)

advertisement
18.303 Problem Set 3 Solutions
Problem 1: (5+5+10+10)
(a)
d
dt um ∆x
is the net rate at which mass diffuses into piece m minuse the rate at which it
dissociates:
dum
um+1 − um
um−1 − um
∆x = D
+D
− Rum ∆x
dt
∆x
∆x
which can be rearranged into
dum
um+1 − 2um + um−1
− Rum .
=D
dt
∆x2
In the ∆x → 0 limit, the first term is exactly the second derivative, from class, while the
second term doesn’t change, so we obtain the following PDE for u(x, t):
∂u
∂2u
= D 2 − Ru
∂t
∂x
(b) This corresponds to u0 = uM +1 = 0, or Dirichlet boundary conditions u(0) = u(L) = 0.
(c) If there is no flow through the ends, this corresponds to setting
D
uM +1 − uM
u0 − u1
=0=D
,
∆x
∆x
or equivalently uM +1 = uM and u0 = u1 . This makes the u1 and uM equations
du1
u2 − 2u1 + u1
=D
− Ru1 ,
dt
∆x2
duM
uM − 2uM + uM −1
=D
− RuM .
dt
∆x2
If we write this in matrix form du/dt = Au, we get

−1 1
 1 −2 1
1 

..
..
..
A=

.
.
.
∆x2 

1 −2
1




 − RI

1 
−1
where I is the identity matrix, and the first matrix is the same as our second-derivative matrix
−um
from class except for the first and last rows. In the continuum limit, setting um+1
=0
∆x
corresponds to setting the first derivative to zero at the ends, i.e. we have the (Neumann)
boundary conditions ∂u
∂x = 0 at x = 0, L.
´L
∂2
(d) The operator in both cases is  = ∂x
ūv.
2 −R. We will use the usual inner product hu, vi =
0
The R term is just a real number and hence is Hermitian (hu, Rvi = hRu, vi by inspection).
∂2
The ∂x
2 term was already shown in class to be Hermitian for Dirichlet boundary conditions.
For Neumann boundary conditions, we integrate by parts
ˆ
hu, v 00 i =
0
L
L
ūv 00 = ūv0 0 −
ˆ
L
0
1
L ˆ
0 v +
u0 v 0 = − u
0
0
L
u00 v = hu00 , vi,
in which the boundary terms again vanish so we obtain that  = Â∗ . To show definiteness,
as in class we just integrate by parts once, which with either boundary condition gives
ˆ
L
|u0 |2 + R|u|2 dx ≤ 0,
hu, Âui = −
0
which is < 0 unless u = 0 almost everywhere, due to the R term alone (since R > 0 was
given). Hence it is negative-definite. If we set R = 0, then with Dirichlet boundary conditions
it is still negative-definite as proved in class. For R = 0 and Neumann boundary conditions,
(
((u(
however, hu, Âui = 0 =⇒ u0 = 0 =⇒ u = constant(
=⇒
= 0: nonzero constants are
allowed by the boundary conditions, so, e.g. h1, Â1i = 0 is allowed. Hence  is negative
semidefinite for Neumann boundaries.
Problem 2: (5+5+5+10+5)
(a) Writing out the derivation in 18.02 fashion, this is tedious but straightforward:


uy vz − uz vy
∂
∂
∂
 uz vx − ux vz 
∇ · (u × v) = ∂x
∂y
∂z
ux vy − uy vx
∂(uy vz − uz vy ) ∂(uz vx − ux vz ) ∂(ux vy − uy vx )
+
+
∂x
∂y
∂z
∂uz
∂uy
∂uz
∂ux
∂ux
∂uy
=
−
−
−
vx +
vy +
vz
∂y
∂z
∂z
∂x
∂x
∂y
∂vz
∂vx
∂vy
∂vz
∂vx
∂vy
−
+ uy
−
+ uz
−
ux
∂z
∂y
∂x
∂z
∂y
∂x
=
= (∇ × u) · v − u · (∇ × v).
(A much more compact derivation is possible using Einstein notation and the Levi–Civitá
tensor, but probably most of you haven’t seen this notation.)
(b) Given the above identity, integration by parts is straightforwards:
ˆ
ˆ
hu, ∇ × vi =
ū · (∇ × v) =
∇ · (ū × v) + ∇ × u · v
Ω
‹Ω
=
(ū × v) · dS + h∇ × u, vi,
∂Ω
applying the divergence theorem in the second line. So, the surface term
w = ū × v .
‚
∂Ω
w · dS is for
(c) We must have (ū × v) · dS = 0. Let dS = n dS, where n is the outward unit normal vector
at each point on ∂Ω. Then we must have ū × v ⊥ n, which is true if, for example, both u
and v are parallel to n at the boundary. i.e. if u × n|∂Ω = 0 . It is not necessary to require
u|∂Ω = 0 on the boundary, and that answer will not be accepted as I specifically requested
that you not constrain all the components of u on the boundary.
Another way to see this is to write (ū × v) · dS = n · (ū × v)dS = v · (n × ū)dS = ū · (v × n)dS
by elementary triple-product identities, and hence we again see that it is sufficient to have
u × n = 0 on the boundary.
2
Although I will accept the above answer, it is actually possible to contrive a slightly weaker
condition: u and v can have components ⊥ to n on the boundary, as long as those surfaceparallel components are in the same direction for both u and v (to obtain zero cross product).
That is, suppose p(x) is some surface-parallel (p ⊥ n) vector field on ∂Ω.1 Then it is sufficient for the surface-parallel component of u to be ⊥ to p everywhere on the boundary, or
equivalently u · p|∂Ω = 0.
[Actually, there are other possible conditions on u if we allow non-local boundary conditions, where u at one point on the boundary is related to u at another point. For example,
if Ω is a cube and u is periodic (i.e. u on one face equals u on the opposite face), then the
‚
vanishes because each face of the cube cancels the opposite face, without requiring any
∂Ω
component of u to be zero.]
(d) We just “integrate by parts” twice:
ˆ
‹
ˆ
hu, ∇ × ∇ × vi =
ū · (∇ × ∇ × v) =
[ū × (∇ × v)] · dS + (∇ × ū) · (∇ × v)
Ω
∂Ω
Ω
‹
ˆ
=
[(∇ × ū)
× v] · dS + (∇ × ∇ × ū) · v = h∇ × ∇ × u, vi,
∂Ω
Ω
where the surface terms cancel if either u × n|∂Ω = 0 or (∇ × u) × n|∂Ω = 0 , that is if
either u or its curl are normal to the surface. (As in the previous part, one can actually
weaken this slightly, but this is sufficient for our purposes.)
To check definiteness, carry integration by parts “halfway” through:
ˆ
hu, ∇ × ∇ × ui =
|∇ × u|2 ≥ 0,
Ω
so it is positive semidefinite. It is not positive-definite since ∇ × u = 0 for u = ∇φ 6= 0
for any non-constant scalar field φ , and we can easily choose such a φ such that ∇φ satisfies
the boundary conditions (e.g., choose φ so that it is constant in a neighborhood of ∂Ω).
∂B
∂
(e) Taking the curl of both sides of ∇×E = − ∂B
∂t , we obtain ∇×∇×E = −∇× ∂t = − ∂t ∇×B =
∂2E
− ∂t2 . That is, we have
∂2E
= ÂE
∂t2
where  = −∇ × ∇×. From the previous parts, for E ⊥ n at the surface, this  is self-adjoint
and negative semidefinite, and hence we have a hyperbolic equation.
As in class, we therefore expect orthogonal eigenfunctions √
and real λ ≤ 0, and hence oscillating “normal mode” solutions with eigenfrequencies ω = −λ.
[Technically, we also obtain λ = 0 solutions which are non-oscillatory—from above, these are
nullspace solutions E = ∇φ for some φ, which physically correspond to the time-independent
fields of fix charge distributions, where −φ is the potential and ∇ · E = ∇2 φ is the charge
density. Everything else, all of the other eigenfunctions, are oscillating solutions.]
1 By
the “hairy ball theorem” of topology, p must vanish somewhere on ∂Ω if Ω is simply connected (no holes), at
which point u must be parallel to n.
3
Download