Numerical Analysis Assignment Help
Numerical Analysis Assignment Help
For any help related queries, call us at : - +1 678 648 4277
You can mail us at : - support@mathhomeworksolver.com or
reach us at : - https://www.mathhomeworksolver.com/
Problem
Problem 1:
(b) Figure out how to do integration by parts with the curl: show
that ‚ (u, ∇ × v) = (∇ × u, v) + w · dS, where dS is the usual
outward surface-normal area element, and the w appearing ∂Ω
in the surface integral over the boundary (∂Ω) is some vector
field to be determined. (Hint: use the identity you derived in the
previous part, combined with the divergence theorem.)
(c) Give a possible boundary condition on our space of vector
fields such that ∇× is self-adjoint with this inner product.
(Boundary conditions can only involve one vector field at a
time! No fair giving an equation that relates u to v!) You
should not have to specify all the components of u on the
boundary. It may be convenient to define a vector field n(x)
on ∂Ω to denote the outward normal vector at each point on
the boundary.1
(d) Show that ∇×∇× is self-adjoint for this inner product under either
some boundary condition on u (similar to above) or some boundary
condition on derivatives of u. Is it positive or negative definite or
semidefinite?
(This kind of system exists, for example, in the microwave regime where
metals have high conductivity, and such containers are called
microwave resonant cavities.
Problem 2:
(a) Using the boundary conditions, write down two equations for α, β
and k, of the form ( ) α E = 0 for some 2 × 2 matrix E. This only has a
solution when det E = 0, and β from this fact obtain a single equation
for k of the form fm(k) = 0 for some function fm that depends on m.
This is a transcendental equation; you can’t solve it by hand for k. In
terms of k (which is still unknown), write down a possible expression
for α and β, i.e. a basis for N(E).
(b) Assuming R1 = 1, R2 = 2, plot your function fm(k) versus k ∈ [0, 20]
for m = 0, 1, 2. Note that Julia provides the Bessel functions built-in:
Jm(x) is besselj(m,x) and Ym(x) is bessely(m,x). You can plot a function
with the plot command. See the IJulia notebook posted on the course
web page for lecture 8 for some examples of plotting and finding roots
in Julia.
(c) For m = 0, find the first three (smallest k > 0) solutions k1, k2, and k3
to f0(k) = 0. Get a rough estimate first from your graph (zooming if
necessary), and then get an accurate answer by calling the
scipy.optimize.newton function as in pset 1, and also as illustrated in
the lecture8 IJulia notebook. (Note that there is also a k = 0
eigenfunction for m = 0, corresponding to the constant function: the
nullspace of Aˆ with Neumann boundary conditions, as in class.) ´
(e) Let’s change the problem. Suppose that the domain is now 0 ≤ r ≤
R2, and the operator is Aˆ = c(r)∇2 with c(r) = 2 for r < R1 and c(r) = 1
for r ≥ R1. Suppose we impose Dirichlet boundary conditions u(R2) = 0
(i) What is the form of the eigenfunctions? (Define them in terms of
Jm(kr) and Ym(kr) with unknown coefficients in the r < R1 and r ≥
R1 regions; don’t try to solve for the coefficients.)
Problem 3:
The Bessel functions u(x) = Jm(kx), from class, solve the eigenproblem:
on [0, R] where u(R) = 0 and u(0) = 0 for m > 0.
(b) Show that Aˆ is negative definite, hence λ < 0 and we are entitled
to write λ = −k2 for a real k.
(a) Writing out the derivation in 18.02 fashion, this is tedious but
straightforward:
(c) We must have (u¯ × v) · dS = 0. Let dS = n dS, where n is the outward unit
normal vector at each point on ∂Ω. Then we must have u¯ × 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 (u¯ ×v)· dS = n·(u¯ ×v)dS = v ·(n×u¯)dS = u¯
·(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.
Solution 2:
See also the IJulia notebook posted with the solutions. (a) Setting the
slopes to be zero at R1 and R2 simply gives
See also the IJulia notebook posted with the solutions.
(c) We’ll use the Scilab newton function, similar to class, to find the
roots, with initial guesses provided by our plot in Figure 1. We find k1
≈ 3.196578, k2 ≈ 6.31234951, and k3 ≈ 9.4444649. See the solutions
notebook.
(d) See the IJulia notebook. Using our k1 and k2 from part (c) and our
α and β from part (a), ´ R2 we find that which is
zero up to roundoff errors.
(i) At the origin, we can’t blow up, and therefore we only have J for r
< R1, but we have both J and Y outside this. Hence
Note that the angular dependence must be the same for all r in order
to have continuity at r = R1. However, we are not guaranteed that k1 =
k2! In particular, we want Auˆ = λu for some λ, and plugging in the
Bessel functions and the values of √ c we find λ = −2k2 = −k2. Hence,
we let k2 = k and k1 = k/ 2.
(ii) To get a finite Auˆ , we must have u and ∂u/∂r continuous at r =
R1. Combined with u = 0 at r = R2, this gives the equations
where the first two rows are the continuity conditions and the last
row is the Dirichlet condition, and we have defined a matrix Em(k).
(iii) We simply need fm(k) = det Em(k) to solve for the solutions k and
hence the eigenvalues.