BAS101 · Unit 3

Partial differentiation and its applications notes — Unit 3

Free unit-wise study notes on partial differentiation and its applications for Engineering Mathematics I, Semester 1 of B.Tech — Computer Science & Engineering — key concepts, examples, important questions and a revision checklist for semester exams.

Twenty extremely detailed hand-written sheets covering Partial Differentiation. Features exhaustive line-by-line algebraic proofs for Euler's Theorem, Jacobian transformations, and Maxima/Minima testing, exactly simulating how you must write them in the university exam.

Notebook — 20 pages

Page 1

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

1. Why Partial Differentiation?

Ordinary differentiation (dy/dx) works when a function depends on only ONE variable. But in engineering, almost everything depends on multiple variables. Forexample,thevolumeofacylinderV=pirFor example, the volume of a cylinder V = pir^2h depends on both radius$ 'r' and height 'h'. If we heat the cylinder, both r and h will expand.

The Core Concept

Partial differentiation asks: 'How does the function change if I vary ONE variable while freezing all the others?'

Notation

  • Ordinary: dy/dx,d2y/dxdy/dx, d^2y/dx^2$
  • Partial: ∂z/∂x, ∂z/∂y, ∂2z/^2z/∂x2x^2

The Golden Rule

  • When finding ∂z/∂x, treat 'y' as a strict constant.
  • When finding ∂z/∂y, treat 'x' as a strict constant.

Next — Page 2 — Dry Run: Basic Partial Derivatives

1 of 20

Page 2

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

2. Dry Run: Basic Partial Derivatives

Let's perform a dry run of finding first and second order partial derivatives for a function.

Given Function
z=x3+yz = x^3 + y^3 - 3axy$
  1. 1.1. Find ∂z/∂x. Treat 'y' and 'a' as constants.
  2. 2. ∂(x3)/(x^3)/∂x=3x2x = 3x^2
  3. 3. ∂(y3)/(y^3)/∂x = 0 (since y is a constant here)
  4. 4. ∂(-3axy)/∂x = -3ay * (1) = -3ay
  5. 5. Result: ∂z/∂x=3x2−3ayx = 3x^2 - 3ay
  6. 6.
  7. 7.2. Find ∂z/∂y. Treat 'x' and 'a' as constants.
  8. 8. ∂(x3)/(x^3)/∂y = 0
  9. 9. ∂(y3)/(y^3)/∂y=3y2y = 3y^2
  10. 10. ∂(-3axy)/∂y = -3ax * (1) = -3ax
  11. 11. Result: ∂z/∂y=3y2−3axy = 3y^2 - 3ax

Next — Page 3 — Successive Partial Differentiation

2 of 20

Page 3

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

3. Successive Partial Differentiation

Just like ordinary derivatives, we can differentiate again to get second-order partial derivatives.

Pure Derivatives

  • ∂2z/^2z/∂x2x^2 : Differentiate ∂z/∂x w.r.t x again.
  • ∂2z/^2z/∂y2y^2 : Differentiate ∂z/∂y w.r.t y again.

Mixed Derivatives

  • ∂2z/^2z/∂x∂y : Differentiate ∂z/∂y w.r.t x.
  • ∂2z/^2z/∂y∂x : Differentiate ∂z/∂x w.r.t y.

Next — Page 4 — Dry Run: Cross-Checking Mixed Derivatives

3 of 20

Page 4

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

4. Dry Run: Cross-Checking Mixed Derivatives

Let's prove Clairaut's theorem holds for our previous example: z=x3+yz = x^3 + y^3 - 3axy$.

From Page 2, we found:
∂z/∂x=3x2−3ayx = 3x^2 - 3ay
∂z/∂y=3y2−3axy = 3y^2 - 3ax
  1. 1.Let's find ∂2z/^2z/∂y∂x. This means taking ∂z/∂x and differentiating it w.r.t y.
  2. 2.∂(3x2−3ay)/(3x^2 - 3ay)/∂y = 0 - 3a(1) = -3a
  3. 3.
  4. 4.Now let's find ∂2z/^2z/∂x∂y. This means taking ∂z/∂y and differentiating it w.r.t x.
  5. 5.∂(3y2−3ax)/(3y^2 - 3ax)/∂x = 0 - 3a(1) = -3a

Next — Page 5 — Homogeneous Functions

4 of 20

Page 5

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

5. Homogeneous Functions

A function f(x, y) is called a 'Homogeneous Function' of degree 'n' if,whenyoureplacexwithtxandywithty,youcanfactoroutexactlytn,leavingtheoriginalfunctioncompletelyuntouchedif, when you replace x with tx and y with ty, you can factor out exactly t^n, leaving the original function completely untouched.

Formal Definition
f(tx,ty)=tn∗f(x,y)f(tx, ty) = t^n * f(x, y)
  1. 1.Example: f(x,y)=x2+xy+yf(x,y) = x^2 + xy + y^2$
  2. 2.Replace x with (tx) and y with (ty):
  3. 3.f(tx,ty)=(tx)2+(tx)(ty)+(ty)f(tx, ty) = (tx)^2 + (tx)(ty) + (ty)^2$
  4. 4. =t2x= t^2x^2 + t2xy+t^2xy + t^2y2^2
  5. 5.Factoroutt2Factor out t^2:
  6. 6. =t2(x= t^2 (x^2 + xy + y2)^2)
  7. 7. =t2∗f(x,y)= t^2 * f(x, y)
  8. 8.Therefore, it is homogeneous of degree 2.

Next — Page 6 — Euler's Theorem

5 of 20

Page 6

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

6. Euler's Theorem

If a function is Homogeneous, you don't need to do massive partial differentiations to find complex combinations. Euler discovered a beautiful shortcut.

Euler's Theorem on Homogeneous Functions

  • If f(x,y) is a homogeneous function of degree n, then:
  • x(∂f/∂x) + y(∂f/∂y) = n * f

There is also a second-order deduction of Euler's theorem that is frequently tested:

x2(x^2(∂2f/^2f/∂x2)+2xy(x^2) + 2xy(∂2f/^2f/∂x∂y)+y2(y) + y^2(∂2f/^2f/∂y2)=n(n−1)fy^2) = n(n-1)f

Next — Page 7 — Dry Run: Euler's Theorem Proof Question

6 of 20

Page 7

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

7. Dry Run: Euler's Theorem Proof Question

Most exam questions don't give you a directly homogeneous function. They give you a function wrapped in a trigonometric or inverse function. You must 'unwrap' it first.

Typical Exam Question
Given: u=sin−1((xu = sin^{-1}( (x^2 + y2)/(x+y))^2) / (x + y) )
Prove: x(∂u/∂x) + y(∂u/∂y) = tan u
  1. 1.Step 1: Check if 'u' is homogeneous. ItisNOT,becausethesin−1blocksusfromfactoringoutIt is NOT, because the sin^{-1} blocks us from factoring out 't'.
  2. 2.Step 2: Unwrap it. Movesin−1totheothersideMove sin^{-1} to the other side.
  3. 3.sinu=(x2+ysin u = (x^2 + y^2) / (x + y)$
  4. 4.Letf=sinu=(x2+yLet f = sin u = (x^2 + y^2) / (x + y)$
  5. 5.Step 3: Now check if 'f' is homogeneous.
  6. 6.Numerator degree = 2. Denominator degree = 1.
  7. 7.Degree of f = 2 - 1 = 1. So, f is homogeneous of degree n = 1.

Next — Page 8 — Dry Run: Euler's Theorem (Conclusion)

7 of 20

Page 8

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

8. Dry Run: Euler's Theorem (Conclusion)

Now apply Euler's Theorem to the unwrapped function 'f', NOT to 'u'.

By Euler's Theorem on f:
x(∂f/∂x) + y(∂f/∂y) = n * f
We know n = 1, and f = sin u. Substitute these in:
x [∂(sin u)/∂x] + y [∂(sin u)/∂y] = 1 * (sin u)
Apply chain rule to differentiate sin u:
x [cos u ∂u/∂x] + y [cos u ∂u/∂y] = sin u
Factor out cos u:
cos u * [ x(∂u/∂x) + y(∂u/∂y) ] = sin u
Divide by cos u:
x(∂u/∂x) + y(∂u/∂y) = sin u / cos u
x(∂u/∂x) + y(∂u/∂y) = tan u

Next — Page 9 — Total Derivative

8 of 20

Page 9

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

9. Total Derivative

Partial derivatives assume independent variables don't affect each other. But what if x and y are both dependent on a third variable, like time 't'? For example, as a balloon is heated over time 't', its pressure 'P' changes, but its volume 'V' and temperature 'T' also change over time 't'.

The Total Derivative Formula

If z = f(x, y), and x = g(t), y = h(t), then the total change in z with respect to t is the sum of the changes coming through x and through y.

dz/dt = (∂z/∂x)(dx/dt) + (∂z/∂y)(dy/dt)

Next — Page 10 — Implicit Differentiation

9 of 20

Page 10

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

10. Implicit Differentiation

Sometimes,xandyarelockedtogetherinatangledequationlikex3+ySometimes, x and y are locked together in a tangled equation like x^3 + y^3 - 3axy = 0, and you can

#x27;t isolate y = f(x). You can find dy/dx using the total derivative concept.

The Magic Formula

  • If f(x, y) = c, then:
  • dy/dx = - (∂f/∂x) / (∂f/∂y)
  1. 1.Why does this work?
  2. 2.1. Take the total derivative of f(x,y)=c with respect to x.
  3. 3.2. (∂f/∂x)(dx/dx) + (∂f/∂y)(dy/dx) = 0
  4. 4.3. Since dx/dx = 1, we get: ∂f/∂x + (∂f/∂y)(dy/dx) = 0
  5. 5.4. Rearrange to solve for dy/dx.

This formula is a lifesaver. Instead of doing messy implicit differentiation with the product rule, just do two simple partial derivatives and divide them.

Next — Page 11 — Dry Run: Implicit Differentiation

10 of 20

Page 11

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

11. Dry Run: Implicit Differentiation

Find dy/dx if xʸ = yˣ

Step 1: Move everything to one side to form f(x,y) = 0.
f(x,y) = xʸ - yˣ = 0
  1. 1.Step 2: Find ∂f/∂x (treat y as constant).
  2. 2.Derivative of xʸ is y*xʸ−1(likederivativeofx^{-1} (like derivative of x^2 is 2x)$.
  3. 3.Derivative of yˣ is yˣ log(y) (like derivative of 2ˣ is 2ˣlog(2)).
  4. 4.∂f/∂x = y*xʸ−1−y^{-1} - yˣ*log(y)
  5. 5.
  6. 6.Step 3: Find ∂f/∂y (treat x as constant).
  7. 7.Derivative of xʸ is xʸ * log(x).
  8. 8.Derivative of yˣ is x*yˣ−1^{-1}.
  9. 9.∂f/∂y = xʸlog(x) - xyˣ−1^{-1}
Step 4: Plug into the magic formula.
dy/dx = - (∂f/∂x) / (∂f/∂y)
dy/dx = - [ y*xʸ−1−y^{-1} - yˣlog(y) ] / [ xʸlog(x) - x*yˣ−1]^{-1} ]
dy/dx = [ yˣlog(y) - yxʸ−1]/[x^{-1} ] / [ xʸlog(x) - xyˣ−1]^{-1} ]

Done in 4 lines. If you tried to take logs of both sides and differentiate implicitly with product rules, it would take a full page.

Next — Page 12 — Jacobians

11 of 20

Page 12

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

12. Jacobians

In calculus, if we change variables from (x) to (u), we multiply by dx/du. But what if we change from 2D coordinates (x,y) to 2D coordinates (u,v)? We can't just divide vectors. We use a matrix determinant called the Jacobian.

Definition of Jacobian J(u,v / x,y)

  • It is the determinant of all first-order partial derivatives.
  • J = | ∂u/∂x ∂u/∂y |
  • | ∂v/∂x ∂v/∂y |

Next — Page 13 — Functional Dependence

12 of 20

Page 13

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

13. Functional Dependence

The Jacobian is the ultimate test to see if two functions are secretly the same thing just disguised algebraically. If two functions u and v are functionally dependent (meaning u = f(v)), their Jacobian will be exactly ZERO.

The Test for Dependence
If J(u,v / x,y) = 0 everywhere, then u and v are functionally dependent.
If J(u,v / x,y) ≠ 0, they are independent.
  1. 1.Exam Question Pattern:
  2. 2.1. Youaregivenu=(x+y)/(1−xy)andv=tan−1x+tanYou are given u = (x+y)/(1-xy) and v = tan^{-1}x + tan^{-1}y$.
  3. 3.2. Question asks: 'Are u and v functionally dependent? If so, find the relation.'
  4. 4.3. Calculate the 2x2 Jacobian determinant.
  5. 5.4. Prove it equals 0.
  6. 6.5. Lookattheformulasandrealizev=tan−1(u)Look at the formulas and realize v = tan^{-1}(u). That's the relation!

Next — Page 14 — Dry Run: Calculating a 3x3 Jacobian

13 of 20

Page 14

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

14. Dry Run: Calculating a 3x3 Jacobian

Find J(x,y,z / r,θ,φ) for Spherical Coordinates:

x = r sinθ cosφ
y = r sinθ sinφ
z = r cosθ
  1. 1.Step 1: Set up the 3x3 determinant.
  2. 2.Row 1: ∂x/∂r, ∂x/∂θ, ∂x/∂φ
  3. 3.Row 2: ∂y/∂r, ∂y/∂θ, ∂y/∂φ
  4. 4.Row 3: ∂z/∂r, ∂z/∂θ, ∂z/∂φ
  5. 5.
  6. 6.Step 2: Differentiate.
  7. 7.Row 1: sinθ cosφ, r cosθ cosφ, -r sinθ sinφ
  8. 8.Row 2: sinθ sinφ, r cosθ sinφ, r sinθ cosφ
  9. 9.Row 3: cosθ, -r sinθ, 0
Step 3: Expand the determinant along Row 3 (since it has a zero).
=cosheta[r= cos heta [ r^2coshetasin hetasin hetacos2^2φ −(−r2cos- (-r^2cos hetasinhetasin hetasin^2$φ) ]
−(−rsinheta)[rsin- (-r sin heta) [ r sin^2hetacos hetacos^2φφ - (-r sin^2hetasin hetasin^2$φ) ]
Factoroutthecommontermsandusesin2Factor out the common terms and use sin^2φ +cos2+ cos^2φ = 1:
=cosheta[r= cos heta [ r^2coshetasin hetasin heta (1) ] + r sinheta[rsin heta [ r sin^2heta(1)] heta (1) ]
=r2cos= r^2 cos^2hetasin heta sin heta + r2sin^2 sin^3heta heta
=r2sin= r^2 sin heta (cos2^2 heta + sin2^2 heta)$
=r2sin= r^2 sin heta$

Next — Page 15 — Maxima and Minima (Two Variables)

14 of 20

Page 15

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

15. Maxima and Minima (Two Variables)

For a 1D function y = f(x), we found max/min by setting f'(x) = 0 and checking if f''(x) is positive or negative. For a 3D surface z = f(x,y), we have to check multiple directions.

  1. 1.Step 1: Find the first partial derivatives: p = ∂f/∂x, and q = ∂f/∂y.
  2. 2.Step 2: Set p = 0 and q = 0. Solve these simultaneous equations to find the 'Stationary Points' (a,b).
  3. 3.Step 3: Calculate the second order derivatives at (a,b):
  4. 4. r = ∂2f/^2f/∂x2x^2
  5. 5. s = ∂2f/^2f/∂x∂y
  6. 6. t = ∂2f/^2f/∂y2y^2

Now,weusethe(rt−s2)testtoclassifyeachstationarypointNow, we use the (rt - s^2) test to classify each stationary point.

Next — Page 16 — $The (rt - s^2) Test$

15 of 20

Page 16

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

16. $The (rt - s^2) Test$

EvaluatetheexpressionDelta=rt−sEvaluate the expression Delta = rt - s^2 at the stationary point (a,b)$.

Δ > 0 (Success)

  • If r < 0: It is a MAXIMUM.
  • If r > 0: It is a MINIMUM.

Δ < 0 (Saddle Point)

  • It is neither a maximum nor a minimum.
  • It looks like a horse saddle (curves up in one direction, down in another).

Next — Page 17 — Dry Run: Maxima and Minima

16 of 20

Page 17

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

17. Dry Run: Maxima and Minima

Findthemaximaandminimaoff(x,y)=x3+yFind the maxima and minima of f(x,y) = x^3 + y^3 - 3axy (assume a$ > 0).

Step 1: First derivatives
p=3x2−3ay=0=p = 3x^2 - 3ay = 0 => x2=ayx^2 = ay
q=3y2−3ax=0=q = 3y^2 - 3ax = 0 => y2=axy^2 = ax
Step 2: Solve for stationary points
Substitutey=x2/aintothesecondequationSubstitute y = x^2/a into the second equation:
(x2/a)(x^2/a)^2 = ax =>> x^4/a2=ax=^2 = ax => x4−ax^4 - a^3x = 0$
x(x3−ax(x^3 - a^3) = 0 =
gt; x = 0, x = a.
If x = 0, y = 0. Point 1: (0,0)
If x = a, y = a. Point 2: (a,a)
  1. 1.Step 3: Second derivatives
  2. 2.r = ∂2f/^2f/∂x2=6xx^2 = 6x
  3. 3.s = ∂2f/^2f/∂x∂y = -3a
  4. 4.t = ∂2f/^2f/∂y2=6yy^2 = 6y

Next — Page 18 — Dry Run: Maxima and Minima (Conclusion)

17 of 20

Page 18

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

18. Dry Run: Maxima and Minima (Conclusion)

Nowapplythe(rt−s2)testtobothpointsNow apply the (rt - s^2) test to both points.

Test Point 1: (0,0)
r = 6(0) = 0
s = -3a
t = 6(0) = 0
rt−s2=(0)(0)−(−3a)rt - s^2 = (0)(0) - (-3a)^2 = -9a2^2
Since a > 0,−9a2isNEGATIVE0, -9a^2 is NEGATIVE. Therefore, (0,0) is a Saddle Point.
Test Point 2: (a,a)
r = 6a
s = -3a
t = 6a
rt−s2=(6a)(6a)−(−3a)rt - s^2 = (6a)(6a) - (-3a)^2 = 36a2−9a^2 - 9a^2 = 27a2^2
Since a > 0,27a2isPOSITIVE0, 27a^2 is POSITIVE. The test succeeds.
Now check 'r': r = 6a, which is POSITIVE.
Therefore, (a,a) is a MINIMUM point.

Next — Page 19 — Lagrange's Method of Undetermined Multipliers

18 of 20

Page 19

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

19. Lagrange's Method of Undetermined Multipliers

What if you need to find the max/min of f(x,y,z), but the variables are restricted by some constraint, like they must lie on the surface of a sphere φ(x,y,z) = 0? You can't just set derivatives to zero because the variables aren't independent anymore. Enter Lagrange.

  1. 1.Step 1: Write the target function f(x,y,z) and the constraint function φ(x,y,z) = 0.
  2. 2.Step 2: Construct the Lagrangian Function: F = f + λφ
  3. 3.Step 3: Find partial derivatives of F w.r.t x, y, and z, and set them to zero.
  4. 4. ∂F/∂x = ∂f/∂x + λ(∂φ/∂x) = 0
  5. 5. ∂F/∂y = ∂f/∂y + λ(∂φ/∂y) = 0
  6. 6. ∂F/∂z = ∂f/∂z + λ(∂φ/∂z) = 0
  7. 7.Step 4: You now have 4 equations (the 3 above + the constraint φ=0) and 4 unknowns (x,y,z,λ).
  8. 8.Step 5: Solve algebraically to eliminate λ and find the points x, y, z.

Next — Page 20 — Final Revision Checklist

19 of 20

Page 20

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

— Unit - 3 —

20. Quick Revision Checklist

Unit 3 Mastery

  • Do you remember to treat the other variables as strict constants in partial diff?
  • Can you cross-check your math using Clairaut's theorem (∂2z/^2z/∂x∂y = ∂2z/^2z/∂y∂x)?
  • Can you accurately determine the degree 'n' for a homogeneous function?
  • Do you know the 3-step 'unwrap' algorithm for Euler's theorem proofs?
  • Can you apply the implicit differentiation magic formula: dy/dx = -(∂f/∂x)/(∂f/∂y)?
  • Can you calculate a 3x3 Jacobian without dropping signs?
  • Doyouknowthe(rt−s2)testconditionsforMax,Min,andSaddlepointDo you know the (rt - s^2) test conditions for Max, Min, and Saddle point?
  • Can you set up the F = f + λφ equation for Lagrange multipliers?

Unit 3 is heavily algebraic. If you checked all these boxes, and you practice your cross-multiplication and factoring, you will ace this section.

20 of 20

Continue in this subject