SlideShare una empresa de Scribd logo
1 de 6
Descargar para leer sin conexión
Getting Familiar with Symbolic Math


              Prepared by


             M.G. Knight



            24th October 2003




                    1
The Symbolic Math Toolbox is a collection of tools for performing algebraic, calculus
and integral transform operations directly in MATLAB. When you pass a command to
Matlab to perform a symbolic operation, it asks Maple (an embedded mathematics
package) to do it and return the result to the Matlab command window.

To learn more about Symbolic MATLAB:

   •   Open MATLAB.
   •   Then type: ‘helpwin’ and press enter
   •   From the help topics click on ‘toolboxsymbolic’

Note: Only symbolic differentiation and integration are considered in the following
handout.




1 - Differentiation

The derivative of a function f(x) is defined to be a function f’(x) that is equal to the rate
of change of f(x) with respect to x:

                                             d [ f ( x)]
                                 f '( x) =
                                                 dx

There are many physical processes in which we want to measure the rate of change of a
variable. For example, velocity is the rate of change of position, and acceleration is the
rate of change of velocity.

Suppose that we have a function f(x) defined as follows:

       f(x) = cos(2x) + sin(x)

The derivative f’(x) can be obtained by differentiating the above expression in terms of
the variable x:

       f’(x) = –2 sin(2x) + cos(x)

To obtain a similar result in MATLAB, type the following command:

>> diff('cos(2*x)+sin(x)')

or, in a more general syntax,



                                                    2
>> f = 'cos(2*x)+sin(x)'
>> diff(f, 'x')

ans = –2*sin(2*x)+cos(x)


To graphically represent the original function and the first derivative, type the
following:

>> f = 'cos(2*x)+sin(x)'
>> figure(1)
>> ezplot(f)
>> f2 = diff(f, 'x')
>> figure(2)
>> ezplot(f2)




           f(x) = cos(2x) + sin(x)                                  f’(x) = -2 sin(2x) + cos(x)




Exercises:

          df ( x)
1) Find           for the following expressions:
           dx

    a)       f ( x) = 3cos( x) + 7 sin( x)

    b)       f ( x) = x 4 − 3x 2 + x − 3
                          x
    c)       f ( x) =
                        x +1
                        2




          df ( x)     df 2 ( x)
2) Find           and           given that f ( x) = x 2 sin 3 x .
           dx          dx 2

                                                  3
2 - Integration

- Indefinite integrals

Integration is the reverse process of differentiation. In differentiation, we start with a
function and proceed to find its derivative. In integration, we start with the derivative
and have to work back to find the function from which it has been derived. Hence, if:

                               dy
                                  = f ( x)
                               dx

then the most general solution of the above expression is:


                               y = ∫ f ( x)dx


The above expression denotes the indefinite integral of the function f(x), while the
function f(x) itself is called the integrand.

Suppose that we have a function f(x) as follows:

        f(x) = x4

Then,
                 x5
        ∫ x dx = 5 + c
           4




Note: Without knowing the past history of the function, we have no indication of the
size of the constant of integration, since all trace of it is lost in the differentiation
process. All we can do is to indicate the constant term by a symbol, e.g. c.

To obtain a similar result in MATLAB, type the following command:

>> int('x^4')

ans = 1/5*x^5

Note: The constant is omitted in the MATLAB solution. Although we cannot determine
the value of c without extra information about the function, it is important that it is
always included in the result.




                                                4
Exercises:

1) Find the indefinite integral of the following expressions:


    a)       y = ∫ ( x1 2 + 3x1 4 ) dx

    b)       y = ∫ ( e7 x + 1) dx

    c)             (
             y = ∫ cos 4 x + 2 x dx  )
                   x3 + 5 x + 3 
    d)       y = ∫               dx
                       x2       



- Definite integrals

The definite integral of a function f(x) over the interval [a,b] is defined to be the area
under the curve f(x) between x = a and x = b, as shown in the figure below.


                                                                   b
                       f(x)                                    ∫
                                                               a
                                                                       f ( x)dx
                                         f(a)           f(b)




                                         a               b                        x



Suppose we have a function f ( x) = 2 x 2 + 1 , which we want to integrate over the
interval [2,5]:

                                                5
                               2 x3      250       16    
         y = ∫ ( 2 x + 1)dx = 
              5
                    2
                                     + x =    + 5  −  + 2  = 81
              2
                               3       2  3        3     




                                                    5
To obtain a similar result in MATLAB, type the following command:

>> int('2*x^2+1','x',2,5)

ans = 81



1) Find the definite integral of the following expressions:


                       (5x       − 2 x 2 + 4 x − 3)dx
                  10
     a)     y=∫              3
                 5


            y = ∫ ( x 7 )dx
                  1
     b)
                 0


                  2 1 
     c)     y = ∫  dx
                 1
                    x


Final Note: Integration and differentiation have a special relationship in that they can be
considered to be the inverse of each other – the integral of a derivative returns the
original function, and the derivative of an integral returns the original function, to
within a constant value.




                                                        6

Más contenido relacionado

La actualidad más candente

12X1 T05 01 inverse functions (2010)
12X1 T05 01 inverse functions (2010)12X1 T05 01 inverse functions (2010)
12X1 T05 01 inverse functions (2010)Nigel Simmons
 
Lesson 15: Inverse Functions And Logarithms
Lesson 15: Inverse Functions And LogarithmsLesson 15: Inverse Functions And Logarithms
Lesson 15: Inverse Functions And LogarithmsMatthew Leingang
 
The Exponential and natural log functions
The Exponential and natural log functionsThe Exponential and natural log functions
The Exponential and natural log functionsJJkedst
 
Differentiation
DifferentiationDifferentiation
Differentiationtimschmitz
 
Rules of integration
Rules of integrationRules of integration
Rules of integrationklawdet
 
13 1 basics_integration
13 1 basics_integration13 1 basics_integration
13 1 basics_integrationManarAdham
 
Exponential and logarithmic functions
Exponential and logarithmic functionsExponential and logarithmic functions
Exponential and logarithmic functionsNjabulo Nkabinde
 
Lesson 27: Integration by Substitution (Section 041 slides)
Lesson 27: Integration by Substitution (Section 041 slides)Lesson 27: Integration by Substitution (Section 041 slides)
Lesson 27: Integration by Substitution (Section 041 slides)Matthew Leingang
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityMatthew Leingang
 
Concept map function
Concept map functionConcept map function
Concept map functionzabidah awang
 
Chapter 1 functions
Chapter 1  functionsChapter 1  functions
Chapter 1 functionsUmair Pearl
 
Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Matthew Leingang
 
Lesson 30: The Definite Integral
Lesson 30: The  Definite  IntegralLesson 30: The  Definite  Integral
Lesson 30: The Definite IntegralMatthew Leingang
 
Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)
Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)
Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)Ron Eick
 
Limits and continuity[1]
Limits and continuity[1]Limits and continuity[1]
Limits and continuity[1]indu thakur
 

La actualidad más candente (20)

12X1 T05 01 inverse functions (2010)
12X1 T05 01 inverse functions (2010)12X1 T05 01 inverse functions (2010)
12X1 T05 01 inverse functions (2010)
 
Lesson 15: Inverse Functions And Logarithms
Lesson 15: Inverse Functions And LogarithmsLesson 15: Inverse Functions And Logarithms
Lesson 15: Inverse Functions And Logarithms
 
Derivatives
DerivativesDerivatives
Derivatives
 
Inverse functions
Inverse functionsInverse functions
Inverse functions
 
The Exponential and natural log functions
The Exponential and natural log functionsThe Exponential and natural log functions
The Exponential and natural log functions
 
Exponential functions
Exponential functionsExponential functions
Exponential functions
 
Differentiation
DifferentiationDifferentiation
Differentiation
 
Rules of integration
Rules of integrationRules of integration
Rules of integration
 
13 1 basics_integration
13 1 basics_integration13 1 basics_integration
13 1 basics_integration
 
Exponential and logarithmic functions
Exponential and logarithmic functionsExponential and logarithmic functions
Exponential and logarithmic functions
 
Lesson 27: Integration by Substitution (Section 041 slides)
Lesson 27: Integration by Substitution (Section 041 slides)Lesson 27: Integration by Substitution (Section 041 slides)
Lesson 27: Integration by Substitution (Section 041 slides)
 
Lesson 11: Limits and Continuity
Lesson 11: Limits and ContinuityLesson 11: Limits and Continuity
Lesson 11: Limits and Continuity
 
Concept map function
Concept map functionConcept map function
Concept map function
 
Chapter 1 functions
Chapter 1  functionsChapter 1  functions
Chapter 1 functions
 
Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)
 
Functions (Theory)
Functions (Theory)Functions (Theory)
Functions (Theory)
 
Lesson 30: The Definite Integral
Lesson 30: The  Definite  IntegralLesson 30: The  Definite  Integral
Lesson 30: The Definite Integral
 
Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)
Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)
Review 1 -_limits-_continuity_(pcalc+_to_ap_calc)
 
Limits and continuity[1]
Limits and continuity[1]Limits and continuity[1]
Limits and continuity[1]
 
DIFFERENTIATION
DIFFERENTIATIONDIFFERENTIATION
DIFFERENTIATION
 

Destacado (14)

Wholesale granite bathroom vanity tops pricelist
Wholesale granite bathroom vanity tops pricelistWholesale granite bathroom vanity tops pricelist
Wholesale granite bathroom vanity tops pricelist
 
Oriental basalt tile price
Oriental basalt tile priceOriental basalt tile price
Oriental basalt tile price
 
www.chinacountertop.com
www.chinacountertop.comwww.chinacountertop.com
www.chinacountertop.com
 
Dossierra
DossierraDossierra
Dossierra
 
London 16 -20 juny 2013
London 16 -20 juny 2013London 16 -20 juny 2013
London 16 -20 juny 2013
 
Manathai phuket
Manathai phuketManathai phuket
Manathai phuket
 
Xiamen Morestone
Xiamen MorestoneXiamen Morestone
Xiamen Morestone
 
Granite Hotel Vanitytop Pricelist
Granite Hotel Vanitytop PricelistGranite Hotel Vanitytop Pricelist
Granite Hotel Vanitytop Pricelist
 
3cm thickness prefab countertop blank pricelist
3cm thickness prefab countertop blank pricelist3cm thickness prefab countertop blank pricelist
3cm thickness prefab countertop blank pricelist
 
2cm Prefab Granite Countertop Blank Pricelist
2cm Prefab Granite Countertop Blank Pricelist2cm Prefab Granite Countertop Blank Pricelist
2cm Prefab Granite Countertop Blank Pricelist
 
Using Blue Ocean Strategy
Using Blue Ocean StrategyUsing Blue Ocean Strategy
Using Blue Ocean Strategy
 
Using Blue Ocean Strategy
Using Blue Ocean StrategyUsing Blue Ocean Strategy
Using Blue Ocean Strategy
 
Python for Linux System Administration
Python for Linux System AdministrationPython for Linux System Administration
Python for Linux System Administration
 
Intro to Linux Shell Scripting
Intro to Linux Shell ScriptingIntro to Linux Shell Scripting
Intro to Linux Shell Scripting
 

Similar a gfg

Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusMatthew Leingang
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusMatthew Leingang
 
237654933 mathematics-t-form-6
237654933 mathematics-t-form-6237654933 mathematics-t-form-6
237654933 mathematics-t-form-6homeworkping3
 
The chain rule
The chain ruleThe chain rule
The chain ruleJ M
 
Lesson 25: Evaluating Definite Integrals (slides
Lesson 25: Evaluating Definite Integrals (slidesLesson 25: Evaluating Definite Integrals (slides
Lesson 25: Evaluating Definite Integrals (slidesMel Anthony Pepito
 
Lesson 27: Evaluating Definite Integrals
Lesson 27: Evaluating Definite IntegralsLesson 27: Evaluating Definite Integrals
Lesson 27: Evaluating Definite IntegralsMatthew Leingang
 
Lesson 27: Evaluating Definite Integrals
Lesson 27: Evaluating Definite IntegralsLesson 27: Evaluating Definite Integrals
Lesson 27: Evaluating Definite IntegralsMatthew Leingang
 
Lesson 1: Functions and their representations (slides)
Lesson 1: Functions and their representations (slides)Lesson 1: Functions and their representations (slides)
Lesson 1: Functions and their representations (slides)Mel Anthony Pepito
 
Lesson03 The Concept Of Limit 027 Slides
Lesson03   The Concept Of Limit 027 SlidesLesson03   The Concept Of Limit 027 Slides
Lesson03 The Concept Of Limit 027 SlidesMatthew Leingang
 
phuong trinh vi phan d geometry part 2
phuong trinh vi phan d geometry part 2phuong trinh vi phan d geometry part 2
phuong trinh vi phan d geometry part 2Bui Loi
 
Difrentiation
DifrentiationDifrentiation
Difrentiationlecturer
 
Module 1 quadratic functions
Module 1   quadratic functionsModule 1   quadratic functions
Module 1 quadratic functionsdionesioable
 
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)Matthew Leingang
 
Lesson 15: Inverse Functions and Logarithms
Lesson 15: Inverse Functions and LogarithmsLesson 15: Inverse Functions and Logarithms
Lesson 15: Inverse Functions and LogarithmsMatthew Leingang
 
Algebra 2 Unit 5 Lesson 7
Algebra 2 Unit 5 Lesson 7Algebra 2 Unit 5 Lesson 7
Algebra 2 Unit 5 Lesson 7Kate Nowak
 

Similar a gfg (20)

Business math
Business mathBusiness math
Business math
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of Calculus
 
Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of Calculus
 
237654933 mathematics-t-form-6
237654933 mathematics-t-form-6237654933 mathematics-t-form-6
237654933 mathematics-t-form-6
 
The chain rule
The chain ruleThe chain rule
The chain rule
 
Lesson 25: Evaluating Definite Integrals (slides
Lesson 25: Evaluating Definite Integrals (slidesLesson 25: Evaluating Definite Integrals (slides
Lesson 25: Evaluating Definite Integrals (slides
 
Lesson 27: Evaluating Definite Integrals
Lesson 27: Evaluating Definite IntegralsLesson 27: Evaluating Definite Integrals
Lesson 27: Evaluating Definite Integrals
 
Functions
FunctionsFunctions
Functions
 
Lesson 27: Evaluating Definite Integrals
Lesson 27: Evaluating Definite IntegralsLesson 27: Evaluating Definite Integrals
Lesson 27: Evaluating Definite Integrals
 
Lesson 1: Functions and their representations (slides)
Lesson 1: Functions and their representations (slides)Lesson 1: Functions and their representations (slides)
Lesson 1: Functions and their representations (slides)
 
Lesson03 The Concept Of Limit 027 Slides
Lesson03   The Concept Of Limit 027 SlidesLesson03   The Concept Of Limit 027 Slides
Lesson03 The Concept Of Limit 027 Slides
 
Function
FunctionFunction
Function
 
phuong trinh vi phan d geometry part 2
phuong trinh vi phan d geometry part 2phuong trinh vi phan d geometry part 2
phuong trinh vi phan d geometry part 2
 
Difrentiation
DifrentiationDifrentiation
Difrentiation
 
Module 1 quadratic functions
Module 1   quadratic functionsModule 1   quadratic functions
Module 1 quadratic functions
 
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
Lesson 26: The Fundamental Theorem of Calculus (Section 10 version)
 
Lesson 15: Inverse Functions and Logarithms
Lesson 15: Inverse Functions and LogarithmsLesson 15: Inverse Functions and Logarithms
Lesson 15: Inverse Functions and Logarithms
 
exponen dan logaritma
exponen dan logaritmaexponen dan logaritma
exponen dan logaritma
 
125 7.7
125 7.7125 7.7
125 7.7
 
Algebra 2 Unit 5 Lesson 7
Algebra 2 Unit 5 Lesson 7Algebra 2 Unit 5 Lesson 7
Algebra 2 Unit 5 Lesson 7
 

Último

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Último (20)

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

gfg

  • 1. Getting Familiar with Symbolic Math Prepared by M.G. Knight 24th October 2003 1
  • 2. The Symbolic Math Toolbox is a collection of tools for performing algebraic, calculus and integral transform operations directly in MATLAB. When you pass a command to Matlab to perform a symbolic operation, it asks Maple (an embedded mathematics package) to do it and return the result to the Matlab command window. To learn more about Symbolic MATLAB: • Open MATLAB. • Then type: ‘helpwin’ and press enter • From the help topics click on ‘toolboxsymbolic’ Note: Only symbolic differentiation and integration are considered in the following handout. 1 - Differentiation The derivative of a function f(x) is defined to be a function f’(x) that is equal to the rate of change of f(x) with respect to x: d [ f ( x)] f '( x) = dx There are many physical processes in which we want to measure the rate of change of a variable. For example, velocity is the rate of change of position, and acceleration is the rate of change of velocity. Suppose that we have a function f(x) defined as follows: f(x) = cos(2x) + sin(x) The derivative f’(x) can be obtained by differentiating the above expression in terms of the variable x: f’(x) = –2 sin(2x) + cos(x) To obtain a similar result in MATLAB, type the following command: >> diff('cos(2*x)+sin(x)') or, in a more general syntax, 2
  • 3. >> f = 'cos(2*x)+sin(x)' >> diff(f, 'x') ans = –2*sin(2*x)+cos(x) To graphically represent the original function and the first derivative, type the following: >> f = 'cos(2*x)+sin(x)' >> figure(1) >> ezplot(f) >> f2 = diff(f, 'x') >> figure(2) >> ezplot(f2) f(x) = cos(2x) + sin(x) f’(x) = -2 sin(2x) + cos(x) Exercises: df ( x) 1) Find for the following expressions: dx a) f ( x) = 3cos( x) + 7 sin( x) b) f ( x) = x 4 − 3x 2 + x − 3 x c) f ( x) = x +1 2 df ( x) df 2 ( x) 2) Find and given that f ( x) = x 2 sin 3 x . dx dx 2 3
  • 4. 2 - Integration - Indefinite integrals Integration is the reverse process of differentiation. In differentiation, we start with a function and proceed to find its derivative. In integration, we start with the derivative and have to work back to find the function from which it has been derived. Hence, if: dy = f ( x) dx then the most general solution of the above expression is: y = ∫ f ( x)dx The above expression denotes the indefinite integral of the function f(x), while the function f(x) itself is called the integrand. Suppose that we have a function f(x) as follows: f(x) = x4 Then, x5 ∫ x dx = 5 + c 4 Note: Without knowing the past history of the function, we have no indication of the size of the constant of integration, since all trace of it is lost in the differentiation process. All we can do is to indicate the constant term by a symbol, e.g. c. To obtain a similar result in MATLAB, type the following command: >> int('x^4') ans = 1/5*x^5 Note: The constant is omitted in the MATLAB solution. Although we cannot determine the value of c without extra information about the function, it is important that it is always included in the result. 4
  • 5. Exercises: 1) Find the indefinite integral of the following expressions: a) y = ∫ ( x1 2 + 3x1 4 ) dx b) y = ∫ ( e7 x + 1) dx c) ( y = ∫ cos 4 x + 2 x dx )  x3 + 5 x + 3  d) y = ∫  dx  x2  - Definite integrals The definite integral of a function f(x) over the interval [a,b] is defined to be the area under the curve f(x) between x = a and x = b, as shown in the figure below. b f(x) ∫ a f ( x)dx f(a) f(b) a b x Suppose we have a function f ( x) = 2 x 2 + 1 , which we want to integrate over the interval [2,5]: 5  2 x3   250   16  y = ∫ ( 2 x + 1)dx =  5 2 + x =  + 5  −  + 2  = 81 2  3 2  3   3  5
  • 6. To obtain a similar result in MATLAB, type the following command: >> int('2*x^2+1','x',2,5) ans = 81 1) Find the definite integral of the following expressions: (5x − 2 x 2 + 4 x − 3)dx 10 a) y=∫ 3 5 y = ∫ ( x 7 )dx 1 b) 0 2 1  c) y = ∫  dx 1  x Final Note: Integration and differentiation have a special relationship in that they can be considered to be the inverse of each other – the integral of a derivative returns the original function, and the derivative of an integral returns the original function, to within a constant value. 6