How to solve this equation S= integrate(​(1-2*x).^2​)./((x-x.^​2).^2)) dt

3 次查看(过去 30 天)
I want to solve this integration for time where t= 0:1
  1 个评论
Alberto
Alberto 2014-9-25
By the way, you should check the variables in your function, and the integration variable. I assumed dt really meant dx to you.

请先登录,再进行评论。

回答(1 个)

Alberto
Alberto 2014-9-25
This is how you should try:
syms x
f=((1-2*x).^2)/( (x-x.^2).^2 )
int(f)
ans =
2*log(x - 1) - 2*log(x) + (2*x - 1)/(- x^2 + x)
int(f,0,1)
ans =
Inf
  2 个评论
Avan Al-Saffar
Avan Al-Saffar 2014-9-25
Dear Alberto
Many thanks but I want to ask you if you noticed that I want to integrate for (t) not for (x) !
Alberto
Alberto 2014-9-25
I've notices, i just thought it was a typo. Do this then:
syms x t
f=((1-2*x).^2)/( (x-x.^2).^2 )
int(f,t,0,1)
ans =
(2*x - 1)^2/(x - x^2)^2

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by