• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended
HP Prime Graphing Calculator

I wanted to use the CAS system to my advantage to solve indefinite integrals, but I encountered a problem.

 

when I try to integrate the function 

 

int(xsin(x))

 

which is the integral  (x*sin(x))dx , it just returns 

 

xsin(x)dx

 

and that's just plain useless. I need it to return  sin(x) - x*cos(x)

2 REPLIES 2
HP Recommended

Hi!, @bbeaver7:

 

Syntax :

int(Expr,[Var],[Real1,Real2])

Description :

Integral (definite or indefinite). You can specify a variable of integration as well as the bounds ofr integration. You can use the integration template in the Template menu as well.

Example :

int(1/x) returns ln(abs(x)) int(sin(x),x,0,π) returns 2

 

Write ... int(x*sin(x)), in Function-CAS

 

The result, is same. See, the image ...

IMG_20170511_145732.jpg

 

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
HP Recommended

Are you entering your multiply between x and sin? Otherwsie, you are trying to integrate the function "xsin(...)" which the CAS can't do (since xsin doesn't exist and the CAS doesn't know how to handle it), so it is returned untouched.

 

x*sin(...) on the other hand should work fine. Don't leave out * and assume it can be handled. In many cases, your input is ambiguous and the CAS makes the assumption that you are telling it exactly what you want so won't "guess" you mean something else. You very well MIGHT be intending to later define a function named "xsin" which would then be valid for your prior expression.

TW

Although I work for the HP calculator group as a head developer of the HP Prime, the views and opinions I post here are my own.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.