4. Differential Calculus II

Partial Differentiation Basics

Partial Differentiation Basics

Introduction: Why partial differentiation matters πŸ‘‹

students, many real engineering problems depend on more than one changing quantity at the same time. For example, the output power of a motor may depend on temperature, voltage, and load. The lift on an aircraft wing may depend on speed, air density, and angle of attack. When a result depends on several variables, ordinary differentiation is no longer enough. That is where partial differentiation comes in.

In this lesson, you will learn how partial differentiation works, what the notation means, and why it is an essential part of Differential Calculus II. The main objectives are to understand the basic ideas and terminology, apply the method to simple functions, and connect partial differentiation to engineering problems such as optimisation and rates of change.

By the end of this lesson, you should be able to explain what a partial derivative is, calculate first partial derivatives of simple functions, and interpret them as rates of change while holding other variables fixed. This is a key skill in engineering mathematics because many systems are controlled by several inputs at once πŸ”§.

What is a partial derivative?

A partial derivative measures how a function changes when one variable changes and all the other variables stay constant. This is the main idea behind partial differentiation.

Suppose a function depends on two variables, $z=f(x,y)$. If we want to know how $z$ changes with respect to $x$, we treat $y$ as a constant and differentiate with respect to $x$. The result is written as $\frac{\partial z}{\partial x}$ or $f_x$. If we want the change with respect to $y$, we hold $x$ constant and find $\frac{\partial z}{\partial y}$ or $f_y$.

The symbol $\partial$ is used instead of $d$ because we are working with partial derivatives, not ordinary derivatives. This tells us that the function depends on more than one input. In engineering, this is useful because one variable can be adjusted while other conditions remain fixed.

For example, if the temperature in a room is modeled by $T(x,y)$, where $x$ and $y$ are location coordinates, then $\frac{\partial T}{\partial x}$ tells us how quickly the temperature changes as we move in the $x$-direction, while staying at the same value of $y$.

How to calculate partial derivatives

The calculation rules are similar to ordinary differentiation, but with one important idea: treat the other variables as constants. Let’s look at a simple example.

If $f(x,y)=3x^2y+2xy^3-5y$, then the partial derivative with respect to $x$ is found by treating $y$ as a constant:

$$\frac{\partial f}{\partial x}=6xy+2y^3.$$

Here, $3x^2y$ becomes $6xy$ because $y$ is constant, and $2xy^3$ becomes $2y^3$ because $y^3$ is constant. The term $-5y$ becomes $0$ because it contains no $x$.

Now differentiate with respect to $y$, treating $x$ as constant:

$$\frac{\partial f}{\partial y}=3x^2+6xy^2-5.$$

This method works for many standard functions. The same rules you already know still apply:

  • powers are reduced using the power rule,
  • constants stay constant,
  • sums are differentiated term by term,
  • products and quotients may need special rules if the expression is more complicated.

Let’s try one more example. If $g(x,y)=x^2+\sin y$, then

$$\frac{\partial g}{\partial x}=2x$$

and

$$\frac{\partial g}{\partial y}=\cos y.$$

This is simple but important: when differentiating with respect to $x$, the term $\sin y$ is treated as a constant, so its derivative is $0$. When differentiating with respect to $y$, the term $x^2$ is treated as constant, so its derivative is $0$.

Interpreting partial derivatives in engineering contexts βš™οΈ

Partial derivatives are not just calculation exercises. They have a real meaning in engineering. They describe sensitivity, which means how strongly one quantity responds to another.

Imagine a heat exchanger where the heat transfer rate is modeled by a function $Q(T,v)$, where $T$ is temperature and $v$ is fluid speed. The partial derivative $\frac{\partial Q}{\partial T}$ tells us how much the heat transfer rate changes if temperature changes a little, while speed stays fixed. Similarly, $\frac{\partial Q}{\partial v}$ tells us how the rate changes if fluid speed changes while temperature remains the same.

This is useful because engineers often want to know which variable has the biggest effect. If $\left|\frac{\partial Q}{\partial v}\right|$ is much larger than $\left|\frac{\partial Q}{\partial T}\right|$, then the system is more sensitive to speed than to temperature.

A good real-world example is pressure in a gas tank. Pressure may depend on volume and temperature. If $P(V,T)$ models pressure, then $\frac{\partial P}{\partial T}$ measures how pressure changes when temperature changes, while volume is fixed. This links directly to engineering design, safety, and control.

Partial derivatives also help in modelling surfaces. If $z=f(x,y)$ describes a surface, then the partial derivative with respect to $x$ gives the slope in the $x$-direction, and the partial derivative with respect to $y$ gives the slope in the $y$-direction. So partial derivatives help us understand shape and direction on a surface, which is useful in curve sketching and optimisation later in Differential Calculus II.

Notation, variables, and common mistakes

It is important to use notation carefully. If $f(x,y)$ is a function of two variables, then $\frac{\partial f}{\partial x}$ means differentiate with respect to $x$ while holding $y$ fixed. The notation $f_x$ means the same thing. Likewise, $f_y$ means the partial derivative with respect to $y$.

A common mistake is to treat the other variables like they are also changing during the differentiation. For example, if $f(x,y)=xy$, then

$$\frac{\partial f}{\partial x}=y$$

because $y$ is constant.

But it would be wrong to write $\frac{\partial f}{\partial x}=1$ or $xy'$ because $y$ is not a function of $x$ unless the problem says so.

Another mistake is forgetting that only one variable is changing. If $f(x,y)=x^2y^3$, then

$$\frac{\partial f}{\partial x}=2xy^3$$

and

$$\frac{\partial f}{\partial y}=3x^2y^2.$$

The exponents and constants are handled in the same way as ordinary differentiation, but the β€œother” variable remains untouched.

You should also notice that partial derivatives can be taken more than once. These are called second partial derivatives. For example, if $f_x=2xy^3$, then differentiating again with respect to $y$ gives a mixed partial derivative:

$$f_{xy}=6xy^2.$$

These higher derivatives are useful in advanced modelling and later topics, especially when studying how surfaces bend or how systems behave near a stationary point.

Worked example: a simple optimisation style function πŸ“ˆ

Suppose the cost of making a component is modelled by

$$C(x,y)=x^2+2y^2+4xy,$$

where $x$ and $y$ are two design variables.

First, find the partial derivatives:

$$\frac{\partial C}{\partial x}=2x+4y,$$

$$\frac{\partial C}{\partial y}=4y+4x.$$

These tell us how the cost changes if only one design variable changes at a time.

If we want to find a stationary point, we set both partial derivatives equal to zero:

$$2x+4y=0,$$

$$4x+4y=0.$$

Solving this system gives $x=0$ and $y=0$. This point is a candidate for a minimum or maximum. In Differential Calculus II, this connects directly to optimisation, because stationary points are where the gradient-like change in all directions is zero.

Even before learning the full test for maxima and minima, you can already see the value of partial derivatives: they help identify where a model is not changing in either variable direction. That makes them a starting point for engineering design decisions.

How partial differentiation connects to the rest of Differential Calculus II

Partial differentiation is one of the building blocks of advanced calculus for several variables. It connects directly to several key ideas in this course.

First, it supports stationary point analysis. If a function of two variables has a stationary point, then both first partial derivatives are often zero there. This is the multivariable version of setting $f'(x)=0$ for single-variable optimisation.

Second, it helps with curve and surface sketching. The signs and values of partial derivatives give information about slopes and direction of increase. This helps you understand the geometry of graphs of functions of two variables.

Third, it appears in engineering rates of change. When a quantity depends on several inputs, partial derivatives describe sensitivity and how the system responds to each input individually.

Finally, partial differentiation prepares you for more advanced topics such as gradients, tangent planes, and constrained optimisation. These ideas are widely used in mechanical engineering, civil engineering, electrical engineering, and manufacturing. In short, partial differentiation is a core tool for modelling and analysis.

Conclusion

students, partial differentiation is the process of differentiating a function with respect to one variable while keeping the other variables fixed. It is the correct method whenever a quantity depends on two or more independent variables. The notation $\frac{\partial f}{\partial x}$ and $\frac{\partial f}{\partial y}$ shows which variable is changing, and the calculations follow the same basic differentiation rules you already know.

This topic matters because it helps engineers measure sensitivity, study surfaces, and find stationary points for optimisation. It also provides the foundation for later parts of Differential Calculus II, including curve sketching, rates of change, and optimisation in more than one variable. Mastering the basics here will make the rest of the topic much easier πŸš€.

Study Notes

  • A partial derivative measures change in one variable while all other variables are held constant.
  • For a function $f(x,y)$, the partial derivatives are written as $\frac{\partial f}{\partial x}$ and $\frac{\partial f}{\partial y}$.
  • When differentiating with respect to $x$, treat $y$ as a constant; when differentiating with respect to $y$, treat $x$ as a constant.
  • Example: if $f(x,y)=3x^2y+2xy^3-5y$, then $\frac{\partial f}{\partial x}=6xy+2y^3$ and $\frac{\partial f}{\partial y}=3x^2+6xy^2-5$.
  • Partial derivatives are used to measure sensitivity in engineering systems such as temperature, pressure, heat transfer, and cost models.
  • A stationary point in two variables often occurs where both first partial derivatives are zero.
  • Partial differentiation is a foundation for optimisation, curve sketching on surfaces, and later multivariable calculus topics.
  • Common mistakes include changing more than one variable at once or treating the other variable as if it were a function of the one being differentiated.
  • Mixed partial derivatives are possible, such as $f_{xy}$, and are useful in more advanced analysis.
  • Understanding partial differentiation helps connect algebra, calculus, and real engineering decisions.

Practice Quiz

5 questions to test your understanding