This is for $ x \in [0,1]$ with initial conditions $ y(0) = 0$ and $2y(1) = y'(1)$.
My attempt:
for $\lambda = 0$ we get the eigenvalues $0$.
for $\lambda > 0$ I get the solution as $y(x) = A\sin \sqrt{\lambda}x + B \cos \sqrt{\lambda}x$ and after using the initial condition I get that the eigenvalues satisfy $$\tan \sqrt{\lambda} = \sqrt{\lambda} /2$$ which has an infinite number of solutions. I also get that $A = 0$.
for $\lambda < 0$ I get the solution $y(x) = A \sinh \sqrt{-\lambda}x + B \cosh \sqrt{-\lambda} x$. Again, using the initial conditions I get the eigenvalues satisfy $$\tanh \sqrt{-\lambda} = \sqrt{-\lambda}/2$$.
Now, for this question I have to "find an expression that defines the eigenvalues" and the corresponding eigenfunctions. I have found TWO expressions, which express two sets of eigenvalues for $\lambda > 0$ and $\lambda < 0$ - how do I combine these for a single expression?
I am also asked to use this to find the coefficients $B_k$ so that $$x^2 = B_0 \sinh \sqrt{-\lambda_0}x + \sum_{k=1}^\infty B_k \sin\sqrt{\lambda_k} x $$ for $x \in (0,1)$.
I would appreciate any help please.
Your two statements are equivalent.
This is because: $i\tan(x) \equiv \tanh(ix)$
Let's start from the statement $\tanh(\sqrt{-\lambda})=\frac {\sqrt{-\lambda}} 2$
This is equivalent to $\tanh(i\sqrt{\lambda})=\frac {i\sqrt{\lambda}} 2$
The identity above changes the RHS, giving $i\tan(\sqrt{\lambda})=\frac {i\sqrt{\lambda}} 2$
and finally $\tan(\sqrt{\lambda})=\frac {\sqrt{\lambda}} 2$