Professional Documents
Culture Documents
r = xi + y j = xi + x3 j so that d=
r dxi + 3 x 2 dx j
F = 5 x 2 y i + 6 xy j = 5 x 2 x3 i + 6 xx3 j = 5 x5 i + 6 x 4 j
Fd r =
(5 x5 i + 6 x 4 j)(dxi + 3 x 2 dx j) =5 x5 dx + 18 x 6 dx
x =1 5 18 143
∫ Fd r = ∫ (5 x + 18 x )dx = [ x 6 + x 7 ]10 =
5 6
c x =0 6 7 42
dr
= i
d t2( ) −j
d ( t sin(2t ) )
−k
d ( cos(t ) )
2t i {sin(2t ) + 2t cos(2t )} j + sin(t )k
=−
dt dt dt dt
dr π
= π i − {sin(π) + π cos(π)} j + sin( )k= π i + π j + k
dt t = π 2
2
(c) A scalar field f is described by the equation f ( x, y, z ) =3 + x 2 − 3 xyz + cos( yz ) . Find the
π
gradient vector for this field at point (2, 1, ). [3 marks]
2
∂f ∂f ∂f
∇f= i + j + k
∂x ∂y ∂z
∂f
= 0 + 2 x − 3 yz + 0 = 2 x − 3 yz and
∂x
∂f
=+0 0 − 3 xz − z sin( yz ) = − 3 xz − z sin( yz ) .
∂y
∂f
= 0 + 0 − 3 xy − y sin( yz ) =− 3 xy − y sin( yz )
∂z
(a) (i) Does the power series method apply to the ordinary differential equation
d2y dy
2
+ 2 x + y =?0 Explain why.
dx dx
Solution: Yes – the coefficient of the 2nd derivative is 1 (standard form). The coefficients of
dy/dx and y are finite at x = 0 and have derivatives.
d2y dy
(ii) Use the power series method to find the general solution of 2
+ 2x + y = 0 up to
dx dx
the x 4 term.
[8 marks]
y = a0 + a1 x + a2 x 2 + a3 x 3 + a4 x 4 + a5 x 5 + a6 x 6 .....
a0
Constant term 2a2 + a0 =
0 a2 = −
2
1
Coefficient of x 6a3 + 2a1 + a1 = 6a3 + 3a1 = 0 a3 = − a1
2
5
Coefficient of x 2 12a4 + 4a2 + a2 = 12a4 + 5a2 = 0 a4 = − a2
12
5
So a4 = a0
24
a0 2 a1 3 5
The solution is y = a0 + a1 x − x − x + a0 x 4 + .....
2 2 24
d2y dy
(b) (i) Solve the differential equation 2
+ 2 + 2y =
0 for the initial conditions
dt dt
y (0) = 1 and y '(0) = 0 .
(ii) Is the system under-damped or over damped? (Explain your answer)
[4 marks]
Solution
d2y dy
First get the general solution of 2
+ 2 + 2y =0
dx dx
This is constant coefficient, 2nd order linear DE – so trying solution y = ekx yields the characteristic
equation k 2 + k + 2 =0 for the DE. This gives
−2 ± (2) 2 − 4 × 2 ×1 −2 ± −4 −2 ± 2i
k = = = = −1 ± i
2 ×1 2 2
=
Recall that e− x ± i x =
e − x e ±ix e − x {cos( x) ± i sin( x)}
Therefore the general solution is:
=y A e− x cos( x) + B e− x sin( x)
y '(0) = 0 .
dy
dx
{ } {
= A −e − x cos( x) − e − x sin( x) + B − e − x sin( x) + e − x cos( x) }
{ } {
0 =A −e0 cos(0) − e0 sin(0) + B − e0 sin(0) + e0 cos(0) =− A + B =0 }
Therefore A = 1, B = 1, therefore:
=y e − x cos( x) + e − x sin( x)
For the characteristic equation k 2 + k + 2 =0 we have b 2 − 4ac =(2) 2 − 4 ×1× 2 =−4 < 0 ,
therefore the system is under damped.
(a) Suppose that a function f (t ) is a periodic function with a period of 2. Write the Fourier
expansion for this function.
State the formulas used to compute the a and b coefficients in the expansion.
[2 marks]
Solution:
The general formula for Fourier expansion is
∞
2π 2π
a0 + ∑ an cos
f (t ) = nt + bn sin nt
n =1 T T
substitute T = 2 to get:
∞
a0 + ∑ ( an cos (π nt ) + bn sin (π nt ) )
f (t ) =
n =1
substitute T = 2 to get:
2 2 2
1
(π nt ) dt; bn ∫ f (t ) sin (π nt ) dt
2 ∫0 ∫
=a0 = f (t )dt ; an f (t ) cos=
0 0
1, 0 ≤ t ≤ 1
f (t ) =
0, 1 < t < 2
Solution:
1
a0 = (note that this is the average value for the function f(t))
2
(d) Find a formula for the Fourier coefficients bn of f (t ) for integer n > 0.
Use this to find the values of b3 , b4 . [3 marks]
Solution:
2 1 2
bn = ∫ f (t ) sin (π nt ) dt = ∫ 1× sin (π nt ) dt + ∫ 0 × sin (π nt ) dt
0 0 1
1
1 1
− nπ cos (π nt ) =
= − cos (π n ) − cos 0
nπ
0
1
= 1 − cos (π n )
nπ
1 1 2 1 1
=
b3 [1 − cos 3=
π] [1 − (−=
1) ] ; b= [1 − cos 4π=] [1 − 1=] 0;
3π 3π 3π 4π 4π
4
e , t ≥ 0
−2 t
g (t ) = 2t
−e , t < 0
Calculate the Fourier transform of g(t), simplify the expression as far as possible.
[3 marks]
Solution:
∞ 0 ∞ 0 ∞
∫ ( −e ) e dt + ∫ e e dt = − ∫ e( 2 ik )t dt + ∫ e −( 2 + ik )t
∫ f (t )e dt =
− ikt − ikt −2 t − ikt −
f (k ) = 2t
dt
−∞ −∞ 0 −∞ 0
0 ∞
1 ( 2−ik )t 1
e ( 2 ik )t =
− +
= − e + −
2 − ik −∞ 2 + ik 0
1 1 2ik
=− −− =−
2 − ik 2 + ik 4 + k2
1, − 1 ≤ t ≤ 1
(f) A function h(t ) is defined by h(t ) = The Fourier transform of h(t) is
0, otherwise
2sin k
h (k ) = . Use stretch or shift theorems to calculate the Fourier transform of f(t) that
k
1, − 0.5 ≤ t ≤ 0.5
is defined by f (t ) = [2 marks]
0, otherwise
Solution:
1 k
Using stretch theorem for Fourier transform: (If f (t ) = h(ct ) then f (k ) = h( ) )
c c
k k
2sin 2sin
1 k 1 2 2
=
f (k ) =h( ) =
2 2 2 k k
2
∂ 2u 1 ∂ 2u
(a) The one dimensional wave equation = has a following travelling wave
∂x 2 c 2 ∂t 2
solution u ( x, t ) = f ( x − ct ) + f ( x + ct ) . Show that this solution satisfies an initial condition
∂u ( x, t )
= 0 when t = 0. When c = 1 and the second initial condition is u ( x, 0) = 4e − x , find
2
∂t
the solution that satisfies both initial conditions. Sketch the solution for t = 2, indicating
important parameters on the graph. [3 marks]
Solution:
∂u ( x, t ) ∂
Find: = [ f ( x − ct ) + f ( x + ct ) ] = −cf ( x − ct ) + cf ( x + ct ) , therefore:
∂t ∂t
∂u ( x, t )
= − cf ( x − 0) + cf ( x + 0) = 0 , as required
∂t t =0
therefore: f ( x) = 2e − x ,
2
−( x −t ) −( x + t )
2 2
=
u ( x, t ) 2e + 2e
−( x − 2 ) −( x + 2 )
2 2
For t = 2 =
u ( x, 2) 2e + 2e and the plot of this function is:
(b) The separated solutions of the 1D wave equation are solutions of the form X ( x)T (t ) . The
possible separated solutions are listed below.
X ( x) = sin(kx), cos(kx) or a mixture of these terms
T (t ) = sin(kct ), cos(kct ) or a mixture of these terms
Suppose that a guitar string has length π and that the boundary conditions are
u (=
x, t ) =
0, x 0 and that u ( x=, t) =
0, x π
(ii) Find the separated solutions that can match these boundary conditions.
Explain carefully why you reject some solutions and how you use the boundary
conditions.
[6 marks]
Solution:
(i)
Have: u (0, t ) = 0 and u (π , t ) = 0 , therefore using u ( x, t ) = X ( x)T (t ) get: X (0)T (t ) = 0 and
X (π )T (t ) = 0 , as T (t ) ≠ 0 , get X (0) = 0 and X (π ) = 0
∞
The general solution=
therefore is: u ( x, t ) ∑{a
n =1
n sin(nx) cos(nct ) + bn sin(nx) sin(nct )}
7
(i) ∫ t [3δ (t − 1) + δ (t + 2) + δ (t − 3π )] dt
0
∞
π
(ii) ∫ sin t δ (t − 6 ) dt
−∞
[3 marks]
Solution:
(i) Note that the second and the third delta-functions are outside the integration range (-2<0 and
3π > 7 ), so
7 7 7 7
= 3 ×1 + 0 + 0 = 3
∞
π π 1
(ii) ∫ sin t δ (t − 6 ) dt = sin 6
−∞
=
2