Differentiation and integration of functions

2 次查看(过去 30 天)
syms x
y=(11*x+1)/sqrt(x^2+22)
diff(y)
syms x
diff((11*x+1)/sqrt(x^2+22),2)
x=dsolve('Dx=(11*x+1)/sqrt(x^2+22)','x(0)=0'))
grid
I have this code, but in line 6 its mistake. Can you help me?
I must to find

回答(2 个)

Bjorn Gustavsson
Bjorn Gustavsson 2020-5-21
You need to change from assignment to equality:
x=dsolve('Dx==(11*x+1)/sqrt(x^2+22)','x(0)=0')
But this is most likely not the way to solve this task.
HTH

David Hill
David Hill 2020-5-21
syms x;
y=(11*x+1)/sqrt(x^2+22);
dy=diff(y);
ddy=diff(dy);
for x=1:3
Dy(x)=double(subs(dy));
DDy(x)=double(subs(ddy));
end
Y=@(x)(11*x+1)./sqrt(x.^2+22);
I=integral(Y,1,3);

标签

Community Treasure Hunt

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

Start Hunting!

Translated by