# Simplify RC Charging Equation

## Homework Statement

Basically, I'm just trying to verify that I can do basic algebraic manipulation correctly. The objective: solve the charging equation of a simple RC circuit for (C), capacitance.

## Homework Equations

$$v\left(t\right)={v}_{s}\left(1-{e}^{{-t}/{RC}}\right)$$

## The Attempt at a Solution

[/B]
I ended up with the following.
$$C=\frac{-t}{R\mathrm{ln}\left(\frac{{v}_{s}-{v}_{\left(t\right)}}{{v}_{s}}\right)}$$
Is this correct? Also, I have a suspicion that the log in the denominator can somehow be simplified more than just putting $$\mathrm{ln}\left(1-\frac{v\left(t\right)}{{v}_{s}}\right)$$ but I can't think of how. Thanks in advance!

$$\ln(\frac{a}{b})=\ln a - \ln b$$