I am using this matlab version
'24.2.0.2806996 (R2024b) Update
Example:
-------------------------------------------
syms u(t) a
sl = dsolve( diff(u,t) == sqrt( u^2+a^2) )
sl =
-a*1i
a*1i
exp(C1 + t)/2 - (a^2*exp(- C1 - t))/2
------------------------------------------
Apart from the constant solution,
the correct solution is
u(t) = a*sinh( t+ const.)
which is different than the matlab solution unless a^2 = 1
What's wrong with dsolve ?