MATH/CMSC 206 - Introduction to Matlab

Announcements Syllabus Tutorial Projects Submitting

Answers to Self-Test

1. How would you like to find the derivative of the function f(x) = sqrt(2^(x * ln(x)))? Ummm... no thanks. Get MATLAB to do it.

syms x
diff(sqrt(2^(x * log(x))))
 
ans =
 
(2^(x*log(x))*log(2)*(log(x) + 1))/(2*(2^(x*log(x)))^(1/2))
 

2. Try differentiating this one: f(x) = (1 + ln(x))/(2 - sin(x^2)).

diff((1 + log(x))/(2 - sin(x^2)))
 
ans =
 
(2*x*cos(x^2)*(log(x) + 1))/(sin(x^2) - 2)^2 - 1/(x*(sin(x^2) - 2))