Hello, i have an expression which i need to perform derivatives on it so every derivative will be stored as an expression , and then i need to solve a system of equations where every expression equals zero, with x=1 as an input.
i have tried to write down a code,pseudo matlab code to demonstrate. how can i accomplish this solving ?
maybe we could use
******************
syms y(t) aeqn = diff(y,t,2) == a*y;ySol(t) = dsolve(eqn)***********************
Thanks
sym a,b,c,d,x
y=a*x^3+b*x^2+c*x+d*sin(x)
y_1=diff(y,x)
y_2=diff(y,x,2)
y_3=diff(y,x,3)
x=1
sol = solve(y_1,y_2,y_3)
Best Answer