Combinatorics said:
Is there any way of solving the two equations without having to do the process you mentioned?
Thanks !
I suppose so, but I don't know why you would want to. Certainly you would use ##y = A\cos(\mu x) + B\sin(\mu x)## instead of the exponential version. I will show you how to get the solution from there, assuming you didn't think of the ##(x-a)## version. Applying the boundary conditions you get:$$A\cos(\mu a) + B\sin(\mu a)=0$$ $$
A\cos(\mu b) + B\sin(\mu b)=0$$For this to have a non-trivial solution for ##A## and ##B## the determinant of coefficients must be 0:$$
\left |\begin{array}{cc}
\cos(\mu a) & \sin(\mu a)\\
\cos(\mu b) & \sin(\mu b)
\end{array}\right | =\cos(\mu a)\sin(\mu b)-\cos(\mu b)\sin(\mu a)= 0$$ $$
\sin(\mu(b-a))=0$$
This gives ##\mu(b-a) = n\pi## or ##\mu_n = \frac{n\pi}{b-a}##
Under this condition the system of equations is dependent, so just using the first one we can write ##A\cos(\mu a) = -B\sin(\mu a)## so ##A=-\frac{B\sin(\mu a)}{\cos(\mu a)}##. Substituting that for the ##A## in the general solution for ##y## gives $$
y_n = -B\frac{\sin(\mu_n a)}{\cos(\mu_n a)}\cos(\mu_n x) + B\sin(\mu_n x)
=(\frac{B}{\cos(\mu_n a)})(-\sin(\mu_n a)\cos(\mu_n x)+\sin(\mu_n x)\cos(\mu_n a))
=(\frac{B}{\cos(\mu_n a)})\sin(\mu_n(x-a))$$Since any constant times a solution is a solution, we can ignore the constant ##\frac{B}{\cos(\mu_n a)}## and take$$
y_n = \sin(\mu_n(x-a))$$So what I showed you in my first post is something worth learning. It saves a lot of work.