||'''Book'''|| Advanced Engineering Mathematics || ||'''Author'''|| Erwin Kreyszig || ||'''Edition'''|| 8th Edition || /* code_begins */ {{{ #Plotting the function #It can be seen from the figure that function is neither even nor odd in the given interval x=var('x') f1=function('f1',x) f1=(cos(x))^2 f2=function('f2',x) f2=(sin(x))^2 f1.plot(xmin=-pi,xmax=0)+f2.plot(xmin=0,xmax=pi) }}} /* code_ends */ * '''Solution by''': * , , * , ,