0

我知道在“with(student)”包下,我可以分部分解决一些积分问题。例如,我将其应用于 $int(x*sin(x),x)$ 并得到了答案,但不能用于 $int(exp(x)*sin(x),x)$ 。请问with(student)下打包的这条规则命令是否可以应用于某种积分?谢谢你的帮助。

4

1 回答 1

1
with(student):

s1 := Int(exp(x)*sin(x),x) = intparts(Int(exp(x)*sin(x),x),sin(x));

   /                                    /  /                 \
  |                                     | |                  |
  |  exp(x) sin(x) dx = exp(x) sin(x) - | |  cos(x) exp(x) dx|
  |                                     | |                  |
 /                                      \/                   /

s2 := Int(exp(x)*cos(x),x) = expand( intparts(Int(exp(x)*cos(x),x),cos(x)) );

   /                                    /  /                 \
  |                                     | |                  |
  |  cos(x) exp(x) dx = cos(x) exp(x) + | |  exp(x) sin(x) dx|
  |                                     | |                  |
 /                                      \/                   /

s3 := subs(s2,s1);

        /                                                 
       |                                                  
       |  exp(x) sin(x) dx = exp(x) sin(x) - cos(x) exp(x)
       |                                                  
      /                                                   

           /  /                 \
           | |                  |
         - | |  exp(x) sin(x) dx|
           | |                  |
           \/                   /

s4 := lhs(s3) + Int(exp(x)*sin(x),x) = rhs(s3) + Int(exp(x)*sin(x),x);

      /  /                 \                                
      | |                  |                                
    2 | |  exp(x) sin(x) dx| = exp(x) sin(x) - cos(x) exp(x)
      | |                  |                                
      \/                   /                                

lhs(s4)/2 = rhs(s4)/2;

      /                                                     
     |                     1                 1              
     |  exp(x) sin(x) dx = - exp(x) sin(x) - - cos(x) exp(x)
     |                     2                 2              
    /                                                       

......我们完成了。

于 2012-11-26T00:48:06.243 回答