Dsolve generates result with variable "t" when t not used

1 view (last 30 days)
Hi; I tried to solve a PDE using dsolve, and the code looks like:
if true
syms h r l
h = 2
g = 5
dsolve('r^2*(h^2*(D2v+1/r*v+2*i*h*Dv))-l*2*i*h*v=0','v(0)=r')
end
however, the results is strange and has t in it as variable:
C15*exp(-(t*((h*(h^3*i^2*r^2 - h*r + 2*l*i))^(1/2) + h^2*i*r))/(h*r)) - exp((t*((h*(h^3*i^2*r^2 - h*r + 2*l*i))^(1/2) - h^2*i*r))/(h*r))*(C15 - cos(r))
Can someone point to the reason for this "t" variable?
  4 Comments
Chandani Madnani
Chandani Madnani on 4 Oct 2017
What is h and g? Are they representing constants B and C from the mathematical equation? Why is h and l used inside 'dsolve' then? What is 'i' in the equation for? Is that also a constant?
For more details about using "dsolve", please see the documentation link below:
https://www.mathworks.com/help/symbolic/dsolve.html

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!