Skip to main content
1-Visitor
August 21, 2018
Question

Variable in Mathcad and Symbollic Differentiation

  • August 21, 2018
  • 2 replies
  • 4447 views

Hi, 

 

I would like to get the expression of a function after differentiation with respect to a variable.

Somehow Mathcad does not recognize the variable and tells that the variable is undefined.

image.png

it leads to make it impossible to find the derivative.

 

image.png

 

 

 

numerically, the calculation is correct.

It is just this symbolic feature that are having problem.

 

I appreciate any suggestion.

 

2 replies

23-Emerald I
August 21, 2018

The red circle is one problem, but it shouldn't stop you from getting symbolic derivative:

Capture.PNG

bmulyanto1-VisitorAuthor
1-Visitor
August 21, 2018

Thanks!
It works.
I though I should not include n.

image.png

25-Diamond I
August 21, 2018

Either

B1.png

or

B2.png

The first is the cleaner version.

In the latter case you will get an error by the numerics because n is not defined, but the symbolic evaluations should work nonetheless.

 

25-Diamond I
August 21, 2018

The problem is the inline evaluation (the last equal sign) when you define your functions.

Delete it!