What is the Correct Solution for Capacitor/Inductor Charging Equation?

  • Thread starter Thread starter sirpsycho85
  • Start date Start date
  • Tags Tags
    Charging
Click For Summary
SUMMARY

The forum discussion centers on the derivation of the capacitor voltage equation in an RC circuit and the correct method for solving the differential equation. The equation in question is dx/dt + x/T = K, which is manipulated to separate variables and integrate. A key mistake identified involves the incorrect handling of the logarithmic differentiation when not multiplying by -1, leading to an erroneous solution. The correct approach yields x(t) = KT + Ae^(-t/T), confirming the importance of careful variable separation and integration in solving differential equations.

PREREQUISITES
  • Understanding of differential equations
  • Familiarity with RC circuit theory
  • Knowledge of logarithmic differentiation
  • Basic calculus skills
NEXT STEPS
  • Study the derivation of the capacitor voltage equation in RC circuits
  • Learn about the Laplace transform for solving differential equations
  • Explore the applications of time constants in electrical circuits
  • Review integration techniques specific to logarithmic functions
USEFUL FOR

Junior engineers, electrical engineering students, and professionals seeking to reinforce their understanding of circuit analysis and differential equations.

sirpsycho85
Messages
6
Reaction score
0
This isn't homework, but it feels like it...it's from the Dorf & Svoboda Introduction to Electric Circuits, 6th ed. on p 298, if you happen to have that.

I'm following the derivation of the formula for capacitor voltage for an RC circuit with a single resistor and single cap, or the current in the simple inductor circuit. Arriving at the general form of the differential equation, with time constant T:

dx(t)/dt + x(t)/T = K

rewritten:

dx/dt = (KT - x)/T

now, in the next step, the authors separate the variables and multiply each side by -1, yielding:

dx/(x - KT) = -dt/T

and go on to integrate both sides and arrive at:

ln(x - KT) = -t/T + D

D being the constant of integration. Raising e to both sides you get:

x(t) = KT + Ae-t/T

where A is eD, and you can go on using initial conditions to solve for the constant.



I can't get the same result when I don't multiply both sides by -1 when separating variables before solving the equation. My steps are as follows:

dx/dt = (KT - x)/T

dx/(KT - x) = dt/T having not multiplied by -1

ln(KT - x) = t/T + D

KT - x = Aet/T

x(t) = KT - Aet/T

This doesn't appear to be the same solution, as en is not equal to -e-n.


Can somebody please help me figure out what I've missed?

Oh, and hello everybody. I'm a junior engineer but work in a field that barely ever touches on a lot of what I learned in school...I've decided to start studying again to make sure I retain the fundamentals, especially if I do switch into a hardware design position.

Thank you.
 
Physics news on Phys.org
I think I spotted the mistake,

(d/dx)ln(x - KT) = 1/(KT - x)

but

(d/dx)ln(KT - x) = -1/(KT - x)

so

dx/(KT - x) ==> (-1)ln(KT - x)

hope that helps :)

---
 
Last edited by a moderator:
You're right! I was thinking about the whole denominator when I should have been careful and integrated with respect to x.
 
Last edited:

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
3K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
9
Views
3K
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
6
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K