2

I'd like to graph these expressions

  1. enter image description here

    \frac1{2\pi}\int_{-\pi}^\pi{f(x)}dx+\sum_{n=1}^2\left[\left(\frac1\pi\int_{-\pi}^\pi{f(x)}\cos(nx)dx\right)\cos(nx)+\left(\frac1\pi\int_{-\pi}^\pi{f(x)}\sin(nx)dx\right)\sin(nx)\right]
    
  2. enter image description here

    \frac1{2\pi}\int_{-\pi}^\pi{f(x)}dx+\sum_{n=1}^5\left[\left(\frac1\pi\int_{-\pi}^\pi{f(x)}\cos(nx)dx\right)\cos(nx)+\left(\frac1\pi\int_{-\pi}^\pi{f(x)}\sin(nx)dx\right)\sin(nx)\right]
    
  3. enter image description here

    \frac1{2\pi}\int_{-\pi}^\pi{f(x)}dx+\sum_{n=1}^{10}\left[\left(\frac1\pi\int_{-\pi}^\pi{f(x)}\cos(nx)dx\right)\cos(nx)+\left(\frac1\pi\int_{-\pi}^\pi{f(x)}\sin(nx)dx\right)\sin(nx)\right]
    

Is it possible to graph them without having to tediously convert them all into pgfplots-maths by hand?

4
  • 1
    A related topic that might help. Commented Oct 7, 2017 at 18:04
  • 1
    What do you want to graph there? These expression just evaluate to some number. To graph something you need a parameter. Commented Oct 11, 2017 at 7:28
  • @HenriMenke x is the variable. I realise I made a mistake though, the x in the cosnx and sinnx parts is the variable to graph against, the x inside of the integrals should be a separate varaible
    – minseong
    Commented Oct 11, 2017 at 17:23
  • Possible duplicate of How to plot a function in integral form with TikZ?
    – Bordaigorl
    Commented Oct 11, 2017 at 22:49

0

Browse other questions tagged .