Double derivating a function and after turn in the answer 2 constans
2 次查看(过去 30 天)
显示 更早的评论
Hello!
I am stucked from 5-6 hours at this point:
The function is: [arctan(x−3yx+3y)] and the exercise is to calculate d ^ 2 f / d x ^ 2 and after that i shall put the values (1, 4*log3) instead x and y.
I tryed everything and i reached many hours ago here:
f = inline(atan((x-3*y)/(x+3*y)));
der = diff(f(x,y),x,x)
And the result is: - (2/(x + 3*y)^2 - (2*(x - 3*y))/(x + 3*y)^3)/((x - 3*y)^2/(x + 3*y)^2 + 1) - (((2*x - 6*y)/(x + 3*y)^2 - (2*(x - 3*y)^2)/(x + 3*y)^3)*(1/(x + 3*y) - (x - 3*y)/(x + 3*y)^2))/((x - 3*y)^2/(x + 3*y)^2 + 1)^2 which can be simplified by:
pretty(simplify(diff(f(x,y),x,x)))
And the result is: 6 x y
- -------------
2 2 2
(x + 9 y ) .
Now, i searched everywhere, i asked too many people and i didn.t got answer for my specific question: how can i replace at this stage x = 1 and y = 4*log(3) and make calculus with them in the format as you seen above?
Thank you very much!
P.s. I am very begginer, but the YouTube, Google, Courses at University didn.t helped me.
0 个评论
采纳的回答
Walter Roberson
2022-9-20
syms x y
f(x,y) = atan((x-3*y)/(x+3*y))
der = diff(f(x,y),x,x)
sder = simplify(der)
subs(sder, [x, y], [1, 4*log(sym(3))])
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!