The Wayback Machine - https://web.archive.org/web/20241009131957/https://www.geeksforgeeks.org/engineering-mathematics-partial-derivatives/
Open In App

Partial Derivatives in Engineering Mathematics

Last Updated : 16 Sep, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Partial derivatives are a basic concept in multivariable calculus. They convey how a function would change when one of its input variables changes, while keeping all the others constant. This turns out to be particularly useful in fields such as physics, engineering, economics, and computer science, where often systems depend on more than one variable.

What are Partial Derivatives?

A partial derivative of a function of several variables is its derivative with respect to one of those variables, with all other variables held constant. For a function f(x,y), the partial derivative with respect to x, denoted as ∂f/∂x, measures the rate at which f changes as x changes, while y remains fixed.

Notation and Calculation

The most common notation for partial derivatives includes ∂f/∂x and fx for the partial derivative of f with respect to x.

To calculate a partial derivative:

  1. Identify the variable with respect to which you are differentiating.
  2. Treat all other variables as constants.
  3. Differentiate the function with respect to the chosen variable using the rules of differentiation.

Example: For the function f(x,y)=x2y+3xy2:

The partial derivative with respect to x is:

∂f/∂x =2xy+3y2

The partial derivative with respect to y is:

∂f/∂y =x2 +6xy

Properties of Partial Derivatives

Higher-Order Partial Derivatives

Partial derivatives of a given function of higher order are obtained when the function is differentiated successively with respect to one or more variables. If there are two independent variables, say x and y, in a function, f(x,y), then the second order partial derivatives are:

  • ∂2f/∂x2 : The second partial derivative with respect to x.
  • ∂2f/∂y2 : The second partial derivative with respect to y.
  • ∂2f/∂x∂y or ∂2f/∂y∂x: The mixed partial derivatives.

Example: For f(x,y)=sin(xy), the second-order partial derivatives are:

  • ∂2f/∂x2 = −y2sin(xy)
  • ∂2f/∂y2 = −x2sin(xy)
  • ∂2f/∂x∂y or ∂2f/∂y∂x = cos(xy)−xysin(xy)

Computing Partial Derivatives

Computing partial derivatives involves systematic application of differentiation rules:

  • Identify the variable of interest: Determine which variable you are differentiating with respect to.
  • Apply differentiation rules: Use standard rules (product, chain, quotient) while treating all other variables as constants.
  • Check for higher-order derivatives: If needed, differentiate again to obtain higher-order derivatives.

Example: For the function f(x,y,z)=exy ⋅z3 :

  • ∂f/∂x = y⋅exy⋅z3
  • ∂f/∂y = x.exy ⋅z3
  • ∂f/∂z = 3z2 .exy

Partial Derivatives in Engineering Mathematics: A function is like a machine that takes some input and gives a single output. For example, y = f(x) is a function in ‘x’. Here, we say ‘x’ is the independent variable and ‘y’ is the dependent variable as the value of ‘y’ depends on ‘x’. 

Some examples of functions are:

  1. f(x) = x2 + 3 is an algebraic function.
  2. ex is the exponential function.
  3. sin(x), cos(x), tan(x),…etc. are all trigonometric functions.

Now, all these functions are functions of a single variable, i.e. there is only one independent variable.

Partial Derivatives in Engineering Mathematics

Partial derivatives are a fundamental concept in multivariable calculus, often used in engineering mathematics to analyze how functions change when varying one variable while keeping others constant. This is crucial in fluid dynamics, thermodynamics, and structural analysis.

To understand the concept of partial derivative, we must first look at what a function in two variables means. 
Consider a function of the form z = f(x,y) where ‘x’ and ‘y’ are the independent variables and ‘z’ is the dependent variable. This function is called a function in two variables. Similarly, functions of several variables (i.e. with more than 2 independent variables) can also be defined. 

Partial Derivatives Examples

Some examples of multivariable functions or functions of several variables are:

1. f(x,y) = x2 +y

2. f(x,y,z) = x-3y+4z

Let us visualize this concept through graph. First we consider a single variable function f(x) = x2. 

Graph of f(x) = x^2

Unlike functions of a single variable, we cannot visualize multivariable functions as a 2-D graph. For this, we plot it on the 3-D plane. For example, consider the graph of f(x,y) = x2+y2

Graph for f(x,y) = x^2 + y^2 

For functions of several variables we define the limit as follows:

This means, finding the limit of f(x) as ‘x’ approaches ‘a’ and ‘y’ approaches ‘b’. 

Similarly, the definitions of continuity and differentiability can be extended from definitions for single variable functions. 

Recall that the derivative of a function of single variable y=f(x) is defined as : f'(x) = `[Tex]\frac{dy}{dx} [/Tex]

For a function z = f(x,y) of two variables, we define the derivative as : [Tex]\frac{\partial z}{\partial x}[/Tex]

This means calculating the derivative of function ‘z’ with respect to ‘x’ by keeping ‘y’ constant. Similarly, we can calculate the derivative of ‘z’ with respect to ‘y’ by keeping ‘x’ as constant as [Tex]\frac{\partial z}{\partial y}[/Tex]

Geometrical Interpretation of Partial Derivative

As we know, for single variable functions, the derivative is computed as the slope of the tangent passing through the curve. Similarly, we can understand the geometric interpretation of a partial derivative of a multivariable function.

Consider a function of two variables, z = f(x,y) on the 3-D plane and let a plane y=b pass through the curve f(x,y). 

Now, we draw another curve f(x,b) lying on z that is perpendicular to the plane y=b. Consider two arbitrary points P,R on this curve and draw the secant passing through these points. 

The slope of this secant is calculated using the first principles as follows :

[Tex]m = \frac{Δz}{Δx} = \frac{f(x+Δx,b)-f(a,b)}{Δx}[/Tex]

As the two points move closer to each other, the difference Δx approaches 0 and we calculate this in the form of the limit : [Tex]\lim_{Δx\to0} \frac{Δz}{Δx} = \frac{f(a+Δx,b)-f(a,b)}{Δx}[/Tex]

This limit is the partial derivative of ‘z’ with respect to ‘x’ by treating ‘y’ as constant i.e. 

[Tex]\frac{\partial z}{\partial x} = \frac{f(a+Δx,b)-f(a,b)}{Δx}[/Tex]

Calculation of Partial Derivatives of a Function

Steps to calculate partial derivative of a given function :

  1. Consider z = f(x,y).
  2. Compute partial derivative with respect to ‘x’ i.e. [Tex]\frac{\partial z}{\partial x}    [/Tex] by considering ‘y’ as constant and differentiate the function with respect to ‘x’.
  3. Compute partial derivative with respect to ‘y’ i.e. [Tex]\frac{\partial z}{\partial y}    [/Tex] by considering ‘x’ as constant and differentiate the function with respect to ‘y’.

Example : [Tex]z = x^2 + y^2 + 3xy[/Tex]

Here, for the given function, we calculate the two partial derivatives as follows : 

Case 1: Differentiating with respect to ‘x’ by treating ‘y’ as constant i.e. [Tex]\frac{\partial z }{\partial x}[/Tex]

Differentiating ‘z’ wrt ‘x’ by treating ‘y’ constant

Case 2: Differentiating with respect to ‘y’ by treating ‘x’ as constant i.e. [Tex]\frac{\partial z }{\partial y}[/Tex]

Differentiating ‘z’ wrt ‘y’ by treating ‘x’ constant

Second-Order Partial Derivatives

Similar to the computation of second-order derivatives for functions of single variables, we can compute the same for functions of several variables.

For an example we consider the same function [Tex]z = x^2 + y^2 + 3xy   [/Tex].

Case 1: We differentiate [Tex]\frac{\partial z}{\partial x}    [/Tex] again with respect to ‘x’

Case 2: We differentiate [Tex]\frac{\partial z}{\partial y}    [/Tex] again with respect to ‘y’

Case 3: We differentiate [Tex]\frac{\partial z}{\partial x}    [/Tex]  again with respect to ‘y’

Case 4: We differentiate [Tex]\frac{\partial z}{\partial y}    [/Tex]  again with respect to ‘x’

People Also Read:

Applications of Partial Derivatives in Engineering

Partial derivatives are widely used in various engineering disciplines to solve problems involving multiple variables:

  • Heat Transfer: Describing the change in temperature distribution over time and space.
  • Fluid Dynamics: Analyzing velocity fields and pressure distributions in fluid flows.
  • Structural Analysis: Determining stress and strain in materials under load.

Solved Examples

Basic partial differentiation:

Given f(x,y) = x^2y + 3xy^2, find ∂f/∂x and ∂f/∂y.

Solution:

∂f/∂x = 2xy + 3y^2 (treat y as a constant)

∂f/∂y = x^2 + 6xy (treat x as a constant)

Higher-order partial derivatives:

For f(x,y) = x^3y^2 + 2xy, find ∂²f/∂x², ∂²f/∂y², and ∂²f/∂x∂y.

Solution:

∂f/∂x = 3x^2y^2 + 2y

∂²f/∂x² = 6xy^2

∂f/∂y = 2x^3y + 2x

∂²f/∂y² = 2x^3

∂f/∂x = 3x^2y^2 + 2y

∂²f/∂x∂y = 6xy^2 + 2

Chain rule for partial derivatives:

If z = f(x,y) where x = r cos θ and y = r sin θ, express ∂z/∂r and ∂z/∂θ in terms of ∂z/∂x and ∂z/∂y.

Solution:

∂z/∂r = (∂z/∂x)(∂x/∂r) + (∂z/∂y)(∂y/∂r)

= (∂z/∂x)(cos θ) + (∂z/∂y)(sin θ)

∂z/∂θ = (∂z/∂x)(∂x/∂θ) + (∂z/∂y)(∂y/∂θ)

= (∂z/∂x)(-r sin θ) + (∂z/∂y)(r cos θ)

Implicit differentiation:

Given x^2 + y^2 + z^2 = 1, find ∂z/∂x and ∂z/∂y.

Solution:

Differentiate with respect to x:

2x + 2y(∂y/∂x) + 2z(∂z/∂x) = 0

∂z/∂x = -x/z

Differentiate with respect to y:

2y + 2x(∂x/∂y) + 2z(∂z/∂y) = 0

∂z/∂y = -y/z

Gradient:

Find the gradient of f(x,y,z) = 2x^2y + yz^3 – 3xz.

Solution:

∇f = (∂f/∂x, ∂f/∂y, ∂f/∂z)

= (4xy – 3z, 2x^2 + z^3, 3yz^2 – 3x)

Directional derivative:

For f(x,y) = x^2 + 2xy + y^2, find the directional derivative at (1,2) in the direction of u = (3/5, 4/5).

Solution:

∇f = (2x + 2y, 2x + 2y)

At (1,2): ∇f = (6, 6)

Directional derivative = ∇f · u

= (6, 6) · (3/5, 4/5)

= (6 * 3/5) + (6 * 4/5)

= 18/5 + 24/5

= 42/5 = 8.4

Partial differential equation:

Verify that u(x,t) = e^(-at) sin(x) is a solution to the heat equation ∂u/∂t = k(∂²u/∂x²).

Solution:

∂u/∂t = -ae^(-at) sin(x)

∂u/∂x = e^(-at) cos(x)

∂²u/∂x² = -e^(-at) sin(x)

Substituting into the heat equation:

-ae^(-at) sin(x) = k(-e^(-at) sin(x))

This is true if a = k, verifying the solution.

Laplacian:

Find the Laplacian of f(x,y,z) = x^2y + yz^2 + xz.

Solution:

∇²f = ∂²f/∂x² + ∂²f/∂y² + ∂²f/∂z²

∂²f/∂x² = 2y

∂²f/∂y² = 0

∂²f/∂z² = 2y

∇²f = 2y + 0 + 2y = 4y

Summary

Partial derivatives are a fundamental concept in engineering mathematics, allowing us to analyze how a function changes with respect to one variable while holding others constant. They are crucial in various engineering applications, including optimization, thermodynamics, and fluid dynamics. The process involves treating all variables except the one of interest as constants and then differentiating normally. Key rules include the product rule, chain rule, and implicit differentiation. Practice with diverse functions, including exponentials, logarithms, and trigonometric functions, is essential for mastery. Understanding higher-order and mixed partial derivatives further extends the utility of this concept in engineering analysis and problem-solving.

Related Articles:

FAQs on Partial Derivatives in Engineering Mathematics

What is the physical interpretation of partial derivatives?

Partial derivatives represent the rate of change of a function with respect to one variable, illustrating how a small change in one input affects the output.

How do partial derivatives relate to gradients?

The gradient is a vector of all first-order partial derivatives, indicating the direction of the steepest ascent in a multivariable function.

What is a partial derivative explained in simple terms?

A partial derivative describes how a function varies with respect to one of the variables entering the function and all other variables held fixed. In other words, it gives the slope along a particular direction parallel to one of the coordinate axes in a multivariable function.

How do you find a partial derivative?

In finding partial derivatives, first of all:

  1. Choose which variable you want to differentiate with respect to.
  2. Keep all the other variables the same
  3. Take the usual rules of differentiation w.r.t the variable chosen

What do you mean by partial derivative? How does it differ from usual derivative?

A normal derivative is for single-variable functions and measures the rate of change of a function in respect to such a variable. A partial derivative is for functions with many variables and measures the relative change with respect to one of the variables, keeping the other variables constant.

Why are partial derivatives important?

The partial derivatives are very important, especially in fields like physics, engineering, and economics, since they deal with the analysis of how a system will vary with respect to each variable. They find their applications in optimization problems, modeling, and understanding multidimensional systems.

Where can one find higher-order partial derivatives applied in real-life situations?

Applications of partial derivatives of higher orders include investigations of function curvature, stability of systems, and solutions of differential equations. They also have important applications in physics, especially in wave phenomena, and in economics in the study of marginal effects.



Previous Article
Next Article

Similar Reads

Application of Partial Derivatives in Engineering Mathematics
Application of Partial Derivatives: Partial derivatives can be used to find the maximum and minimum value (if they exist) of a two-variable function. We try to locate a stationary point with zero slope and then trace maximum and minimum values near it. The practical application of maxima/minima is to maximize profit for a given curve or minimize lo
9 min read
Partial Orders and Lattices (Set-2) | Mathematics
Partial orders and lattices are important concepts in discrete mathematics and are widely used in computer science, especially in data structures, database theory, and the theory of computation. Partial orders and lattices play pivotal roles in a wide array of applications within engineering, computer science, and beyond. These structures enable th
10 min read
Engineering Mathematics - GATE CSE Previous Year Questions
Solving GATE Previous Year's Questions (PYQs) not only clears the concepts but also helps to gain flexibility, speed, accuracy, and understanding of the level of questions generally asked in the GATE exam, and that eventually helps you to gain good marks in the examination. Previous Year Questions help a candidate practice and revise for GATE, whic
4 min read
Engineering Mathematics - Well Formed Formulas (WFF)
Well-Formed Formula(WFF) is an expression consisting of variables(capital letters), parentheses, and connective symbols. An expression is basically a combination of operands & operators and here operands and operators are the connective symbols. Below are the possible Connective Symbols: ¬ (Negation)∧ (Conjunction)∨ (Disjunction)⇒ (Rightwards A
3 min read
Partial Orders and Lattices
Partial orders and lattices are important concepts in discrete mathematics and are widely used in computer science, especially in data structures, database theory, and the theory of computation. A partial order is a binary relation that describes a set of elements that are, in a sense, ordered, but not necessarily linear. A lattice is a particular
4 min read
Partial Differential Equation
Partial Differential Equation contains an unknown function of two or more variables and its partial derivatives with respect to these variables. The order of partial differential equations is that of the highest-order derivatives. Such equations aid in the relationship of a function with several variables to their partial derivatives. They are extr
9 min read
Mathematics | Probability Distributions Set 2 (Exponential Distribution)
The previous article covered the basics of Probability Distributions and talked about the Uniform Probability Distribution. This article covers the Exponential Probability Distribution which is also a Continuous distribution just like Uniform Distribution. Introduction - Suppose we are posed with the question- How much time do we need to wait befor
5 min read
Mathematics | Unimodal functions and Bimodal functions
Unimodal Function : A function f(x) is said to be unimodal function if for some value m it is monotonically increasing for x≤m and monotonically decreasing for x≥m. For function f(x), maximum value is f(m) and there is no other local maximum. See figure (A) and (B): In figure (A), graph has only one maximum point and rest of the graph goes do
2 min read
Discrete Mathematics | Types of Recurrence Relations - Set 2
Prerequisite - Solving Recurrences, Different types of recurrence relations and their solutions, Practice Set for Recurrence Relations The sequence which is defined by indicating a relation connecting its general term an with an-1, an-2, etc is called a recurrence relation for the sequence. Types of recurrence relations First order Recurrence relat
4 min read
Mathematics | Indefinite Integrals
Antiderivative - Definition :A function ∅(x) is called the antiderivative (or an integral) of a function f(x) of ∅(x)' = f(x). Example : x4/4 is an antiderivative of x3 because (x4/4)' = x3. In general, if ∅(x) is antiderivative of a function f(x) and C is a constant.Then, {∅(x)+C}' = ∅(x) = f(x). Indefinite Integrals
4 min read
Mathematics | Generating Functions - Set 2
Prerequisite - Generating Functions-Introduction and Prerequisites In Set 1 we came to know basics about Generating Functions. Now we will discuss more details on Generating Functions and its applications. Exponential Generating Functions - Let [Tex]h_0, h_1, h_2, ........., h_n, ...... [/Tex]e a sequence. Then its exponential generating function,
3 min read
Mathematics | Rings, Integral domains and Fields
Prerequisite - Mathematics | Algebraic Structure Ring - Let addition (+) and Multiplication (.) be two binary operations defined on a non empty set R. Then R is said to form a ring w.r.t addition (+) and multiplication (.) if the following conditions are satisfied: (R, +) is an abelian group ( i.e commutative group) (R, .) is a semigroup For any th
7 min read
Mathematics | Renewal processes in probability
A Renewal process is a general case of Poisson Process in which the inter-arrival time of the process or the time between failures does not necessarily follow the exponential distribution. A counting process N(t) that represents the total number of occurrences of an event in the time interval (0, t] is called a renewal process, if the time between
2 min read
Definite Integral | Mathematics
Definite integrals are the extension after indefinite integrals, definite integrals have limits [a, b]. It gives the area of a curve bounded between given limits. [Tex]\int_{a}^{b}F(x)dx [/Tex], It denotes the area of curve F(x) bounded between a and b, where a is the lower limit and b is the upper limit. Note: If f is a continuous function defined
1 min read
Application of Derivative - Maxima and Minima | Mathematics
The Concept of derivative can be used to find the maximum and minimum value of the given function. We know that information about and gradient or slope can be derived from the derivative of a function. We try to find a point which has zero gradients then locate maximum and minimum value near it. It is of use because it can be used to maximize profi
3 min read
Mathematics | Problems On Permutations | Set 2
Prerequisite - Permutation and Combination, Permutations | Set 1 Formula's Used : P(n, r) = n! / (n-r)! Example-1 : How many words can be formed from the letters of the word WONDER, such that these begin with W and end with R? Explanation : If we fix W in the beginning and R at the end, then the remaining 4 letters can be arranged in 4P4 ways. Thus
3 min read
Gamma Distribution Model in Mathematics
Introduction : Suppose an event can occur several times within a given unit of time. When the total number of occurrences of the event is unknown, we can think of it as a random variable. Now, if this random variable X has gamma distribution, then its probability density function is given as follows. [Tex]f(x) = \frac{1}{\beta^\alpha Γ(\alpha)} x^{
2 min read
Elementary Matrices | Discrete Mathematics
Prerequisite : Knowledge of Matrices & Identity Matrix Introduction :A matrix is a collection of numbers arranged in a row-by-row and column-by-column arrangement. The elements of a matrix must be enclosed in parenthesis or brackets.Example - The 3 * 3 matrix means a matrix with 3 rows & 3 columns with a total of 9 elements. (3*3 = 9) Ident
3 min read
Discrete Mathematics - GATE CSE Previous Year Questions
Solving GATE Previous Year's Questions (PYQs) not only clears the concepts but also helps to gain flexibility, speed, accuracy, and understanding of the level of questions generally asked in the GATE exam, and that eventually helps you to gain good marks in the examination. Previous Year Questions help a candidate practice and revise for GATE, whic
4 min read
Mathematics | Graph Theory Basics - Set 1
A graph is a data structure that is defined by two components : A node or a vertex.An edge E or ordered pair is a connection between two nodes u,v that is identified by unique pair(u,v). The pair (u,v) is ordered because (u,v) is not same as (v,u) in case of directed graph.The edge may have a weight or is set to one in case of unweighted graph.Cons
4 min read
Program for Gauss Seidel Method (Computational Mathematics)
The Gauss Seidel method is an iterative process to solve a square system of (multiple) linear equations. It is also prominently known as 'Liebmann' method. In any iterative method in numerical analysis, every solution attempt is started with an approximate solution of an equation and iteration is performed until the desired accuracy is obtained. In
3 min read
Mathematics | Generalized PnC Set 1
Prerequisite - PnC and Binomial Coefficients So far every problem discussed in previous articles has had sets of distinct elements, but sometimes problems may involve repeated use of elements. This article covers such problems, where elements of the set are indistinguishable (or identical or not distinct). Permutations with repetition -Counting per
6 min read
Mathematics | Generalized PnC Set 2
Prerequisite - Generalized PnC Set 1 Combinatorial problems can be rephrased in several different ways, the most common of which is in terms of distributing balls into boxes. So we must become familiar with the terminology to be able to solve problems. The balls and boxes can be either distinguishable or indistinguishable and the distribution can t
5 min read
Mathematics | Graph theory practice questions
Problem 1 - There are 25 telephones in Geeksland. Is it possible to connect them with wires so that each telephone is connected with exactly 7 others. Solution - Let us suppose that such an arrangement is possible. This can be viewed as a graph in which telephones are represented using vertices and wires using the edges. Now we have 25 vertices in
4 min read
Mathematics | Hypergeometric Distribution model
Hypergeometric Distribution Model is used for estimating the number of faults initially resident in a program at the beginning of the test or debugging process based on the hypergeometric distribution. Let [Tex]$C_i-1$[/Tex] be the cumulative number of errors already detected so far by [Tex]$t_1, t_2, ...., t_i-1$[/Tex], and let [Tex]$N_i[/Tex] be
2 min read
JEE Mains Mathematics Preparation Experience
In the JEE Examination, the percentile calculation gives the highest priority to Mathematics, followed by Physics, and then Chemistry. Thus, it became crucial for me to focus more on Mathematics. Initially, while preparing for a few topics in 11th and 12th-grade Mathematics, I was able to understand and solve problems. However, I faced challenges w
3 min read
Cayley Table and Cyclic Group | Mathematics
Cyclic groups are a foundational concept in group theory, a branch of abstract algebra that studies algebraic structures known as groups. A cyclic group is a group that can be generated by a single element, meaning every element in the group can be expressed as a power (or multiple) of this generator. This generator is often referred to as the "pri
6 min read
Mathematics | Probability Distributions Set 5 (Poisson Distribution)
The previous article covered the Binomial Distribution. This article talks about another Discrete Probability Distribution, the Poisson Distribution. Introduction -Suppose an event can occur several times within a given unit of time. When the total number of occurrences of the event is unknown, we can think of it as a random variable. This random v
4 min read
Discrete Mathematics | Representing Relations
Prerequisite - Introduction and types of Relations Relations are represented using ordered pairs, matrix and digraphs: Ordered Pairs - In this set of ordered pairs of x and y are used to represent relation. In this corresponding values of x and y are represented using parenthesis. Example: {(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)}This represent sq
2 min read
Mathematics | Problems On Permutations | Set 1
Permutations are a fundamental concept in combinatorics, dealing with the arrangement of objects in a specific order. In mathematical terms, a permutation is an arrangement of a set of elements in a particular sequence or order. Understanding permutations is crucial not only in mathematics but also in various fields of engineering where precise arr
6 min read
Article Tags :