(2) restart:with(linalg)

> restart:with(linalg);
BlockDiagonal, GramSchmidt, JordanBlock, LUdecomp, QRdecomp, Wronskian, addcol,
addrow, adj, adjoint, angle, augment, backsub, band, basis, bezout, blockmatrix, charmat,
charpoly, cholesky, col, coldim, colspace, colspan, companion, concat, cond, copyinto,
crossprod, curl, definite, delcols, delrows, det, diag, diverge, dotprod, eigenvals,
eigenvalues, eigenvectors, eigenvects, entermatrix, equal, exponential, extend, ffgausselim,
fibonacci, forwardsub, frobenius, gausselim, gaussjord, geneqns, genmatrix, grad,
hadamard, hermite, hessian, hilbert, htranspose, ihermite, indexfunc, innerprod, intbasis,
inverse, ismith, issimilar, iszero, jacobian, jordan, kernel, laplacian, leastsqrs, linsolve,
matadd, matrix, minor, minpoly, mulcol, mulrow, multiply, norm, normalize, nullspace,
orthog, permanent, pivot, potential, randmatrix, randvector, rank, ratform, row, rowdim,
rowspace, rowspan, rref, scalarmul, singularvals, smith, stackmatrix, submatrix, subvector,
sumbasis, swapcol, swaprow, sylvester, toeplitz, trace, transpose, vandermonde, vecpotent,
vectdim, vector, wronskian
> R:=-x*y+2*y^2;S:=-x^2*y;
R := Kx y C 2 y2
S := Kx2 y
(1)
(2)
> x:=(U+V)/2;y:=(U-V)/(2*I);
1
1
UC
V
2
2
1
y := K I U K V
2
x :=
> G:=simplify(R+I*S);
1
1
1 2
1 2
1 3
1 2
1
1 3
G :=
I U2 K
I V2 K
U CU VK
V K
U K
U VC
U V2 C
V
4
4
2
2
8
8
8
8
> g[20]:=diff(G,U,U);
1
3
1
g20 := K 1 C
IK
UK
V
2
4
4
> g[11]:=diff(G,U,V);
1
1
g11 := 1 K
UC
V
4
4
> g[21]:=diff(G,U,U,V);
1
g21 := K
4
> U:=0;V:=0;
U := 0
V := 0
> g[20]:=eval(g[20]);g[11]:=eval(g[11]);g[21]:=eval(g[21]);
1
g20 := K1 C
I
2
(3)
(4)
(5)
(6)
(7)
(8)
(9)
g11 := 1
1
4
> l[1]:=(1/2)*Re(I*g[20]*g[11]+g[21]);
3
l1 := K
8
g21 := K
(9)
(10)