On 12/20/2016 7:08 AM, Lmore wrote:
> Hi, this is my first post here!
> I've been looking at some past examples to determine the stationary points of f(x),
>but keep coming into errors wherever I look. 'm' is
>saved so shouldn't cause any issues, I just cant get past the issues with 'x'
> The equation is : f(x) = (5*x^2)/(m(x^2+1))
> Initially I tried:
> Undefined function or variable 'x'.
> Followed by (purely guessing to see if I could get it to work:
>>> syms x
> Error using sym/subsindex (line 766)
> Invalid indexing or function definition. When defining a function,
>ensure that the arguments are symbolic variables and the body
> of the function is a SYM expression. When indexing, the input must
>be numeric, logical, or ':'.
> I seem unable to get past this, and any help would greatly be appreciated
One way might be
syms x m
(10*x)/(m*(x^2 + 1)) - (10*x^3)/(m*(x^2 + 1)^2)