Items tagged with derivative

For my fdiff graph, it seems that the cirtical points appear to be jaggered or not smooth. Anyone nows what seem to be the problem? i tried increasing the numpoints but it did not work:( I am open to all opinions. Thanks:)

I had problems plotting the solutions of my PDE with the derivative as the axis. Anyone knows what went wrong?

p1 := pds:-plot(diff(f(x,y),y), y = 0 .. 10, x = 0, numpoints = 100)

I seem to be getting a plot of y=0. Any help would be greatly appreciated:))


To summarize, I have a variable ε = order(1),  which maple has assumed is a funtion ε(x,y,z) and so when I differentiate epsilon with respect to x (or y or z) I do not get 0. I get ε(or εy, εz). How do I ensure maple does not assume this?

More detail of my process:

I declare functions,

I have the function I want to transform,

Now I transform the variables to the new co-ordinate system. i.e. from (x,n,q) to (s,Y,z)


Good! - Everything correct so far. 

Now I want to linearise so i introduce x=x0+ε*x1; and the same for (Y,z), 


As you can see, epsilon has derivatives, which it should not. 

How I can avoid this? 

Thanks in advance - im well and truely stumped over this.

P.s. if the images do not show, the script can be found here: 

Hello people in mapleprimes,

I want to ask you about how to make a function of function which makes a logarithmic derivative of a function.

For example, x^3 is mapped as h(x^3)=3h(x), h(x+y)=(x/(x+y))*h(x)+(y/(x+y))*h(y),


I hope someone give me a hing to create h.


Best wishes.






I wish to define a function which is the derivative of another function.

> f:=(x)->x^2:

> g:=(x)->diff(f(x),x):

> g(x);

2 x

> f(2);


> g(2);
Error, (in g) invalid input: diff received 2, which is not valid for its 2nd argument


I cannot find a way in which I can define the function g, using the functional operator, so that I can actually evaluate g(x).


How can I do this?



     I now have a problem.

     I want to calculate first derivative of a function and make it a function with respect to a variable.

     For example,




     I expect derivative is a function, (i.e.  derivative(x)=2x) , So if I put 'derivative(2)',I should get 4 as results. However I get "Error, (in H_Mag_Derivative_2) invalid input: diff received 2, which is not valid for its 2nd argument".

     Could someone give me a hand? Very much appreciated.

Hi evrey ones in pdsolve we have these commande to use U(x,t) 

> U:= subs(pds:-value(output=listprocedure), u(x,t));

  id like to get du(x,t)/dt

i tried these  

U:= subs(pds:-value(output=listprocedure), du(x,t)/dt);  but is not work 

thank you 


Dear all

I need a help to compute the integral from -1 to 1 of product of derivative of legendre polynomial

> restart;
> with(orthopoly);

P(n, x); # Designe the legendre polynomial of degree n
I would like to compute

int(diff(P(n,x),x)*diff(P(m,x),x),x=-1..1) ;


In this previous formula when I put n=2 and m=3 I can get the result but in general  case i cannot,

Many thanks



How I can write a procedure with Maple 18 that it receives function f(x) and x=a as inputs, 
then compute f'(a) and shows in output these 2 cases:

1) value f'(a)
2) curves f(x) ,y=f'(a)*(x-a)+f(a) and also the point (a,f'(a)) in a system ?

I am fairly new to Maple and cannot figure this out.

I'm having some trouble in computing formally the derivatives of
some composite functions

h:= x -> f(g(x)),

imposing conditions on the unknown functions f and g.

For example, I cannot find a way to impose g'(0)=0,
such that the computation of


simply gives 0.


Thank you in advance!

Sorry for disturbing you again. I am haunted by a problem about Taylor expansion in Maple.

For example, when the angle alpha is small, thus we could use taylor(sin(x),x=0,1) to get a approximated function of sin(x) with different order of precision.

But, if the sin(x) meets diff(x(t),t), (x is a time-dependant variable), could we also apply the Tayolr expansion in Maple to obtain a approximation?

For example, the function: sin(x(t))*diff(x(t),t), x(t) is given with a small value, but diff(x(t),t) could not be neglected, because even x(t) is with a small value , diff(x(t),t) could be great. We could conduct the Talyor expansion with hands, and sin(x(t))*diff(x(t),t) becomes x(t)*diff(x(t),t). But I wonder if we could use Maple to realize this procedure. And if the Maple could make it, I would like to know if the Maple could handle the multi-variable Taylor expansion accompanied with the time derivative. For example, the x(t) and y(t) are considered as small value variables, could we simplified the following function sin(x(t))*cos(y(t))*diff(x(t),t)*diff(y(t),t).

Thank you very much in advance for taking a look. 



I am new to Maple and discovering its features. I was wondering whether it is possible to define a function abstractly, say:


and differentiate it, to obtain f'(1/x) (-1/x^2)? Is this possible?



I wonder if there is any way to sort expressions like




how to sort  to


I have the following expression.


What I want to do is take the derivative of this expression with respect to,


Where L is somewhere between 1 and n. 

Using the diff operator, I would like to get something like,


But I don't.  Instead, I get zero.  I want to leave n undefined so that the summation isn't automatically expanded out to alot of terms, thereby making it much more difficult to read.  This is especially true as my formulas become more complicated.




See attached file and code

0. This is the differential equation I'm trying to do:


1. After you look at the above imgur link, could you help me with this error 

Error, (in Units:-Standard:-+) the units ``Ω`` and `1/F` have incompatible dimensions


2. Why does my solve ODE fail? 


See my code:

1 2 3 4 5 6 7 Last Page 1 of 25