Analyzing a function that represents the power a of a light bulb depending on distance

34 Views Asked by At

I'm trying to create a $g(x,y)$ function based on this given : the power of light from a light bulb of distance $d$ is proportional to $\frac{1}{d^2}$.

Now my light bulb is installed at the point $(0,0,2)$ in a plane ,and i want to create a function that represents the power of light at every point $(x,y)$. So i thought my function should be $g(x,y)=\frac{1}{(||(x,y,0)-(0,0,2)||)^2}$ since i want the distance calculated from the $(0,0,2)$ point.

Is this correct?