How to do manual operation of cross multiplication or substitution?

1 view (last 30 days)
If
syms A B x
y = A*x^2 + B*x;
dy = diff(y)
d2y = diff(dy)
then how to get where d2y is the second derivation; using subs or any other command in MATLAB

Answers (1)

Chunru
Chunru on 12 Dec 2021
Is this what you want?
syms A B x z
y = A*x^2 + B*x;
dy = diff(y)
dy = 
d2y = diff(dy)
d2y = 
z = d2y/x^2
z = 
  4 Comments
Chunru
Chunru on 14 Dec 2021
subs and eval are for different purposes (not in your questions)

Sign in to comment.

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!