Skip to content
GATEiit

GATE EC · Engineering Mathematics

Partial derivatives

Partial derivatives of functions of several variables: first and higher order, equality of mixed partials, the chain rule and implicit differentiation, total differentials for error and sensitivity estimates, and Euler's theorem.

Before you start

  • Differentiation of one-variable functions

    A partial derivative is an ordinary derivative taken with every other variable held constant, so all the one-variable rules carry over.

  • Chain rule for one variable

    The multivariable chain rule adds up one-variable chain rules along each path of dependence.

This topic comes before: Analytic functions, Gradient, divergence and curl, Linear differential equations, Maxima and minima, Multiple integrals, Partial differential equations, Theorems of integral calculus

Concept notes

1. Definition and computation

For a function f(x,y), the partial derivative with respect to x at (a,b) is fx(a,b)=∂f∂x∣(a,b)=lim⁡h→0f(a+h,b)−f(a,b)h. It is the rate of change of f when only x moves and y is frozen at b. Likewise fy freezes x. The idea extends to any number of variables.

How to compute: treat every other variable as a constant and differentiate as usual. For f=x3y2+exy: fx=3x2y2+y exy,fy=2x3y+x exy.

Geometric meaning. Cutting the surface z=f(x,y) with the plane y=b gives a curve z=f(x,b); fx(a,b) is the slope of that curve at x=a. So fx and fy are slopes along the two coordinate directions. The slope in any other direction is the directional derivative, built from the gradient (fx,fy) (see Gradient, divergence and curl).

Notation. ∂f∂x, fx, ∂xf and D1f all mean the same thing. In physics and circuits a subscript often records what is held fixed, e.g. (∂V∂T)I.

Existence is weak. Having both fx and fy at a point does not make f continuous there. The function equal to xyx2+y2 away from the origin and 0 at the origin has fx(0,0)=fy(0,0)=0, yet along y=x it equals 12, so it is not continuous at (0,0). When the partial derivatives are themselves continuous, f is differentiable and all the rules below are safe; GATE functions are almost always of this kind.

xyP(a, b)y = b fixedx = a fixedlevel curves of f(x, y) (dashed)xz = f(x, b)aslope = ∂f/∂x at (a, b)section of the surface by the plane y = b
Meaning of $f_x(a, b)$: hold $y = b$, move only in $x$ (left), and take the slope of the resulting one-variable curve $z = f(x, b)$ at $x = a$ (right). $f_y$ is the same with $x = a$ held fixed.

2. Higher-order partials and Laplace's equation

Differentiating again gives four second-order partials of f(x,y): fxx=∂2f∂x2,fyy=∂2f∂y2,fxy=∂∂y(∂f∂x),fyx=∂∂x(∂f∂y).

Equality of mixed partials (Schwarz / Clairaut). If fxy and fyx are continuous near a point, they are equal there: ∂2f∂x ∂y=∂2f∂y ∂x. This holds for all polynomials, exponentials, sines and their combinations, so you may differentiate in whichever order is easier. Without continuity it can fail: for f=xy(x2−y2)x2+y2 (with f(0,0)=0), the two mixed partials at the origin are −1 and +1.

Shortcut: for f=x2y3, fxy is the same whichever way you go: (2xy3)y=6xy2 and (3x2y2)x=6xy2.

Laplace's equation. A function with continuous second partials satisfying ∇2u=uxx+uyy=0 is called harmonic. Examples: x2−y2, xy, excos⁡y, ln⁡(x2+y2) (away from the origin). Harmonic functions appear in EC as electrostatic potential in a charge-free region and as the real and imaginary parts of analytic functions, which satisfy the Cauchy–Riemann equations ux=vy, uy=−vx.

The wave equation utt=c2uxx and the diffusion equation ut=D uxx are also statements about partial derivatives; checking whether a given u(x,t) satisfies one is a routine GATE task (substitute and compare).

3. Chain rule and implicit differentiation

One parameter. If z=f(x,y) with x=x(t) and y=y(t), then dzdt=∂z∂xdxdt+∂z∂ydydt. This total derivative adds the effect of t through each path. Example: the power in a resistor, P=V2R, changes with time if both V and R drift: dPdt=2VRdVdt−V2R2dRdt.

Two parameters. If x=x(u,v) and y=y(u,v), ∂z∂u=zx xu+zy yu,∂z∂v=zx xv+zy yv. For polar coordinates x=rcos⁡θ, y=rsin⁡θ: zr=zxcos⁡θ+zysin⁡θ,zθ=−zx rsin⁡θ+zy rcos⁡θ.

Implicit functions. If F(x,y)=0 defines y as a function of x and Fy≠0, dydx=−FxFy. This follows from the chain rule: Fx+Fydydx=0. For F(x,y,z)=0, similarly ∂z∂x=−FxFz and ∂z∂y=−FyFz.

Example: on the curve x3+y3=6xy at (3,3), Fx=3x2−6y=9 and Fy=3y2−6x=9, so dydx=−1.

Leibniz's rule for differentiating an integral with variable limits uses the same ideas and is covered in Theorems of integral calculus.

zxyt∂z/∂x∂z/∂ydx/dtdy/dtdz/dt = (∂z/∂x)(dx/dt)+ (∂z/∂y)(dy/dt)Multiply along each pathfrom z down to t,then add the paths.
Chain rule as a tree: $z$ depends on $x$ and $y$, which both depend on $t$. Each path from $z$ to $t$ contributes the product of its derivatives.

4. Total differential, errors and sensitivity

For small changes dx, dy in the inputs, the change in z=f(x,y) is approximately the total differential dz=∂z∂x dx+∂z∂y dy. This is the first-order Taylor approximation in two variables.

Relative (percentage) errors. For a product of powers z=k xayb, take logarithms and differentiate: dzz=adxx+bdyy. So exponents become multipliers of the percentage errors.

Formula Percentage change
P=VI %P=%V+%I
P=V2R %P=2 %V−%R
fc=12πRC %fc=−(%R+%C)
f0=12πLC %f0=−12(%L+%C)

Signs matter. If the errors have known signs, add them with signs. If only their sizes are known (tolerances), the maximum possible error adds magnitudes: for P=V2R with ±1% on V and ±2% on R, the worst case is 2(1)+2=4%.

Sensitivity. In control and circuits, the sensitivity of T to a parameter K is SKT=∂T/T∂K/K=KT∂T∂K, which is just the exponent above. For f0 in an LC circuit, SLf0=−12.

These are linear estimates; they are good when the changes are a few per cent, and worsen for large changes.

5. Euler's theorem on homogeneous functions

f(x,y) is homogeneous of degree n if f(tx,ty)=tnf(x,y) for all t>0. Examples: x3+5xy2 (degree 3), x2+y2x−y (degree 1), xy or sin⁡(yx) (degree 0).

Euler's theorem. If f is homogeneous of degree n with continuous partial derivatives, x∂f∂x+y∂f∂y=nf. With continuous second partials, applying it again gives x2fxx+2xy fxy+y2fyy=n(n−1)f. For three variables, add the z terms in the same pattern.

When u itself is not homogeneous but F(u) is, of degree n (common GATE form, e.g. sin⁡u, tan⁡u, eu of a homogeneous expression): xux+yuy=nF(u)F′(u). Example: if tan⁡u=x3+y3x−y (degree 2), then xux+yuy=2tan⁡usec⁡2u=sin⁡2u.

How to use it. Check the degree by replacing x,y with tx,ty. Then the weighted sum xfx+yfy comes without computing either partial. A degree-0 function always gives xfx+yfy=0.

Degree n xfx+yfy x2fxx+2xyfxy+y2fyy
0 0 0
1 f 0
2 2f 2f
3 3f 6f

Formulas to remember

Partial derivative
fx(a,b)=lim⁡h→0f(a+h,b)−f(a,b)h
Equality of mixed partialsWhen both are continuous
fxy=fyx
Laplace's equation
uxx+uyy=0
Chain rule (one parameter)
dzdt=∂z∂xdxdt+∂z∂ydydt
Implicit differentiation
dydx=−FxFy,Fy≠0
Total differential
dz=∂z∂x dx+∂z∂y dy
Relative error of a product of powers
z=k xayb  ⇒  dzz=adxx+bdyy
Euler's theoremf homogeneous of degree n
xfx+yfy=nf
Euler's theorem, second order
x2fxx+2xy fxy+y2fyy=n(n−1)f

Common mistakes

  • Forgetting to treat the other variable as a constant, for example differentiating y² with respect to x as 2y.
  • Dropping one path in the chain rule; every route from z to t contributes a term.
  • Writing dy/dx = F_x / F_y without the minus sign in implicit differentiation.
  • Adding signed percentage errors when the question asks for the maximum possible error; then the magnitudes add.
  • Applying Euler's theorem to a function that is not homogeneous, such as sin⁻¹ of a homogeneous ratio, instead of applying it to F(u).
  • Assuming that existence of f_x and f_y at a point makes f continuous or differentiable there.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Mixed partials in either order

numerical

For f(x,y)=x2y3+sin⁡(xy), find fxy and fyx, and evaluate them at (1,0).

  1. Step 1: Find the first partials.

    Try it on paper first.

Example 2: Drift of the resonant frequency

numerical

An LC tank has f0=12πLC. With temperature, L rises by 2% and C falls by 1%. Estimate the percentage change in f0.

  1. Step 1: Write f₀ as a product of powers.

    Try it on paper first.

Example 3: Rate of change of resistor power

numerical

A resistor has V=10 V across it, rising at 0.5 V/s, while its resistance R=20 Ω rises at 0.2 Ω/s as it heats. Find the rate of change of the power P=V2R at this instant.

  1. Step 1: Find the partial derivatives of P.

    Try it on paper first.

Example 4: Euler's theorem through F(u)

numerical

If u=sin⁡−1(x2+y2x+y), find x∂u∂x+y∂u∂y.

  1. Step 1: Is u homogeneous?

    Try it on paper first.

Previous year questions

No official GATE EC question is tagged with this topic yet. The topic test below uses practice questions.

Topic test

8 questions: original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.