Example: syms x y(x); % Defines the variable x for the differentiation and other operations. Also defines y as a function of x k=diff(x^2) %Differentiates x^2. Will return 2*x Dy = diff(y) % Sets Dy as the derivative of y(x). Equivalent to y' Solve the following: (1) g(x) =tan(x³), find g'(x); (2) h(x) = (sin(3x))/2x, find h"(x); (3) m(x) = In (Tan-¹x), find m'(x)

Functions and Change: A Modeling Approach to College Algebra (MindTap Course List)
6th Edition
ISBN:9781337111348
Author:Bruce Crauder, Benny Evans, Alan Noell
Publisher:Bruce Crauder, Benny Evans, Alan Noell
Chapter5: A Survey Of Other Common Functions
Section5.4: Combining And Decomposing Functions
Problem 14E: Decay of Litter Litter such as leaves falls to the forest floor, where the action of insects and...
icon
Related questions
Question

how to do this in math lab? ty!

MATLAB Basics for Derivatives
MATLAB is a powerful programming language that is able to solve differential equations using a few codes. Some of which are diff and dsolve command.
diff Difference and approximate derivative.
Example:
syms x y(x); %Defines the variable x for the differentiation and other operations. Also defines y as a function of x
k=diff(x^2)
%Differentiates x^2. Will return 2*x
Dy = diff(y) %Sets Dy as the derivative of y(x). Equivalent to y'
Solve the following:
(1) g(x) =tan(x³), find g'(x);
(2) h(x) = (sin(3x))/2x, find h"(x);
(3) m(x) = In (Tan-x), find m'(x)
(4) Find Dy(x) given y(x), if Dy(x) = y(x)
(5) Find D2y(x) given y(x), if D2y(x) = y"(x)
Transcribed Image Text:MATLAB Basics for Derivatives MATLAB is a powerful programming language that is able to solve differential equations using a few codes. Some of which are diff and dsolve command. diff Difference and approximate derivative. Example: syms x y(x); %Defines the variable x for the differentiation and other operations. Also defines y as a function of x k=diff(x^2) %Differentiates x^2. Will return 2*x Dy = diff(y) %Sets Dy as the derivative of y(x). Equivalent to y' Solve the following: (1) g(x) =tan(x³), find g'(x); (2) h(x) = (sin(3x))/2x, find h"(x); (3) m(x) = In (Tan-x), find m'(x) (4) Find Dy(x) given y(x), if Dy(x) = y(x) (5) Find D2y(x) given y(x), if D2y(x) = y"(x)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer