1

I'd just like to know if it is possible to use Manipulate for to show how the derivative of an expression such as

(-1)^(x/a)+(-1)^(x/(a+5)) 

varies with respect to the parameter a.

In Mathematica I can't just write derivative(equation) and get a result as I can do on-line with Wolfram|Alpha. In Mathematica I write

f[x_] := (-1)^(x/a) + (-1)^(x/(a + 7)) 

on one line and write

Manipulate[Plot[{Re{f'[x]]}, {x, 0, 10}, {a, 1, 10}] 

on another. You guys probably know I get a plot, but I can't vary a, because I didn't write the whole thing within Manipulate.

How can I write this correctly?

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
  • 2
    f[x_, a_] := (-1)^(x/a) + (-1)^(x/(a + 7)); Manipulate[Plot[Evaluate@Re@D[f[x, a], x], {x, 0, 10}], {a, 1, 10}] – corey979 Nov 19 '16 at 16:06
  • Welcome to Mathematica.SE! 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! –  Nov 19 '16 at 16:17

0 Answers0