Would this be a general formula for the gradient of a function r^n?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
grandpa2390
Messages
473
Reaction score
14
Had to find the general formula for the gradient of a function r^n. r is the length of the vector connecting (x,y,z) with (x',y',z')

I took the gradient of r^n and simplified it. If I plug in any number for in in r^n and go through the process, I will get the same result as if I take this function and plug that number into n at the end.
Does that make sense? Would this be considered the general formula.
 
Physics news on Phys.org
I moved the thread to our homework section.

It would help to see the formulas you got.

In general, it should not matter when you plug in values - and in the general case you don't even have to do that.
 
mfb said:
I moved the thread to our homework section.

It would help to see the formulas you got.

In general, it should not matter when you plug in values - and in the general case you don't even have to do that.

I plugged in values to check.

let R be the vector (x-x')+(y-y')+(z-z')
let r be the length (sqrt of (x-x')^2...
R' be the unit vector

I get the general formula for del(r^n) as (n*R)/(n^(2-n)) or (n*R')/(r^(1-n))
I plugged in a number for n to check if my result would give me the same answer as if I used that number instead of n and it does. Does that mean that this is a general formula?