Docsity

Analisi 3 - Mathematical Methods, Dispense di Ingegneria Biomedica

Toggle sidebar
bg1
Lecture notes of the course: Mathematical Methods in
Engineering a.a. 2022/2023
January 5, 2023
FIL IP PO GIULIANI
Abstract
Contents
1 A brief introduction to the course 2
2 Preliminaries 3
2.1 Continuity and Differentiability . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Vectorfields.................................... 7
2.3 Divergence, Laplacian and harmonic functions . . . . . . . . . . . . . . . . . . 7
2.4 Derivation of composite functions . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4.1 Radialfunctions ............................. 10
2.5 Divergencetheorem................................ 10
2.5.1 Integration by parts formula . . . . . . . . . . . . . . . . . . . . . . . 11
2.5.2 Green’s identitities . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.6 Seriesoffunctions ................................ 12
2.7 Periodicfunctions................................. 13
2.8 Fourierseries ................................... 14
2.9 Oddandevenextensions ............................. 16
2.10 Differentation and integration of Fourier series . . . . . . . . . . . . . . . . . . 16
3 Scalar Conservation Law 18
3.1 Transportequations................................ 19
3.2 Transport equation with a source . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.3 Damped transport equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.3.1 A macroscopic model for traffic dynamics . . . . . . . . . . . . . . . . 22
4 The method of the characteristics 23
4.1 The green light model (Rarefaction waves) . . . . . . . . . . . . . . . . . . . . 25
4.2 Traffic Jam (Shock waves) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.3 Non-uniqueness of weak solutions - The Burger’s equation . . . . . . . . . . . 29
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43

Anteprima parziale del testo

Scarica Analisi 3 - Mathematical Methods e più Dispense in PDF di Ingegneria Biomedica solo su Docsity!

Lecture notes of the course: Mathematical Methods in

FILIPPO GIULIANI

Abstract

1 A brief introduction to the course

The main goal of this course is to introduce you to the world of partial differential equations. A PDE is an equation where the unknown is a function typically of time t and space x ∈ Rn. For example the velocity of the particles of a fluid u(t, x) ∈ Rn^ or the quantity of some material in a region at certain time.

- Engineering a.a. 2022 / - January 5,
  • 1 A brief introduction to the course Contents
  • 2 Preliminaries
    • 2.1 Continuity and Differentiability
    • 2.2 Vector fields
    • 2.3 Divergence, Laplacian and harmonic functions
    • 2.4 Derivation of composite functions
      • 2.4.1 Radial functions
    • 2.5 Divergence theorem
      • 2.5.1 Integration by parts formula
      • 2.5.2 Green’s identitities
    • 2.6 Series of functions
    • 2.7 Periodic functions
    • 2.8 Fourier series
    • 2.9 Odd and even extensions
    • 2.10 Differentation and integration of Fourier series
  • 3 Scalar Conservation Law
    • 3.1 Transport equations
    • 3.2 Transport equation with a source
    • 3.3 Damped transport equation
      • 3.3.1 A macroscopic model for traffic dynamics
  • 4 The method of the characteristics
    • 4.1 The green light model (Rarefaction waves)
    • 4.2 Traffic Jam (Shock waves)
    • 4.3 Non-uniqueness of weak solutions - The Burger’s equation
  • 5 The Heat equation
    • 5.1 Derivation
    • 5.2 Boundary conditions
    • 5.3 Uniqueness of the Cauchy-Dirichlet problem
    • 5.4 The Maximum Principle
      • 5.4.1 Alternative proof of Theorem 5.2
    • 5.5 The fundamental solution
    • 5.6 Separation of variables (dimension n = 1)
      • 5.6.1 Cauchy-Dirichlet problem
      • 5.6.2 Cauchy-Neumann problem
  • 6 The Laplace and Poisson equations
    • 6.1 Derivation of Laplace equation
    • 6.2 The Poisson equation
    • 6.3 Boundary conditions
    • 6.4 Uniqueness for the Dirichlet problem for the Poisson equation
    • 6.5 The Mean Value property
    • 6.6 Maximum principles
      • 6.6.1 Alternative proof of uniqueness
    • 6.7 Separation of variables (in R^2 )
      • 6.7.1 Dirichlet problem in R
    • 6.8 The fundamental solution
  • 7 The Wave equation
    • 7.1 Derivation
    • 7.2 Boundary conditions for n = 1 (String case)
    • 7.3 Uniqueness for the Cauchy-Dirichlet problem
    • 7.4 D’Alembert formula
      • 7.4.1 Finite speed of propagation
    • 7.5 Separation of variables
      • 7.5.1 Dirichlet b.c.
      • 7.5.2 Neumann b.c.
  • 8 Introduction to functional analysis
    • 8.1 Basis
    • 8.2 Sobolev spaces

We denote by

‖x‖ :=

x^21 + · · · + x^2 n

the norm of Rn. When n = 1 this corresponds to the absolute value |x|. We denote by x 0 a specific fixed point. Now we recall some basic facts about topology.

Definition 2.1. (Open set) We say that Ω ⊆ Rn^ is open if for all x ∈ Ω there exists r = r(x) > 0 such that B(x 0 , r) ⊂ Ω.

Definition 2.2. (Boundary) Let Ω ⊆ Rn. The boundary of Ω, denoted by ∂Ω, is the following set of points ∂Ω := {x : ∀r > 0 Br(x) ∩ Ω 6 = ∅}.

Definition 2.3. (Accumulation point) Given a subset Ω ⊂ Rn^ we say that x 0 is an accumulation point of Ω if (B(x 0 , r) \ {x 0 }) ∩ Ω 6 = ∅.

Remark 1. The accumulation points of Ω are the points of the closure

Ω = Ω ∪ ∂Ω

except its isolated points.

Example The balls in Rn.

Now we focus on scalar functions of several variables f : Ω ⊂ Rn^ → R. When n = 2 we can draw the graph of f! The level lines or level curves of a function are the subsets of Ω such that

L(h) = {x ∈ Ω : f (x) = h}.

Example f (x, y) = 1 − (x^2 + y^2 ).

Let Ω be a subset of Rn^ and f : Ω ⊂ Rn^ → R. Let x 0 be an accumulation point of Ω (see 2.3).

Definition 2.4. (Continuity) The function f is said to be continuous at x 0 if

lim x→x 0 f (x) = f (x 0 ).

We define C^0 (Ω) := {f : Ω → R : f continuous on Ω}.

Definition 2.5. (Partial derivatives) Assume that Ω ⊆ Rn^ is open (see 2.1) and x 0 ∈ Ω. We define the partial derivative of f (x) at x 0 wrt the variable xi

∂ ∂xi

f (x 0 ) := lim h→ 0

f (x 0 + hei) − f (x 0 ) h

i = 1,... , n.

We use also the notation ∂xi f (x 0 ), Dxi f (x 0 )...

Geometric meaning : it is the slope of the restriction of the function to the line {x + hei : h ∈ R}.

Example. Let f (x, y) = x^2 y, then ∂xf (x, y) = 2xy, ∂yf (x, y) = x^2.

Remark 2. We recall that there is no relation between continuity and existence of directional derivatives when n ≥ 2. The function

f (x, y) =

x^2 y x^4 + y^2

(x, y) 6 = (0, 0)

0 (x, y) = (0, 0),

admits partial derivatives at (0, 0), in particular

fx(0, 0) = lim h→ 0

f (h, 0) − f (0, 0) h

and same for fy(0, 0). However it is not continuous because the limit limx→x 0 f does not exist (prove it).

Definition 2.6. (Gradient) Assume that there exist all the partial derivatives of f at x 0. The vector ∇f (x 0 ) := (∂x 1 f (x 0 ),... , ∂xn f (x 0 ))

is called gradient of f at x 0.

Example Let f (x, y) = x^2 y, then ∇f (x, y) = (2xy, x^2 ).

Geometrically The gradient of f at a point x is orthogonal to the level curve at which x belongs. Moreover when ∇f (x) 6 = 0 its direction is the direction for the local maximal increase. Take the example of f (x, y) = 1 − (x^2 + y^2 ).

The partial derivatives are particular cases of directional derivatives.

Definition 2.7. (Directional derivatives) Assume that Ω ⊆ Rn^ is open, x 0 ∈ Ω and v ∈ Rn such that ‖v‖ = 1. We define the derivative of f (x) at x 0 wrt the direction v

∂vf (x 0 ) =

∂v

f (x 0 ) := lim h→ 0

f (x 0 + hv) − f (x 0 ) h

Geometric meaning : it is the slope of the restriction of the function to the line {x + hv : h ∈ R}.

There is a notion related to derivatives that implies continuity, the differentiability. A func- tion is differentiable at a point x 0 when there is a tangent hyperplane tangent to the graph at the point (x 0 , f (x 0 )). This notion for n = 1 corresponds to derivability.

Definition 2.8. (Differentiability) Assume that Ω ⊆ Rn^ is open and x 0 ∈ Ω. We say that f (x) is differentiable at x 0 if

lim x→x 0

f (x) − f (x 0 ) − ∇f (x 0 ) · (x − x 0 ) ‖x − x 0 ‖

2.2 Vector fields

Let Ω ⊆ Rn, we say that a function F = (F 1 ,... , Fn) : Ω → R is a vector field. We say that F ∈ Ck(Ω) if and only if each component Fi ∈ Ck(Ω).

Geometrically The vector field is a function associating at each point of a domain of Rn^ a vector (think to an arrow attached to the point).

Dual meaning of vectors: Note that we used first the notion of vector as a point of Rn^ and then as an arrow with a direction and magnitude.

Physical example : The velocity field of particles in water or air.

Remark 5. Suppose that f : Ω ⊆ Rn^ → R is a smooth function. Then

∇f : Ω → Rn, x 7 → ∇f (x)

is a vector field on Rn.

The vector fields of the above type are very important.

Definition 2.14. (Conservative vector field) We say that a vector field F : Ω ⊆ Rn^ → Rn^ is conservative if there exists u ∈ C^2 (Ω; R) such that

F (x) = ∇u(x).

The function u is usually called potential.

Example The gravitational vector field is conservative. It is the model used to explain the influences that a body with mass extends into the space around itself, producing a force on other massive bodies.

  • The gravitational potential
  • the electric (Coloumb) potential.

2.3 Divergence, Laplacian and harmonic functions

Now we introduce mathematical objects that act on vector fields and that are physically relevant.

Definition 2.15. (Divergence) Let Ω be an open subset Rn^ and F ∈ C^1 (Ω). We define

div(F ) = ∇ · F = ∂x 1 F 1 + · · · + ∂xn Fn.

Physical meaning: the divergence represents the volume density of the outward flux of a vector field from an infinitesimal volume around a given point. Roughly speaking: If the divergence is positive then it means that locally, close at each point, there are more of the field vectors exiting an infinitesimal region around each point. This is the situation of that air particles experience when you heat air. When the air is cooling the reverse happens.

Definition 2.16. (Solenoidal v.f.) Let Ω be an open subset Rn^ and F ∈ C^1 (Ω). We say that F is solenoidal if div(F ) = ∇ · F ≡ 0.

Examples:

  • The magnetic field.
  • Incompressible fluids.

Definition 2.17. Let Ω be an open subset Rn^ and f ∈ C^2 (Ω). We define

∆f :=

∑^ n

i=

∂ x^2 i f.

Remark 6. The Laplacian of f is the trace of the Hessian matrix of f.

Lemma 2.18. Let f ∈ C^1 (Ω). Then

div(∇f ) = ∇ · ∇f = ∆f. (2.3)

Proof. This follows by the definitions

div(∇f ) =

∑^ n

i=

∂xi (∂xi f ) = ∆f.

Definition 2.19. (Harmonic functions) Let f ∈ C^2 (Ω). We say that f is harmonic on Ω˜ ⊆ Ω if

∆f (x) = 0 ∀x ∈ Ω˜.

We list few examples of harmonic functions:

  • Let f (x, y) = ex^ sin(y). Clearly f ∈ C^2 (R^2 ). We have

∂ x^2 f = ex^ sin(y), ∂^2 y f = −ex^ sin(y),

hence f is harmonic on R^2.

  • Let f (x, y) = log(x^2 + y^2 ). We have f ∈ C^2 (R^2 \ {(0, 0)}). We have

∂xf =

2 x x^2 + y^2

, ∂^2 xf =

2(x^2 + y^2 ) − 4 x^2 (x^2 + y^2 )

− 2 x^2 + 2y^2 (x^2 + y^2 )

By the symmetry f (x, y) = f (y, x) we have

∂ y^2 f =

− 2 y^2 + 2x^2 (x^2 + y^2 )

and so f is harmonic on R^2 \ {(0, 0)}.

2.4.1 Radial functions

We want to study the action of the Laplacian on radial functions, namely f : Rn^ → R such that f (x) = g(r), r = ‖x‖.

Example The function f (x, y) = x^2 + y^2 = r^2 is radial. Hence the function g is g(r) = r^2.

We have by Lemma 2.21 (note that g : R → R)

∂xi r =

xi r

, ∂^2 xi r =

r

x^2 i r^3

∂xi g(r) = g′(r)

xi r

, ∂ x^2 i g(r) =

g′′(r) r^2

x^2 i +

g′(r) r

− g′(r)

x^2 i r^3

∆f =

∑^ n

i=

g′′(r) r^2

x^2 i +

g′(r) r

− g′(r)

x^2 i r^3

= g′′(r) +

n − 1 r

g′(r).

Laplacian for radial functions

∆f = g′′(r) +

n − 1 r

g′(r) f (x) = g(r), r := ‖x‖.

Let us see an application. We consider for instance f (x) =

‖x‖n−^2

, x ∈ Rn^ \ { 0 }, n ≥ 3. We can write f (x) = g(r)

where g(r) = r^2 −n. Then

g′(r) = (2 − n)r^1 −n, g′′(r) = (2 − n)(1 − n)r−n

and so ∆f = (2 − n)(1 − n)r−n^ + (2 − n)(n − 1)r−n^ = 0.

We conclude that f is harmonic.

2.5 Divergence theorem

We consider open subsets of Rn^ such that its boundary can be parametrized locally by graph of smooth functions. We say that such sets have smooth boundary.

For n = 2, 3 we talk about closed boundary when they enclose an open region of Rn. Assume that n = 3 and consider Ω ⊂ R^3 enclosed by a surface ∂Ω (think to a sphere). We recall that (^) ∫

∂Ω

F · n dS

is the surface integral of a vector field F through the surface ∂Ω. Physically this integral repre- sents the flux of the vector field trough the surface, namely it is the proper flowing per unit time trough the surface. When the flux is zero the amount of quantity flowing outward a volume is the same of the quantity going inward. There is a sort of equilibrium (statistical equilibrium). The next theorem says that the flux through a surface is equal to the volume integral of the divergence over the region enclosed by the surface.

Theorem 2.23. (Divergence Theorem) Let Ω be a a bounded open subset of Rn, n = 2, 3 with a smooth closed boundary and F ∈ C^1 (Ω, Rn). Then ∫

Ω

∇ · F dx dy dz =

∂Ω

F · n dS^2 ,

where n is the outward normal unit vector to the boundary.

Example Consider an incompressible fluid. We said that its velocity vector field is solenoidal, then ∇ · F = 0 and the flux is zero (in this particular case, no particles enter nor exit in a certain region). If you introduce a source of water within the region then the particles flow out (and the divergence of the new vector field will be positive), while with a sink the particles enter in the region (and the divergence of the new vector field will be negative). Roughly speaking the divergence theorem says that the (net) flux is given by the averaged sum of sinks and sources present in a certain region Ω.

2.5.1 Integration by parts formula

Now we see a fundamental corollary of the divergence theorem, namely the integration by parts formula in more dimensions, namely f : Rn^ → R. Recall the integration by parts for functions f : R → R (see section 8.2 ).

Lemma 2.24. (Integration by parts) Assume the assumptions of Theorem 2.23. Let v : Ω ⊂ Rn^ → R be a C^1 function. Then

∫

Ω

v (∇ · F ) dxdydz =

∂Ω

v (F · n) dS −

Ω

∇v · F dxdydz. (2.4)

Proof. We have div(v F ) = v div(F ) + ∇v · F.

Then (^) ∫

Ω

v (∇ · F ) dxdydz =

Ω

(div(v F ) − ∇v · F ) dxdy dz

and we conclude by using the divergence theorem for the first term in the r.h.s.

Remark 7. Essentially we can move the gradient from a side to the other, as we move the derivative in the classical integration by parts, but the difference here is that we have also a boundary term which is not a total derivative ∫

Ω

v (∇ · F ) dxdydz +

Ω

∇v · F dxdydz =

∂Ω

v (F · n) dS ︸ ︷︷ ︸ boundary term

∫ (^) b

a

f g′^ dx +

∫ (^) b

a

f ′^ g dx =

∫ (^) b

a

(f g)′ ︸ ︷︷ ︸ total derivative

dx = (f g)(b) − (f g)(a)

(^2) dS denotes the surface area element.

  • exponential series:

n

xn n!

converges for all x ∈ R and its sum is ex.

It is natural to ask whether the limit function f (x) :=

n fn(x)^ (where it is defined) inherits some properties of the functions fn, like the continuity or the differentiability.

To ensure these nice properties simple convergence is not enough.

Definition 2.27. (Total convergence) We say that a series of functions

n fn^ is totally conver- gent on I if there exists a sequence of positive numbers Mn such that

n Mn^ <^ ∞;

  • For all n we have |fn(x)| ≤ Mn for all x ∈ I.

Remark 8. Total convergence on I implies pointwise convergence on I. The converse is false.

Remark 9. The geometric series is totally convergent on any [a, b] ⊂ (− 1 , 1).

Theorem 2.28. (Continuity, Integrability and Differentiation) If

n fn^ totally converges on^ I then

  1. If fn are continuous then f :=

n fn^ is continuous;

  1. If fn are integrable on [a, b] ⊂ I then f is integrable and ∫ (^) b

a

f (x) dx =

∫ (^) b

a

n

fn(x) dx =

n

∫ (^) b

a

fn(x) dx.

  1. If fn are differentiable in (a, b) ⊆ I and

n f^

′ n totally converges, then^ f^ is differentiable in (a, b) and f ′(x) =

n

f (^) n′(x).

2.7 Periodic functions

Definition 2.29. (Periodic function) A function f : R → R is said T -periodic if

f (x + T ) = f (x) ∀x ∈ R.

Remark 10. The function cos(x) and cos(nx) with n ≥ 2 are 2 π-periodic. However the angu- lar frequency^3 ( 2 π/period) are different. In the case of cos(x) is 1. In the case of cos(nx) is n because cos(nx) is 2 π/n-periodic.

The standard frequency (measured in Hertz) is given by (angular freq.)/ 2 π. This corre- sponds to the inverse of the period 1 /T.

Remark 11. The combination of T -periodic functions, for instance,

cos(x) + 2 cos(3x)

are T -periodic. (^3) Angular displacement per unit time. The complete revolution is 2 π radians. So the unit measure is radians per

second.

Remark 12. Any function f : [a, b) → R can be extended with periodicity to R. Its period is T := |b − a|. If f (a) 6 = limx→b−^ f (x) then the periodic extension won’t be continuous.

Definition 2.30. (Piecewise continuity) Let f : [a, b) → R is piecewise continuous if there exists a finite number of points ξ 1 ,... , ξm ∈ [a, b) such that

  • f is continuous except at the points ξ, i = 1,... , m.
  • the limits lim x→ξ± i

f (x) i = 1,... , m

exist and they are finite.

Example The function

H(x) =

1 x ∈ (0, 1] 0 x ∈ [− 1 , 0]

is piecewise continuous. Draw its periodic extension. The function

f (x) =

tan(x) x ∈ [0, π/2) 1 x ∈ [π/ 2 , 2]

is continuous on its domain [0, 2] except at x = π/ 2 , but not piecewise continuous because limx→π/ 2 +^ f (x) exists but it is +∞.

Definition 2.31. (Piecewise smooth) A function f : [a, b) → R is said piecewise smooth if it is piecewise continuous, bounded and f is C^1 except at a finite number of points.

Example The function f (x) = |x| on [− 1 , 1] is piecewise continuous. Draw its periodic extension.

2.8 Fourier series

Let L > 0 and f : R → R be a 2 L-periodic function. The Fourier series (or expansion) of f is

F(x) :=

a 0 2

∑^ ∞

n=

an cos

(nπx L

  • bn sin

(nπx L

where

an :=

L

∫ L

−L

f (x) cos

(nπx L

dx (2.7)

bn :=

L

∫ L

−L

f (x) sin

(nπx L

dx (2.8)

Remark 13. The term a 0 / 2 is the average of f over [−L, L), hence

a 0 =

L

∫ L

−L

f (x) dx. (2.9)

2.9 Odd and even extensions

Let us consider a function f : [0, L) → R. We can consider the

  • odd extension of f to [−L, L]: f¯ : [−L, L] → R, f¯|[0,L) = f and f (x) = −f (−x).
  • even extension of f to [−L, L]: f¯ : [−L, L] → R, f¯|[0,L) = f and f (x) = f (−x).

Exercise. Find the Fourier series of the periodic extension of

f (x) =

0 x ∈ [− 5 , 0] 3 x ∈ (0, 5).

The period is 10 = 2L, namely L = 5. The following formulas will be useful

1 L

cos

(nπx

L

dx =

nπ

sin

(nπx

L

  • c,

L

sin

(nπx

L

dx = −

nπ

cos

(nπx

L

  • c.

By (2.9) a 0 =

− 5

f (x) dx =

0

3 dx = 3.

By (2.7) we have

an =

0

3 cos

(nπx

5

dx =

nπ

[

sin

(nπx

5

)]x=

x=

By (2.8) we have

bn =

0

3 sin

(nπx 5

dx = −

nπ

[

cos

(nπx 5

)]x=

x=

nπ

(1 − cos(nπ)).

The Fourier series of f (x) is

F(x) =

n≥ 1

nπ

(1 − cos(nπ)) sin

(nπx 5

The function f is discontinuous at x ∈ { 5 k, k ∈ Z}. Then F(x) converges to f (x) for x /∈ { 5 k, k ∈ Z}. At the other points F(x) converges to

limt→ 5 k−^ f (t) + limt→ 5 k+^ f (t) 2

2.10 Differentation and integration of Fourier series

Let Mn := |an| + |bn|, Kn :=

nπ L

Mn

where an, bn are the Fourier coefficients of some function f : [−L, L] → R.

Proposition 3. If

n Mn^ <^ ∞^ then the Fourier series of^ f^ can be integrated term by term. If

n nMn^ <^ ∞^ then the Fourier series of^ f^ can be differentiated term by term.

Proof. We have

|fn(x)| = |an cos

(nπx

L

  • bn sin

(nπx

L

| ≤ |an| + |bn| = Mn,

|f (^) n′(x)| =

nπ L

∣ | −^ an sin

(nπx L

  • bn cos

(nπx L

| ≤ (|an| + |bn|)

nπ L

∣ ≤^ Kn.

Then if

n Mn^ <^ ∞^ the series^

n fn^ totally converges. Then if^

∑^ n^ Kn^ <^ ∞^ also the series n f^ ′ n totally converges. By Theorem 2.28 we conclude.

Remark 18. In the above proof we used that

n Kn^ <^ +∞^ implies^

n Mn^ <^ +∞. This comes from the fact that Kn ≥ Mn for n large enough.

Theorem 2.34. Let f : R → R be 2 L-periodic. Assume that f ∈ C^1 ([−L, L]), f ′^ is piecewise smooth in [−L, L] and f (L) = f (−L).

Then the Fourier series can be differentiated term by term in any interval [a, b] such that

[a, b] ⊂ [kL, (k + 2)L] for some k ∈ Z, k 6 = 0.

Moreover, if f ′(L) = f ′(−L)

then the Fourier series can be differentiated term by term in any interval [a, b] ⊂ R.

Remark Draw a picture.

Remark 19. For example if f ∈ C^2 ([−L, L]) then f ∈ C^1 ([−L, L]) and f ′^ is piecewise smooth in [−L, L].

Exercise. Write the Fourier series of f (x) = x^2 , x ∈ [−π, π). The period is T = 2π = 2L. We have f ∈ C^2 ([−π, π]) and f (−π) = f (π), in particular f is even (as a function on all R). Then bn = 0 and, by (2.10),

an =

π

∫ (^) π

0

x^2 cos (nx) dx (8.2) =

π

[

x^2

sin(nx) n

]x=π

︸ ︷︷ x=0︸

nπ

∫ (^) π

0

x sin(nx) dx

n π

[

x

cos(nx) n

]x=π

x=

n π

∫ (^) π

0

cos(nx) n

dx ︸ ︷︷ ︸ =

=

n^2

cos(nπ) =

4(−1)n n^2

By (2.9) we have a 0 =

π

∫ (^) π

−π

x^2 dx =

2 π^2 3

We have

F(x) =

π^2 3

n≥ 1

4(−1)n n^2

cos(nx).

A conservation law (3.1) states that, in absence of external sources (in the sense that Q is a conserved quantity^4 ), the rate of change of Q over the interval [x 1 , x 2 ] is determined by the flux through the boundary of the interval. Hence, assuming regularity assumptions on u and q,

d dt

∫ (^) x 2

x 1

u(t, x) dx =

∫ (^) x 2

x 1

ut dx = q(t, x 1 ) − q(t, x 2 ) = −

∫ (^) x 2

x 1

[q(u)]x dx. (3.2)

We use the following lemma.

Lemma 3.1. Let f : R → R be continuous. If for all interval [a, b] ⊂ R we have

∫ (^) b a f^ (x)^ dx^ = 0 then f ≡ 0.

Proof. By assumption, fixed α ∈ R, we have that

F (x) =

∫ (^) x

α

f (y) dy = 0 ∀x.

Since f is continuous then F is differentiable and F ′^ ≡ 0. We can apply the Theorem 8.17 and get 0 ≡ F ′(x) = f (x).

By the above lemma and (3.2) we have ∫ (^) x 2

x 1

(ut + [q(u)]x) dx = 0 ∀x 1 ≤ x 2 ⇔ ut + [q(u)]x = 0.

We are interested in studying the Cauchy problem { ut + q′(u) ux = 0, u(0, x) = u 0 (x).

The function u 0 (x) is called initial datum. Now we are going to study the solutions of such problems, this analysis highly depends on the form of the function q.

3.1 Transport equations

We assume that the rate of change of the flux q is constant, namely

q′(u) ≡ v > 0.

The constant v is called velocity.

(^4) In this case is the conservation of mass.

Application Assume for instance that we look at a substance that is floating on a narrow (and shallow) channel (or a river) where the water moves in a direction with constant velocity.

We call transport equation the following conservation law

ct + v cx = 0. (3.3)

We call ξ := (1, v) ∈ R^2 , then the equation (3.3) is equivalent to

ξ · ∇c(t, x) = 0 ∀(t, x),

namely (if c is differentiable) the derivative of c(t, x) in the direction of ξ is zero. Since ∇c(t, x) is orthogonal to the level curves of c at (t, x), then the vector ξ is parallel to the level curves of c at any (t, x). This means that the level curves of c are straight lines, they are called charac- teristics. The parametric equations for these lines are

x = vt + x 0.

Remark 20. We can see that a solution c of the transport eq. (3.3) is constant along the charac- teristics by computing

d dt

c(t, vt + x 0 ) = ct(t, vt + x 0 ) + vcx(t, vt + x 0 ) = 0.

Theorem 3.2. Let ϕ ∈ C^1 (R). Then the Cauchy problem { ct + v cx = 0, x ∈ R, t > 0 , c(0, x) = ϕ(x)

has the unique solution

c(t, x) = ϕ(x − vt), x ∈ R, t ≥ 0.

Proof. Let us fix any (¯t, x¯) ∈ (0, +∞)×R. Let x = vt+x 0 be the characteristic line containing (¯t, x¯). This means that x 0 = ¯x − v¯t. (3.5)

This characteristic intersects the x-axis at (x 0 , 0). Since c is constant along the characteristics (see Remark 20) we have

c(¯t, ¯x) = c(x 0 , 0) = ϕ(x 0 ) (3.5) = ϕ(¯x − v¯t).

By the arbitrariness of (¯t, x¯) we have

c(t, x) = ϕ(x − vt) x ∈ R, t ≥ 0.

Let us check that c(t, x) is actually a solution

∂tc + v∂xc = ∂tϕ(x − vt) + v∂xϕ(x − vt) = −vϕ′(x − vt) + vϕ′(x − vt) = 0,

hence c solves (3.4). Now we prove that such solution is unique. We consider two solutions c 1 , c 2 of (3.4), then c := c 1 − c 2 solves the initial value problem (3.4) with ϕ ≡ 0. Then, by the previous arguments, c(t, x) = ϕ(x − vt) ≡ 0. Hence c 1 ≡ c 2.