Differentiate the following expressions and saveit under the given variables. 1. yp1 = 2. yp2 = 3. yp3 = Script x² (6-x) x+2 10 yp2 = 11 %Solve for yp3 12 yp3 = | 13 =(√ d dx find the derivative and save as yp1 x² (4-x) 4+x find the derivative and save as yp2 d (x²-1)² ( find the derivative and save as yp3 dx x²-6x-1 1%Define the variables for symbolic processing 2 syms x 3 %Type in the functions y1, y2 and y3 4 y1 = 5 y2 = 6 y3 = 7 %Solve for yp1 8 yp1 = 9 %Solve for yp2

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

DUE NOW. Please answer the "script" part as the same as the process on what is on example and guide. Note that this is not a graded question - only a practice. Please make it comprehensive. Thank you very much!

 

Differentiate the following expressions and saveit under the given variables.
1. yp1 =
2. yp2
14
15
3. yp3
Script
=
=
x² (6-x)
x+2
d
=(√
dx
d
x² (4-x)
4+x
(x²-1)²
find the derivative and save as yp1
Cz
dx 2-6x-1,
find the derivative and save as yp2
find the derivative and save as yp3
1
Define the variables for symbolic processing
2 syms x
3 Type in the functions y1, y2 and y3
4 y1 =
5 y2 =
6 y3 =
7 %Solve for yp1
8 yp1 =
9 %Solve for yp2
10 yp2 =
11 %Solve for yp3
12 yp3 = |
13
Save
C Reset
MATLAB Documentation
Run Script
Transcribed Image Text:Differentiate the following expressions and saveit under the given variables. 1. yp1 = 2. yp2 14 15 3. yp3 Script = = x² (6-x) x+2 d =(√ dx d x² (4-x) 4+x (x²-1)² find the derivative and save as yp1 Cz dx 2-6x-1, find the derivative and save as yp2 find the derivative and save as yp3 1 Define the variables for symbolic processing 2 syms x 3 Type in the functions y1, y2 and y3 4 y1 = 5 y2 = 6 y3 = 7 %Solve for yp1 8 yp1 = 9 %Solve for yp2 10 yp2 = 11 %Solve for yp3 12 yp3 = | 13 Save C Reset MATLAB Documentation Run Script
diff Difference and approximate derivative.
diff(X), for a vector X, is [X(2)-X(1) X(3)-X(2) ... X(n)-X(n-1)].
diff(X), for a matrix X, is the matrix of row differences, [X(2:n,:) - X(1:n-1,:)].
diff(X), for an N-D array X, is the difference along the first non-singleton dimension of X.
diff(X,N) is the N-th order difference along the first non-singleton dimension (denote it by DIM). If N >= size(X,DIM), diff takes successive differences along the next non-
singleton dimension.
diff(X, N, DIM) is the Nth difference function along dimension DIM. If N >= size(X,DIM), diff returns an empty array.
Examples:
Y = diff(x) % calculates thederivative of x
Y = diff(X,n) %applies diff recursively n times,
Y = diff(X,n,dim) % the nth difference function
returns an empty array (USED IN DIFFERENCE
resulting in the nth difference.
calculated along the dimension specified by scalar dim. If order n equals or exceeds the length of dimension dim, diff
EQUATIONS)
Transcribed Image Text:diff Difference and approximate derivative. diff(X), for a vector X, is [X(2)-X(1) X(3)-X(2) ... X(n)-X(n-1)]. diff(X), for a matrix X, is the matrix of row differences, [X(2:n,:) - X(1:n-1,:)]. diff(X), for an N-D array X, is the difference along the first non-singleton dimension of X. diff(X,N) is the N-th order difference along the first non-singleton dimension (denote it by DIM). If N >= size(X,DIM), diff takes successive differences along the next non- singleton dimension. diff(X, N, DIM) is the Nth difference function along dimension DIM. If N >= size(X,DIM), diff returns an empty array. Examples: Y = diff(x) % calculates thederivative of x Y = diff(X,n) %applies diff recursively n times, Y = diff(X,n,dim) % the nth difference function returns an empty array (USED IN DIFFERENCE resulting in the nth difference. calculated along the dimension specified by scalar dim. If order n equals or exceeds the length of dimension dim, diff EQUATIONS)
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education