Logarithmic Function Calculator


Instructions: Use this step-by-step Logarithmic Function Calculator, to find the logarithmic function that passes through two given points in the plane XY. You need to provide the points (t1,y1)(t_1, y_1) and (t2,y2)(t_2, y_2), and this calculator will estimate the appropriate exponential function and will provide its graph.

Type t1t_1 (One numeric expression) =
Type y1y_1 (One numeric expression) =
Type t2t_2 (One numeric expression) =
Type y2y_2 (One numeric expression) =
List of Points to evaluate (Optional. Comma or space separated) =



Logarithmic Function Calculator from Two Points

The main purpose of this calculator is to estimate the parameters A0A_0 and kk for the logarithmic function f(t)f(t) which is defined as:

f(t)=A0ln(kt)f(t) = A_0 \ln(k t)

The parameters need to be so the logarithmic function passes through the two given points (t1,y1)(t_1, y_1) and (t2,y2)(t_2, y_2).

How do you estimate a logarithmic function from two points?

Algebraically speaking, you need to solve the following system of equations to find the parameters A0A_0 and kk:

y1=A0ln(kt1)y_1 = A_0 \ln(k t_1) y2=A0ln(kt2)y_2 = A_0 \ln(k t_2)

By solving this system for the unknowns A0A_0 and kk, we can find unique solutions, as long as t1t2t_1 \ne t_2.

Indeed, by subtracting both sides of the equations:

y1y2=A0(ln(kt1)ln(kt2))\displaystyle y_1 - y_2 = A_0 \left( \ln(k t_1) - \ln(k t_2) \right) y1y2=A0ln(kt1kt2)\displaystyle \Rightarrow \, y_1 - y_2 = A_0 \ln \left(\displaystyle\frac{k t_1}{k t_2}\right) y1y2=A0ln(t1t2)\displaystyle \Rightarrow \, y_1 - y_2 = A_0 \ln \left(\displaystyle\frac{t_1}{t_2}\right) A0=y1y2ln(t1)ln(t2) \Rightarrow \, A_0 = \displaystyle \frac{y_1 - y_2}{\ln(t_1) - \ln(t_2)}

which solves the equations for A0A_0. Now, in order to solve for kk we use the first equation and apply exponential to both sides::

y1=A0ln(kt1)y_1 = A_0 \ln(k t_1) ey1A0=kt1 \Rightarrow \, \displaystyle e^{\frac{y_1}{A_0}} = k t_1 k=ey1A0t1 \Rightarrow \, k = \displaystyle \frac{e^{\frac{y_1}{A_0}}}{t_1}

and there we have found kk, as function of A0A_0 that is already determined and known.

How do you calculate an exponential function?

If instead of a logarithmic function you are interested in exponential behavior, then you should probably use this exponential function calculator , which follows the same logic of estimating parameters to enforce the function passing through two given points.

log in to your account

Don't have a membership account?
REGISTER

reset password

Back to
log in

sign up

Back to
log in