
154 CHAPTER 4. LINEAR PDES OF PHYSICS
>
bc1:=eval(X,x=0)=0; bc2:=eval(diff(X,x),x=0)=0;
bc1 := A1 + A3 =0 bc2 := A2 k + A4 k =0
>
bc3:=eval(X,x=L)=0; bc4:=eval(diff(X,x),x=L)=0;
bc3 := A1 cos(kL)+A2 sin(kL)+A3 cosh(kL)+A4 sinh(kL)=0
bc4 := −A1 sin(kL) k + A2 cos(kL) k + A3 sinh(kL) k + A4 cosh(kL) k =0
On attempting to solve the four boundary conditions for the four unknown
coefficients, one of the coefficients will be undetermined and a transcendental
equation for k will result. Let’s choose the undetermined coefficient to be A4 .
Then, bc1 , bc2 ,andbc3 are solved for A1 , A2 ,andA3 and sol2 assigned.
>
sol2:=solve({bc1,bc2,bc3},{A||1,A||2,A||3}); assign(sol2):
The coefficient A4 is temporarily set equal to 1 and the fourth boundary con-
dition divided by k
3
and simplified with the symbolic option.
>
A||4:=1: bc4:=simplify(bc4/kˆ3,symbolic);
bc4 :=
2(−1 + cos(kL)cosh(kL))
k
2
(cos(kL) − cosh(kL))
=0
We set kL= K in bc4 and isolate the cos(K) term to the left of the equation.
>
eq:=isolate(subs(k*L=K,bc4),cos(K));
eq := cos(K)=
1
cosh(K)
On comparing the transcendental equation eq with the corresponding equation
for the clamped-free end situation in Recipe 01-1-3, we see that they differ by
a minus sign on the right-hand side. As before, eq must be solved numerically
for the allowed K values. For large K,cosh(K) becomes very large and cos K
approaches zero. The allowed K values, therefore, are approximately the zeros
of the cosine function. A functional operator f is introduced to determine the
zeros in the range 3(n − 1) to 3 n,wheren will take on the values 1, 2, etc.
>
f:=n->fsolve(eq,K,3*(n-1)..3*n):
Then forming f(n), dividing by L, and using the sequence command, the first
four zeros of k are given in sol3 which is assigned.
>
sol3:=seq(k||n=f(n)/L,n=1..4); assign(sol3):
sol3 := k1 =0., k2 =
4.730040745
L
, k3 =
7.853204624
L
, k4 =
10.99560784
L
The first zero, k1 , must be rejected, because for k = 0 the lhs of bc4 is finite.
The parameters L, v
0
, W , H, Y ,andρ are entered, and the radius of gyration
κ, cross-sectional area S, linear density , and the parameter a calculated.
>
L:=1: v0:=1: W:=0.1: H:=0.049: Y:=2.1*10ˆ11: rho:=7.8*10ˆ3:
>
kappa:=evalf(H/sqrt(12)); S:=W*H; epsilon:=rho*S;
a:=(S*kappaˆ2*Y/epsilon)ˆ(1/4);
κ := 0.01414508160 S := 0.0049 ε := 38.22000 a := 8.567101289
The coefficient A4 , which had been temporarily set equal to 1, is relabeled