What's the complete error message?
Your code runs without error here:
syms x y(x)
eqn = x^2*diff(y,x,2) - x*diff(y,x) + y == x*log(3*x);
sol = dsolve(eqn);
disp(sol);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!