Message Boards Message Boards


Simplify a product with f(x,n)?

Posted 6 months ago
2 Replies
3 Total Likes

Hello, I've a problem. Imagine you have a function f(x,n) like f(x,n)=x^n or sin(x*n). Then you have the product sign. The new formular is then a(x) = Product[f[x, n], {n, 0, x}]. And I don't know how I can simplify that equation, or put that product sign away. Do you know how I can simplify an equation like that in general, or in specific Product[Cos[x/n], {n, 2, -1 + x}].

2 Replies
f[x_, n_] := x^n
a[x_] := Product[f[x, n], {n, 0, x}]
(*  x^(1/2 x (1 + x))  *)
(*   8   *)
b[x_] := Product[Cos[x/n], {n, 2, -1 + x}]
(*  Cos[5/4] Cos[5/3] Cos[5/2]   *)

What exactly do you mean by "simplify"?

You may expand your product into a Sum. Is it that what you mean by simplify?

In[20]:= tt = Product[Cos[x[i]], {i, 1, 5}]

Out[20]= Cos[x[1]] Cos[x[2]] Cos[x[3]] Cos[x[4]] Cos[x[5]]

tt // TrigReduce

You will get a Sum of Cos[ x[1]+ rest ], the rest containing all the other x's and all combinations of Plus and Minus.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract