Lesson
15 of 23

💻 Partial Differentiation

Partial Differentiation.

This lesson covers core applied mathematics concepts and their agricultural applications for BSc Agriculture learners.


MATHS:: Lecture 15 :: Partial Differentiation

Chain Rule differentiation If y is a function of u ie y = f(u) and u is a function of x ie u = g(x) then y is related to x through the intermediate function u ie y =f(g(x) ) \y is differentiable with respect to x Furthermore, let y=f(g(x)) and u=g(x), then lec15_clip_image002.gif =lec15_clip_image004.gif lec15_clip_image006.gif There are a number of related results that also go under the name of "chain rules." For example, if y=f(u) u=g(v), and v=h(x), then lec15_clip_image008.gif = lec15_clip_image010.gif

Problem

Differentiate the following with respect to x

  • y = (3x2+4)3
  • y = lec15_clip_image012.gif

Marginal Analysis

Let us assume that the total cost C is represented as a function total output q. (i.e) C= f(q). Then marginal cost is denoted by MC=lec15_clip_image014.gif The average cost = lec15_clip_image016.gif Similarly if U = u(x) is the utility function of the commodity x then the marginal utility MU = lec15_clip_image018.gif The total revenue function TR is the product of quantity demanded Q and the price P per unit of that commodity then TR = Q.P = f(Q) Then the marginal revenue denoted by MR is given by lec15_clip_image020.gif The average revenue = lec15_clip_image022.gif

** **

Problem

1. If the total cost function is C = Q3 - 3Q2 + 15Q. Find Marginal cost and average cost. Solution: MC = lec15_clip_image014_0000.gif AC = lec15_clip_image016_0000.gif 2. The demand function for a commodity is P= (a - bQ). Find marginal revenue. (the demand function is generally known as Average revenue function). Total revenue TR = P.Q = Q. (a - bQ) and marginal revenue MR= lec15_clip_image024.gif

Growth rate and relative growth rate

The growth of the plant is usually measured in terms of dry mater production and as denoted by W. Growth is a function of time t and is denoted by W=g(t) it is called a growth function. Here t is the independent variable and w is the dependent variable. The derivative lec15_clip_image026.gifis the growth rate (or) the absolute growth rate gr=lec15_clip_image026_0000.gif. GR = lec15_clip_image026_0001.gif The relative growth rate i.e defined as the absolute growth rate divided by the total dry matter production and is denoted by RGR. i.e RGR = lec15_clip_image028.gif. lec15_clip_image026_0002.gif = lec15_clip_image030.gif

Problem

  1. If G = at2+b sin t +5 is the growth function function the growth rate and relative growth rate.

GR = lec15_clip_image032.gif RGR = lec15_clip_image034.gif. lec15_clip_image032_0000.gif

Implicit Functions

If the variables x and y are related with each other such that f (x, y) = 0 then it is called Implicit function. A function is said to be explicit when one variable can be expressed completely in terms of the other variable. For example, y = x3 + 2x2 + 3x + 1 is an Explicit function xy2 + 2y +x = 0 is an implicit function

Problem

For example, the implicit equation xy=1 can be solved by differentiating implicitly gives lec15_clip_image037.gif=lec15_clip_image039.gif lec15_clip_image040.gif lec15_clip_image041.gif Implicit differentiation is especially useful when y’(x)is needed, but it is difficult or inconvenient to solve for y in terms of x. Example:Differentiate the following function with respect to xlec15_clip_image042.giflec15_clip_image044.gif

Solution

So, just differentiate as normal and tack on an appropriate derivative at each step. Note as well that the first term will be a product rule. lec15_clip_image045.giflec15_clip_image046.giflec15_clip_image044_0000.giflec15_clip_image044_0001.gif Example:__ Find lec15_clip_image047.giflec15_clip_image048.giflec15_clip_image049.giflec15_clip_image044_0002.giflec15_clip_image044_0003.gif for the following function. lec15_clip_image050.giflec15_clip_image051.giflec15_clip_image044_0004.giflec15_clip_image044_0005.gif

Solution

In this example we really are going to need to do implicit differentiation of x and write y as y(x). lec15_clip_image052.giflec15_clip_image053.giflec15_clip_image044_0006.giflec15_clip_image044_0007.gif Notice that when we differentiated the y term we used the chain rule. Example: __ Find lec15_clip_image047_0000.giflec15_clip_image048_0000.giflec15_clip_image049_0000.giflec15_clip_image044_0008.giflec15_clip_image044_0009.gif for the following. lec15_clip_image054.giflec15_clip_image051_0000.giflec15_clip_image044_0010.giflec15_clip_image044_0011.gif

Solutio

First differentiate both sides with respect to x and notice that the first time on left side will be a product rule. lec15_clip_image055.giflec15_clip_image051_0001.giflec15_clip_image044_0012.giflec15_clip_image044_0013.gif

Remember that very time we differentiate a y we also multiply that term by lec15_clip_image002_0000.giflec15_clip_image003.giflec15_clip_image005.giflec15_clip_image006_0000.giflec15_clip_image007.giflec15_clip_image007_0000.gif since we are just using the chain rule. Now solve for the derivative. lec15_clip_image008_0000.giflec15_clip_image009.giflec15_clip_image007_0001.giflec15_clip_image007_0002.gif

The algebra in these can be quite messy so be careful with that.

Example

Find lec15_clip_image002_0001.giflec15_clip_image003_0000.giflec15_clip_image006_0001.giflec15_clip_image007_0003.giflec15_clip_image007_0004.gif for the followinglec15_clip_image010_0000.giflec15_clip_image011.giflec15_clip_image007_0005.giflec15_clip_image007_0006.gif Here we’ve got two product rules to deal with this time. lec15_clip_image012_0000.giflec15_clip_image011_0000.giflec15_clip_image007_0007.giflec15_clip_image007_0008.gif Notice the derivative tacked onto the secant. We differentiated a y to get to that point and so we needed to tack a derivative on. Now, solve for the derivative. lec15_clip_image013.giflec15_clip_image014_0001.giflec15_clip_image007_0009.giflec15_clip_image007_0010.gif

Logarithmic Differentiation

For some problems, first by taking logarithms and then differentiating,

it is easier to find lec15_clip_image016_0001.gif. Such process is called Logarithmic differentiation.

  1. If the function appears as a product of many simple functions then by

taking logarithm so that the product is converted into a sum. It is now easier to differentiate them.

  1. If the variable x occurs in the exponent then by taking logarithm it is

reduced to a familiar form to differentiate. ExampleBegin();Example __ Differentiate the function. MPSetEqnAttrs('eq0001','',3,[[100,34,16,-1,-1],[133,45,21,-1,-1],[166,56,26,-1,-1],[],[],[],[415,139,67,-3,-3]]) MPEquation() lec15_clip_image017.giflec15_clip_image018_0000.giflec15_clip_image007_0011.giflec15_clip_image007_0012.gif

MPSetEqnAttrs('eq0001','',3,[[100,34,16,-1,-1],[133,45,21,-1,-1],[166,56,26,-1,-1],[],[],[],[415,139,67,-3,-3]]); Solution Differentiating this function could be done with a product rule and a quotient rule. We can simplify things somewhat by taking logarithms of both sides. MPSetEqnAttrs('eq0002','',3,[[134,40,17,-1,-1],[177,53,22,-1,-1],[221,67,29,-1,-1],[],[],[],[554,165,70,-3,-3]]) MPEquation() lec15_clip_image019.giflec15_clip_image020_0000.giflec15_clip_image007_0013.giflec15_clip_image007_0014.gif MPSetEqnAttrs('eq0002','',3,[[134,40,17,-1,-1],[177,53,22,-1,-1],[221,67,29,-1,-1],[],[],[],[554,165,70,-3,-3]]); MPSetEqnAttrs('eq0003','',3,[[190,49,22,-1,-1],[253,67,30,-1,-1],[316,84,37,-1,-1],[],[],[],[792,215,95,-3,-3]]) MPEquation() lec15_clip_image021.giflec15_clip_image022_0000.giflec15_clip_image007_0015.giflec15_clip_image007_0016.gif MPSetEqnAttrs('eq0003','',3,[[190,49,22,-1,-1],[253,67,30,-1,-1],[316,84,37,-1,-1],[],[],[],[792,215,95,-3,-3]]); MPSetEqnAttrs('eq0004','',3,[[175,89,42,-1,-1],[233,118,55,-1,-1],[291,148,69,-1,-1],[],[],[],[729,368,173,-3,-3]]) MPEquation() lec15_clip_image023.giflec15_clip_image024_0000.giflec15_clip_image007_0017.giflec15_clip_image007_0018.gif ExampleBegin(); Example __ Differentiate MPSetEqnAttrs('eq0007','',3,[[30,11,3,-1,-1],[39,15,3,-1,-1],[47,17,3,-1,-1],[],[],[],[119,44,9,-3,-3]]) MPEquation() lec15_clip_image025.giflec15_clip_image026_0003.giflec15_clip_image027.giflec15_clip_image007_0019.giflec15_clip_image007_0020.gif MPSetEqnAttrs('eq0007','',3,[[30,11,3,-1,-1],[39,15,3,-1,-1],[47,17,3,-1,-1],[],[],[],[119,44,9,-3,-3]]); Solution First take the logarithm of both sides as we did in the first example and use the logarithm properties to simplify things a little. MPSetEqnAttrs('eq0009','',3,[[54,30,13,-1,-1],[73,39,16,-1,-1],[90,48,20,-1,-1],[],[],[],[227,120,52,-3,-3]]) MPEquation() lec15_clip_image028_0000.giflec15_clip_image029.giflec15_clip_image007_0021.gif MPSetEqnAttrs('eq0009','',3,[[54,30,13,-1,-1],[73,39,16,-1,-1],[90,48,20,-1,-1],[],[],[],[227,120,52,-3,-3]]); Differentiate both sides using implicit differentiation. MPSetEqnAttrs('eq0010','',3,[[121,30,12,-1,-1],[162,39,16,-1,-1],[203,49,20,-1,-1],[],[],[],[507,124,50,-3,-3]]) MPEquation() lec15_clip_image030_0000.giflec15_clip_image029_0000.giflec15_clip_image007_0022.giflec15_clip_image007_0023.gif MPSetEqnAttrs('eq0010','',3,[[121,30,12,-1,-1],[162,39,16,-1,-1],[203,49,20,-1,-1],[],[],[],[507,124,50,-3,-3]]); As with the first example multiply by y and substitute back in for y. MPSetEqnAttrs('eq0011','',3,[[75,34,14,-1,-1],[99,45,19,-1,-1],[123,57,23,-1,-1],[],[],[],[310,145,61,-3,-3]]) MPEquation() lec15_clip_image031.giflec15_clip_image018_0001.giflec15_clip_image007_0024.giflec15_clip_image007_0025.gif

PARAMETRIC FUNCTIONS

Sometimes variables x and y are expressed in terms of a third variable called parameter. We find lec15_clip_image016_0002.gif without eliminating the third variable. Let x = f(t) and y = g(t) then

lec15_clip_image016_0003.gif = lec15_clip_image034_0000.gif = lec15_clip_image036.gif = lec15_clip_image038.gif

Problem

1. Find for the parametric function x =a coslec15_clip_image040_0000.gif , y = b sinlec15_clip_image040_0001.gif

Solution

lec15_clip_image043.giflec15_clip_image045_0000.gif

lec15_clip_image016_0004.gif = lec15_clip_image047_0001.gif =lec15_clip_image049_0001.gif =lec15_clip_image051_0002.gif

Inference of the differentiation

Let y = f(x) be a given function then the first order derivative is lec15_clip_image016_0005.gif. The geometrical meaning of the first order derivative is that it represents the slope of the curve y = f(x) at x. The physical meaning of the first order derivative is that it represents the rate of change of y with respect to x. PROBLEMS ON HIGHER ORDER DIFFERENTIATION The rate of change of y with respect x is denoted by lec15_clip_image016_0006.gifand called as the first order derivative of function y with respect to x. The first order derivative of y with respect to x is again a function of x, which again be differentiated with respect to x and it is called second order derivative of y = f(x) and is denoted by lec15_clip_image054_0000.gif which is equal to lec15_clip_image056.gif In the similar way higher order differentiation can be defined. Ie. The nth order derivative of y=f(x) can be obtained by differentiating n-1th derivative of y=f(x)

lec15_clip_image002_0002.gifwhere n= 2,3,4,5….

Problem

Find the first , second and third derivative of

  1. y =lec15_clip_image002_0003.gif
  2. y = log(a-bx)
  3. y = sin (ax+b)

So far we considered the function of a single variable y = f(x) where x is the only independent variable. When the number of independent variable exceeds one then we call it as the function of several variables.

Example

z = f(x,y) is the function of two variables x and y , where x and y are independent variables. U=f(x,y,z) is the function of three variables x,y and z , where x, y and z are independent variables. In all these functions there will be only one dependent variable. Consider a function z = f(x,y). The partial derivative of z with respect to x denoted by lec15_clip_image004_0000.gifand is obtained by differentiating z with respect to x keeping y as a constant. Similarly the partial derivative of z with respect to y denoted by lec15_clip_image006_0002.gifand is obtained by differentiating z with respect to y keeping x as a constant.

Problem

1. Differentiate U = log (ax+by+cz) partially with respect to x, y & z We can also find higher order partial derivatives for the function z = f(x,y) as follows (i) The second order partial derivative of z with respect to x denoted as lec15_clip_image008_0001.gif is obtained by partially differentiating lec15_clip_image004_0001.gif with respect to x. this is also known as direct second order partial derivative of z with respect to x. (ii)The second order partial derivative of z with respect to y denoted as lec15_clip_image010_0001.gif is obtained by partially differentiating lec15_clip_image006_0003.gif with respect to y this is also known as direct second order partial derivative of z with respect to y (iii) The second order partial derivative of z with respect to x and then y denoted as lec15_clip_image013_0000.gif is obtained by partially differentiating lec15_clip_image004_0002.gif with respect to y. this is also known as mixed second order partial derivative of z with respect to x and then y iv) The second order partial derivative of z with respect to y and then x denoted as lec15_clip_image015.gif is obtained by partially differentiating lec15_clip_image006_0004.gif with respect to x. this is also known as mixed second order partial derivative of z with respect to y and then x. In similar way higher order partial derivatives can be found.

Problem

Find all possible first and second order partial derivatives of

  1. z = sin(ax +by)
  2. u = xy + yz + zx

Homogeneous Function

A function in which each term has the same degree is called a homogeneous function.

Example

  • x2 - 2xy + y2 = 0 ® homogeneous function of degree 2.
  • 3x +4y = 0 ® homogeneous function of degree 1.
  • x3 +3x2y + xy2 – y3= 0 ® homogeneous function of degree 3.

To find the degree of a homogeneous function we proceed as follows. Consider the function f(x,y) replace x by tx and y by ty if f (tx, ty) = tn f(x, y) then n gives the degree of the homogeneous function. This result can be extended to any number of variables.

Problem

Find the degree of the homogeneous function

  • f(x, y) = x2 –2xy + y2

  • f(x,y) = lec15_clip_image018_0002.gif

Euler’s theorem on homogeneous function

If U= f(x,y,z) is a homogeneous function of degree n in the variables x, y & z then lec15_clip_image020_0001.gif lec15_clip_image022_0001.gif

Problem

Verify Euler’s theorem for the following function 1. u(x,y) = x2 –2xy + y2 2. u(x,y) = x3 + y3+ z3–3xyz Increasing and decreasing function

Increasing function

A function y= f(x) is said to be an increasing function if f(x1) < f(x2) for all x1 < x2.

The condition for the function to be increasing is that its first order derivative is always greater than zero . i.e lec15_clip_image024_0001.gif >0

Decreasing function

A function y= f(x) is said to be a decreasing function if f(x1) > f(x2) for all x1 < x2.

The condition for the function to be decreasing is that its first order derivative is always less than zero . i.e lec15_clip_image024_0002.gif < 0

Problems

1. Show that the function y = x3 + x is increasing for all x. 2. Find for what values of x is the function y = 8 + 2x – x2 is increasing or decreasing ?

Maxima and Minima Function of a single variable

A function y = f(x) is said to have maximum at x = a if f(a) > f(x) in the neighborhood of the point x = a and f(a) is the maximum value of f(x) . The point x = a is also known as local maximum point. A function y = f(x) is said to have minimum at x = a if f(a) < f(x) in the neighborhood of the point x = a and f(a) is the minimum value of f(x) . The point x = a is also known as local minimum point. The points at which the function attains maximum or minimum are called the turning points or stationary points A function y=f(x) can have more than one maximum or minimum point. Maximum of all the maximum points is called Global maximum and minimum of all the minimum points is called Global minimum. A point at which neither maximum nor minimum is called Saddle point. [Consider a function y = f(x). If the function increases upto a particular point x = a and then decreases it is said to have a maximum at x = a. If the function decreases upto a point x = b and then increases it is said to have a minimum at a point x=b.] The necessary and the sufficient condition for the function y=f(x) to have a maximum or minimum can be tabulated as follows

| Maximum | Minimum ---|---|--- First order or necessary condition | lec15_clip_image024_0003.gif= 0 | lec15_clip_image024_0004.gif=0 Second order or sufficient condition | lec15_clip_image026_0004.gif< 0 | lec15_clip_image026_0005.gif > 0

Working Procedure
1. Find lec15_clip_image024_0005.gif and lec15_clip_image026_0006.gif
2. Equate lec15_clip_image024_0006.gif=0 and solve for x. this will give the turning points of the function.
3. Consider a turning point x = a then substitute this value of x in lec15_clip_image026_0007.gif and find the

nature of the second derivative. If lec15_clip_image028_0001.gif< 0, then the function has a maximum value at the point x = a. If lec15_clip_image028_0002.gif> 0, then the function has a minimum value at the point x = a.

4. Then substitute x = a in the function y = f(x) that will give the maximum or minimum

value of the function at x = a.

Problem
Find the maximum and minimum values of the following function
y = x3 – 3x +1

---|---

Summary Cheat Sheet

  • Focus on core formulas, definitions, and solved patterns from this lesson.
  • Practice stepwise derivations and numerical substitutions carefully.
  • Connect each concept to practical agricultural problem-solving contexts.

References

1 source

Primary classroom notes and standard BSc Agriculture applied mathematics references.

Lesson Doubts

Ask questions, get expert answers