Well I got the hard part right!
I had another look at this equation
(x-a)^2 * (x-b)^2 * y'' = c*y. (1)
For the solution, obtained without a book

by a different argument than coomast’s, I gave
y = L*(x - a)^((a+K)/(a-b)) . (x - b)^(-(b+K)/(a-b)) (2)
It
is true of this, as can be checked by twice differentiating, that
(x-a)^2 * (x-b)^2 * y'' = C*y (3)
where you can get any C you want by choosing the K. So, late at night I thought therefore 'I've done it'. Not quite right or complete. (It was subliminally disquieting that my formulation after that was so unlike the linear constant coefficient case.)
The way to think of it rather is, if you twice differentiate w.r.t. x, the function that appears in eq. 2 above without the constant, i.e. define
g(x, K) = (x - a)^((a+K)/(a-b)) . (x - b)^(-(b+K)/(a-b)) (4)
you find
(x-a)^2 * (x-b)^2 *g’’(x, K) = (a + K)*(b + K)*g(x, K) (5)
(More explicitly
(x-a)^2 * (x-b)^2 * [(x - a)^((a+K)/(a-b)) . (x - b)^(-(b+K)/(a-b))]’’
= (a + K)*(b + K)*[(x - a)^((a+K)/(a-b)) . (x - b)^(-(b+K)/(a-b))] ) (6)
So this function g is a solution of
(x-a)^2 * (x-b)^2 * y'' = C*y
if (a + K)*(b + K) = C (7)
There are then two values of K, K
1, K2 say, that satisfy (7). So
y = g(x, K1) and y = g(x, K2) are solutions and so is
y = A*g(x, K1) + B*g(x, K2) (8)
where A, B are arbitrary constants in the usual way remembered from lde’s.
When we incorporate the K’s which are solutions of (7), the formula is exactly the same as that given by coomast.
As this has turned out not all that easy maybe it is OK to give my way of finding the solution and rewrite in LaTex presently?