Hello people in mapleprimes,

I want to solve the next system of equation for B/A and C/A.

eq1:=A+B=F+G;

eq2:=k*(A-B)=kappa*(F-G);

eq3:=F*exp(I*kappa*a)+G*exp(-I*kappa*a)=C*exp(I*k*a);

eq4:=kappa*F*exp(I*kappa*a)-kappa*G*exp(-I*kappa*a)=k*C*exp(I*k*a);

But, though it is well-known, solve({eq1,eq2,eq3,eq4},{B/A,C/A})

does not work well, as the values I want to solve it for are

expressions: B/A and C/A not variables.

Then, you might thing the next works well.

eq:=subs({B=A/t,C=A/u},{eq1,eq2,eq3,eq4}):

solve(eq,{t,u});

But, this doesn't work well, with the answer was

only the ratio of t and u expressed as the following:

t = t, u = exp(I*k*a)*(exp(-I*kappa*a)*k^2-exp(I*kappa*a)*k^2-exp(-I*kappa*a)*kappa^2+exp(I*kappa*a)*kappa^2)*t/(4*kappa*k*exp(I*kappa*a)*exp(-I*kappa*a))

Isn't there nice way to solve the above system of equation, except that

sol1:=solve({eq3,eq4},{F,G});assign(sol1);

sol2:=solve({eq1,eq2},{A,B});assign(sol2);

Best wishes

taro