diff(y(x)^2 - 5sin(x), x)
Want to compute something more complicated? Try a full Python/SymPy console at SymPy Live.